/* ========================================
   TARGET CODERS LAB — Premium Dark Theme
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #050510;
  --bg-secondary: #0a0a1a;
  --bg-card: #0d0d20;
  --bg-card-hover: #12122a;
  --border: #1a1a3e;
  --border-light: #252550;
  
  --primary: #00d4ff;
  --primary-dark: #00a3cc;
  --primary-glow: rgba(0, 212, 255, 0.15);
  --secondary: #7c3aed;
  --secondary-glow: rgba(124, 58, 237, 0.15);
  --accent: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.15);
  --success: #10b981;
  --danger: #ef4444;
  
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */
.bg-grid {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
}

.bg-orbs {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--primary-glow), transparent);
  top: 10%; left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--secondary-glow), transparent);
  top: 50%; right: 5%;
  animation-delay: -7s;
}

.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, var(--accent-glow), transparent);
  bottom: 10%; left: 30%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}

.lab-bubbles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.75;
}

.lab-bubble {
  position: absolute;
  bottom: -120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.82) 0 7%, rgba(212, 249, 255, 0.42) 18%, rgba(103, 221, 255, 0.24) 44%, rgba(0, 212, 255, 0.1) 70%, transparent 100%);
  border: 1px solid rgba(185, 240, 255, 0.34);
  box-shadow:
    0 0 26px rgba(0, 212, 255, 0.22),
    inset 0 0 20px rgba(255, 255, 255, 0.16);
  filter: blur(0.15px);
  opacity: 0;
  animation: bubble-rise linear infinite;
}

.lab-bubble::before {
  content: '';
  position: absolute;
  top: 16%;
  left: 20%;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
  filter: blur(1px);
}

.lab-bubble:nth-child(1) {
  left: 8%;
  width: 14px;
  height: 14px;
  animation-duration: 13s;
  animation-delay: 0s;
}

.lab-bubble:nth-child(2) {
  left: 16%;
  width: 9px;
  height: 9px;
  animation-duration: 10s;
  animation-delay: 1.5s;
}

.lab-bubble:nth-child(3) {
  left: 24%;
  width: 18px;
  height: 18px;
  animation-duration: 15s;
  animation-delay: 3.5s;
}

.lab-bubble:nth-child(4) {
  left: 33%;
  width: 11px;
  height: 11px;
  animation-duration: 11s;
  animation-delay: 2s;
}

.lab-bubble:nth-child(5) {
  left: 42%;
  width: 20px;
  height: 20px;
  animation-duration: 16s;
  animation-delay: 4.5s;
}

.lab-bubble:nth-child(6) {
  left: 50%;
  width: 10px;
  height: 10px;
  animation-duration: 9s;
  animation-delay: 1s;
}

.lab-bubble:nth-child(7) {
  left: 58%;
  width: 16px;
  height: 16px;
  animation-duration: 14s;
  animation-delay: 5s;
}

.lab-bubble:nth-child(8) {
  left: 66%;
  width: 8px;
  height: 8px;
  animation-duration: 8.5s;
  animation-delay: 2.8s;
}

@keyframes bubble-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.72);
    opacity: 0;
  }
  10% {
    opacity: 0.52;
  }
  25% {
    transform: translate3d(22px, -22vh, 0) scale(0.92);
  }
  50% {
    transform: translate3d(-18px, -48vh, 0) scale(1);
    opacity: 0.68;
  }
  75% {
    transform: translate3d(26px, -74vh, 0) scale(1.08);
    opacity: 0.4;
  }
  100% {
    transform: translate3d(-10px, -112vh, 0) scale(1.14);
    opacity: 0;
  }
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 120px 0;
  position: relative;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(5, 5, 16, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.logo-icon {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  color: var(--primary);
  font-weight: 700;
}

.logo-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-highlight {
  color: var(--primary);
}

.logo-lab {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9em;
  margin-left: 2px;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.2));
  transition: var(--transition);
}

.nav-logo-img:hover {
  filter: drop-shadow(0 0 14px rgba(0, 212, 255, 0.4));
}

.hero-logo-img {
  margin: 0 auto 28px;
  display: flex;
  justify-content: center;
}

.hero-logo-img img {
  width: min(420px, 72vw);
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 28px rgba(0, 212, 255, 0.28));
}

.nav-cta {
  padding: 10px 24px;
  background: var(--primary);
  color: var(--bg-primary);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-cta:hover {
  background: #fff;
  transform: translateY(-1px);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-glow {
  animation: glow-pulse 3s infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.5), 0 0 80px rgba(0, 212, 255, 0.2); }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 6px 16px;
  background: var(--primary-glow);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.section-title-center {
  text-align: center;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: center;
  line-height: 1.7;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* ── VSL-First Hero (clean cinematic viewport) ── */
.hero.hero-vsl {
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 72px 0 28px;
  display: flex;
  position: relative;
}

.hero.hero-vsl::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(0, 212, 255, 0.09), transparent 26%),
    radial-gradient(circle at 50% 52%, rgba(124, 58, 237, 0.08), transparent 34%);
  pointer-events: none;
}

