:root {
  /* Colors */
  --bg-default: #0f0c1e;
  --bg-paper: #1a1432;
  --bg-elevated: #2d2352;
  --bg-card-gradient: linear-gradient(
    180deg,
    rgba(124, 58, 237, 0.15) 0%,
    rgba(26, 20, 50, 0.85) 100%
  );
  --bg-glass: rgba(26, 20, 50, 0.85);
  --bg-glass-card: rgba(45, 35, 82, 0.65);

  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-dark: #5b21b6;
  --primary-glow: rgba(124, 58, 237, 0.4);

  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-gold-dark: #d97706;
  --accent-gold-glow: rgba(245, 158, 11, 0.4);

  --tertiary-pink: #ec4899;
  --tertiary-pink-light: #f472b6;
  --tertiary-pink-dark: #db2777;
  --tertiary-pink-glow: rgba(236, 72, 153, 0.4);

  --success: #10b981;
  --success-light: #34d399;
  --error: #ef4444;
  --error-light: #f87171;
  --info: #06b6d4;
  --info-light: #22d3ee;
  --warning: #f59e0b;

  --text-primary: #f5f3ff;
  --text-secondary: #c4b5fd;
  --text-muted: #8b7ec8;
  --text-disabled: #4c3f7a;

  --border-default: rgba(124, 58, 237, 0.22);
  --border-strong: rgba(124, 58, 237, 0.45);
  --border-glow: rgba(245, 158, 11, 0.4);

  /* Gradients */
  --grad-cta: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  --grad-cta-hover: linear-gradient(135deg, #fbbf24 0%, #f472b6 100%);
  --grad-primary: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  --grad-progress: linear-gradient(
    90deg,
    #7c3aed 0%,
    #ec4899 50%,
    #f59e0b 100%
  );
  --grad-mission: linear-gradient(135deg, #2d2352 0%, #3b2667 100%);
  --grad-banner: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.35) 0%,
    rgba(236, 72, 153, 0.25) 50%,
    rgba(245, 158, 11, 0.2) 100%
  );

  /* Typography */
  --font-display: "Outfit", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Shadows & Elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --glow-purple: 0 0 24px rgba(124, 58, 237, 0.35);
  --glow-gold: 0 0 24px rgba(245, 158, 11, 0.35);
  --glow-pink: 0 0 24px rgba(236, 72, 153, 0.35);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Setup
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-default);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  background-image:
    radial-gradient(
      circle at 15% 15%,
      rgba(124, 58, 237, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(236, 72, 153, 0.12) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(124, 58, 237, 0.12) 0%,
      transparent 50%
    );
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: none;
}

ul {
  list-style: none;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

/* ==========================================================================
   Typography Classes (Fluid Typography)
   ========================================================================== */
.display-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.heading-1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
}

.heading-2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
}

.heading-3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.heading-4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.overline {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Duolingo-Style Tactile Buttons (MUI-Compliant)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-lg);
  padding: 14px 28px;
  position: relative;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
  min-height: 48px;
}

/* Primary Chunky CTA */
.btn-primary-chunky {
  background: var(--grad-cta);
  color: #111111;
  box-shadow:
    0 4px 0 var(--accent-gold-dark),
    0 8px 20px rgba(245, 158, 11, 0.35);
}

.btn-primary-chunky:hover {
  background: var(--grad-cta-hover);
  box-shadow:
    0 4px 0 var(--accent-gold-dark),
    0 0 24px rgba(245, 158, 11, 0.55);
  transform: translateY(-2px);
}

.btn-primary-chunky:active {
  transform: translateY(4px);
  box-shadow:
    0 0 0 var(--accent-gold-dark),
    0 2px 10px rgba(245, 158, 11, 0.3);
}

/* Secondary Purple Chunky */
.btn-secondary-chunky {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 0 #1b1338;
}

