/* ============================================
   AXEO DESIGN SYSTEM — axeo.vision
   Ported from Theme.swift (iOS app)
   Premium dark-theme, glass morphism
   ============================================ */

:root {
  /* Surfaces */
  --bg:   #08090C;
  --bg2:  #12141A;
  --bg3:  #1C1F28;

  /* Cards */
  --card:  #1C1F28;
  --card2: #12141A;

  /* Borders */
  --border:       #2A2E3A;
  --border-alpha: rgba(42, 46, 58, 0.6);

  /* Accent — Optic Cyan */
  --accent:  #00FFD5;
  --accent2: #009B8A;
  --teal:    #00FFD5;

  /* Retinal Orange */
  --retinal:      #FF4500;
  --retinal-deep: #E03D00;

  /* Functional */
  --gold:    #E09B3D;
  --data:    #3B82F6;
  --success: #22C55E;
  --error:   #EF4444;
  --warning: #E09B3D;

  /* Text */
  --text:  #EAECF0;
  --text2: #8A90A4;
  --text3: #4A5068;

  /* Glass */
  --glass:           rgba(255, 255, 255, 0.06);
  --glass-border:    rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.08);

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, #00FFD5, #009B8A);
  --gradient-gold:   linear-gradient(135deg, #E09B3D, #FF4500);
  --gradient-teal:   linear-gradient(to right, #00FFD5, #FF4500);

  /* Typography — from AXEO Brand Book */
  --font:         'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.4);

  /* Radii */
  --radius:    20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
}

/* ── Light Theme ─────────────────────────── */

[data-theme="light"] {
  --bg: #F8F9FC;
  --bg2: #FFFFFF;
  --bg3: #F0F1F5;
  --card: #FFFFFF;
  --card2: #F5F6FA;
  --border: #D8DCE6;
  --border-alpha: rgba(0, 0, 0, 0.08);
  --accent: #00C9A7;
  --accent2: #008F76;
  --teal: #00C9A7;
  --retinal: #E03D00;
  --retinal-deep: #CC3600;
  --gold: #C98530;
  --data: #2563EB;
  --success: #16A34A;
  --error: #DC2626;
  --warning: #C98530;
  --text: #1A1D26;
  --text2: #5A6078;
  --text3: #8A90A4;
  --glass: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-highlight: rgba(0, 0, 0, 0.04);
  --gradient-accent: linear-gradient(135deg, #00C9A7, #008F76);
  --gradient-gold: linear-gradient(135deg, #C98530, #E03D00);
  --gradient-teal: linear-gradient(to right, #00C9A7, #E03D00);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] body { background: var(--bg); }
[data-theme="light"] .nav { background: rgba(248, 249, 252, 0.9); backdrop-filter: blur(20px); }
[data-theme="light"] .ambient-bg .orb-1 { background: rgba(0, 201, 167, 0.06); }
[data-theme="light"] .ambient-bg .orb-2 { background: rgba(224, 61, 0, 0.04); }
[data-theme="light"] .ambient-bg .orb-3 { background: rgba(201, 133, 48, 0.04); }
[data-theme="light"] .glass-card { background: rgba(255, 255, 255, 0.8); box-shadow: var(--shadow-md); }
[data-theme="light"] .glass-card::before { background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent); }
[data-theme="light"] .popup-modal { background: #FFFFFF; border-color: rgba(0, 0, 0, 0.1); }
[data-theme="light"] #featureOverlayModal { background: #FFFFFF !important; border-color: rgba(0, 0, 0, 0.1) !important; }
[data-theme="light"] #featureOverlayTitle { color: var(--text) !important; }
[data-theme="light"] #featureOverlayDesc { color: var(--text2) !important; }
[data-theme="light"] .fd-cat { color: var(--text3) !important; }
[data-theme="light"] .fd-items { color: var(--text2) !important; }
[data-theme="light"] .nav-links.open { background: var(--bg2); }
[data-theme="light"] .nav-download { background: rgba(0, 201, 167, 0.08); border-color: rgba(0, 201, 167, 0.2); }
[data-theme="light"] .hero-showcase-scene { background: #FFFFFF !important; border-color: rgba(0, 0, 0, 0.08) !important; }
[data-theme="light"] .hero-showcase-titlebar { background: #F0F1F5 !important; }
[data-theme="light"] .hero-showcase-dot-1 { background: #EF4444 !important; }
[data-theme="light"] .hero-showcase-dot-2 { background: #F59E0B !important; }
[data-theme="light"] .hero-showcase-dot-3 { background: #22C55E !important; }
[data-theme="light"] .footer { background: #F0F1F5; border-color: var(--border); }
[data-theme="light"] .test-container { background: rgba(255, 255, 255, 0.8); }

/* Icon Background Classes */
.icon-bg-teal { background: rgba(0, 255, 213, 0.1); }
.icon-bg-blue { background: rgba(59, 130, 246, 0.1); }
.icon-bg-gold { background: rgba(224, 155, 61, 0.1); }
.icon-bg-orange { background: rgba(255, 69, 0, 0.1); }
.icon-bg-green { background: rgba(34, 197, 94, 0.1); }
.icon-bg-purple { background: rgba(139, 92, 246, 0.1); }

[data-theme="light"] .icon-bg-teal { background: rgba(0, 201, 167, 0.12); }
[data-theme="light"] .icon-bg-blue { background: rgba(37, 99, 235, 0.1); }
[data-theme="light"] .icon-bg-gold { background: rgba(201, 133, 48, 0.1); }
[data-theme="light"] .icon-bg-orange { background: rgba(224, 61, 0, 0.1); }
[data-theme="light"] .icon-bg-green { background: rgba(22, 163, 74, 0.1); }
[data-theme="light"] .icon-bg-purple { background: rgba(139, 92, 246, 0.1); }

/* Icon Color Classes */
.icon-color-teal { color: var(--accent); }
.icon-color-blue { color: var(--data); }
.icon-color-gold { color: var(--gold); }
.icon-color-orange { color: var(--retinal); }
.icon-color-green { color: var(--success); }
.icon-color-purple { color: #8B5CF6; }

/* Theme Toggle */
.theme-toggle {
  background: var(--glass);
  border: 0.5px solid var(--glass-border);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: var(--text); background: var(--glass-highlight); }

[data-theme="dark"] .theme-icon-sun, :root:not([data-theme]) .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon, :root:not([data-theme]) .theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

.nav-theme-wrap { display: flex; align-items: center; }

/* ── Reset ───────────────────────────────── */

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Prevent any horizontal overflow globally */
html, body { max-width: 100vw; overflow-x: hidden; }

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

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

/* ── Typography — Brand Book ─────────────── */

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

h3 { font-size: 1.1rem; font-weight: 500; }

p  { color: var(--text2); font-size: 0.95rem; font-weight: 300; }

.text-gradient {
  background: var(--gradient-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.overline {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text3);
}

/* ── Container ───────────────────────────── */

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

.section {
  padding: 100px 0;
}

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

.section-header p {
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Glass Card ──────────────────────────── */

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  border: 0.5px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to bottom, var(--glass-highlight), transparent);
  pointer-events: none;
  border-radius: var(--radius) var(--radius) 0 0;
}

.glass-card-sm { border-radius: var(--radius-sm); }
.glass-card-sm::before { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }

/* ── Buttons ─────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
  text-decoration: none;
  padding: 16px 32px;
}

.btn:active { transform: scale(0.97); opacity: 0.9; }

.btn-primary {
  background: var(--gradient-gold);
  color: var(--bg);
  box-shadow: 0 6px 24px rgba(224, 155, 61, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(224, 155, 61, 0.5);
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent2);
}
.btn-secondary:hover {
  background: rgba(0, 255, 213, 0.08);
  opacity: 1;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid rgba(224, 155, 61, 0.4);
}

/* ── Ambient Background ──────────────────── */

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  overflow: hidden;
}

.ambient-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}

.orb-1 {
  width: 400px; height: 400px;
  background: rgba(0, 255, 213, 0.06);
  top: -100px; left: -100px;
  animation: float-1 10s ease-in-out infinite alternate;
}

.orb-2 {
  width: 350px; height: 350px;
  background: rgba(255, 69, 0, 0.05);
  bottom: -80px; right: -80px;
  animation: float-2 12s ease-in-out infinite alternate;
}

.orb-3 {
  width: 280px; height: 280px;
  background: rgba(224, 155, 61, 0.04);
  top: 40%; right: 10%;
  animation: float-3 9s ease-in-out infinite alternate;
}

@keyframes float-1 { 0% { transform: translate(0, 0); } 100% { transform: translate(60px, 40px); } }
@keyframes float-2 { 0% { transform: translate(0, 0); } 100% { transform: translate(-50px, -30px); } }
@keyframes float-3 { 0% { transform: translate(0, 0); } 100% { transform: translate(-30px, 50px); } }

/* ── Navigation ──────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(8, 9, 12, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 0.5px solid var(--border-alpha);
  transition: background 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  -webkit-text-fill-color: initial;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text2);
  font-size: 0.85rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); opacity: 1; }

/* iOS 26+ Liquid Glass Download Button */
.nav-download-wrap {
  list-style: none;
}

.nav-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px 7px 12px;
  border-radius: 980px;
  background: linear-gradient(135deg,
    rgba(0, 255, 213, 0.12),
    rgba(0, 155, 138, 0.08));
  border: 0.5px solid rgba(0, 255, 213, 0.2);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.nav-download::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 980px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

.nav-download:hover {
  background: linear-gradient(135deg,
    rgba(0, 255, 213, 0.2),
    rgba(0, 155, 138, 0.14));
  border-color: rgba(0, 255, 213, 0.35);
  box-shadow:
    0 2px 8px rgba(0, 255, 213, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  opacity: 1;
  color: var(--accent);
}

.nav-download svg {
  flex-shrink: 0;
}

.nav-lang {
  position: relative;
}

.nav-lang-btn {
  background: var(--glass);
  border: 0.5px solid var(--glass-border);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--text2);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 8px;
  min-width: 140px;
  display: none;
  box-shadow: var(--shadow-lg);
}

.nav-lang:hover .nav-lang-dropdown,
.nav-lang.open .nav-lang-dropdown,
.nav-lang-dropdown:hover { display: block; }

.nav-lang-dropdown a {
  display: block;
  padding: 8px 12px;
  color: var(--text2);
  font-size: 0.85rem;
  border-radius: 6px;
  transition: background 0.15s;
}

.nav-lang-dropdown a:hover {
  background: var(--glass);
  color: var(--text);
  opacity: 1;
}

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

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 0.5px solid var(--border);
    padding: 24px;
    gap: 16px;
  }
}

/* ── Hero ────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--glass);
  border: 0.5px solid var(--glass-border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 20px;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.hero h1 {
  margin-bottom: 20px;
}

.hero p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* iPhone frame with real screenshot */
.hero-phone-frame {
  width: 280px;
  height: 572px;
  background: #000;
  border-radius: 44px;
  border: 4px solid #2A2E3A;
  box-shadow:
    var(--shadow-lg),
    0 0 80px rgba(0, 255, 213, 0.08),
    inset 0 0 0 2px rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  padding: 12px;
}

.hero-phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 18px 18px;
  z-index: 10;
}

.hero-phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 32px;
  display: block;
}

/* Floating glow behind the phone */
.hero-mockup::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 255, 213, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: float-1 6s ease-in-out infinite alternate;
}

/* App Store Button */
.hero-appstore {
  margin-top: 16px;
}

.hero-appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.hero-appstore-btn:hover {
  background: var(--glass-highlight);
  border-color: var(--border);
  opacity: 1;
}

.hero-appstore-btn svg {
  flex-shrink: 0;
}

.hero-appstore-label {
  display: block;
  font-size: 0.55rem;
  font-weight: 400;
  color: var(--text2);
  letter-spacing: 0.02em;
}

.hero-appstore-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ── Hero Showcase — 3-Scene Looping Animation ── */

.hero-showcase {
  width: 380px;
  height: 440px;
  position: relative;
}

.showcase-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.92) translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}

.showcase-scene.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.scene-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  margin-top: 16px;
}

/* Progress dots */
.showcase-dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.showcase-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.4s ease;
}

.showcase-dot.active {
  width: 20px;
  border-radius: 3px;
  background: var(--accent);
}

/* ── Scene 1: App Store Card ─────────────── */

.scene-appstore-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  width: 300px;
}

