/**
 * Cartoon French — Official Brand Visual Design System for Homepage
 * High-contrast bento cards, interactive floating dashboards, tablet device walkthrough,
 * AI feedback loop, and foundational French drill studios strictly styled with Cartoon French
 * brand palette: Deep obsidian/navy (#0b0f17, #131927), signature vibrant teal (#14b8a6, #2dd4bf, #0d9488),
 * violet highlights (#8b5cf6), and crisp light mode adaptability.
 */

/* ==========================================================================
   1. Theme Variables & Base Scaffolding
   ========================================================================== */
.home-page {
  position: relative;
  --prep-brand: #14b8a6;
  --prep-brand-light: #2dd4bf;
  --prep-brand-hover: #0d9488;
  --prep-brand-glow: rgba(20, 184, 166, 0.4);
  --prep-violet: #8b5cf6;
  --prep-violet-glow: rgba(139, 92, 246, 0.3);
  --prep-dark-card: #131927;
  --prep-dark-card-hover: #182234;
  --prep-border: rgba(255, 255, 255, 0.08);
  --prep-border-glow: rgba(20, 184, 166, 0.35);
}

[data-theme="light"] .home-page {
  --prep-brand: #0d9488;
  --prep-brand-light: #14b8a6;
  --prep-brand-hover: #0f766e;
  --prep-brand-glow: rgba(13, 148, 136, 0.25);
  --prep-border: rgba(15, 23, 42, 0.08);
  --prep-border-glow: rgba(13, 148, 136, 0.3);
}

/* Page atmosphere */
.home-page .hero-bg {
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, rgba(20, 184, 166, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 12% 70%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 48% 42%, rgba(20, 184, 166, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 90% 85%, rgba(56, 189, 248, 0.1) 0%, transparent 40%);
  animation: homeHeroPulse 14s ease-in-out infinite alternate;
}

@keyframes homeHeroPulse {
  0% { opacity: 0.85; transform: scale(1) translateY(0); }
  100% { opacity: 1; transform: scale(1.06) translateY(-1.5%); }
}

/* Floating spark particles */
.home-page .hero-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.home-page .hero-sparkles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.85);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.7);
  animation: homeSparkle 7s ease-in-out infinite;
  opacity: 0;
}
.home-page .hero-sparkles span:nth-child(1) { left: 12%; top: 22%; animation-delay: 0s; }
.home-page .hero-sparkles span:nth-child(2) { left: 28%; top: 68%; width: 4px; height: 4px; animation-delay: 1.2s; background: rgba(167, 139, 250, 0.9); box-shadow: 0 0 10px rgba(167, 139, 250, 0.6); }
.home-page .hero-sparkles span:nth-child(3) { left: 55%; top: 18%; width: 5px; height: 5px; animation-delay: 2.1s; }
.home-page .hero-sparkles span:nth-child(4) { left: 72%; top: 55%; animation-delay: 0.7s; background: rgba(56, 189, 248, 0.9); box-shadow: 0 0 12px rgba(56, 189, 248, 0.55); }
.home-page .hero-sparkles span:nth-child(5) { left: 88%; top: 30%; width: 4px; height: 4px; animation-delay: 3.4s; }
.home-page .hero-sparkles span:nth-child(6) { left: 42%; top: 78%; width: 5px; height: 5px; animation-delay: 4.2s; background: rgba(45, 212, 191, 0.85); box-shadow: 0 0 10px rgba(45, 212, 191, 0.5); }

@keyframes homeSparkle {
  0%, 100% { opacity: 0; transform: translateY(12px) scale(0.6); }
  20% { opacity: 0.9; }
  50% { opacity: 0.55; transform: translateY(-28px) scale(1.15); }
  80% { opacity: 0.2; }
}

/* ==========================================================================
   2. Hero Section: Refined 2-Column with Layered Floating Mockups (Image 1)
   ========================================================================== */
.home-hero-prep {
  position: relative;
  padding: clamp(3.5rem, 5vw, 5.5rem) 0 clamp(2.5rem, 4vw, 4.5rem);
  overflow: hidden;
}

.home-hero-prep .container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

@media (max-width: 992px) {
  .home-hero-prep .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Hero Left Text Column */
.home-hero-text-pane {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.hero-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(20, 184, 166, 0.12);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.35);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.15);
}

[data-theme="light"] .hero-kicker-pill {
  background: rgba(13, 148, 136, 0.1);
  color: #0d9488;
  border-color: rgba(13, 148, 136, 0.25);
}