.btn-secondary-chunky:hover {
  background: #3b2e6b;
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow:
    0 4px 0 #1b1338,
    0 0 16px var(--primary-glow);
}

.btn-secondary-chunky:active {
  transform: translateY(4px);
  box-shadow: none;
}

/* Outlined Ghost Button */
.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 2px solid var(--border-strong);
}

.btn-outline:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--primary-light);
  color: var(--text-primary);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  min-height: 38px;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 12, 30, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-default);
  height: 72px;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--glow-purple);
  transition: transform 0.2s var(--ease-spring);
  flex-shrink: 0;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.08) rotate(-2deg);
}

.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-purple);
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.brand-text span {
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 9999px;
  box-shadow: 0 0 8px var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(124, 58, 237, 0.3);
  border-color: var(--primary-light);
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: var(--bg-paper);
  border-left: 1px solid var(--border-strong);
  z-index: 1600;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-spring);
  box-shadow: var(--shadow-lg);
}

.mobile-drawer-overlay.open .mobile-drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-default);
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-nav-link {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-nav-link:hover,
.drawer-nav-link.active {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.15);
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-default);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 48px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid var(--border-strong);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-light);
  backdrop-filter: blur(8px);
  max-width: 100%;
}

.hero-badge-pill .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  flex-shrink: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  margin-bottom: 18px;
}

.hero-title .highlight-purple {
  color: var(--primary-light);
  display: block;
}

.hero-title .highlight-gold {
  color: var(--accent-gold);
  display: block;
}

.hero-description {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.3);
  border: 1px solid var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Hero Visual Interactive Showcase (EL & JOY Avatars + Floating Bubbles)
   ========================================================================== */
.hero-visual-card {
  position: relative;
  background: var(--bg-card-gradient);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  box-shadow: var(--shadow-lg), var(--glow-purple);
  overflow: hidden;
  backdrop-filter: blur(12px);
  width: 100%;
}

.visual-glow-sphere {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(236, 72, 153, 0.25) 0%,
    transparent 70%
  );
  top: -40px;
  right: -40px;
  pointer-events: none;
  animation: pulse-slow 4s infinite ease-in-out;
}

.coaches-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.coach-card {
  background: rgba(26, 20, 50, 0.75);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 14px;
  position: relative;
  transition: all 0.3s var(--ease-smooth);
}

.coach-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.coach-el {
  border-left: 3px solid var(--primary-light);
}

.coach-joy {
  border-left: 3px solid var(--tertiary-pink);
}

.coach-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.coach-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.coach-el .coach-avatar {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  box-shadow: var(--glow-purple);
}

.coach-joy .coach-avatar {
  background: linear-gradient(135deg, #ec4899, #f59e0b);
  box-shadow: var(--glow-pink);
}

.coach-info h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.coach-info p {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.coach-features {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.coach-features li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.coach-features li span {
  color: var(--success-light);
  font-weight: bold;
}

/* Interactive Speaking Sandbox Inside Hero */
.speaking-sandbox-preview {
  background: rgba(15, 12, 30, 0.88);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
}

.sandbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sandbox-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.live-badge {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid var(--error-light);
  color: var(--error-light);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--error);
  border-radius: 50%;
  animation: pulse-dot 1.2s infinite;
}

.speech-bubble {
  background: rgba(45, 35, 82, 0.85);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.2);
}

.bubble-avatar {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.bubble-text strong {
  color: var(--primary-light);
  display: block;
  font-size: 0.8rem;
  margin-bottom: 2px;
}

/* Audio Waveform Interactive Display */
.waveform-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(26, 20, 50, 0.75);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  border: 1px solid var(--border-default);
}

.waveform-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  flex: 1;
  overflow: hidden;
}

.waveform-bar {
  width: 3px;
  height: 30%;
  background: var(--grad-cta);
  border-radius: 9999px;
  transition: height 0.15s ease;
  flex-shrink: 0;
}