.scene-app-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
}

.scene-app-info { flex: 1; }

.scene-app-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.scene-app-sub {
  font-size: 0.65rem;
  color: var(--text3);
  font-weight: 300;
}

.scene-app-rating {
  font-size: 0.55rem;
  color: var(--gold);
  margin-top: 2px;
}

.scene-get-btn {
  position: relative;
  padding: 6px 20px;
  background: var(--accent);
  border-radius: 980px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bg);
  cursor: pointer;
}

.scene-tap-ring {
  position: absolute;
  inset: -8px;
  border-radius: 980px;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: tapPulse 4s ease-in-out infinite;
}

@keyframes tapPulse {
  0%, 70%, 100% { opacity: 0; transform: scale(1); }
  75% { opacity: 0.6; transform: scale(1); }
  85% { opacity: 0; transform: scale(1.3); }
}

/* ── Scene 2: Browser / Website ──────────── */

.scene-browser {
  width: 320px;
  background: #0E1017;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.scene-browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-bottom: 0.5px solid var(--border-alpha);
}

.scene-dots {
  display: flex;
  gap: 5px;
}

.scene-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
}

.scene-dots span:nth-child(1) { background: #EF4444; }
.scene-dots span:nth-child(2) { background: #E09B3D; }
.scene-dots span:nth-child(3) { background: #22C55E; }

.scene-url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--text3);
  background: rgba(255,255,255,0.04);
  padding: 3px 10px;
  border-radius: 5px;
}

.scene-browser-body {
  padding: 16px 14px;
}

.scene-web-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
}

