/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.1);
  --font: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; }

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== Header / Nav ===== */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { font-size: 1.35rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--text-light); }
.nav-links a:hover { color: var(--primary); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 20px;
  background: var(--primary-light); color: var(--primary);
  font-size: .82rem; font-weight: 600; cursor: pointer;
  border: none; transition: background .2s;
}
.lang-switch:hover { background: #bfdbfe; }

/* Mobile menu toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle svg { width: 28px; height: 28px; stroke: var(--text); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  color: #fff; padding: 96px 0 80px; text-align: center; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 64px;
  background: var(--bg); clip-path: ellipse(60% 100% at 50% 100%);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.25; margin-bottom: 20px; }
.hero p { font-size: 1.15rem; opacity: .88; max-width: 600px; margin: 0 auto 36px; line-height: 1.7; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px; font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); color:#fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); color:#fff; }

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Section ===== */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.section-title p { color: var(--text-light); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ===== Features ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.feature-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; transition: box-shadow .25s, transform .25s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.5rem;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: .93rem; }

/* ===== Pricing ===== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px; align-items: start;
}
.pricing-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px; position: relative; transition: box-shadow .25s;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary), var(--shadow-lg);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 4px 18px; border-radius: 20px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.pricing-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.pricing-card .price { font-size: 2.4rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.pricing-card .price-period { color: var(--text-light); font-size: .88rem; margin-bottom: 24px; }
.pricing-card .price-desc { color: var(--text-light); font-size: .9rem; margin-bottom: 24px; line-height: 1.6; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  padding: 8px 0; font-size: .93rem; display: flex; align-items: flex-start; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--success); font-weight: 700; flex-shrink: 0; }

.pricing-card .btn { width: 100%; justify-content: center; }
.btn-secondary { background: var(--primary); color: #fff; }
.btn-secondary:hover { background: var(--primary-dark); color:#fff; }

/* ===== Curriculum ===== */
.curriculum-list { max-width: 720px; margin: 0 auto; }
.curriculum-item {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px; margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 18px; transition: box-shadow .2s;
}
.curriculum-item:hover { box-shadow: var(--shadow); }
.curriculum-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; flex-shrink: 0;
}
.curriculum-item h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.curriculum-item p { color: var(--text-light); font-size: .88rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border); padding: 20px 0;
}
.faq-q {
  font-weight: 700; font-size: 1.02rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: none; border: none; width: 100%; text-align: left;
  color: var(--text); font-family: var(--font); padding: 0; line-height: 1.5;
}
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--primary); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a p { padding-top: 12px; color: var(--text-light); font-size: .93rem; line-height: 1.7; }

/* ===== Footer ===== */
.site-footer {
  background: #0f172a; color: #94a3b8; padding: 60px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-top: 12px; }
.footer-col h4 { color: #fff; font-size: .92rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; font-size: .88rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; flex-wrap: wrap; gap: 12px;
}

/* ===== Legal Pages ===== */
.legal-page { padding: 48px 0 80px; }
.legal-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.legal-page .last-updated { color: var(--text-light); font-size: .88rem; margin-bottom: 36px; }
.legal-content h2 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.legal-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content p, .legal-content li { font-size: .95rem; color: var(--text-light); line-height: 1.8; }
.legal-content ul, .legal-content ol { padding-left: 24px; margin: 12px 0; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--text); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .nav-links { display: none; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-white); border-bottom: 1px solid var(--border);
    padding: 20px 24px; gap: 16px; box-shadow: var(--shadow-lg);
  }
  .menu-toggle { display: block; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
}

/* ===== Coming Soon Modal ===== */
.modal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  align-items: center; justify-content: center;
}
.modal.active { display: flex; }
.modal-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative; background: var(--bg-white); border-radius: var(--radius);
  padding: 48px 40px; max-width: 440px; width: 90%; text-align: center;
  box-shadow: var(--shadow-lg); animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-icon { font-size: 3rem; margin-bottom: 16px; }
.modal-content h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; }
.modal-content p { color: var(--text-light); font-size: .95rem; line-height: 1.7; margin-bottom: 24px; }
.modal-close {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 32px; border-radius: 8px; font-size: .95rem; font-weight: 600;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  transition: background .2s;
}
.modal-close:hover { background: var(--primary-dark); }