.hero-main-title {
  font-size: clamp(2.4rem, 4.8vw, 3.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink, #f8fafc);
  margin: 0 0 1.35rem;
}

[data-theme="light"] .hero-main-title {
  color: #0f172a;
}

.hero-accent-brand,
.hero-accent-gold {
  color: #2dd4bf;
  display: inline-block;
  background: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description-lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  color: var(--muted, #94a3b8);
  margin: 0 0 1.85rem;
  max-width: 540px;
}

[data-theme="light"] .hero-description-lead {
  color: #475569;
}

.hero-pill-kw {
  background: rgba(20, 184, 166, 0.14);
  color: #2dd4bf;
  padding: 1px 7px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.95em;
  border: 1px solid rgba(45, 212, 191, 0.25);
}

[data-theme="light"] .hero-pill-kw {
  background: rgba(13, 148, 136, 0.1);
  color: #0d9488;
  border-color: rgba(13, 148, 136, 0.2);
}

/* Dual CTAs (Signature Website Teal Gradient Button) */
.hero-cta-button-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.btn-prep-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #0b0f17 !important;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 28px -4px rgba(20, 184, 166, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.btn-prep-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -4px rgba(20, 184, 166, 0.7);
  background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
  color: #0b0f17 !important;
}

[data-theme="light"] .btn-prep-primary {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 25px -4px rgba(13, 148, 136, 0.4);
}

[data-theme="light"] .btn-prep-primary:hover {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #ffffff !important;
}

.btn-prep-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #182234;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

.btn-prep-dark:hover {
  background: #1e293b;
  border-color: rgba(45, 212, 191, 0.5);
  color: #2dd4bf !important;
  transform: translateY(-2px);
}

[data-theme="light"] .btn-prep-dark {
  background: #0f172a;
  color: #ffffff !important;
  border-color: transparent;
}

[data-theme="light"] .btn-prep-dark:hover {
  background: #1e293b;
}

.hero-sublink-note {
  font-size: 0.88rem;
  color: var(--muted, #94a3b8);
  margin-bottom: 1.5rem;
}

.hero-sublink-note a {
  color: #2dd4bf;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.hero-sublink-note a:hover {
  color: #5eead4;
}

[data-theme="light"] .hero-sublink-note {
  color: #64748b;
}

[data-theme="light"] .hero-sublink-note a {
  color: #0d9488;
}

/* Exam Pills Row */
.hero-exam-tags-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-exam-tag-pill {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted, #94a3b8);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hero-exam-tag-pill:hover,
.hero-exam-tag-pill.active {
  background: rgba(20, 184, 166, 0.16);
  border-color: rgba(45, 212, 191, 0.5);
  color: #2dd4bf;
}

[data-theme="light"] .hero-exam-tag-pill {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #64748b;
}

[data-theme="light"] .hero-exam-tag-pill:hover,
[data-theme="light"] .hero-exam-tag-pill.active {
  background: rgba(13, 148, 136, 0.08);
  border-color: #0d9488;
  color: #0d9488;
}

.hero-trust-stars {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #2dd4bf;
}

.hero-trust-stars span {
  color: var(--muted, #94a3b8);
  font-size: 0.82rem;
}

[data-theme="light"] .hero-trust-stars {
  color: #0d9488;
}

[data-theme="light"] .hero-trust-stars span {
  color: #64748b;
}

/* ==========================================================================
   Hero Right Column: Layered Floating Mockups (Image 1 reference)
   ========================================================================== */
.hero-mockup-stage {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Large Card */
.mockup-main-exam-card {
  background: linear-gradient(180deg, #131927 0%, #0d121d 100%);
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 20px;
  padding: 1.85rem 1.75rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 
    0 25px 65px -15px rgba(0, 0, 0, 0.8),
    0 0 35px -5px rgba(20, 184, 166, 0.2);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.mockup-main-exam-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #14b8a6, #2dd4bf, #8b5cf6);
}

.mockup-main-exam-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 30px 75px -15px rgba(0, 0, 0, 0.9),
    0 0 45px rgba(20, 184, 166, 0.28);
}

[data-theme="light"] .mockup-main-exam-card {
  background: #ffffff;
  border-color: rgba(13, 148, 136, 0.25);
  box-shadow: 0 16px 45px -10px rgba(15, 23, 42, 0.1), 0 0 30px rgba(13, 148, 136, 0.12);
}

.mockup-card-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2dd4bf;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

[data-theme="light"] .mockup-card-kicker {
  color: #0d9488;
}

.mockup-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink, #ffffff);
  margin: 0 0 1.25rem;
  letter-spacing: -0.015em;
}

[data-theme="light"] .mockup-card-title {
  color: #0f172a;
}

.mockup-sections-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.mockup-sec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  color: #e2e8f0;
  transition: all 0.15s ease;
}

.mockup-sec-row:hover {
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(45, 212, 191, 0.3);
}

[data-theme="light"] .mockup-sec-row {
  background: #f8fafc;
  border-color: #f1f5f9;
  color: #1e293b;
}

.mockup-sec-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-right: 0.5rem;
}

.mockup-sec-badge-green {
  background: rgba(20, 184, 166, 0.18);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.35);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

[data-theme="light"] .mockup-sec-badge-green {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
  border-color: rgba(13, 148, 136, 0.25);
}

.mockup-sec-badge-pending {
  color: #94a3b8;
  font-size: 0.85rem;
}

.mockup-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-family: 'IBM Plex Mono', monospace;
}

[data-theme="light"] .mockup-card-footer {
  border-top-color: #e2e8f0;
}

.mockup-footer-label {
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.mockup-footer-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink, #ffffff);
}

[data-theme="light"] .mockup-footer-val {
  color: #0f172a;
}

/* Floating Card 1: Live AI Examiner (Top Right overlap) */
.mockup-float-examiner {
  position: absolute;
  top: -24px;
  right: -20px;
  background: #0f141f;
  border: 1.5px solid rgba(45, 212, 191, 0.4);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  width: 250px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(45, 212, 191, 0.2);
  z-index: 3;
  animation: floatExaminerBob 7s ease-in-out infinite alternate;
}

@keyframes floatExaminerBob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

[data-theme="light"] .mockup-float-examiner {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(13, 148, 136, 0.25);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.1), 0 0 25px rgba(13, 148, 136, 0.1);
}

