/* ============================================
   KVWarden Landing Page
   softlight.com design language
   + Apple-style immersive scroll intro
   ============================================ */

:root {
  --bg-primary: #0C0B0F;
  --bg-secondary: #111015;
  --bg-card: #1A181E;
  --bg-card-hover: #201E26;
  --text-primary: #F0ECF0;
  --text-secondary: #9B95A3;
  --text-muted: #6B6573;
  --accent: #8B7CF6;
  --accent-soft: rgba(139, 124, 246, 0.15);
  --accent-glow: rgba(139, 124, 246, 0.3);
  --accent-blue: #60A5FA;
  --accent-green: #6BCB77;
  --accent-purple: #A78BFA;
  --accent-mauve: #B59BA0;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.6s ease;
}

/* softlight-style zone transitions */
body.zone-content { background-color: #0E0D12; }
body.zone-lower   { background-color: #08070B; }
body.dark-mode    { background-color: #06050A; transition: background-color 0.6s ease; }


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

em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* ============================================
   CURSOR GLOW (softlight premium spotlight)
   ============================================ */

.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 124, 246, 0.045) 0%, transparent 55%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.cursor-glow.active {
  opacity: 1;
}

/* ============================================
   ZONE VIGNETTE — softlight immersive focus
   ============================================ */

.zone-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  will-change: opacity;
  background: radial-gradient(
    ellipse 55% 48% at 50% 50%,
    transparent 0%,
    rgba(6, 5, 10, 0.12) 35%,
    rgba(6, 5, 10, 0.45) 60%,
    rgba(6, 5, 10, 0.78) 80%,
    rgba(6, 5, 10, 0.92) 100%
  );
}

/* ============================================
   TORCH CURSOR — reveals hidden nodes
   ============================================ */

.cursor-torch {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 248, 235, 0.14) 0%,
    rgba(255, 240, 220, 0.07) 25%,
    rgba(255, 230, 200, 0.025) 45%,
    transparent 60%
  );
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 5;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.cursor-torch.active {
  opacity: 1;
}

/* ============================================
   HIDDEN RESEARCH MECHANISM NODES (easter eggs)
   ============================================ */

.egg-node {
  position: absolute;
  padding: 6px 14px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 500;
  color: rgba(139, 124, 246, 0.85);
  background: rgba(139, 124, 246, 0.06);
  border: 1px solid rgba(139, 124, 246, 0.12);
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 6;
}

.egg-node::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(139, 124, 246, 0.2), transparent 50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
}

.egg-node:hover {
  background: rgba(139, 124, 246, 0.15);
  border-color: rgba(139, 124, 246, 0.35);
  transform: scale(1.08);
}

.egg-node:hover::before {
  opacity: 1;
}

/* Money-saved reward float */
.egg-reward {
  position: fixed;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 15px;
  font-weight: 600;
  color: #6BCB77;
  pointer-events: none;
  z-index: 100;
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(107, 203, 119, 0.4);
  animation: float-reward 1.8s ease-out forwards;
}

@keyframes float-reward {
  0% { opacity: 1; transform: translateY(0) translateX(-50%) scale(1); }
  30% { opacity: 1; transform: translateY(-30px) translateX(-50%) scale(1.15); }
  100% { opacity: 0; transform: translateY(-100px) translateX(-50%) scale(0.85); }
}

/* ============================================
   IMMERSIVE INTRO STAGE
   ============================================ */

.intro-stage {
  height: 700vh;
  position: relative;
}


.intro-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--bg-primary);
  will-change: transform;
  z-index: 5;
}

#introCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

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

.intro-logo {
  position: absolute;
  top: 28px;
  left: 40px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  z-index: 20;
  opacity: 0.8;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 20;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-dot {
  animation: scroll-bob 1.5s ease-in-out infinite;
}

@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(4px); opacity: 0.3; }
}

/* Intro text overlays */
.intro-text-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 15;
  pointer-events: none;
  opacity: 0;
}

