/* ===========================
   功夫韩语 — 主样式表
   =========================== */

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --secondary: #e63946;
  --accent: #f59e0b;
  --bg: #ffffff;
  --bg-soft: #f8f9ff;
  --bg-dark: #0f172a;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(79, 70, 229, 0.1);
  --shadow-lg: 0 12px 48px rgba(79, 70, 229, 0.15);
  --transition: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover {
  background: #f0f0ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ===========================
   Navbar
   =========================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.07);
}

.nav-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 4px;
  transition: all var(--transition);
}

/* ===========================
   Hero
   =========================== */

.hero {
  background: linear-gradient(160deg, #f0f3ff 0%, #fef3f3 50%, #fff8f0 100%);
  padding: 80px 0 0;
  overflow: hidden;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-text h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 440px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat span {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: block;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Phone Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 520px;
}

.phone-mockup {
  width: 260px;
  background: #0f172a;
  border-radius: 36px;
  padding: 14px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(255,255,255,0.1);
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: var(--bg-soft);
  border-radius: 26px;
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
}

.app-logo-sm {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
}

.app-streak {
  font-size: 0.7rem;
  background: #fff3e0;
  color: #f59e0b;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.lesson-card-preview {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 16px;
  padding: 16px;
  color: #fff;
  text-align: center;
}

.lesson-tag {
  font-size: 0.65rem;
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.korean-word {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pinyin {
  font-size: 0.7rem;
  opacity: 0.75;
  margin-bottom: 6px;
}

.meaning {
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.listen-btn {
  font-size: 0.7rem;
  background: rgba(255,255,255,0.15);
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-block;
}

.progress-bar-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-label { font-size: 0.65rem; color: var(--text-muted); flex-shrink: 0; }

.progress-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  transition: width 1s ease;
}

.progress-pct { font-size: 0.65rem; font-weight: 700; color: var(--primary); flex-shrink: 0; }

.mini-quiz {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
}

.quiz-q { font-size: 0.68rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.quiz-opt {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.quiz-opt.correct {
  border-color: #16a34a;
  background: #f0fff4;
  color: #16a34a;
  font-weight: 700;
}

/* Floating cards */
.floating-card {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 4s ease-in-out infinite;
  z-index: 3;
}

.floating-card strong { display: block; font-size: 0.8rem; color: var(--text); }
.floating-card small { font-size: 0.7rem; color: var(--text-muted); }
.fc-emoji { font-size: 1.4rem; }

.card-1 { bottom: 80px; left: -40px; animation-delay: 0s; }
.card-2 { top: 80px; right: -30px; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-wave { line-height: 0; }
.hero-wave svg { width: 100%; display: block; }

/* ===========================
   Section Headers
   =========================== */

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ===========================
   Features
   =========================== */

.features {
  background: var(--bg-soft);
  padding: 96px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===========================
   Alphabet Section
   =========================== */

.alphabet-section {
  padding: 96px 0;
  background: #fff;
}

.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.alpha-card {
  background: var(--bg-soft);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.alpha-card:hover {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.15);
}

.alpha-char {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.alpha-sound {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.alpha-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.alphabet-cta { text-align: center; }

/* ===========================
   Lessons
   =========================== */

.lessons {
  background: var(--bg-soft);
  padding: 96px 0;
}

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.lesson-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 2px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.lesson-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.featured-lesson {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.18);
}

.featured-ribbon {
  position: absolute;
  top: 16px;
  right: -28px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 36px;
  transform: rotate(35deg);
  transform-origin: center;
  letter-spacing: 0.03em;
}

.level-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 14px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

.level-beginner .level-badge { background: #f0fff4; color: #16a34a; }
.level-intermediate .level-badge { background: rgba(79, 70, 229, 0.1); color: var(--primary); }
.level-advanced .level-badge { background: #fff0f3; color: var(--secondary); }

.lesson-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.lesson-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.lesson-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.lesson-topics {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lesson-topics li {
  font-size: 0.85rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}

.lesson-topics li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===========================
   Phrases Section
   =========================== */

.phrases-section {
  padding: 96px 0;
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 100%);
}

.phrases-section .section-tag {
  background: rgba(255,255,255,0.1);
  color: #a5b4fc;
  border-color: rgba(165,180,252,0.2);
}

.phrases-section .section-header h2 { color: #fff; }
.phrases-section .section-header p { color: #94a3b8; }

.phrases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.phrase-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
}

.phrase-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  border-color: rgba(165,180,252,0.4);
}

.phrase-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.phrase-kr {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.phrase-romanize {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 8px;
  font-style: italic;
}

.phrase-zh {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===========================
   Community
   =========================== */

.community {
  background: #fff;
  padding: 96px 0;
}

.community-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.community-text .section-tag { display: inline-flex; }

.community-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.community-text > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.community-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.cf-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cf-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.cf-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.cf-item p {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin: 0;
}

/* Testimonials */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-card {
  display: flex;
  gap: 14px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.t-content strong { font-size: 0.88rem; font-weight: 700; color: var(--text); }

.t-level {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
  padding: 1px 7px;
  border-radius: 20px;
  margin-left: 6px;
  font-weight: 600;
}

.t-content p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 6px;
  margin-bottom: 0;
}

/* ===========================
   FAQ
   =========================== */

.faq-section {
  background: var(--bg-soft);
  padding: 96px 0;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item.open { border-color: var(--primary-light); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  gap: 12px;
}

.faq-question:hover { color: var(--primary); }

.faq-icon {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--primary); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}

.faq-answer.open {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===========================
   CTA Banner
   =========================== */

.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 50%, var(--secondary) 100%);
  padding: 80px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.cta-text p { font-size: 1rem; color: rgba(255,255,255,0.8); }

/* ===========================
   Footer
   =========================== */

.footer {
  background: var(--bg-dark);
  padding: 72px 0 32px;
  color: #94a3b8;
}

.footer .logo-text { color: #fff; }
.footer .logo-icon { opacity: 0.9; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 14px;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  text-decoration: none;
  color: #64748b;
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: #e2e8f0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-icp {
  text-align: center;
  padding: 12px 0 4px;
  font-size: 0.75rem;
  opacity: 0.5;
}
.footer-icp a {
  color: inherit;
  text-decoration: none;
}
.footer-icp a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .alphabet-grid { grid-template-columns: repeat(4, 1fr); }
  .phrases-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }

  .nav-links.open, .nav-actions.open {
    display: flex;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 99;
  }

  .nav-links.open {
    flex-direction: column;
    gap: 4px;
  }

  .nav-actions.open {
    padding: 12px 24px 20px;
    top: auto;
    background: #fff;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 40px;
  }

  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { min-height: 400px; }
  .card-1 { left: 0; }
  .card-2 { right: 0; }

  .features-grid { grid-template-columns: 1fr; }
  .alphabet-grid { grid-template-columns: repeat(4, 1fr); }
  .lessons-grid { grid-template-columns: 1fr; }
  .phrases-grid { grid-template-columns: 1fr; }

  .community-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .alphabet-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .alpha-char { font-size: 1.6rem; }
  .phone-mockup { width: 220px; }
  .floating-card { display: none; }
}