[data-theme="light"] .float-examiner-title {
  color: #0f172a;
}

[data-theme="light"] .float-examiner-status {
  color: #0d9488;
}

[data-theme="light"] .examiner-quote {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}

[data-theme="light"] .examiner-timer-row {
  color: #64748b;
}

[data-theme="light"] .examiner-listen-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .examiner-listen-btn:hover {
  background: #0d9488;
  color: #ffffff;
}

.float-examiner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.float-examiner-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #f8fafc;
}

.badge-live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #0b0f17;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
}

.float-examiner-status {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 0.45rem;
}

/* Wave visualizer */
.examiner-waves {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  margin-bottom: 0.65rem;
}

.examiner-waves span {
  width: 3px;
  background: #2dd4bf;
  border-radius: 2px;
  animation: examinerWavePulse 1.2s ease-in-out infinite alternate;
}

.examiner-waves span:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.examiner-waves span:nth-child(2) { height: 80%; animation-delay: 0.25s; }
.examiner-waves span:nth-child(3) { height: 100%; animation-delay: 0.4s; }
.examiner-waves span:nth-child(4) { height: 60%; animation-delay: 0.15s; }
.examiner-waves span:nth-child(5) { height: 90%; animation-delay: 0.35s; }
.examiner-waves span:nth-child(6) { height: 45%; animation-delay: 0.05s; }
.examiner-waves span:nth-child(7) { height: 75%; animation-delay: 0.3s; }

@keyframes examinerWavePulse {
  0% { transform: scaleY(0.3); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; }
}

.examiner-quote {
  font-size: 0.75rem;
  font-style: italic;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.examiner-timer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: #94a3b8;
}

.examiner-listen-btn {
  background: rgba(45, 212, 191, 0.18);
  border: 1px solid rgba(45, 212, 191, 0.4);
  color: #2dd4bf;
  border-radius: 6px;
  padding: 2px 7px;
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.2s;
}

.examiner-listen-btn:hover {
  background: #14b8a6;
  color: #0b0f17;
}

/* Floating Card 2: Writing Score Breakdown (Bottom Right overlap) */
.mockup-float-score {
  position: absolute;
  bottom: -25px;
  right: -25px;
  background: #182234;
  border: 1.5px solid rgba(45, 212, 191, 0.35);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  width: 220px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 20px rgba(20, 184, 166, 0.15);
  z-index: 3;
  animation: floatScoreBob 8s ease-in-out infinite alternate;
}

@keyframes floatScoreBob {
  0% { transform: translateY(0); }
  100% { transform: translateY(6px); }
}

[data-theme="light"] .mockup-float-score {
  background: #ffffff;
  border-color: rgba(13, 148, 136, 0.25);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

.score-head-label {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

[data-theme="light"] .score-head-label {
  color: #64748b;
}

.score-main-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: #2dd4bf;
  margin-bottom: 0.65rem;
}

.score-main-val span {
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 600;
}

[data-theme="light"] .score-main-val {
  color: #0d9488;
}

[data-theme="light"] .score-main-val span {
  color: #64748b;
}

.score-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  margin-bottom: 0.65rem;
}

[data-theme="light"] .score-metrics-list {
  color: #334155;
}

.score-metric-row {
  display: flex;
  justify-content: space-between;
}

.score-metric-row strong {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: #ffffff;
}