.ov-big {
  font-size: clamp(48px, 10vw, 100px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.ov-giant {
  font-size: clamp(64px, 14vw, 140px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.ov-pct { font-size: 0.6em; color: var(--accent); }
.ov-slash { font-size: 0.5em; color: var(--text-muted); font-weight: 400; }

.ov-sub {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Hero reveal */
.intro-hero-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 15;
  pointer-events: none;
  opacity: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: 60px;
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(107, 203, 119, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 110px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-align: center;
}

/* Shimmer sweep on hero italic */
.hero-title em {
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent-blue) 20%,
    rgba(255, 255, 255, 0.85) 50%,
    var(--accent-blue) 80%,
    var(--accent) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 200% center; }
  50% { background-position: -200% center; }
}

.hero-line { display: block; }

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 36px;
}

.hero-nav-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: rgba(170, 140, 160, 0.2);
  backdrop-filter: blur(4.6px);
  -webkit-backdrop-filter: blur(4.6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
  letter-spacing: -0.01em;
  pointer-events: all;
}

.hero-nav-btn:hover {
  background: rgba(170, 140, 160, 0.35);
  transform: translateY(-1px);
}

.hero-nav-btn-accent {
  background: rgba(139, 124, 246, 0.25);
  border-color: rgba(139, 124, 246, 0.2);
}

.hero-nav-btn-accent:hover {
  background: rgba(139, 124, 246, 0.4);
}

/* ============================================
   FIXED NAVBAR
   ============================================ */

.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  opacity: 0;
  transform: translate3d(0, -10px, 0);
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
  background: rgba(12, 11, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.fixed-nav.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: all;
}

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

.nav-logo { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 8px; }

.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  letter-spacing: -0.01em;
}

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

.nav-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  letter-spacing: -0.01em;
}

.nav-btn-secondary { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); }
.nav-btn-secondary:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.nav-btn-primary { background: var(--text-primary); color: var(--bg-primary); }
.nav-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(240, 236, 240, 0.15); }

/* ============================================
   EXPANDING CONTENT CONTAINER (softlight signature)
   ============================================ */