.scene-web-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.scene-web-card {
  font-size: 0.55rem;
  font-weight: 400;
  color: var(--text2);
  padding: 8px;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.scene-web-card span {
  font-size: 0.7rem;
}

.scene-web-progress {
  margin-top: 12px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.scene-web-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  border-radius: 2px;
  transition: width 3s linear;
}

.scene-website.active .scene-web-progress-fill {
  width: 65%;
}

/* ── Scene 3: iPhone App ─────────────────── */

.scene-phone {
  width: 220px;
  height: 340px;
  background: #0A0D14;
  border-radius: 32px;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0,255,213,0.06);
  position: relative;
  overflow: hidden;
  padding: 8px;
}

.scene-phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #0A0D14;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}

.scene-phone-content {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 24px;
  padding: 32px 12px 10px;
  display: flex;
  flex-direction: column;
}

.scene-phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}

.scene-phone-canvas {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.scene-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,255,213,0.1);
}

.scene-ring-1 { width: 60px; height: 60px; }
.scene-ring-2 { width: 90px; height: 90px; border-color: rgba(0,255,213,0.07); }
.scene-ring-3 { width: 120px; height: 120px; border-color: rgba(0,255,213,0.04); }

.scene-focus-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, #00FFD5, rgba(0,255,213,0.3));
  box-shadow: 0 0 20px rgba(0,255,213,0.3);
  animation: focusPulse 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes focusPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0,255,213,0.3); }
  50% { transform: scale(0.5); box-shadow: 0 0 8px rgba(0,255,213,0.15); }
}

