/* ============================================
   COCOLINGO - World-Class Landing Page
   Aesthetic: Warm & Alive
   Brand: #F97316 (orange), #FDF6E3 (cream)
============================================= */

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Brand Colors */
  --brand-primary: #F97316;
  --brand-primary-hover: #EA580C;
  --brand-primary-light: #FDBA74;
  --brand-primary-glow: rgba(249, 115, 22, 0.3);

  /* App Theme Colors (Dark Purple - matches iOS app) */
  --app-bg-dark: #0D0B14;
  --app-bg-card: #1A1625;
  --app-bg-elevated: #231E30;
  --app-purple-primary: #A855F7;
  --app-purple-light: #C084FC;
  --app-purple-glow: rgba(168, 85, 247, 0.3);
  --app-magenta: #E879F9;
  --app-gradient-start: #A855F7;
  --app-gradient-end: #EC4899;
  --app-text-primary: #F8FAFC;
  --app-text-secondary: #94A3B8;
  --app-border: rgba(168, 85, 247, 0.2);

  /* Canvas */
  --canvas: #FDF6E3;
  --canvas-warm: #FAF0D7;
  --canvas-dark: #1C1917;

  /* Neutrals */
  --white: #FFFFFF;
  --black: #000000;
  --gray-50: #FAFAF9;
  --gray-100: #F5F5F4;
  --gray-200: #E7E5E4;
  --gray-300: #D6D3D1;
  --gray-400: #A8A29E;
  --gray-500: #78716C;
  --gray-600: #57534E;
  --gray-700: #44403C;
  --gray-800: #292524;
  --gray-900: #1C1917;

  /* Accent Colors */
  --teal: #14B8A6;
  --teal-light: #5EEAD4;
  --gold: #F59E0B;
  --red: #EF4444;
  --green: #22C55E;

  /* Typography */
  --font-display: 'Clash Display', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

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

  /* Shadows - Warmer tones with layered depth */
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04), 0 1px 3px rgba(249, 115, 22, 0.02);
  --shadow-md: 0 2px 4px rgba(28, 25, 23, 0.04), 0 4px 8px -2px rgba(28, 25, 23, 0.08), 0 2px 4px rgba(249, 115, 22, 0.02);
  --shadow-lg: 0 4px 6px rgba(28, 25, 23, 0.03), 0 10px 20px -4px rgba(28, 25, 23, 0.1), 0 4px 8px rgba(249, 115, 22, 0.03);
  --shadow-xl: 0 8px 10px rgba(28, 25, 23, 0.02), 0 20px 30px -8px rgba(28, 25, 23, 0.12), 0 8px 16px rgba(249, 115, 22, 0.04);
  --shadow-2xl: 0 12px 16px rgba(28, 25, 23, 0.02), 0 25px 50px -12px rgba(28, 25, 23, 0.2), 0 12px 24px rgba(249, 115, 22, 0.05);
  --shadow-glow: 0 0 60px var(--brand-primary-glow);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--gray-900);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

/* === ACCESSIBILITY === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--brand-primary);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 10000;
  transition: top 0.3s var(--ease-out);
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* === NAVIGATION === */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: var(--space-md) 0;
  transition: all 0.4s var(--ease-out);
}

header.scrolled {
  background: rgba(253, 246, 227, 0.95);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-sm) 0;
}

/* Backdrop filter only on devices that handle it well */
@supports (backdrop-filter: blur(20px)) {
  @media (min-width: 769px) {
    header.scrolled {
      background: rgba(253, 246, 227, 0.9);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
    }
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-2xl);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  transition: color 0.2s;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:not(.btn):hover {
  color: var(--gray-900);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
  transition: all 0.3s var(--ease-bounce);
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
}

.btn-ghost:hover {
  background: var(--gray-100);
}

/* === MOBILE MENU === */
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--canvas);
  z-index: 999;
  padding: 100px var(--space-lg) var(--space-lg);
  flex-direction: column;
  gap: var(--space-sm);
}

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

.mobile-menu a {
  display: block;
  padding: var(--space-md) 0;
  font-size: 1.25rem;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-200);
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  padding: 120px var(--space-2xl) 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(249, 115, 22, 0.15);
  top: -10%;
  left: -10%;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(20, 184, 166, 0.12);
  bottom: -5%;
  right: -5%;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(249, 115, 22, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 620px;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.badge-stars {
  display: flex;
  gap: 2px;
}

.badge-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
}

.badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* Hero Title */
.hero-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-title em {
  font-style: normal;
  color: var(--brand-primary);
  position: relative;
}

.hero-title .word {
  display: inline-block;
}

.hero-title .char {
  display: inline-block;
  will-change: transform, opacity;
}

/* Hero Description */
.hero-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  max-width: 520px;
  text-wrap: pretty;
}

/* Hero Language Pills */
.hero-languages {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.lang-pill {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.25s var(--ease-out);
}

.lang-pill:hover,
.lang-pill.active {
  background: var(--brand-primary);
  color: var(--white);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
}

.lang-pill .flag {
  font-size: 1.125rem;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--gray-200);
}

/* === HERO VISUAL === */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-lg);
}

/* === PHONE SHOWCASE === */
.phone-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* iPhone Frame */
.iphone-frame {
  position: relative;
  width: 280px;
  height: 580px;
  background: #1a1a1a;
  border-radius: 48px;
  padding: 12px;
  box-shadow:
    0 50px 100px -20px rgba(0, 0, 0, 0.4),
    0 30px 60px -30px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  animation: phoneFloat 5s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}

.iphone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: var(--app-bg-dark);
  border-radius: 38px;
  overflow: hidden;
  position: relative;
}

.app-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.app-screenshot.active {
  opacity: 1;
}

/* Coco peeking from behind phone */
.coco-peek {
  position: absolute;
  width: 180px;
  height: auto;
  bottom: -20px;
  left: -80px;
  z-index: -1;
  animation: cocoPeek 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

@keyframes cocoPeek {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-8px) rotate(-3deg); }
}

/* Floating badges around phone */
.hero-float-card {
  position: absolute;
  background: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(249, 115, 22, 0.1);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-900);
  white-space: nowrap;
}

.hero-float-card .float-icon {
  font-size: 1.125rem;
}

.streak-badge {
  top: 40px;
  right: -40px;
  animation: floatBadge1 4s ease-in-out infinite;
}

.xp-badge {
  bottom: 100px;
  right: -60px;
  background: linear-gradient(135deg, var(--brand-primary), #ea580c);
  color: var(--white);
  animation: floatBadge2 4.5s ease-in-out infinite;
}

@keyframes floatBadge1 {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes floatBadge2 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(-4deg); }
}

/* Coco Character */
.coco-character {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  animation: cocoFloat 4s ease-in-out infinite;
  z-index: 2;
}

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

.coco-character .coco-expression {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.coco-character .coco-expression.active {
  opacity: 1;
  transform: scale(1);
}

/* Voice Wave behind Coco */
.coco-voice-wave {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.coco-character[data-speaking="true"] .coco-voice-wave {
  opacity: 1;
}

.coco-voice-wave span {
  width: 6px;
  background: var(--app-purple-primary);
  border-radius: 3px;
  animation: cocoVoiceWave 0.8s ease-in-out infinite;
}

.coco-voice-wave span:nth-child(1) { height: 12px; animation-delay: 0s; }
.coco-voice-wave span:nth-child(2) { height: 24px; animation-delay: 0.1s; }
.coco-voice-wave span:nth-child(3) { height: 36px; animation-delay: 0.2s; }
.coco-voice-wave span:nth-child(4) { height: 24px; animation-delay: 0.3s; }
.coco-voice-wave span:nth-child(5) { height: 12px; animation-delay: 0.4s; }

@keyframes cocoVoiceWave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}

/* Conversation Container - Dark Purple Theme (matches iOS app) */
.conversation-container {
  flex: 0 0 340px;
  max-width: 360px;
  min-width: 280px;
  background: var(--app-bg-card);
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px var(--app-purple-glow);
  overflow: hidden;
  border: 1px solid var(--app-border);
  animation: conversationSlideIn 0.6s var(--ease-out) forwards;
}

/* Ensure visibility without waiting for animation in no-JS environments */
.no-js .conversation-container {
  opacity: 1;
  transform: translateX(0);
  animation: none;
}

@keyframes conversationSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, var(--app-bg-elevated), var(--app-bg-card));
  border-bottom: 1px solid var(--app-border);
}

.conversation-scenario {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--app-text-primary);
}

.conversation-progress {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.exchange-counter {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--app-text-secondary);
}

.progress-dots {
  display: flex;
  gap: 4px;
}

.progress-dots .dot {
  width: 6px;
  height: 6px;
  background: rgba(148, 163, 184, 0.3);
  border-radius: 50%;
  transition: all 0.3s var(--ease-out);
}