.hero.hero-vsl::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 52%, rgba(5, 5, 16, 0.08), rgba(5, 5, 16, 0.58));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

body.vsl-focus-active .hero.hero-vsl::after {
  opacity: 1;
}

body.vsl-focus-active .nav,
body.vsl-focus-active .hero-scroll-hint,
body.vsl-focus-active .section-stats {
  opacity: 0.14;
  transition: opacity 0.35s ease, filter 0.35s ease;
  filter: blur(2px);
}

body.vsl-focus-active .bg-grid,
body.vsl-focus-active .bg-orbs {
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

.hero.hero-vsl .container {
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 18px 24px 52px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.34), rgba(10, 15, 28, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}

.hero-compact-header {
  margin-bottom: 18px;
}

.hero-logo-sm {
  margin-bottom: 8px;
}

.hero-logo-sm img {
  width: min(118px, 24vw);
}

.hero-title.hero-title-compact {
  font-size: clamp(1rem, 2.2vw, 1.32rem);
  font-weight: 600;
  line-height: 1.32;
  margin-bottom: 0;
  letter-spacing: -0.005em;
  color: var(--text-muted);
  max-width: 760px;
}

.hero-title.hero-title-compact .text-gradient {
  font-weight: 800;
}

.hero.hero-vsl .hero-stats {
  margin-top: 0;
  margin-bottom: 0;
}

/* Scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.28;
  transition: opacity 0.3s;
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}

.hero-scroll-hint:hover {
  opacity: 0.7;
}

.hero-scroll-hint span {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-scroll-hint svg {
  color: var(--text-dim);
}

@media (min-width: 1025px) {
  .hero.hero-vsl {
    padding: 88px 0 22px;
  }

  .hero.hero-vsl .container {
    max-width: 1380px;
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(760px, 1fr);
    grid-template-areas:
      'header video'
      '. cta';
    align-items: center;
    gap: 28px 42px;
    padding: 34px 40px 52px;
  }

  .hero-compact-header {
    grid-area: header;
    margin-bottom: 0;
    text-align: left;
    align-self: center;
  }

  .hero-badge {
    margin: 0 0 14px;
  }

  .hero-logo-sm {
    margin-bottom: 14px;
  }

  .hero-logo-sm img {
    width: min(168px, 13vw);
  }

  .hero-title.hero-title-compact {
    font-size: clamp(1.5rem, 2vw, 2.15rem);
    line-height: 1.12;
    max-width: 420px;
    margin: 0;
    color: var(--text);
    text-wrap: balance;
  }

  .hero-title.hero-title-compact .text-gradient {
    display: inline;
  }

  .hero.hero-vsl .vsl-player-wrap {
    grid-area: video;
  }

  .hero.hero-vsl .vsl-below-cta {
    grid-area: cta;
    justify-self: center;
    width: min(820px, 100%);
    padding-top: 18px;
  }

  .hero-scroll-hint {
    bottom: 10px;
    opacity: 0.18;
  }
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.hero-badge {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  margin: 0 auto 4px;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-sub strong {
  color: var(--text);
}

.hero-sub em {
  color: var(--primary);
  font-style: normal;
  font-weight: 600;
}

.hero-cta {
  margin-bottom: 60px;
}

.hero-cta-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 12px;
}

/* Stats section (below hero fold) */
.section-stats {
  padding: 48px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.section-stats .hero-stats {
  max-width: 760px;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 700px;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat-number, .stat-number-text {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-plus {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
  display: block;
}

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

/* ========================================
   STORY SECTION
   ======================================== */
.section-story {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

.story-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.story-text strong {
  color: var(--text);
}

.story-highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--primary-glow);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius);
  color: var(--text) !important;
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: 500;
  margin-top: 32px;
}

.story-highlight em {
  color: var(--primary);
  font-style: normal;
  font-weight: 700;
}

.highlight-bar {
  display: block;
  width: 4px;
  min-height: 100%;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
  align-self: stretch;
}

/* Terminal */
.terminal {
  background: #0c0c1d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ef4444; }
.terminal-dots span:nth-child(2) { background: #f59e0b; }
.terminal-dots span:nth-child(3) { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-x: auto;
}

.code-line {
  white-space: nowrap;
}

.code-line.indent {
  padding-left: 24px;
}

.code-keyword { color: #c084fc; }
.code-var { color: #e2e8f0; }
.code-key { color: #67e8f9; }
.code-string { color: #86efac; }
.code-number { color: #fbbf24; }
.code-func { color: #60a5fa; }
.code-comment { color: #4b5563; }

.cursor-blink {
  color: var(--primary);
  animation: blink 1s infinite;
  font-weight: 700;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ========================================
   MIRROR SECTION
   ======================================== */
.section-mirror {
  text-align: center;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.pain-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  transition: var(--transition);
}

.pain-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.pain-icon {
  color: var(--primary);
  margin-bottom: 16px;
  opacity: 0.8;
}

.pain-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pain-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.mirror-conclusion {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 48px;
  line-height: 1.7;
}

.mirror-conclusion strong {
  color: var(--text);
}

/* ========================================
   SOLUTIONS SECTION
   ======================================== */
.section-solutions {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

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

.solution-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.solution-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.solution-icon {
  color: var(--primary);
  margin-bottom: 20px;
}

.solution-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.solution-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================
   PROOF SECTION
   ======================================== */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.proof-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.proof-item:hover {
  border-color: var(--border-light);
}

.proof-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.proof-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.proof-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========================================
   QUIZ CTA SECTION
   ======================================== */
.section-quiz-cta {
  text-align: center;
  padding: 120px 0 140px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #080818 100%);
}

.quiz-features {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.quiz-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========================================
   QUIZ OVERLAY — Conversion Engine v3
   ======================================== */
.quiz-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(5, 5, 16, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
}

.quiz-overlay.active {
  opacity: 1;
  visibility: visible;
}

.quiz-container {
  width: 100%;
  max-width: 680px;
  padding: 40px 24px;
  position: relative;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.quiz-close {
  position: fixed;
  top: 20px; right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.quiz-close:hover {
  color: var(--text);
  border-color: var(--border-light);
}

/* Progress */
.quiz-progress {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-step-indicator {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 32px;
}

/* Steps */
.quiz-steps {
  position: relative;
}

.quiz-step {
  display: none;
  text-align: center;
}

.quiz-step.active {
  display: block;
  animation: quizFadeIn 0.5s ease forwards;
}

@keyframes quizFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-emoji {
  font-size: 3rem;
  margin-bottom: 20px;
}

.quiz-question {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
  color: var(--text);
}

.quiz-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.quiz-micro-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 16px;
  line-height: 1.5;
}

/* ── Welcome step ── */
.quiz-welcome-features {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 28px 0;
  flex-wrap: wrap;
}

.quiz-wf {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.quiz-wf span {
  font-size: 1.1rem;
}

/* ── Quiz Options (redesigned) ── */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  width: 100%;
  position: relative;
}

.quiz-option:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.quiz-option.selected {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateX(6px);
}

.quiz-option.selected .quiz-option-check {
  opacity: 1;
  transform: scale(1);
}

.quiz-option-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.quiz-option-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quiz-option-text {
  font-weight: 600;
  font-size: 0.95rem;
}

.quiz-opt-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 400;
  line-height: 1.3;
}

.quiz-option-check {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

/* ── Social Proof blocks ── */
.quiz-social-proof {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--bg-card);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  text-align: left;
}

.quiz-social-proof.quiz-sp-mini {
  margin-top: 20px;
  padding: 16px 20px;
}

.quiz-sp-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  margin: 0 0 8px;
}

.quiz-sp-author {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Insight / Emotional bridge step ── */
.quiz-insight-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  padding: 32px 28px;
  margin: 20px 0;
  text-align: left;
}

.quiz-insight-hook {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.quiz-insight-pain {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.quiz-insight-divider {
  width: 48px;
  height: 2px;
  background: var(--primary);
  margin: 20px 0;
  border-radius: 1px;
}

.quiz-insight-promise {
  font-size: 1rem;
  color: var(--primary-light, #818cf8);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── Textarea step ── */
.quiz-textarea-wrap {
  margin-top: 24px;
  position: relative;
}

.quiz-textarea {
  width: 100%;
  min-height: 140px;
  padding: 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: var(--transition);
}

.quiz-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.quiz-textarea::placeholder {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.5;
}

.quiz-textarea-counter {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 8px;
  font-family: var(--font-mono);
  transition: color 0.2s;
}

.quiz-textarea-counter.enough {
  color: var(--success, #10b981);
}

/* ── Authority / Team selling step ── */
.quiz-auth-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
  text-align: left;
}

.quiz-auth-point {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: flex-start;
  transition: var(--transition);
}

.quiz-auth-point:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.quiz-auth-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.quiz-auth-point strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
}

.quiz-auth-point p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.quiz-auth-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
  animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* ── Investment reveal step ── */
.quiz-investment-box {
  margin: 28px 0;
  padding: 32px 28px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius);
  text-align: center;
}
.quiz-investment-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.quiz-investment-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 20px;
}
.quiz-investment-context {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto;
}
.quiz-investment-align {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ── Pain flash (after time_wasted) ── */
.quiz-pain-flash {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: #fca5a5;
  line-height: 1.6;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.quiz-pain-flash.visible {
  opacity: 1;
  transform: translateY(0);
}

.quiz-pain-flash span {
  margin-right: 8px;
}

/* ── Capture step ── */
.quiz-capture-urgency {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.quiz-capture-urgency span {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── Quiz Form ── */
.quiz-form {
  margin-top: 28px;
  text-align: left;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
  color: var(--text-dim);
}

.form-group input.shake {
  animation: shakeField 0.5s ease;
  border-color: #ef4444;
}

@keyframes shakeField {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* ── Results step ── */
.quiz-results-container {
  text-align: center;
}

.quiz-result-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.quiz-result-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quiz-result-badge.tier-max {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 88, 12, 0.15));
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.quiz-result-badge.tier-high {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.quiz-result-badge.tier-mid {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.quiz-result-badge.tier-eval {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Score ring */
.quiz-result-score {
  position: relative;
  width: 120px;
  height: 120px;
}

.quiz-score-ring {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.quiz-score-bg {
  stroke: var(--border);
}

.quiz-score-fill {
  stroke-linecap: round;
  transition: stroke-dasharray 1.5s ease;
}

.quiz-score-fill.tier-max { stroke: #f59e0b; }
.quiz-score-fill.tier-high { stroke: var(--primary); }
.quiz-score-fill.tier-mid { stroke: #10b981; }
.quiz-score-fill.tier-eval { stroke: var(--text-dim); }

.quiz-score-number {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

/* Result body */
.quiz-result-body {
  margin-bottom: 28px;
}

.quiz-result-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 24px;
}

/* Pain numbers */
.quiz-result-pain {
  padding: 24px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.quiz-result-pain h4 {
  font-size: 1rem;
  color: #fca5a5;
  margin: 0 0 16px;
}

.quiz-pain-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.quiz-pain-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.quiz-pain-num strong {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--text);
}

.quiz-pain-num span {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quiz-pain-num.quiz-pain-highlight strong {
  color: #f87171;
  font-size: 1.7rem;
}

.quiz-pain-arrow {
  color: var(--text-dim);
  font-size: 1.2rem;
}

.quiz-pain-msg {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Result action */
.quiz-result-action {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
}

.quiz-result-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.quiz-result-action p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Next steps */
.quiz-result-next {
  margin: 28px 0;
  text-align: left;
}

.quiz-result-next h4 {
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 16px;
}

.quiz-result-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-result-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.quiz-rs-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.quiz-result-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Result urgency */
.quiz-result-urgency {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius);
  margin-bottom: 24px;
  text-align: left;
  align-items: flex-start;
}

.quiz-result-urgency span {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.quiz-result-urgency p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CTA Button variants ── */
.quiz-cta-btn {
  margin-top: 24px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── Shake animation ── */
.shake {
  animation: shakeField 0.5s ease;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ========================================
   ANIMATIONS
   ======================================== */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.animate-in:nth-child(2) { transition-delay: 0.1s; }
.animate-in:nth-child(3) { transition-delay: 0.2s; }
.animate-in:nth-child(4) { transition-delay: 0.3s; }
.animate-in:nth-child(5) { transition-delay: 0.4s; }
.animate-in:nth-child(6) { transition-delay: 0.5s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
  
  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .story-visual {
    order: -1;
  }
  
  .pain-grid {
    grid-template-columns: 1fr;
  }
  
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  
  .proof-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .stat-divider {
    width: 40px;
    height: 1px;
  }
  
  .quiz-features {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-cta {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  .quiz-container {
    padding: 20px 16px;
  }
  
  .quiz-question {
    font-size: 1.2rem;
  }
  
  .quiz-option {
    padding: 14px 18px;
  }

  .quiz-welcome-features {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .quiz-insight-card {
    padding: 24px 20px;
  }

  .quiz-insight-hook {
    font-size: 1.1rem;
  }

  .quiz-auth-point {
    padding: 16px;
  }

  .quiz-pain-numbers {
    gap: 8px;
  }

  .quiz-pain-num strong {
    font-size: 1.2rem;
  }

  .quiz-pain-num.quiz-pain-highlight strong {
    font-size: 1.3rem;
  }

  .quiz-result-urgency {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-logo-img {
    margin: 0 auto 24px;
  }

  .hero-logo-sm {
    margin: 0 auto 4px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-title.hero-title-compact {
    font-size: 0.78rem;
  }

  .hero-scroll-hint {
    bottom: 10px;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .btn-lg {
    padding: 16px 24px;
    font-size: 0.95rem;
  }
  
  .hero-badge {
    font-size: 0.75rem;
  }

  .hero-stats {
    padding: 20px 16px;
    gap: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .nav-container {
    padding: 0 16px;
  }

  .quiz-investment-amount {
    font-size: 2.2rem;
  }
}