.waveform-bars.active .waveform-bar:nth-child(odd) {
  animation: wave 0.8s infinite ease-in-out alternate;
}
.waveform-bars.active .waveform-bar:nth-child(even) {
  animation: wave 0.6s infinite ease-in-out alternate 0.2s;
}

.mic-action-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-cta);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm), var(--glow-gold);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mic-action-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--glow-gold);
}

.mic-action-btn.recording {
  animation: pulse-mic 1s infinite;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  color: #fff;
}

/* ==========================================================================
   Features Row (5 Pillars Grid)
   ========================================================================== */
.features-section {
  padding: 40px 0 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-smooth);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md), var(--glow-purple);
  background: rgba(45, 35, 82, 0.85);
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.icon-purple {
  background: rgba(124, 58, 237, 0.25);
  color: var(--primary-light);
  border: 1px solid var(--primary-light);
}
.icon-pink {
  background: rgba(236, 72, 153, 0.25);
  color: var(--tertiary-pink-light);
  border: 1px solid var(--tertiary-pink-light);
}
.icon-blue {
  background: rgba(6, 182, 212, 0.25);
  color: var(--info-light);
  border: 1px solid var(--info-light);
}
.icon-gold {
  background: rgba(245, 158, 11, 0.25);
  color: var(--accent-gold-light);
  border: 1px solid var(--accent-gold-light);
}
.icon-green {
  background: rgba(16, 185, 129, 0.25);
  color: var(--success-light);
  border: 1px solid var(--success-light);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   How ElJoy Works Pipeline (Step Indicators)
   ========================================================================== */
.how-it-works-section {
  padding: 50px 0;
  text-align: center;
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 auto;
}

.pipeline-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin-top: 20px;
  gap: 12px;
}

.pipeline-track::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--border-strong) 0,
    var(--border-strong) 8px,
    transparent 8px,
    transparent 16px
  );
  z-index: 1;
}

.step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.step-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 12px;
  position: relative;
  transition: all 0.3s var(--ease-spring);
  border: 2px solid transparent;
  flex-shrink: 0;
}

.step-node:hover .step-icon-circle {
  transform: scale(1.1) translateY(-3px);
}

.step-1 {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  box-shadow: var(--glow-purple);
  border-color: var(--primary-light);
}
.step-2 {
  background: linear-gradient(135deg, #ec4899, #db2777);
  box-shadow: var(--glow-pink);
  border-color: var(--tertiary-pink-light);
}
.step-3 {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
  border-color: var(--info-light);
}
.step-4 {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  border-color: var(--success-light);
}
.step-5 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: var(--glow-gold);
  border-color: var(--accent-gold-light);
}

.step-num-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-default);
  border: 2px solid currentColor;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 170px;
  line-height: 1.4;
}

/* ==========================================================================
   Mission & Progress Section (Dual Card Layout)
   ========================================================================== */
.mission-progress-section {
  padding: 40px 0 60px;
}

.mission-progress-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 24px;
}

/* Today's Mission Card */
.mission-card {
  background: var(--grad-mission);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.mission-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.level-selector-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.level-chip {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.level-chip.a1 {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}
.level-chip.a2 {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.3);
}
.level-chip.b1 {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
  border-color: rgba(124, 58, 237, 0.3);
}
.level-chip.b2 {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}
.level-chip.c1 {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.3);
}

.level-chip.active {
  transform: scale(1.04);
  box-shadow: 0 0 12px currentColor;
  border-color: currentColor;
}

.mission-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.mission-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(26, 20, 50, 0.8);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