.progress-dots .dot.active {
  background: var(--app-purple-primary);
  transform: scale(1.2);
  box-shadow: 0 0 8px var(--app-purple-glow);
}

.progress-dots .dot.completed {
  background: var(--app-magenta);
}

/* Conversation Messages */
.conversation-messages {
  padding: var(--space-lg);
  min-height: 220px;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--app-bg-dark);
}

.conv-message {
  display: flex;
  gap: var(--space-sm);
  opacity: 0;
  transform: translateY(10px);
  animation: messageSlideIn 0.4s var(--ease-out) forwards;
}

@keyframes messageSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.conv-message.ai {
  align-items: flex-start;
}

.conv-message.user {
  justify-content: flex-end;
}

.conv-message.feedback {
  align-items: flex-start;
}

.conv-message .avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.conv-message .bubble {
  background: var(--app-bg-elevated);
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  max-width: 85%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid var(--app-border);
}

.conv-message.user .bubble {
  background: linear-gradient(135deg, var(--app-purple-primary), var(--app-gradient-end));
  color: var(--white);
  box-shadow: 0 4px 16px var(--app-purple-glow);
  border: none;
}

.conv-message.feedback .bubble {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.conv-message .bubble-text {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 3px;
  line-height: 1.4;
  color: var(--app-text-primary);
}

.conv-message .bubble-translation {
  font-size: 0.75rem;
  color: var(--app-text-secondary);
  font-style: italic;
  line-height: 1.3;
}

.conv-message.user .bubble-translation {
  color: rgba(255, 255, 255, 0.85);
}

.conv-message.user .bubble-text {
  color: var(--white);
}

.feedback-bubble {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.feedback-icon {
  font-size: 1.125rem;
}

/* Typing Indicator in conversation */
.conv-typing {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.conv-typing .avatar {
  width: 32px;
  height: 32px;
}

.conv-typing-dots {
  display: flex;
  gap: 4px;
  padding: var(--space-sm) var(--space-md);
  background: var(--app-bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--app-border);
}

.conv-typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--app-purple-light);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.conv-typing-dots span:nth-child(1) { animation-delay: 0s; }
.conv-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.conv-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Conversation Input / Mic Button - Dark Purple Theme */
.conversation-input {
  padding: var(--space-md) var(--space-lg);
  background: var(--app-bg-card);
  border-top: 1px solid var(--app-border);
}

.mic-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px var(--space-xl);
  background: linear-gradient(135deg, var(--app-purple-primary), var(--app-gradient-end));
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  position: relative;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 20px var(--app-purple-glow);
}

.mic-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--app-purple-glow);
}

.mic-button.listening {
  animation: micPulse 1.5s ease-in-out infinite;
}

@keyframes micPulse {
  0%, 100% { box-shadow: 0 4px 20px var(--app-purple-glow); }
  50% { box-shadow: 0 4px 20px var(--app-purple-glow), 0 0 0 12px rgba(168, 85, 247, 0.2); }
}

.mic-icon {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
}

.mic-text {
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
}

.mic-ripple {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.mic-button.active .mic-ripple {
  animation: micRipple 1s ease-out infinite;
}

@keyframes micRipple {
  0% { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Mic Demo Badge */
.mic-demo-badge {
  background: rgba(168, 85, 247, 0.3);
  color: var(--white);
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  margin-left: var(--space-sm);
  position: relative;
  z-index: 1;
}

/* Mic Hint Text */
.mic-hint {
  text-align: center;
  font-size: 0.6875rem;
  color: var(--app-text-secondary);
  margin-top: var(--space-sm);
  opacity: 0.8;
}

/* Live Stats Badge */
.live-stats {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--app-bg-card);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--app-text-primary);
  animation: fadeInUp 0.6s var(--ease-out) 1.2s both;
  border: 1px solid var(--app-border);
  white-space: nowrap;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--app-purple-light);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--app-purple-glow);
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

/* Stats Voice Wave */
.stat-icon-wrap {
  display: inline-flex;
  margin-bottom: var(--space-xs);
}

.stat-voice-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.stat-voice-wave span {
  width: 3px;
  background: var(--brand-primary);
  border-radius: 2px;
  animation: statVoiceWave 1s ease-in-out infinite;
}

.stat-voice-wave span:nth-child(1) { height: 6px; animation-delay: 0s; }
.stat-voice-wave span:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.stat-voice-wave span:nth-child(3) { height: 8px; animation-delay: 0.3s; }