.scene-phone-instruction {
  text-align: center;
  font-size: 0.55rem;
  color: var(--text3);
  margin: 6px 0;
}

.scene-phone-bar {
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 8px;
}

.scene-phone-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  border-radius: 1px;
  transition: width 3.5s linear;
}

.scene-mobile.active .scene-phone-bar-fill {
  width: 45%;
}

.scene-phone-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.scene-ctrl-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: var(--text2);
}

.scene-ctrl-main {
  width: 34px; height: 34px;
  background: rgba(0,255,213,0.12);
  color: var(--accent);
  font-size: 0.7rem;
}

/* ── Responsive ──────────────────────────── */

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-appstore { display: flex; justify-content: center; }
  .hero-showcase {
    width: 100%;
    max-width: 340px;
    height: 400px;
    margin: 0 auto;
  }
}

/* ── Features ────────────────────────────── */

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

.feature-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.feature-icon img {
  width: 24px;
  height: 24px;
}

.feature-icon {
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.feature-card p {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text3);
}

/* Feature card hover/tap interaction */
.feature-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-highlight);
}
.feature-card:active {
  transform: scale(0.97);
}

.feature-tap-hint {
  display: block;
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feature-card:hover .feature-tap-hint { opacity: 1; }
@media (max-width: 768px) { .feature-tap-hint { opacity: 0.6; } }

/* ── Feature Detail Overlay ─────────────── */
.feature-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.feature-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.feature-overlay-modal {
  background: var(--bg2);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  max-width: 480px;
  width: calc(100% - 32px);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-overlay.open .feature-overlay-modal {
  transform: translateY(0) scale(1);
}

.feature-overlay-modal h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin: 16px 0 8px;
  color: var(--text);
}

.feature-overlay-desc {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text2);
  margin-bottom: 24px;
  line-height: 1.6;
}

.feature-overlay-details {
  text-align: left;
  margin-bottom: 24px;
}

.feature-detail-item {
  padding: 12px 0;
  border-bottom: 0.5px solid var(--border-alpha);
}
.feature-detail-item:last-child { border-bottom: none; }

.feature-detail-cat {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.feature-detail-items {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text2);
  line-height: 1.5;
}

.feature-overlay-cta {
  margin-top: 8px;
}

@media (max-width: 480px) {
  .feature-overlay-modal { padding: 24px 20px; }
  .feature-overlay-modal h3 { font-size: 1rem; }
  .feature-detail-items { font-size: 0.72rem; }
}

@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }

/* ── Vision Test Banner ──────────────────── */

.test-banner {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(135deg, rgba(0,255,213,0.06), rgba(255,69,0,0.04));
}

.test-banner-text h2 { margin-bottom: 8px; }

.test-banner-icons {
  display: flex;
  gap: 16px;
  opacity: 0.2;
}

.test-banner-icons img {
  width: 48px;
  height: 48px;
}

@media (max-width: 640px) {
  .test-banner { flex-direction: column; text-align: center; padding: 24px; }
  .test-banner-icons { display: none; }
}

/* ── Pricing ─────────────────────────────── */

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  border: 1.5px solid var(--border-alpha);
  border-radius: var(--radius-sm);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.pricing-card.selected {
  border-color: rgba(224, 155, 61, 0.5);
  background: rgba(224, 155, 61, 0.05);
  box-shadow: 0 0 32px rgba(224, 155, 61, 0.1);
}

.pricing-card-featured {
  border-color: rgba(224, 155, 61, 0.3);
}

.pricing-card-badge {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--gradient-gold);
  color: var(--bg);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 0;
}

.pricing-card-featured .pricing-card-head {
  margin-top: 16px;
}

.pricing-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.pricing-card-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
}