/* Mini Character Dialogue Box inside Mission Card */
.dialogue-preview-box {
  background: rgba(15, 12, 30, 0.7);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dialogue-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dialogue-item.user {
  flex-direction: row-reverse;
}

.dialogue-avatar-mini {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.dialogue-bubble-mini {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.dialogue-item.bot .dialogue-bubble-mini {
  background: rgba(45, 35, 82, 0.8);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.dialogue-item.user .dialogue-bubble-mini {
  background: var(--primary);
  color: #fff;
}

/* Progress Card */
.progress-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.circular-progress-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  background: rgba(45, 35, 82, 0.4);
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
}

.circle-progress-svg {
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
  flex-shrink: 0;
}

.circle-bg {
  fill: none;
  stroke: rgba(124, 58, 237, 0.2);
  stroke-width: 8;
}

.circle-fill {
  fill: none;
  stroke: url(#progressGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 70; /* 72% */
  transition: stroke-dashoffset 1s ease;
}

.circle-stat-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.level-status-info h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.level-status-info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.linear-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(124, 58, 237, 0.2);
  border-radius: 9999px;
  overflow: hidden;
}

.linear-progress-fill {
  height: 100%;
  width: 72%;
  background: var(--grad-progress);
  border-radius: 9999px;
  transition: width 1s ease;
}

.stats-counter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
  background: rgba(15, 12, 30, 0.5);
  padding: 14px 10px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
}

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

.stat-val {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-val.gold {
  color: var(--accent-gold);
}
.stat-val.pink {
  color: var(--tertiary-pink-light);
}

.stat-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ==========================================================================
   Big Progress Banner / CTA Section
   ========================================================================== */
.banner-section {
  padding: 24px 0 50px;
}

.cta-banner-card {
  background: var(--grad-banner);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow-lg), var(--glow-purple);
}

.banner-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.banner-content p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.banner-actions {
  flex-shrink: 0;
}

/* ==========================================================================
   Trust Badges & Footer
   ========================================================================== */
.trust-badges-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 32px 0;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 36px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

.trust-text h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

.trust-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.app-footer {
  padding: 32px 0 50px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Interactive Modals & Toast Snackbars (Material UI Compliant)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 16px;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg), var(--glow-purple);
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: all 0.3s var(--ease-spring);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: rgba(26, 20, 50, 0.8);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

/* Feedback Snackbar Toast */
.snackbar-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(26, 20, 50, 0.96);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--success);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s var(--ease-spring);
  backdrop-filter: blur(10px);
  max-width: calc(100vw - 40px);
}

.snackbar-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes pulse-slow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

@keyframes wave {
  0% {
    height: 20%;
  }
  100% {
    height: 95%;
  }
}

@keyframes pulse-mic {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 16px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Media Queries
   ========================================================================== */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
  .hero-grid,
  .mission-progress-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .banner-actions {
    width: 100%;
  }

  .banner-actions .btn {
    width: 100%;
  }

  .pipeline-track {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .pipeline-track::before {
    display: none;
  }

  .step-node {
    flex: 1 1 calc(33.333% - 16px);
    min-width: 150px;
  }
}

/* Small Tablet & Large Phone (max-width: 768px) */
@media (max-width: 768px) {
  .app-header {
    height: 64px;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  #btn-sign-in {
    display: none;
  }

  .coaches-showcase {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .step-node {
    flex: 1 1 calc(50% - 12px);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* Mobile Devices (max-width: 600px) */
@media (max-width: 600px) {
  .hero-section {
    padding: 32px 0 44px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .step-node {
    flex: 1 1 100%;
    align-items: center;
  }

  .circular-progress-wrap {
    flex-direction: column;
    text-align: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .trust-badges-row {
    grid-template-columns: 1fr 1fr;
  }

  /* Bottom sheet modal behavior on mobile */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-dialog {
    border-radius: 24px 24px 0 0;
    max-height: 85vh;
    padding: 24px 20px 32px;
  }

  .snackbar-toast {
    bottom: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
}

/* Extra Small Phones (max-width: 400px) */
@media (max-width: 400px) {
  .trust-badges-row {
    grid-template-columns: 1fr;
  }

  .stats-counter-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand-text h1 {
    font-size: 1.15rem;
  }

  .brand-text span {
    display: none;
  }
}