@keyframes statVoiceWave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

/* === SECTIONS COMMON === */
section {
  padding: var(--space-4xl) var(--space-2xl);
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-primary);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-sm);
  text-wrap: balance;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* === COMPARISON SECTION === */
.comparison {
  background: var(--white);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-xl);
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-col {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.comparison-col.coco-app {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(249, 115, 22, 0.02));
  border: 2px solid var(--brand-primary);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
}

.comparison-icon {
  font-size: 1.5rem;
}

.comparison-icon-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.x-mark {
  color: var(--red);
  font-weight: 700;
}

.check-mark {
  color: var(--green);
  font-weight: 700;
}

.comparison-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gray-900);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.75rem;
  margin-top: 60px;
}

.coco-encouragement {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--space-2xl);
  text-align: center;
}

.encouragement-mascot {
  width: 90px;
  margin-bottom: var(--space-sm);
}

.encouragement-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--gray-600);
  max-width: 360px;
}

/* === ROLEPLAY SECTION === */
.roleplay {
  background: var(--canvas);
  position: relative;
  z-index: 1;
}

.scenario-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.scenario-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-lg);
  padding-top: calc(var(--space-lg) + 8px);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  min-width: 140px;
  transition: all 0.3s var(--ease-out);
}

.scenario-card:hover,
.scenario-card.active {
  border-color: var(--brand-primary);
  box-shadow: 0 12px 24px var(--brand-primary-glow);
}

.scenario-card.active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(251, 146, 60, 0.05));
}

.scenario-icon {
  font-size: 2rem;
  transition: transform 0.4s var(--ease-bounce);
}

.scenario-card:hover .scenario-icon {
  transform: scale(1.15) translateY(-2px);
}

.scenario-name {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.9375rem;
}

.scenario-action {
  font-size: 0.8125rem;
  color: var(--gray-600);
}