[data-theme="light"] .score-metric-row strong {
  color: #0f172a;
}

.badge-score-good {
  display: inline-block;
  background: rgba(20, 184, 166, 0.18);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.35);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

[data-theme="light"] .badge-score-good {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
  border-color: rgba(13, 148, 136, 0.25);
}

@media (max-width: 992px) {
  .hero-mockup-stage {
    margin-top: 1rem;
  }
  .mockup-float-examiner {
    right: 0;
    top: -15px;
  }
  .mockup-float-score {
    right: 0;
    bottom: -15px;
  }
}

/* ==========================================================================
   Trust Counter Strip Below Hero (Matching Image 1 bottom)
   ========================================================================== */
.home-trust-strip {
  border-top: 1px solid var(--prep-border);
  border-bottom: 1px solid var(--prep-border);
  padding: 1.5rem 0;
  margin-top: 2.5rem;
}

.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-strip-lead {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted, #94a3b8);
}

[data-theme="light"] .trust-strip-lead {
  color: #64748b;
}

.trust-stats-group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-stat-box {
  display: flex;
  flex-direction: column;
}

.trust-stat-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink, #ffffff);
  line-height: 1.15;
}

[data-theme="light"] .trust-stat-num {
  color: #0f172a;
}

.trust-stat-lbl {
  font-size: 0.72rem;
  color: var(--muted, #94a3b8);
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
}

[data-theme="light"] .trust-stat-lbl {
  color: #64748b;
}

/* ==========================================================================
   3. Section 2: 6-Grid Core Practice Suite (Image 2)
   ========================================================================== */
.section-prep-suite {
  padding: 4.5rem 0 3.5rem;
}

.prep-suite-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.prep-suite-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink, #f8fafc);
  margin-bottom: 0.65rem;
}

[data-theme="light"] .prep-suite-header h2 {
  color: #0f172a;
}

.prep-suite-header p {
  font-size: 1.05rem;
  color: var(--muted, #94a3b8);
  line-height: 1.6;
}

[data-theme="light"] .prep-suite-header p {
  color: #475569;
}

/* 6 Grid Cards */
.prep-suite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 992px) {
  .prep-suite-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .prep-suite-grid {
    grid-template-columns: 1fr;
  }
}