.pricing-card-forever {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(0, 255, 213, 0.1);
  border: 1px solid rgba(0, 255, 213, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.pricing-card-amount {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
}

.pricing-card.selected .pricing-card-amount { color: var(--gold); }

.pricing-card-period {
  font-size: 0.75rem;
  color: var(--text3);
  font-weight: 400;
}

.pricing-card-detail {
  font-size: 0.75rem;
  color: var(--text3);
  margin-bottom: 4px;
}

.pricing-card-trial {
  font-size: 0.72rem;
  color: var(--success);
  margin-bottom: 4px;
}

.pricing-card-features {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 0.5px solid var(--border-alpha);
}

.pricing-card-features li {
  font-size: 0.75rem;
  color: var(--text2);
  font-weight: 300;
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pricing-card-features li::before {
  content: '\2713';
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 600;
  flex-shrink: 0;
}

.pricing-card-lifetime {
  background: linear-gradient(135deg, rgba(0, 255, 213, 0.04), rgba(0, 155, 138, 0.04));
}

.pricing-cta {
  margin-top: 32px;
  text-align: center;
}

.pricing-legal {
  text-align: center;
  margin-top: 16px;
  font-size: 0.72rem;
  color: var(--text3);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Checkout Plan Selector ─────────────── */

.checkout-plans {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-plan {
  display: block;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  transition: border-color 0.2s, background 0.2s;
}

.checkout-plan:hover {
  border-color: var(--accent2);
  background: var(--glass);
}

.checkout-plan.selected {
  border-color: var(--accent);
  background: rgba(0, 255, 213, 0.06);
}

.checkout-plan input[type="radio"] {
  display: none;
}

.checkout-plan-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
}

.checkout-plan-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text);
}

.checkout-plan-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.checkout-plan-price small {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text2);
}

.checkout-plan-trial {
  width: 100%;
  font-size: 0.62rem;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.checkout-plan-badge {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gradient-gold);
  padding: 2px 6px;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pricing-card {
    padding: 24px 20px;
  }
  /* On mobile, show featured (Annual) first via order */
  .pricing-card-featured { order: -2; }
  .pricing-card-lifetime { order: -1; }
  /* Horizontal price + features layout on mobile for compact cards */
  .pricing-card-price { margin-bottom: 8px; }
  .pricing-card-amount { font-size: 1.4rem; }
}

/* Subscription info badges */
.pricing-card-billing {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 12px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.02);
  border: 0.5px solid var(--border-alpha);
  border-radius: 8px;
}

.pricing-card-billing strong {
  color: var(--text2);
  font-weight: 500;
}

/* ── Testimonials ────────────────────────── */

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

.testimonial-card {
  padding: 24px;
}

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

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text2);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.5;
}

.testimonial-author {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text3);
}

@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ── Footer ──────────────────────────────── */

.footer {
  border-top: 0.5px solid var(--border);
  padding: 60px 0 40px;
  background: var(--bg2);
}

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

.footer-brand .nav-logo { margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 0.85rem; color: var(--text3); max-width: 260px; }

.footer-col h4 {
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text3);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text2);
  font-size: 0.875rem;
  padding: 4px 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 0.5px solid var(--border);
  font-size: 0.75rem;
  color: var(--text3);
}

.footer-disclaimer {
  font-size: 0.7rem;
  color: var(--text3);
  max-width: 800px;
  margin: 24px auto 0;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── FAQ / Accordion ─────────────────────── */

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

.faq-item {
  border-bottom: 0.5px solid var(--border);
}

.faq-item summary {
  padding: 20px 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--text3);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-item p {
  padding: 0 0 20px;
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.6;
}

/* ── Contact Form ────────────────────────── */

.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text3);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent2);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text3);
}

.form-error {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 4px;
}