/* Scenario Difficulty Badges */
.scenario-difficulty {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.scenario-difficulty.beginner {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.scenario-difficulty.intermediate {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.scenario-difficulty.advanced {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Scenario Voice Indicator */
.scenario-voice-indicator {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 16px;
  margin-top: var(--space-sm);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.scenario-card.active .scenario-voice-indicator {
  opacity: 1;
}

.scenario-voice-indicator span {
  width: 4px;
  background: var(--brand-primary);
  border-radius: 2px;
  animation: scenarioVoiceWave 0.8s ease-in-out infinite;
}

.scenario-voice-indicator span:nth-child(1) { height: 5px; animation-delay: 0s; }
.scenario-voice-indicator span:nth-child(2) { height: 10px; animation-delay: 0.1s; }
.scenario-voice-indicator span:nth-child(3) { height: 7px; animation-delay: 0.2s; }

@keyframes scenarioVoiceWave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

/* Scenario Demo - Dark Theme with Orange Accents (matches app) */
.scenario-demo {
  max-width: 560px;
  margin: 0 auto;
  background: var(--app-bg-card);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.demo-conversation {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--app-bg-dark);
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  margin-top: var(--space-sm);
}

.demo-message {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.demo-message.user {
  justify-content: flex-end;
}

.demo-message.feedback {
  margin-top: var(--space-xs);
}

.demo-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.demo-bubble {
  background: var(--app-bg-elevated);
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  max-width: 80%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid var(--app-border);
}

.demo-message.user .demo-bubble {
  background: linear-gradient(135deg, var(--brand-primary), #ea580c);
  color: var(--white);
  box-shadow: 0 4px 16px var(--brand-primary-glow);
  border: none;
}

.demo-message.user .demo-translation {
  color: rgba(255, 255, 255, 0.85);
}

.demo-bubble.feedback-bubble {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.feedback-icon {
  font-size: 1.25rem;
}

.demo-text {
  font-weight: 500;
  margin-bottom: 4px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--app-text-primary);
}

.demo-translation {
  font-size: 0.8125rem;
  color: var(--app-text-secondary);
  font-style: italic;
  line-height: 1.4;
}

/* Demo Controls */
.demo-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.demo-control-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--app-bg-elevated);
  border: 1px solid var(--app-border);
  border-radius: 50%;
  color: var(--app-text-secondary);
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.demo-control-btn:hover {
  background: var(--app-bg-card);
  border-color: var(--brand-primary);
  color: var(--app-text-primary);
  transform: scale(1.05);
}

.demo-control-btn.play-pause {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--brand-primary), #ea580c);
  border: none;
  color: var(--white);
  box-shadow: 0 4px 16px var(--brand-primary-glow);
}

.demo-control-btn.play-pause:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px var(--brand-primary-glow);
}

.demo-control-btn svg {
  width: 18px;
  height: 18px;
}

.demo-control-btn.play-pause svg {
  width: 22px;
  height: 22px;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.demo-avatar-small {
  width: 32px !important;
  height: 32px !important;
}

.typing-dots {
  display: flex;
  gap: 5px;
  padding: 8px 12px;
  background: var(--app-bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid var(--app-border);
}

.typing-dots span {
  width: 7px;
  height: 7px;
  background: var(--app-purple-light);
  border-radius: 50%;
  animation: typingDot 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Demo Exchange Info */
.demo-exchange-info {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--app-border);
}

.demo-exchange-counter {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--app-text-secondary);
  letter-spacing: 0.02em;
}

/* App Showcase Grid (Replaces fake demo) */
.app-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.showcase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.showcase-item.featured .showcase-phone-frame {
  transform: scale(1.08);
  box-shadow: 0 30px 60px rgba(249, 115, 22, 0.25), 0 15px 30px rgba(0, 0, 0, 0.2);
}

.showcase-phone {
  position: relative;
  margin-bottom: var(--space-lg);
}

.showcase-phone-frame {
  position: relative;
  width: 220px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 8px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.showcase-item:hover .showcase-phone-frame {
  transform: translateY(-8px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2), 0 15px 30px rgba(0, 0, 0, 0.15);
}

.showcase-item.featured:hover .showcase-phone-frame {
  transform: scale(1.08) translateY(-8px);
}

.showcase-screenshot {
  width: 100%;
  height: auto;
  border-radius: 28px;
  display: block;
}

.showcase-caption {
  max-width: 240px;
}

.showcase-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  background: rgba(249, 115, 22, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.showcase-caption p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Scenario Quick Cards (Simpler version) */
.scenario-quick-cards {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.scenario-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-lg);
}

.scenario-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.scenario-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--gray-700);
  transition: all 0.2s var(--ease-out);
}

.scenario-tag:hover {
  border-color: var(--brand-primary);
  background: rgba(249, 115, 22, 0.05);
  transform: translateY(-2px);
}

.tag-icon {
  font-size: 1rem;
}

.roleplay-cta {
  text-align: center;
  margin-top: var(--space-xl);
}

/* Responsive: App Showcase */
@media (max-width: 900px) {
  .app-showcase-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .showcase-item.featured {
    order: -1;
  }

  .showcase-item.featured .showcase-phone-frame {
    transform: scale(1);
  }

  .showcase-phone-frame {
    width: 200px;
  }
}

@media (max-width: 600px) {
  .showcase-phone-frame {
    width: 180px;
    border-radius: 28px;
    padding: 6px;
  }

  .showcase-screenshot {
    border-radius: 22px;
  }

  .scenario-tags {
    gap: var(--space-xs);
  }

  .scenario-tag {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8125rem;
  }
}

/* === TRANSLATION SECTION === */
.translation {
  background: var(--gray-900);
  color: var(--white);
}

.translation .section-eyebrow {
  color: var(--brand-primary-light);
}

.translation .section-subtitle {
  color: var(--gray-400);
}

.translation-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.translation-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  min-width: 280px;
}

/* Backdrop filter only on devices that handle it well */
@supports (backdrop-filter: blur(10px)) {
  @media (min-width: 769px) {
    .translation-panel {
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(10px);
    }
  }
}

.panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.panel-flag {
  font-size: 1.5rem;
}

.panel-label {
  font-size: 0.8125rem;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.panel-text {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.panel-text.japanese {
  font-size: 1.5rem;
}

.voice-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
}

.voice-wave span {
  width: 4px;
  background: var(--brand-primary);
  border-radius: 2px;
  animation: waveAnim 1s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { height: 16px; animation-delay: 0s; }
.voice-wave span:nth-child(2) { height: 28px; animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { height: 40px; animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { height: 28px; animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { height: 16px; animation-delay: 0.4s; }

@keyframes waveAnim {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

.play-btn {
  width: 48px;
  height: 48px;
  background: var(--brand-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s var(--ease-out);
}

.play-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
  margin-left: 2px;
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.5);
}

.translation-arrow {
  color: var(--brand-primary);
}

.translation-arrow svg {
  width: 48px;
  height: 48px;
}

.translation-note {
  text-align: center;
  color: var(--gray-400);
  margin-top: var(--space-xl);
  font-size: 0.9375rem;
}

/* === HOW IT WORKS === */
.how-it-works {
  background: var(--white);
}

.steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 var(--space-lg);
}

.step-number {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-hover));
  color: var(--white);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto var(--space-lg);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.step-content p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.step-visual {
  display: none;
}

.step-connector {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), transparent);
  margin-top: 32px;
  flex-shrink: 0;
}

/* === BENTO GRID === */
.features {
  background: var(--canvas);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-lg);
}

.bento-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  transition: all 0.4s var(--ease-out), box-shadow 0.3s var(--ease-out);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl), 0 0 40px rgba(249, 115, 22, 0.08);
  border-color: var(--gray-300);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-hero {
  grid-column: span 8;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
  align-items: center;
}

.bento-medium {
  grid-column: span 4;
}

.bento-small {
  grid-column: span 3;
}

.bento-wide {
  grid-column: span 6;
}

.bento-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  display: block;
}

/* Bento Voice Wave */
.bento-icon-with-wave {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.bento-icon-with-wave .bento-icon {
  margin-bottom: 0;
}

.bento-voice-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}

.bento-voice-wave span {
  width: 4px;
  background: var(--brand-primary);
  border-radius: 2px;
  animation: bentoVoiceWave 1s ease-in-out infinite;
}

.bento-voice-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.bento-voice-wave span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.bento-voice-wave span:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.bento-voice-wave span:nth-child(4) { height: 16px; animation-delay: 0.3s; }
.bento-voice-wave span:nth-child(5) { height: 8px; animation-delay: 0.4s; }

@keyframes bentoVoiceWave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}