.scroll-content {
  position: relative;
  z-index: 2;
  background: var(--bg-secondary);
  width: 100%;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

/* Zone transition gradient between intro and content */
.scroll-content::before {
  content: '';
  display: block;
  height: 120px;
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
  margin: 0 -40px;
  pointer-events: none;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

/* Intro / Architecture text sections */
.intro-section,
.arch-section {
  padding: 180px 40px;
}

.intro-inner,
.arch-inner {
  max-width: 900px;
  margin: 0 auto;
}

.intro-eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 24px;
}

.scroll-highlight-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.scroll-highlight-text .scroll-word {
  transition: opacity 0.15s ease;
  opacity: 0.15;
}

/* ============================================
   PULL QUOTES (softlight editorial DNA)
   ============================================ */

.pull-quote-section {
  padding: 100px 40px;
  max-width: 100%;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.8vw, 44px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-align: center;
  position: relative;
  padding: 0 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.pull-quote::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  margin: 0 auto 40px;
  border-radius: 2px;
}

/* ============================================
   FEATURE ROWS
   ============================================ */

.feature-row {
  padding: 120px 40px;
  position: relative;
  overflow: hidden;
}

.feature-row > .feature-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Alternating section gradient meshes */
.section-gradient {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.feature-row.in-view .section-gradient {
  opacity: 1;
}

.section-gradient-blue {
  background: rgba(96, 165, 250, 0.06);
  top: -100px;
  left: -100px;
}

.section-gradient-purple {
  background: rgba(167, 139, 250, 0.06);
  top: -100px;
  right: -100px;
}

.section-gradient-green {
  background: rgba(107, 203, 119, 0.05);
  bottom: -100px;
  left: -100px;
}

/* ============================================
   SOFTLIGHT ZONE TRANSITIONS
   Sections start dark, transition to their
   zone color when entering viewport.
   .zone-active is toggled by IntersectionObserver.
   ============================================ */

/* Light zones — noticeable warm lift */
.zone-light {
  background: var(--bg-secondary);
  transition: background-color 0.7s ease, color 0.7s ease;
}

.zone-light.zone-active {
  background: #1F1D2A;
}

/* Text shifts slightly brighter in light zones */
.zone-light.zone-active .feature-desc,
.zone-light.zone-active .card-label,
.zone-light.zone-active .metric-label {
  color: #B0AAB8;
  transition: color 0.7s ease;
}

/* Dark zones — full-page immersive sections */
.zone-dark {
  background: var(--bg-secondary);
  transition: background-color 0.7s ease;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.zone-dark.zone-active {
  background: #06050A;
}

/* Full-page centering for dark zone content */
.zone-dark.pull-quote-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
}

.zone-dark.intro-section,
.zone-dark.arch-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
}

/* Pull quotes get a subtle top/bottom line when active */
.zone-dark.zone-active.pull-quote-section {
  border-top: 1px solid rgba(139, 124, 246, 0.08);
  border-bottom: 1px solid rgba(139, 124, 246, 0.08);
}

.pull-quote-section {
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.7s ease, border-color 0.7s ease;
}

/* Softlight alt background (used via class on sections that don't zone-toggle) */
.feature-section-alt {
  /* handled by zone-light now */
}

.feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.feature-row-reverse .feature-inner { direction: rtl; }
.feature-row-reverse .feature-inner > * { direction: ltr; }

.feature-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-title {
  font-family: var(--font-body);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ============================================
   FEATURE CARDS (glass morphism + 3D tilt)
   ============================================ */

.feature-card,
.code-window {
  position: relative;
  background: rgba(26, 24, 30, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  transition: border-color var(--transition-base);
  transform-style: preserve-3d;
  will-change: transform;
}

.code-window {
  padding: 0;
}

/* Gradient border glow on hover */
.card-border-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(139, 124, 246, 0.35),
    transparent 40%,
    transparent 60%,
    rgba(96, 165, 250, 0.3)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.tilt-card:hover .card-border-glow {
  opacity: 1;
}

.tilt-card:hover {
  border-color: transparent;
}

.card-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.card-glow-blue { background: var(--accent-blue); top: -60px; right: -40px; }
.card-glow-purple { background: var(--accent-purple); top: -60px; right: -40px; }
.card-glow-green { background: var(--accent-green); top: -60px; right: -40px; }

.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.card-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: -0.02em;
}

.card-metric { margin-bottom: 28px; }

.metric-number {
  display: block;
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.metric-label { font-size: 13px; color: var(--text-muted); letter-spacing: -0.01em; }

/* Card visualizations */
.card-viz { display: flex; gap: 6px; align-items: flex-end; height: 60px; }

.viz-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent-blue), rgba(96, 165, 250, 0.2));
  animation: bar-grow 1.5s ease forwards;
  opacity: 0;
}

.viz-bar-1 { height: 35%; animation-delay: 0.1s; }
.viz-bar-2 { height: 55%; animation-delay: 0.15s; }
.viz-bar-3 { height: 45%; animation-delay: 0.2s; }
.viz-bar-4 { height: 80%; animation-delay: 0.25s; }
.viz-bar-5 { height: 65%; animation-delay: 0.3s; }
.viz-bar-6 { height: 90%; animation-delay: 0.35s; }
.viz-bar-7 { height: 75%; animation-delay: 0.4s; }
.viz-bar-8 { height: 100%; animation-delay: 0.45s; }

@keyframes bar-grow {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

/* Tiers */
.card-tiers { display: flex; flex-direction: column; gap: 12px; }
.tier { display: flex; align-items: center; gap: 12px; }

.tier-name {
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  width: 70px; flex-shrink: 0;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.tier-bar { flex: 1; height: 8px; background: rgba(255, 255, 255, 0.04); border-radius: 4px; overflow: hidden; }
.tier-fill { height: 100%; border-radius: 4px; transition: width 1.5s ease; }
.tier-gpu .tier-fill { background: linear-gradient(90deg, var(--accent-purple), var(--accent)); }
.tier-cpu .tier-fill { background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple)); }
.tier-ssd .tier-fill { background: linear-gradient(90deg, rgba(96, 165, 250, 0.4), var(--accent-blue)); }