.flash-success {
  padding: 14px 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 0.5px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.flash-error {
  padding: 14px 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 0.5px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  color: var(--error);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ── Legal Pages ─────────────────────────── */

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal-content h1 {
  margin-bottom: 8px;
}

.legal-content .effective-date {
  color: var(--text3);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  font-size: 0.9rem;
  color: var(--text2);
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* ── Vision Test Pages ───────────────────── */

.test-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
}

.test-container {
  max-width: 560px;
  width: 100%;
  padding: 32px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.test-instruction {
  font-size: 0.85rem;
  color: var(--text3);
  margin-bottom: 24px;
  padding: 12px 16px;
  background: rgba(0, 255, 213, 0.05);
  border: 0.5px solid rgba(0, 255, 213, 0.15);
  border-radius: var(--radius-xs);
}

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

.test-progress-label {
  font-size: 0.8rem;
  color: var(--text3);
  font-weight: 600;
}

.test-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-left: 16px;
  overflow: hidden;
}

.test-progress-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.test-letters {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.15em;
  margin: 40px 0;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-all;
  /* Prevent font sizes from exceeding container width */
  font-size: clamp(14px, 10vw, 86px);
}

.test-plate {
  margin: 32px auto;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  max-width: min(280px, calc(100vw - 80px));
  height: auto;
}

.test-input-group {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.test-input {
  width: 100%;
  max-width: 200px;
  padding: 14px 16px;
  background: var(--glass);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  letter-spacing: 0.1em;
}

.test-input:focus { border-color: var(--accent2); }

.test-acuity {
  font-size: 0.85rem;
  color: var(--text3);
  margin-top: 8px;
}

@media (max-width: 768px) {
  .test-page {
    padding: 80px 16px 40px;
    min-height: auto;
  }

  .test-container {
    padding: 24px 16px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .test-instruction {
    font-size: 0.78rem;
    padding: 10px 12px;
  }

  .test-letters {
    font-size: clamp(12px, 8vw, 72px) !important;
    margin: 20px 0;
    min-height: 50px;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .test-plate {
    width: min(240px, calc(100vw - 80px)) !important;
    height: min(240px, calc(100vw - 80px)) !important;
    margin: 16px auto;
  }

  .test-input-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .test-input {
    max-width: 100%;
    width: 100%;
    font-size: 1rem;
    box-sizing: border-box;
  }

  .test-input-group .btn {
    width: 100%;
    padding: 12px 16px;
  }

  .test-progress {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .test-progress-bar {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 360px) {
  .test-plate {
    width: min(180px, calc(100vw - 64px)) !important;
    height: min(180px, calc(100vw - 64px)) !important;
  }
  .test-container { padding: 16px 12px; }
  .test-letters { font-size: clamp(11px, 7vw, 48px) !important; }
}

/* ── Results Page ────────────────────────── */

.result-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  text-align: center;
}

.result-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 20px;
}

.result-icon.pass {
  background: rgba(34, 197, 94, 0.12);
  border: 2px solid rgba(34, 197, 94, 0.3);
}

.result-icon.fail {
  background: rgba(224, 155, 61, 0.12);
  border: 2px solid rgba(224, 155, 61, 0.3);
}

.result-status {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.result-status.pass { color: var(--success); }
.result-status.fail { color: var(--warning); }

.result-detail {
  padding: 20px;
  margin: 24px 0;
}

.result-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 0.9rem;
}

.result-detail-label { color: var(--text2); }
.result-detail-value { color: var(--text); font-weight: 600; font-family: var(--font-mono); }

.result-cta {
  margin-top: 32px;
}

.result-disclaimer {
  font-size: 0.75rem;
  color: var(--text3);
  margin-top: 24px;
  padding: 12px;
  background: rgba(224, 155, 61, 0.05);
  border: 0.5px solid rgba(224, 155, 61, 0.15);
  border-radius: var(--radius-xs);
}

.result-secondary {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text3);
}

@media (max-width: 480px) {
  .result-container {
    padding: 90px 16px 60px;
  }
  .result-icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }
  .result-status { font-size: 1.2rem; }
  .result-detail { padding: 16px; }
  .result-detail-row { font-size: 0.8rem; }
}

/* ── App Store Badge ─────────────────────── */

.app-store-badge {
  height: 48px;
  transition: opacity 0.2s;
}
.app-store-badge:hover { opacity: 0.8; }

/* ── Hero Trust Badge ────────────────────── */

.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text3);
}

.hero-trust span:first-child {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 1px;
}

/* ── Pain Section ────────────────────────── */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.pain-card {
  padding: 28px 20px;
  text-align: center;
}

.pain-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.solution-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.pain-stat {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--retinal);
  margin-bottom: 8px;
}

.pain-card p {
  font-size: 0.78rem !important;
  line-height: 1.5;
}

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

/* ── Solution Steps ──────────────────────── */

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

.solution-step {
  flex: 1;
  padding: 28px 20px;
  text-align: center;
}

.solution-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0, 255, 213, 0.12);
  border: 1px solid rgba(0, 255, 213, 0.25);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.solution-step h3 {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.solution-step p {
  font-size: 0.75rem !important;
}

.solution-arrow {
  font-size: 1.2rem;
  color: var(--text3);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .solution-steps { flex-direction: column; }
  .solution-arrow { transform: rotate(90deg); }
}

/* ── Free vs Premium Comparison ──────────── */

.comparison-table {
  max-width: 560px;
  margin: 0 auto;
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.comparison-table th {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table td {
  padding: 10px 16px;
  color: var(--text2);
  border-bottom: 0.5px solid var(--border-alpha);
  font-weight: 300;
}

.comparison-table td:first-child {
  color: var(--text);
  font-weight: 400;
}

.comparison-premium {
  color: var(--accent) !important;
  font-weight: 500 !important;
}

/* ── User Stories ─────────────────────────── */

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

.story-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.story-quote {
  font-size: 2rem;
  color: var(--accent);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 8px;
}

.story-text {
  font-size: 0.82rem !important;
  color: var(--text2) !important;
  font-weight: 300;
  line-height: 1.6;
  font-style: italic;
  flex: 1;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 0.5px solid var(--border-alpha);
}

.story-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text);
  flex-shrink: 0;
}

.story-author strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
}

.story-author span {
  font-size: 0.65rem;
  color: var(--text3);
}

.story-result {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(0, 255, 213, 0.05);
  border: 0.5px solid rgba(0, 255, 213, 0.15);
  border-radius: 8px;
}

.story-result-label {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
}

.story-result-value {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
}

@media (max-width: 768px) {
  .stories-grid { grid-template-columns: 1fr; }
}

/* ── Pricing Guarantee ───────────────────── */

.pricing-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--text3);
}

/* ── Final CTA ───────────────────────────── */

.final-cta {
  padding: 60px 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(0,255,213,0.04), rgba(255,69,0,0.03));
}