.bento-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.bento-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.bento-visual img {
  width: 140px;
  margin: 0 auto;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.12));
}

/* Timer in Bento */
.quick-timer {
  margin-top: var(--space-lg);
  display: flex;
  justify-content: center;
}

.timer-ring {
  position: relative;
  width: 80px;
  height: 80px;
}

.timer-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-ring circle {
  stroke: var(--brand-primary);
}

.timer-progress {
  animation: timerAnim 5s linear infinite;
}

@keyframes timerAnim {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

.timer-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
}

/* Adaptive Bars */
.adaptive-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--space-sm);
  height: 80px;
  margin-top: var(--space-lg);
}

.adaptive-bars .bar {
  flex: 1;
  background: var(--gray-200);
  border-radius: var(--radius-sm);
  height: var(--height);
  transition: all 0.3s var(--ease-out);
}

.adaptive-bars .bar.active {
  background: var(--brand-primary);
}

/* === MEET COCO === */
.meet-coco {
  background: linear-gradient(180deg, var(--white) 0%, var(--canvas) 100%);
}

.meet-coco-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.coco-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.coco-expressions {
  position: relative;
  width: 220px;
  height: 220px;
}

.coco-expressions .expression {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s var(--ease-out);
}

.coco-expressions .expression.active {
  opacity: 1;
  transform: scale(1);
}

.expression-dots {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.expression-dots .dot {
  /* 44px touch target with 12px visual dot */
  width: 44px;
  height: 44px;
  background: transparent;
  border-radius: 50%;
  transition: all 0.3s var(--ease-out);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expression-dots .dot::after {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--gray-300);
  border-radius: 50%;
  transition: all 0.3s var(--ease-out);
}

.expression-dots .dot:hover::after,
.expression-dots .dot.active::after {
  background: var(--brand-primary);
  transform: scale(1.2);
}

.expression-dots .dot:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: -2px;
}

.coco-intro {
  max-width: 420px;
}

.coco-tagline {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
  padding-left: var(--space-md);
  border-left: 3px solid var(--brand-primary);
}

.coco-traits {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.coco-traits li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--gray-200);
}

.trait-emoji {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.trait-text {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.5;
}

/* === DAY WITH COCO === */
.day-with-coco {
  background: var(--canvas);
}

.daily-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.highlight-card {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: all 0.3s var(--ease-out);
}

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

.highlight-card.featured {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(249, 115, 22, 0.02));
  border-color: var(--brand-primary);
}

.highlight-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: var(--space-sm);
}

.highlight-text {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .daily-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === LANGUAGES === */
.languages {
  background: var(--gray-50);
  padding: var(--space-2xl) var(--space-2xl);
}

.languages-title {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  font-weight: 500;
  color: var(--gray-700);
}

.languages-title .highlight {
  color: var(--brand-primary);
  font-weight: 600;
}

.languages-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  max-width: 800px;
  margin: 0 auto;
}