/* Tenants */
.card-tenants { display: flex; gap: 8px; }

.tenant-block {
  flex: 1; padding: 16px 12px; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; font-size: 12px; font-weight: 500;
  transition: transform var(--transition-fast);
}

.tenant-block:hover { transform: translateY(-2px); }
.tenant-a { background: rgba(139, 124, 246, 0.12); border: 1px solid rgba(139, 124, 246, 0.2); color: var(--accent); }
.tenant-b { background: rgba(96, 165, 250, 0.12); border: 1px solid rgba(96, 165, 250, 0.2); color: var(--accent-blue); }
.tenant-c { background: rgba(107, 203, 119, 0.12); border: 1px solid rgba(107, 203, 119, 0.2); color: var(--accent-green); }
.tenant-pct { font-size: 18px; font-weight: 300; letter-spacing: -0.03em; }

/* ============================================
   STATS SECTION (frosted glass panel)
   ============================================ */

.stats-section {
  padding: 80px 40px;
  background: var(--bg-secondary);
  transition: background-color 0.7s ease;
}

.stats-section.zone-active {
  background: #1A1926;
}

.stats-glass {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.stats-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 60% at 20% 50%, rgba(139, 124, 246, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 50%, rgba(96, 165, 250, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.stat-item { text-align: center; flex: 1; }

.stat-number {
  display: block;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: 14px; color: var(--text-muted); letter-spacing: -0.01em; }
.stat-divider { width: 1px; height: 60px; background: var(--border); }

/* ============================================
   TECH / CODE SECTION
   ============================================ */

.tech-section { padding: 140px 40px; position: relative; background: var(--bg-secondary); transition: background-color 0.7s ease; }
.tech-section.zone-active { background: #0A0914; }
.tech-section > .tech-inner { max-width: 1200px; margin: 0 auto; }

/* Dot grid background */
.dot-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.tech-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.code-dots {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green { background: #28C840; }

.code-block {
  padding: 24px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow-x: auto;
}

.code-keyword { color: var(--accent); }
.code-string { color: var(--accent-green); }
.code-number { color: var(--accent-blue); }
.code-comment { color: var(--text-muted); }

/* ============================================
   LOWER SECTION
   ============================================ */

.lower-section {
  background: #0A090D;
  padding: 160px 40px 80px;
  position: relative;
}

.lower-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, var(--bg-secondary), #0A090D);
  pointer-events: none;
}
.lower-inner { max-width: 900px; margin: 0 auto; }

.lower-eyebrow {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 20px;
}

.lower-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400; line-height: 1.15;
  letter-spacing: -0.03em; margin-bottom: 24px;
}

.lower-title em {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lower-desc { font-size: 17px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 60px; }

.built-on {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 80px;
}

.built-on-label {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); margin-bottom: 32px; text-align: center;
}

.engine-logos { display: flex; align-items: center; justify-content: center; gap: 40px; }
.engine-name { font-size: 20px; font-weight: 600; color: var(--text-secondary); letter-spacing: -0.02em; }
.engine-divider { width: 1px; height: 24px; background: var(--border); }

.team-block { padding: 80px 0; text-align: center; }

.lower-desc-large {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400; line-height: 1.5;
  letter-spacing: -0.02em; color: var(--text-primary);
  margin-bottom: 40px; font-style: italic;
}

.lower-cta {
  display: inline-flex; align-items: center;
  padding: 16px 36px; font-size: 15px; font-weight: 600;
  background: var(--text-primary); color: var(--bg-primary);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast); letter-spacing: -0.01em;
}

.lower-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(240, 236, 240, 0.15);
}

/* Waitlist */
.waitlist-block { padding: 80px 0 0; text-align: center; border-top: 1px solid var(--border); }

.waitlist-label {
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 24px;
}

.waitlist-form { position: relative; max-width: 440px; margin: 0 auto 16px; }

.waitlist-input {
  width: 100%; height: 60px;
  padding: 0 140px 0 24px;
  font-size: 16px; font-family: var(--font-body);
  color: var(--text-primary); background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill); outline: none;
  transition: border-color var(--transition-fast);
}

.waitlist-input::placeholder { color: var(--text-muted); }
.waitlist-input:focus { border-color: var(--accent); }

.waitlist-btn {
  position: absolute; right: 4px; top: 4px;
  height: 52px; padding: 0 28px;
  font-size: 14px; font-weight: 600; font-family: var(--font-body);
  background: var(--text-primary); color: var(--bg-primary);
  border: none; border-radius: var(--radius-pill);
  cursor: pointer; transition: all var(--transition-fast);
}

.waitlist-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(240, 236, 240, 0.15); }
.waitlist-btn .btn-check { display: none; }
.waitlist-form.success .waitlist-input { border-color: var(--accent-green); }
.waitlist-form.success .waitlist-btn { background: var(--accent-green); color: white; }
.waitlist-form.success .btn-text { display: none; }
.waitlist-form.success .btn-check { display: block; }
.waitlist-note { font-size: 13px; color: var(--text-muted); }