.final-cta h2 {
  margin-bottom: 12px;
}

.final-cta p {
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 480px) {
  .final-cta { padding: 40px 20px; }
}

/* ── Premium Upsell Modal ────────────────── */

.upsell-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 12, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.upsell-overlay.open { display: flex; }

.upsell-modal {
  max-width: 420px;
  width: 100%;
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  position: relative;
}

.upsell-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none; border: none;
  color: var(--text3);
  font-size: 1.2rem;
  cursor: pointer;
}

.upsell-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.upsell-modal h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 8px;
}

.upsell-modal p {
  font-size: 0.8rem;
  margin-bottom: 20px;
}

.upsell-features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
}

.upsell-features li {
  font-size: 0.78rem;
  color: var(--text2);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upsell-features li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.upsell-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text3);
  margin-bottom: 16px;
}

.upsell-price strong {
  font-size: 1.3rem;
  color: var(--gold);
}

/* ── Global Popup Modals ─────────────────── */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.popup-overlay.open { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.popup-modal {
  max-width: 400px;
  width: 100%;
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  animation: popIn 0.25s ease;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none; border: none;
  color: var(--text3);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.popup-close:hover { color: var(--text); }

.popup-modal h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.popup-modal p {
  font-size: 0.8rem;
  font-weight: 300;
}

.popup-icon-wrap {
  margin-bottom: 12px;
}

.popup-features {
  text-align: left;
  margin: 16px 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid var(--border-alpha);
  border-radius: var(--radius-xs);
}

.popup-feature-item {
  font-size: 0.78rem;
  color: var(--text2);
  font-weight: 300;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.popup-check {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.popup-highlight {
  padding: 14px 16px;
  background: rgba(0, 255, 213, 0.04);
  border: 0.5px solid rgba(0, 255, 213, 0.12);
  border-radius: var(--radius-xs);
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .popup-modal {
    padding: 24px 20px;
    border-radius: var(--radius-sm);
  }
}

/* ── Exercise Catalog ────────────────────── */

.exercise-catalog {
  padding: 120px 0 80px;
}

.exercise-quickstart {
  text-align: center;
  margin-bottom: 40px;
}

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

.exercise-card {
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.exercise-card:hover {
  transform: translateY(-2px);
  border-color: var(--border);
}

.exercise-card.locked {
  opacity: 0.5;
}

.exercise-card.locked:hover {
  opacity: 0.7;
}

.exercise-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.exercise-card-body {
  flex: 1; min-width: 0;
}

.exercise-card-head {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 2px;
}

.exercise-card-name {
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 400;
  color: var(--text);
}

.exercise-card-lock {
  font-size: 0.7rem;
}

.exercise-card-cat {
  font-family: var(--font-mono);
  font-size: 0.55rem; font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.exercise-card-hint {
  font-size: 0.72rem !important;
  color: var(--text3) !important;
  font-weight: 300;
  margin-top: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.exercise-card-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 8px;
}

.exercise-card-dur {
  font-family: var(--font-mono);
  font-size: 0.65rem; font-weight: 400;
  color: var(--text3);
}

.exercise-card-cv {
  font-size: 0.6rem; font-weight: 400;
  color: var(--accent2);
}

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

@media (max-width: 540px) {
  .exercise-grid { grid-template-columns: 1fr; }
  .exercise-card { padding: 16px; }
}

/* ── App Entry Sequence + Scroll Composition ── */

/* Initial load: staggered cinematic entry */
@keyframes entryFade {
  from { opacity: 0; transform: translateY(32px) scale(0.98); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes entrySlideRight {
  from { opacity: 0; transform: translateX(40px) scale(0.96); filter: blur(6px); }
  to   { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 213, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(0, 255, 213, 0.1); }
}

/* Nav entry */
.nav {
  animation: navSlideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Download button ambient pulse */
.nav-download {
  animation: pulseGlow 4s ease-in-out infinite 2s;
}

/* Hero entry — staggered children */
.hero .hero-badge {
  opacity: 0;
  animation: entryFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero h1 {
  opacity: 0;
  animation: entryFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero > .container > .hero-inner > div:first-child > p {
  opacity: 0;
  animation: entryFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero-ctas {
  opacity: 0;
  animation: entryFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

.hero-appstore {
  opacity: 0;
  animation: entryFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.05s forwards;
}

.hero-trust {
  opacity: 0;
  animation: entryFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1.15s forwards;
}

.hero-mockup {
  opacity: 0;
  animation: entrySlideRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

/* Scroll-driven reveal (replaces simple animate-in) */
@keyframes scrollReveal {
  from { opacity: 0; transform: translateY(40px); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes scrollRevealScale {
  from { opacity: 0; transform: scale(0.94) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.animate-in {
  opacity: 0;
}

.animate-in.visible {
  animation: scrollReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }

/* Glass cards scale-in on scroll */
.glass-card.animate-in.visible {
  animation: scrollRevealScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll parallax — sections layer over each other */
.section {
  position: relative;
  z-index: 1;
}

/* Floating elements respond to scroll */
.hero-browser-frame {
  transition: transform 0.1s linear;
}

/* Section divider gradients for cohesive flow */
.section + .section::before {
  content: '';
  position: absolute;
  top: -60px; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg) 40%, var(--bg) 60%, transparent);
  pointer-events: none;
  z-index: -1;
}

/* Pain stats counter animation */
@keyframes countUp {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

.pain-stat {
  opacity: 0;
}

.pain-card.visible .pain-stat {
  animation: countUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Solution steps sequential reveal */
.solution-step:nth-child(1) { animation-delay: 0s; }
.solution-arrow:nth-of-type(1) { animation-delay: 0.15s; }
.solution-step:nth-child(3) { animation-delay: 0.2s; }
.solution-arrow:nth-of-type(2) { animation-delay: 0.35s; }
.solution-step:nth-child(5) { animation-delay: 0.4s; }

/* Story cards stagger */
.story-card:nth-child(1) { animation-delay: 0s; }
.story-card:nth-child(2) { animation-delay: 0.12s; }
.story-card:nth-child(3) { animation-delay: 0.24s; }

/* Pricing cards cascade */
.pricing-card:nth-child(1) { animation-delay: 0s; }
.pricing-card:nth-child(2) { animation-delay: 0.08s; }
.pricing-card:nth-child(3) { animation-delay: 0.16s; }
.pricing-card:nth-child(4) { animation-delay: 0.24s; }

/* Showcase hover lift */
.hero-showcase:hover {
  filter: brightness(1.02);
}

/* Smooth scroll momentum */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (max-width: 768px) {
  .nav-download-wrap { display: none; }
  .nav-links.open .nav-download-wrap {
    display: block;
  }
  .nav-links.open .nav-download {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
}

/* ── Utilities ───────────────────────────── */

.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* ═══════════════════════════════════════════
   MOBILE OPTIMIZATION — Comprehensive
   Prevents all overflow, standardizes icons
   ═══════════════════════════════════════════ */

/* All containers must respect viewport bounds */
.container, .section, .glass-card, .test-page, .test-container,
.result-container, .exercise-catalog {
  max-width: 100%;
  box-sizing: border-box;
}

/* All images and canvases must never exceed their container */
img, canvas, svg { max-width: 100%; height: auto; }

@media (max-width: 768px) {
  /* Consistent icon sizing in cards across all sections */
  .pain-icon, .solution-icon {
    width: 40px;
    height: 40px;
  }

  /* Feature icon boxes standardized */
  .feature-icon {
    width: 44px;
    height: 44px;
  }

  /* Tighter section padding on mobile */
  .section { padding: 48px 0; }
  .container { padding-left: 16px; padding-right: 16px; }

  /* Hero buttons stack on very narrow screens */
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .hero-ctas .btn { width: 100%; max-width: 280px; }

  /* Hero badge text wrap */
  .hero-badge { font-size: 0.55rem; text-align: center; }

  /* Comparison table: prevent overflow */
  .comparison-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .comparison-table table { min-width: 320px; }

  /* Story cards: smaller avatars */
  .story-avatar { width: 36px; height: 36px; font-size: 0.85rem; flex-shrink: 0; }

  /* Popup modals */
  .popup-modal { max-width: calc(100vw - 32px); margin: 16px; }
  .upsell-modal { max-width: calc(100vw - 32px); margin: 16px; }

  /* Exercise cards */
  .exercise-grid { grid-template-columns: 1fr !important; }
  .exercise-card { padding: 16px; }
  .exercise-card-icon { width: 40px; height: 40px; flex-shrink: 0; }
  .exercise-card-icon img { width: 22px; height: 22px; }

  /* Pricing guarantee */
  .pricing-guarantee { flex-direction: column; text-align: center; gap: 8px; }
  .pricing-legal { font-size: 0.6rem; }
}

@media (max-width: 480px) {
  /* Extra-tight padding for small phones */
  .container { padding-left: 12px; padding-right: 12px; }

  /* Hero mockup showcase */
  .hero-showcase { max-width: 100%; height: 340px; }
  .hero h1 { font-size: 1.6rem; }

  /* Pain stat cards */
  .pain-stat { font-size: 1.5rem; }
  .pain-card p { font-size: 0.72rem; }

  /* Pricing cards: compact */
  .pricing-card-features li { font-size: 0.68rem; }
  .pricing-card-billing { font-size: 0.5rem; }

  /* Solution steps */
  .solution-step { padding: 16px; }
  .solution-step h3 { font-size: 0.88rem; }
  .solution-step p { font-size: 0.72rem; }

  /* Story text */
  .story-text { font-size: 0.78rem; }
  .story-result { flex-direction: column; gap: 4px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── Premium Micro-interactions ──────────── */

body { animation: pageIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.feature-card:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); }
[data-theme="light"] .feature-card:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); }

.btn:active { transform: scale(0.96); }

.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::after { width: 100%; }