.lang-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.2s var(--ease-out);
  cursor: pointer;
  font-family: inherit;
}

.lang-tag:hover {
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

.lang-tag:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
}

/* === TESTIMONIALS === */
.testimonials {
  background: var(--gray-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(249, 115, 22, 0.1), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(20, 184, 166, 0.08), transparent 50%);
  pointer-events: none;
}

.testimonials .section-container {
  position: relative;
  z-index: 1;
}

.testimonials .section-eyebrow {
  color: var(--brand-primary-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-lg);
}

.testimonial {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-out);
}

.testimonial:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.testimonial.featured {
  grid-row: span 2;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 0.875rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.testimonial-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.testimonial.featured .testimonial-text {
  font-size: 1.0625rem;
}

.testimonial-progress {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.progress-item {
  flex: 1;
}

.progress-label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.progress-text {
  font-size: 0.875rem;
  font-style: italic;
}

.progress-arrow {
  color: var(--brand-primary);
  font-size: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--brand-primary), var(--teal));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.author-name {
  display: block;
  font-weight: 600;
}

.author-detail {
  display: block;
  font-size: 0.8125rem;
  color: var(--gray-400);
}

/* === FAQ === */
.faq {
  background: var(--canvas);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--gray-600);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}

.faq-icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.faq-icon::after {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.faq-item[open] .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  animation: faqFadeIn 0.3s var(--ease-out);
}

@keyframes faqFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-answer p {
  color: var(--gray-600);
  line-height: 1.7;
}

/* FAQ Mascot */
.faq-mascot {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.faq-mascot-img {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s var(--ease-out);
}

.faq-mascot-img:hover {
  transform: scale(1.08) rotate(-3deg);
}

/* === PRICING === */
.pricing {
  background: var(--white);
}

.pricing-tiers {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.3s var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.pricing-card.featured {
  background: var(--white);
  border: 2px solid var(--brand-primary);
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
  z-index: 1;
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-description {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: var(--space-md);
}

/* Legacy support for old pricing-simple class */
.pricing-simple {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-lg);
  max-width: 700px;
  margin: 0 auto;
}

.pricing-card.premium {
  background: var(--white);
  border: 2px solid var(--brand-primary);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-primary);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px var(--space-sm);
  border-radius: var(--radius-full);
}

.pricing-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.pricing-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-400);
  font-family: var(--font-body);
}

.pricing-savings {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-lg);
}

.pricing-features li {
  padding: var(--space-xs) 0;
  font-size: 0.8125rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.pricing-features li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  font-size: 0.75rem;
}

.pricing-cta {
  width: 100%;
}

.pricing-guarantee {
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  color: var(--gray-600);
  text-align: center;
}

/* Pricing Mascot */
.pricing-mascot {
  position: absolute;
  top: -30px;
  right: -15px;
  z-index: 10;
}

.pricing-mascot-img {
  width: 70px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
  transition: transform 0.3s var(--ease-bounce);
  animation: celebrateBounce 2s ease-in-out infinite;
}

@keyframes celebrateBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(3deg); }
  75% { transform: translateY(-4px) rotate(-3deg); }
}

.pricing-card.premium:hover .pricing-mascot-img {
  transform: scale(1.15);
  animation-play-state: paused;
}

@media (max-width: 900px) {
  .pricing-tiers {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card.featured {
    transform: none;
    order: -1;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 600px) {
  .pricing-simple {
    grid-template-columns: 1fr;
  }
}

/* === CTA === */
.cta {
  background: linear-gradient(180deg, var(--canvas) 0%, var(--white) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-4xl) var(--space-2xl);
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.cta-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(249, 115, 22, 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cta-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(20, 184, 166, 0.1);
  bottom: 0;
  right: 20%;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-mascot {
  width: 140px;
  margin: 0 auto var(--space-lg);
}

.cta-mascot img {
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  animation: cocoWave 3s ease-in-out infinite;
}

@keyframes cocoWave {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

.cta-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-sm);
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--black);
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.app-store-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.5s var(--ease-out);
}

.app-store-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.app-store-btn:hover::before {
  left: 100%;
}

.app-store-btn svg {
  width: 28px;
  height: 28px;
}

.app-store-text {
  text-align: left;
}

.app-store-small {
  display: block;
  font-size: 0.6875rem;
  opacity: 0.8;
}

.app-store-large {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
}

.cta-note {
  margin-top: var(--space-lg);
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* === FOOTER === */
footer {
  background: var(--gray-900);
  color: var(--white);
  padding: var(--space-2xl) var(--space-2xl) var(--space-lg);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  max-width: 1100px;
  margin: 0 auto var(--space-lg);
}

.footer-brand .logo {
  margin-bottom: var(--space-xs);
}

.footer-brand .logo span {
  color: var(--white);
}

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.8125rem;
  line-height: 1.5;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--gray-400);
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
  }
}