.prep-suite-card {
  background: var(--bg-card, #131927);
  border: 1px solid var(--border-line, rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  padding: 1.85rem 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.prep-suite-card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 25px rgba(20, 184, 166, 0.15);
}

[data-theme="light"] .prep-suite-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .prep-suite-card:hover {
  border-color: #0d9488;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

/* Card 6 Highlight: Practice Partner Network (Teal Highlight) */
.prep-suite-card.highlight-partner {
  border: 1.5px solid rgba(45, 212, 191, 0.45);
  box-shadow: 0 10px 30px rgba(20, 184, 166, 0.15);
}

.prep-suite-card.highlight-partner:hover {
  border-color: #2dd4bf;
  box-shadow: 0 18px 40px rgba(20, 184, 166, 0.3);
}

.prep-card-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  background: rgba(20, 184, 166, 0.12);
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.25);
}

[data-theme="light"] .prep-card-icon-circle {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.prep-card-icon-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border-color: rgba(59, 130, 246, 0.3); }
.prep-card-icon-gold { background: rgba(20, 184, 166, 0.18); color: #2dd4bf; border-color: rgba(45, 212, 191, 0.35); }
.prep-card-icon-green { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
.prep-card-icon-orange { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border-color: rgba(139, 92, 246, 0.3); }
.prep-card-icon-teal { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; border-color: rgba(20, 184, 166, 0.3); }

.prep-suite-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink, #ffffff);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

[data-theme="light"] .prep-suite-card h3 {
  color: #0f172a;
}

.prep-suite-card p {
  font-size: 0.92rem;
  color: var(--muted, #94a3b8);
  line-height: 1.55;
  margin: 0 0 1.35rem;
}

[data-theme="light"] .prep-suite-card p {
  color: #475569;
}

.prep-suite-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink, #f8fafc);
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.prep-suite-link-btn:hover {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #0b0f17 !important;
  border-color: #14b8a6;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4);
}

[data-theme="light"] .prep-suite-link-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #1e293b;
}

[data-theme="light"] .prep-suite-link-btn:hover {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #ffffff !important;
  border-color: #0d9488;
}

/* Full Exam Workflow Stepper Banner (Matching Image 2 bottom) */
.full-mock-workflow-banner {
  background: var(--bg-card, #131927);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 20px;
  padding: 2rem 2.25rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.full-mock-workflow-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #14b8a6, #2dd4bf, #8b5cf6);
}

[data-theme="light"] .full-mock-workflow-banner {
  background: #ffffff;
  border-color: rgba(13, 148, 136, 0.25);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.mock-workflow-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.mock-workflow-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #2dd4bf;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

[data-theme="light"] .mock-workflow-kicker {
  color: #0d9488;
}

.mock-workflow-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink, #ffffff);
  margin: 0;
  letter-spacing: -0.015em;
}

[data-theme="light"] .mock-workflow-title {
  color: #0f172a;
}

.btn-start-full-mock {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #0b0f17 !important;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
  transition: all 0.2s;
}

.btn-start-full-mock:hover {
  background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
  color: #0b0f17 !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(20, 184, 166, 0.6);
}

[data-theme="light"] .btn-start-full-mock {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #ffffff !important;
}

.mock-workflow-stepper {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--muted, #94a3b8);
}

.workflow-step-node {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.workflow-step-node.active {
  color: #2dd4bf;
}

[data-theme="light"] .workflow-step-node.active {
  color: #0d9488;
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 800;
}

.workflow-step-node.active .step-circle {
  background: #14b8a6;
  color: #0b0f17;
}

.mock-workflow-progbar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .mock-workflow-progbar {
  background: #f1f5f9;
}

.mock-workflow-progbar-fill {
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, #14b8a6, #2dd4bf);
  border-radius: 999px;
  animation: workflowProgress 3s ease-in-out infinite alternate;
}

@keyframes workflowProgress {
  0% { width: 35%; }
  100% { width: 48%; }
}

/* ==========================================================================
   4. Section 3: Interactive Tablet Walkthrough (Image 3)
   ========================================================================== */
.section-tablet-walkthrough {
  padding: 4.5rem 0;
  position: relative;
}

.tablet-walkthrough-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

@media (max-width: 992px) {
  .tablet-walkthrough-grid {
    grid-template-columns: 1fr;
  }
}

.walkthrough-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.walkthrough-step-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2dd4bf;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

[data-theme="light"] .walkthrough-step-tag {
  color: #0d9488;
}

.walkthrough-headline {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--ink, #ffffff);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
}

[data-theme="light"] .walkthrough-headline {
  color: #0f172a;
}

.walkthrough-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted, #94a3b8);
  margin: 0 0 1.85rem;
}

[data-theme="light"] .walkthrough-desc {
  color: #475569;
}

.walkthrough-action-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.walkthrough-pills-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.walkthrough-nav-pill {
  width: 24px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

[data-theme="light"] .walkthrough-nav-pill {
  background: #cbd5e1;
}

.walkthrough-nav-pill.active {
  width: 48px;
  background: linear-gradient(90deg, #14b8a6, #2dd4bf);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.6);
}

/* Tablet Device Mockup Container */
.walkthrough-tablet-frame {
  background: #0d121d;
  border: 12px solid #1a202c;
  border-radius: 28px;
  box-shadow: 
    0 30px 70px -15px rgba(0, 0, 0, 0.85),
    0 0 40px rgba(20, 184, 166, 0.25);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

.walkthrough-tablet-frame:hover {
  transform: translateY(-3px);
}

[data-theme="light"] .walkthrough-tablet-frame {
  background: #f1f5f9;
  border-color: #e2e8f0;
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.12), 0 0 35px rgba(13, 148, 136, 0.1);
}

[data-theme="light"] .tablet-mockup-inner {
  background: #f8fafc;
  color: #0f172a;
}

[data-theme="light"] .examiner-avatar-tag {
  color: #0f172a;
}

[data-theme="light"] .speaking-score-badge {
  background: #ffffff;
  border-color: rgba(13, 148, 136, 0.25);
  color: #0d9488;
}

[data-theme="light"] .speaking-score-badge strong {
  color: #0f172a;
}

[data-theme="light"] .chat-bubble-examiner {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .tablet-pronun-panel {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .pronun-panel-header {
  color: #64748b;
}

[data-theme="light"] .pronun-mic-waveform {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .phonetic-tag {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

[data-theme="light"] .accuracy-slider-row {
  color: #64748b;
}

[data-theme="light"] .accuracy-track {
  background: #e2e8f0;
}

.tablet-mockup-inner {
  padding: 1.5rem;
  background: #0f141f;
  color: #f8fafc;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tablet-mockup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.examiner-avatar-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #f8fafc;
}

.examiner-bot-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #0b0f17;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.speaking-score-badge {
  background: #182234;
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #2dd4bf;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-family: 'IBM Plex Mono', monospace;
  text-align: right;
  line-height: 1.25;
}

.speaking-score-badge strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
}

/* Chat Speech Bubbles */
.tablet-chat-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.chat-bubble-examiner {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 1.15rem;
  border-radius: 14px 14px 14px 2px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #f1f5f9;
  max-width: 85%;
}

.chat-bubble-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #0b0f17;
  padding: 0.85rem 1.15rem;
  border-radius: 14px 14px 2px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
  max-width: 85%;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
}

/* Pronunciation Evaluation Bar */
.tablet-pronun-panel {
  background: #182234;
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  color: #f8fafc;
}

.pronun-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.badge-recording-red {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ef4444;
  font-weight: 700;
}

.dot-red-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: recordingPulse 1.2s infinite;
}

@keyframes recordingPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.pronun-mic-waveform {
  background: rgba(11, 15, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.phonetic-tags-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.phonetic-tag {
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.25);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: #2dd4bf;
}

.accuracy-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 700;
}

.accuracy-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.accuracy-fill {
  width: 85%;
  height: 100%;
  background: linear-gradient(90deg, #14b8a6, #2dd4bf);
}

.badge-clb9 {
  background: rgba(20, 184, 166, 0.2);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.7rem;
}

/* ==========================================================================
   5. Section 4: Dark Feedback & 4-Step Improvement Flywheel (Image 4)
   ========================================================================== */
.section-dark-feedback {
  background: #0b0f17;
  color: #f8fafc;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(20, 184, 166, 0.2);
  border-bottom: 1px solid rgba(20, 184, 166, 0.2);
}

[data-theme="light"] .section-dark-feedback {
  background: #f8fafc;
  color: #0f172a;
  border-top-color: rgba(15, 23, 42, 0.08);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.dark-feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 992px) {
  .dark-feedback-grid {
    grid-template-columns: 1fr;
  }
}

.dark-feedback-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2dd4bf;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

[data-theme="light"] .dark-feedback-kicker {
  color: #0d9488;
}

.dark-feedback-headline {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 1.25rem;
}

[data-theme="light"] .dark-feedback-headline {
  color: #0f172a;
}

.dark-feedback-desc {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 0 2rem;
}

[data-theme="light"] .dark-feedback-desc {
  color: #475569;
}

/* Right Stack of 3 Dark Glass Cards */
.dark-feedback-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dark-glass-card {
  background: #131927;
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(20, 184, 166, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.dark-glass-card:hover {
  transform: translateY(-2px);
  border-color: #2dd4bf;
}

[data-theme="light"] .dark-glass-card {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .dark-glass-card:hover {
  border-color: #0d9488;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.feedback-card-phrase {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink, #ffffff);
  margin-bottom: 0.75rem;
}

[data-theme="light"] .feedback-card-phrase {
  color: #0f172a;
}

[data-theme="light"] .feedback-card-title {
  color: #64748b;
}

[data-theme="light"] .feedback-big-score {
  color: #0d9488;
}

[data-theme="light"] .feedback-big-score span {
  color: #64748b;
}

[data-theme="light"] .feedback-metric-bar-row {
  color: #334155;
}

[data-theme="light"] .feedback-bar-track {
  background: #e2e8f0;
}

.feedback-card-score-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.feedback-card-title {
  font-size: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  color: #94a3b8;
  text-transform: uppercase;
}

.feedback-big-score {
  font-size: 1.85rem;
  font-weight: 800;
  color: #2dd4bf;
}

.feedback-big-score span {
  font-size: 0.95rem;
  color: #94a3b8;
}

.feedback-metric-bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 0.45rem;
}

.feedback-metric-bar-row span:first-child {
  width: 100px;
}

.feedback-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.feedback-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #14b8a6, #2dd4bf);
  border-radius: 999px;
}

/* Part B: 4-Step Improvement Flywheel (Image 4 bottom) */
.section-improvement-flywheel {
  padding: 5rem 0;
}

.flywheel-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.flywheel-step-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2dd4bf;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

[data-theme="light"] .flywheel-step-kicker {
  color: #0d9488;
}

.flywheel-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--ink, #f8fafc);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

[data-theme="light"] .flywheel-header h2 {
  color: #0f172a;
}

.flywheel-4steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  position: relative;
}

@media (max-width: 992px) {
  .flywheel-4steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .flywheel-4steps-grid {
    grid-template-columns: 1fr;
  }
}

.flywheel-step-card {
  background: var(--bg-card, #131927);
  border: 1px solid var(--border-line, rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  padding: 1.85rem 1.5rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.flywheel-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 25px rgba(20, 184, 166, 0.15);
}

[data-theme="light"] .flywheel-step-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.flywheel-card-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #2dd4bf;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

[data-theme="light"] .flywheel-card-num {
  color: #0d9488;
}

.flywheel-step-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink, #ffffff);
  margin: 0 0 0.5rem;
}

[data-theme="light"] .flywheel-step-card h3 {
  color: #0f172a;
}

.flywheel-step-card p {
  font-size: 0.88rem;
  color: var(--muted, #94a3b8);
  line-height: 1.5;
  margin: 0;
}

[data-theme="light"] .flywheel-step-card p {
  color: #475569;
}

.flywheel-arrow-connector {
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  color: #2dd4bf;
  font-size: 1.2rem;
  font-weight: 800;
  z-index: 2;
}

[data-theme="light"] .flywheel-arrow-connector {
  color: #0d9488;
}

@media (max-width: 992px) {
  .flywheel-arrow-connector {
    display: none;
  }
}

/* Correction Comparison Preview Card (Matching Image 4 bottom) */
.correction-preview-box {
  background: var(--bg-card, #131927);
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 16px;
  padding: 1.75rem 2.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2), 0 0 25px rgba(20, 184, 166, 0.1);
  position: relative;
  overflow: hidden;
}

.correction-preview-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #14b8a6, #2dd4bf, #8b5cf6);
}

@media (max-width: 768px) {
  .correction-preview-box {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

[data-theme="light"] .correction-preview-box {
  background: #ffffff;
  border-color: rgba(13, 148, 136, 0.25);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.corr-col-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.corr-col-label.red { color: #ef4444; }
.corr-col-label.green { color: #2dd4bf; }
.corr-col-label.purple,
.corr-col-label.gold { color: #8b5cf6; }

[data-theme="light"] .corr-col-label.green { color: #0d9488; }
[data-theme="light"] .corr-col-label.purple,
[data-theme="light"] .corr-col-label.gold { color: #7c3aed; }

.corr-text-phrase {
  font-size: 1.05rem;
  color: var(--ink, #ffffff);
}

[data-theme="light"] .corr-text-phrase {
  color: #0f172a;
}

.strike-mistake {
  color: #ef4444;
  text-decoration: line-through;
  font-weight: 700;
}

.highlight-fix {
  color: #2dd4bf;
  font-weight: 800;
}

[data-theme="light"] .highlight-fix {
  color: #0d9488;
}

/* ==========================================================================
   6. Section 5: Foundations Bento Grid (Image 5)
   ========================================================================== */
.section-foundations-bento {
  padding: 4.5rem 0 5.5rem;
}

.foundations-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.foundations-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2dd4bf;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

[data-theme="light"] .foundations-kicker {
  color: #0d9488;
}

.foundations-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--ink, #f8fafc);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

[data-theme="light"] .foundations-header h2 {
  color: #0f172a;
}

/* Bento Grid */
.foundations-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card-foundations {
  background: var(--bg-card, #131927);
  border: 1px solid var(--border-line, rgba(255, 255, 255, 0.08));
  border-radius: 20px;
  padding: 1.85rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.bento-card-foundations:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3), 0 0 25px rgba(20, 184, 166, 0.12);
}

[data-theme="light"] .bento-card-foundations {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .bento-card-foundations:hover {
  border-color: #0d9488;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

/* Card 1: 300+ Grammar Exercises (Left half) */
.bento-grammar-half {
  grid-column: span 6;
}

/* Card 2: Conjugator (Right half) */
.bento-conjugator-half {
  grid-column: span 6;
}

/* Card 3: Smart Flashcards */
.bento-flashcards-third {
  grid-column: span 4;
}

/* Card 4: Daily Vocabulary */
.bento-vocab-third {
  grid-column: span 4;
}

/* Card 5: Numbers, Dates & Time */
.bento-numbers-third {
  grid-column: span 4;
}

/* Card 6: Learning Roadmap (Full width bottom) */
.bento-roadmap-full {
  grid-column: span 12;
}

@media (max-width: 992px) {
  .bento-grammar-half,
  .bento-conjugator-half {
    grid-column: span 12;
  }
  .bento-flashcards-third,
  .bento-vocab-third,
  .bento-numbers-third {
    grid-column: span 12;
  }
}

.foundations-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.foundations-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink, #ffffff);
  margin: 0 0 0.25rem;
  letter-spacing: -0.015em;
}

[data-theme="light"] .foundations-card-title {
  color: #0f172a;
}

.foundations-card-sub {
  font-size: 0.88rem;
  color: var(--muted, #94a3b8);
}

[data-theme="light"] .foundations-card-sub {
  color: #64748b;
}

.foundations-icon {
  font-size: 1.25rem;
  color: #2dd4bf;
}

[data-theme="light"] .foundations-icon {
  color: #0d9488;
}

/* Grammar Exercises Interactive List inside Bento */
.grammar-exercises-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.grammar-exercise-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
}

[data-theme="light"] .grammar-exercise-pill {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}

.exercise-status-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
}

.dot-done { background: rgba(20, 184, 166, 0.2); color: #2dd4bf; }
.dot-question { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }

/* Conjugator Verb Grid */
.conjugator-sample-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 500px) {
  .conjugator-sample-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.verb-conj-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
  text-align: center;
  color: #cbd5e1;
}

[data-theme="light"] .verb-conj-box {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #1e293b;
}

/* Stacked Flashcard Deck visual (Card 3) */
.flashcard-stack-deck {
  position: relative;
  height: 110px;
  margin-bottom: 1rem;
}

.stack-card-layer {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.layer-back {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  transform: rotate(4deg) scale(0.95);
  z-index: 1;
}

.layer-front {
  background: var(--bg-card, #182234);
  border: 1.5px solid rgba(45, 212, 191, 0.35);
  z-index: 2;
  transform: rotate(-1deg);
}

[data-theme="light"] .layer-front {
  background: #ffffff;
  border-color: rgba(13, 148, 136, 0.25);
}

.layer-kicker {
  font-size: 0.68rem;
  font-family: 'IBM Plex Mono', monospace;
  color: #2dd4bf;
  margin-bottom: 2px;
}

[data-theme="light"] .layer-kicker {
  color: #0d9488;
}

.layer-word {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink, #ffffff);
}

[data-theme="light"] .layer-word {
  color: #0f172a;
}

/* Vocab Pills (Card 4) */
.vocab-sample-pills-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.vocab-tag-sample {
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.25);
  color: #2dd4bf;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

[data-theme="light"] .vocab-tag-sample {
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.2);
  color: #0d9488;
}

/* Number badges (Card 5) */
.numbers-sample-row {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.number-sample-badge {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.6rem 0.5rem;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink, #ffffff);
}

[data-theme="light"] .number-sample-badge {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

/* Roadmap Stepper Track (Card 6) */
.roadmap-timeline-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0 1rem;
  position: relative;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.roadmap-timeline-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
  z-index: 1;
}

[data-theme="light"] .roadmap-timeline-track::before {
  background: #e2e8f0;
}

.roadmap-node {
  position: relative;
  z-index: 2;
  background: var(--bg-card, #131927);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 4px 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 800;
  color: #94a3b8;
  white-space: nowrap;
}

.roadmap-node.active {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  border-color: #2dd4bf;
  color: #0b0f17;
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.6);
}

[data-theme="light"] .roadmap-node {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .roadmap-node.active {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  border-color: #0d9488;
  color: #ffffff;
}

.foundations-explore-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: #2dd4bf;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.15s ease, color 0.15s ease;
}

.foundations-explore-link:hover {
  transform: translateX(4px);
  color: #5eead4;
}

[data-theme="light"] .foundations-explore-link {
  color: #0d9488;
}

[data-theme="light"] .foundations-explore-link:hover {
  color: #0f766e;
}

/* ==========================================================================
   Mobile Responsive Enhancements (< 768px and < 480px)
   ========================================================================== */
@media (max-width: 768px) {
  .home-hero-prep {
    padding: 3.5rem 0 2rem;
  }
  .hero-main-title {
    font-size: 2.1rem;
    line-height: 1.15;
  }
  .hero-cta-button-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-prep-primary,
  .btn-prep-dark {
    width: 100%;
    justify-content: center;
  }
  .hero-mockup-stage {
    min-height: auto;
    padding-bottom: 2rem;
  }
  .mockup-main-exam-card {
    max-width: 100%;
  }
  .mockup-float-examiner,
  .mockup-float-score {
    position: static;
    width: 100%;
    margin-top: 1rem;
    animation: none;
  }
  .tablet-mockup-inner {
    padding: 1rem;
    min-height: auto;
  }
  .chat-bubble-examiner,
  .chat-bubble-user {
    max-width: 100%;
    font-size: 0.88rem;
  }
  .prep-suite-grid {
    grid-template-columns: 1fr;
  }
  .foundations-bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-grammar-half,
  .bento-conjugator-half,
  .bento-flashcards-third,
  .bento-vocab-third,
  .bento-numbers-third,
  .bento-roadmap-full {
    grid-column: span 1;
  }
  .mock-workflow-stepper {
    flex-direction: column;
    align-items: flex-start;
  }
  .trust-stats-group {
    gap: 1.25rem;
    width: 100%;
    justify-content: space-between;
  }
}


/* ==========================================================================
   Hero Title Rotation — Smooth Animated Heading Cycle
   ========================================================================== */
.hero-title-slot {
  display: inline-block;
  will-change: transform, opacity;
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroTitleOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(-22px) scale(0.97);
    filter: blur(3px);
  }
}

.hero-title-slot.anim-in {
  animation: heroTitleIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-title-slot.anim-out {
  animation: heroTitleOut 0.45s cubic-bezier(0.55, 0, 0.45, 1) both;
}