/* ============================================
   FOOTER
   ============================================ */

.footer { background: #0A090D; padding: 40px; border-top: 1px solid var(--border); }

.footer-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.footer-copy { font-size: 13px; color: var(--text-muted); opacity: 0.6; }
.footer-links { display: flex; gap: 24px; }
.footer-link { font-size: 13px; color: var(--text-muted); opacity: 0.6; transition: opacity var(--transition-fast); }
.footer-link:hover { opacity: 1; }

/* ============================================
   SCROLL REVEAL + STAGGER ANIMATIONS
   ============================================ */

.feature-row,
.pull-quote-section,
.stats-section,
.tech-section,
.research-block,
.built-on,
.team-block,
.waitlist-block {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-row.in-view,
.pull-quote-section.in-view,
.stats-section.in-view,
.tech-section.in-view,
.research-block.in-view,
.built-on.in-view,
.team-block.in-view,
.waitlist-block.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-group .stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-group.in-view .stagger-item:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: none; }
.stagger-group.in-view .stagger-item:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: none; }
.stagger-group.in-view .stagger-item:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: none; }
.stagger-group.in-view .stagger-item:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: none; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .feature-inner, .tech-inner { grid-template-columns: 1fr; gap: 48px; }
  .feature-row-reverse .feature-inner { direction: ltr; }
  .stats-inner { flex-wrap: wrap; gap: 40px; }
  .stat-item { flex-basis: 45%; }
  .stat-divider { display: none; }
}

@media (max-width: 768px) {
  .intro-logo { left: 20px; top: 20px; }
  .scroll-content { width: 100vw; border-radius: 0; }
  .nav-inner { padding: 0 20px; }
  .nav-links { gap: 4px; }
  .nav-link { display: none; }
  .intro-section, .arch-section { padding: 100px 20px; }
  .pull-quote-section { padding: 60px 20px; }
  .zone-dark { min-height: 70vh; }
  .zone-dark.pull-quote-section { padding: 40px 20px; }
  .cursor-torch { display: none; }
  .egg-node { display: none; }
  .feature-row { padding: 60px 20px; }
  .stats-section { padding: 60px 20px; }
  .stats-glass { padding: 40px 20px; }
  .stat-item { flex-basis: 100%; }
  .tech-section { padding: 80px 20px; }
  .lower-section { padding: 100px 20px 60px; }
  .engine-logos { flex-wrap: wrap; gap: 20px; }
  .engine-divider { display: none; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cursor-glow { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 40px; }
  .card-tenants { flex-direction: column; }
  .code-block { font-size: 12px; padding: 16px; }
}