/* === MOBILE CTA === */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: var(--space-md) var(--space-lg);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  z-index: 998;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
  display: none;
}

@media (max-width: 768px) {
  .mobile-cta {
    display: block;
  }

  .mobile-cta.visible {
    transform: translateY(0);
    opacity: 1;
  }
}

.mobile-cta .btn {
  width: 100%;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-3xl);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-languages {
    justify-content: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .bento-hero {
    grid-column: span 12;
  }

  .bento-medium {
    grid-column: span 6;
  }
}

@media (max-width: 1024px) {
  section {
    padding: var(--space-4xl) var(--space-lg);
  }

  nav {
    padding: 0 var(--space-lg);
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .comparison-vs {
    margin: 0 auto;
  }

  .bento-small {
    grid-column: span 6;
  }

  .bento-wide {
    grid-column: span 12;
  }

  .meet-coco-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .coco-intro {
    max-width: 100%;
  }

  .coco-tagline {
    border-left: none;
    padding-left: 0;
    border-top: 3px solid var(--brand-primary);
    padding-top: var(--space-lg);
  }

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

  .testimonial.featured {
    grid-row: span 1;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card.featured {
    transform: none;
    order: -1;
  }

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--brand-primary), transparent);
    margin: 0;
  }
}

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

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

  .hero {
    padding: 80px var(--space-lg) 60px;
    min-height: auto;
  }

  section {
    padding: var(--space-3xl) var(--space-lg);
  }

  /* Phone Showcase Mobile */
  .phone-showcase {
    transform: scale(0.85);
  }

  .iphone-frame {
    width: 240px;
    height: 500px;
    border-radius: 40px;
  }

  .iphone-screen {
    border-radius: 32px;
  }

  .coco-peek {
    width: 140px;
    left: -60px;
    bottom: -10px;
  }

  .hero-float-card {
    display: none;
  }

  /* Demo controls mobile */
  .demo-controls {
    gap: var(--space-sm);
  }

  .demo-control-btn {
    width: 40px;
    height: 40px;
  }

  .demo-control-btn.play-pause {
    width: 48px;
    height: 48px;
  }

  /* Scenario cards mobile */
  .scenario-card {
    padding-top: calc(var(--space-lg) + 10px);
  }

  .scenario-difficulty {
    top: -8px;
  }

  .bento-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bento-small {
    grid-column: span 12;
  }

  .translation-demo {
    flex-direction: column;
  }

  .translation-arrow {
    transform: rotate(90deg);
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-time {
    width: 60px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  main {
    padding-bottom: 80px;
  }

  .stat-divider {
    display: none;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .stat {
    min-width: 80px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

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

  .scenario-cards {
    flex-direction: column;
  }

  .scenario-card {
    min-width: 100%;
  }

  .bento-card {
    padding: var(--space-lg);
  }

  .pricing-card {
    padding: var(--space-lg);
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .coco-mascot,
  .speech-bubble,
  .floating-card,
  .coco-voice-wave span,
  .bento-voice-wave span,
  .stat-voice-wave span,
  .scenario-voice-indicator span,
  .voice-wave span,
  .typing-dots span,
  .conv-typing-dots span,
  .pulse-dot,
  .mic-button,
  .mic-ripple,
  .conversation-container,
  .conv-message,
  .live-stats {
    animation: none !important;
  }

  .coco-character .coco-expression {
    transition: opacity 0.01ms !important;
  }

  .conversation-container {
    opacity: 1;
    transform: none;
  }

  .conv-message {
    opacity: 1;
    transform: none;
  }

  .live-stats {
    opacity: 1;
    transform: none;
  }
}

/* === NO JS FALLBACK === */
.no-js .hero-title .char,
.no-js .bento-card,
.no-js .testimonial,
.no-js .pricing-card,
.no-js .step {
  opacity: 1 !important;
  transform: none !important;
}
