/* ===================================
   Coridor Marketing Site
   =================================== */

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

:root {
  --bg: #0a0a0f;
  --bg-raised: #111118;
  --bg-highlight: #0d1117;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.12);
  --green-glow: rgba(34, 197, 94, 0.25);
  --purple: #a855f7;
  --purple-dim: rgba(168, 85, 247, 0.1);
  --white: #f1f5f9;
  --text: #cbd5e1;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1120px;
  --narrow: 720px;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; position: relative; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link { position: absolute; top: -100px; left: 8px; background: var(--green); color: var(--bg); padding: 8px 16px; border-radius: 4px; font-weight: 600; z-index: 1000; }
.skip-link:focus { top: 8px; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: var(--narrow); }
.container.mid-wide { max-width: 920px; }
.container.mid-wide .prose { max-width: 840px; }
.container.mid-wide .prose p { font-size: 1rem; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--white); letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; margin-bottom: 20px; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }

.prose { max-width: 640px; }
.prose p { font-size: 1.05rem; line-height: 1.7; color: var(--text); margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.section-kicker { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }


/* --- Header --- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; background: rgba(10, 10, 15, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.logo img { height: 28px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { font-size: 0.82rem; font-weight: 500; color: var(--text-dim); transition: color 0.2s, border-color 0.2s; padding-bottom: 2px; border-bottom: 1.5px solid transparent; }
.site-nav a:hover { color: var(--white); }
.site-nav a.nav-active { color: var(--green); border-bottom-color: var(--green); }
.site-nav a.cta { padding: 8px 20px; background: var(--green); color: var(--bg); border-radius: 6px; font-weight: 600; transition: background 0.2s, transform 0.2s; }
.site-nav a.cta:hover { background: #16a34a; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }


/* --- Buttons --- */
.btn { display: inline-block; padding: 14px 28px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; border-radius: 8px; cursor: pointer; transition: all 0.2s; border: none; text-align: center; }
.btn-primary { background: var(--green); color: var(--bg); }
.btn-primary:hover { background: #16a34a; transform: translateY(-1px); box-shadow: 0 4px 20px var(--green-glow); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-hover); color: var(--white); }


/* ═══════════════════════════════════════
   SLIDESHOW NAVIGATION SYSTEM
   ═══════════════════════════════════════ */

/* Each slide fills the viewport, stacked on top of each other */
[data-slide] {
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(10, 10, 15, 0.82);
}

[data-slide].slide-active {
  opacity: 1;
  visibility: visible;
  z-index: 12;
}

/* ── Cinematic zoom-blur crossfade transition ── */
[data-slide].slide-enter {
  visibility: visible;
  z-index: 12;
  opacity: 0;
  transform: scale(0.94);
  filter: blur(6px);
  transition: none;
}
[data-slide].slide-exit {
  visibility: visible;
  z-index: 11;
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  transition: none;
}

/* Slide inner wrapper */
.slide-inner {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 0 24px;
}

/* Hero slide gets special treatment — fully transparent so canvas shows through */
[data-slide="0"] { background: transparent; }
[data-slide="0"] .slide-inner { padding-top: 80px; }

/* Dark slides — slightly more opaque for contrast but still shows canvas */
[data-slide].slide-dark { background: rgba(17, 17, 24, 0.88); }
[data-slide].slide-highlight { background: rgba(13, 17, 23, 0.85); }

/* Progress bar — thin horizontal line at bottom of viewport */
.slide-progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.06);
  z-index: 200;
}

.slide-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--green), var(--purple));
  border-radius: 0 2px 2px 0;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ===== AVATAR CANVAS (Neural Emergence) — now fixed behind all slides ===== */
/* Positioning is inline on the element; this is for any overrides */


/* ===== HERO ===== */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
/* On desktop, headline merges into content column */
.hero-headline { grid-column: 1; position: relative; z-index: 2; max-width: 560px; }
.hero-content { max-width: 560px; position: relative; z-index: 2; grid-column: 1; }
.hero-demo { grid-column: 2; grid-row: 1 / 3; }
.hero-kicker { font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 20px; }
[data-slide="0"] h1 { margin-bottom: 24px; }
.hero-sub { font-size: 1.05rem; line-height: 1.7; color: var(--text); margin-bottom: 14px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* Demo Window */
.hero-demo { position: relative; z-index: 2; }
.demo-window { position: relative; background: #0e0e1a; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(34,197,94,0.06); }
.demo-titlebar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border); }
.demo-dots { display: flex; gap: 6px; }
.demo-dots span { width: 8px; height: 8px; border-radius: 50%; }
.demo-dots span:nth-child(1) { background: #ef4444; opacity: 0.7; }
.demo-dots span:nth-child(2) { background: #f59e0b; opacity: 0.7; }
.demo-dots span:nth-child(3) { background: #22c55e; opacity: 0.7; }
.demo-title { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-persona-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: rgba(34,197,94,0.03); }
.demo-avatar { width: 32px; height: 32px; }
.demo-avatar svg { width: 100%; height: 100%; }
.demo-persona-info { flex: 1; }
.demo-persona-name { display: block; font-size: 0.8rem; font-weight: 600; color: var(--white); }
.demo-persona-traits { display: block; font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-muted); }
.demo-mood { display: flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 0.65rem; color: var(--green); opacity: 0.7; }
.demo-chat { min-height: 240px; max-height: 320px; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; position: relative; }
.demo-msg { max-width: 85%; padding: 10px 14px; border-radius: 10px; font-size: 0.84rem; line-height: 1.55; opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; }
.demo-msg.visible { opacity: 1; transform: translateY(0); }
.demo-msg.user { align-self: flex-end; background: rgba(34,197,94,0.12); color: var(--white); border-bottom-right-radius: 3px; }
.demo-msg.coridor { align-self: flex-start; background: rgba(255,255,255,0.05); color: var(--text); border-bottom-left-radius: 3px; }
.demo-msg .msg-meta { display: block; font-size: 0.62rem; color: var(--text-muted); margin-top: 4px; font-family: var(--font-mono); }
.demo-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 16px; opacity: 0; transition: opacity 0.3s; }
.demo-typing.visible { opacity: 1; }
.demo-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: typing-bounce 1.2s infinite; }
.demo-typing span:nth-child(2) { animation-delay: 0.15s; }
.demo-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
/* Live state panel — inline in persona bar, right side */
.demo-state-panel {
  margin-left: auto;
  width: 140px;
  padding: 4px 0 4px 10px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}
.state-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.state-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  min-width: 38px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.state-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.state-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1), background 0.5s;
}
.state-bar-mood { background: var(--green); }
.state-bar-affect { background: var(--purple); }
.state-bar-memory { background: rgba(34, 197, 94, 0.5); }
.state-val {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-dim);
  min-width: 40px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.state-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--green);
  text-align: center;
  padding-top: 3px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
  transition: color 0.5s, opacity 0.3s;
}

.demo-input-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.demo-input-bar span { font-size: 0.78rem; color: var(--text-muted); }

/* Demo avatar image */
.demo-avatar-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: center 15%; border: 1.5px solid var(--green); }
.demo-chat-avatar-bg { position: absolute; right: -10px; bottom: -10px; width: 140px; height: 140px; opacity: 0.04; pointer-events: none; z-index: 0; }
.demo-chat-avatar-bg img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.demo-chat > *:not(.demo-chat-avatar-bg) { position: relative; z-index: 1; }


/* ===== PROBLEM SECTION ===== */
/* Desktop: headline + prose left, stats right */
.problem-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px 32px; align-items: start; margin-bottom: 24px; }
.problem-headline { grid-column: 1; }
.problem-text { grid-column: 1; max-width: 680px; }
.market-stats { grid-column: 2; grid-row: 1 / 4; }
.problem-text .prose p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 10px; }

/* Market stats */
.market-stats { display: flex; flex-direction: column; gap: 10px; }
.market-stat { text-align: center; padding: 16px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s, background 0.3s; cursor: default; }
.market-stat:hover { border-color: rgba(34,197,94,0.4); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(34,197,94,0.1); background: rgba(34,197,94,0.04); }
.market-stat:hover .market-stat-value { text-shadow: 0 0 12px rgba(34,197,94,0.4); }
.market-stat-value { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 800; color: var(--green); letter-spacing: -0.02em; margin-bottom: 2px; transition: text-shadow 0.3s; }
.market-stat-label { font-size: 0.7rem; color: var(--text-muted); line-height: 1.3; }

/* Comparison table */
.comparison-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.comparison-table th, .comparison-table td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.comparison-table thead th { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); background: rgba(255,255,255,0.02); }
.comparison-table thead th:first-child { width: 140px; }
.comparison-table thead th.col-coridor { color: var(--green); }
.comparison-table thead th.col-qual { color: var(--purple); }
.comparison-table tbody tr { transition: background 0.2s; }
.comparison-table tbody tr:hover { background: rgba(34,197,94,0.04); }
.comparison-table tbody tr:hover td.col-coridor { background: rgba(34,197,94,0.08); }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table .row-label { font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--white); white-space: nowrap; }
.comparison-table td.col-coridor { background: rgba(34,197,94,0.03); }
.comp-rating { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.comp-detail { display: block; font-size: 0.75rem; color: var(--text-muted); }
.comp-high { color: var(--green); }
.comp-mid { color: #f59e0b; }
.comp-low { color: #ef4444; }
.col-coridor .comp-high { color: var(--green); }
.comparison-table.compact th, .comparison-table.compact td { padding: 8px 12px; font-size: 0.82rem; }
.comparison-table.compact .comp-detail { display: none; }
.comparison-table.compact .comp-rating { font-size: 0.82rem; }
.comparison-table.compact .row-label { font-size: 0.8rem; }

/* Team logos (pitch deck style — whitewashed, two rows) */
.team-tagline { font-size: 0.95rem; margin-top: 24px; margin-bottom: 8px; }
.team-logos { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 20px; }
.team-logos-row { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.team-logos img { height: 24px; width: auto; max-width: 90px; object-fit: contain; opacity: 0.7; filter: brightness(0) invert(1); transition: opacity 0.3s; }
.team-logos img:hover { opacity: 1; }
/* DOD, NYU, Army need extra treatment for dark/complex source images */
.team-logos img.logo-needs-filter { filter: grayscale(1) brightness(1.5); opacity: 0.7; }
.team-logos img.logo-needs-filter:hover { opacity: 1; }


/* ===== CARD GRID ===== */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; }
.card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.card-icon-wrap { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.card-icon-wrap svg { width: 18px; height: 18px; }
.ig { background: var(--green-dim); color: var(--green); }
.ip { background: var(--purple-dim); color: var(--purple); }
.card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.card p { font-size: 0.82rem; line-height: 1.55; color: var(--text-dim); }


/* ===== BSE DONUT ===== */
.bse-visual { display: flex; align-items: center; justify-content: center; gap: 48px; margin-top: 56px; padding: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.bse-chart-wrap { width: 200px; height: 200px; flex-shrink: 0; }
.bse-chart { width: 100%; height: 100%; }
.bse-seg { transition: opacity 0.3s, stroke-width 0.3s; cursor: pointer; }
.bse-seg:hover { stroke-width: 32; }
.bse-legend { display: flex; flex-direction: column; gap: 10px; }
.bse-key { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-dim); padding: 6px 10px; border-radius: 6px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.bse-key:hover { background: rgba(255,255,255,0.04); color: var(--white); }
.bse-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.bse-pct { font-family: var(--font-mono); font-weight: 500; color: var(--white); font-size: 0.82rem; min-width: 32px; }


/* ===== BIG QUOTE ===== */
.big-quote { font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 500; color: var(--white); line-height: 1.4; border-left: 3px solid var(--green); padding-left: 24px; margin-bottom: 28px; font-style: italic; }


/* ===== MDOD FLOW ===== */
.mdod-flow { display: flex; align-items: center; justify-content: center; gap: 0; margin-top: 48px; flex-wrap: wrap; }
.mdod-step { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mdod-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--green); transition: border-color 0.3s, background 0.3s, transform 0.3s; }
.mdod-icon svg { width: 22px; height: 22px; }
.mdod-step.active .mdod-icon { border-color: var(--green); background: var(--green-dim); transform: scale(1.1); box-shadow: 0 0 20px var(--green-glow); }
.mdod-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.3s; }
.mdod-step.active .mdod-label { color: var(--green); }
.mdod-arrow { width: 32px; display: flex; align-items: center; justify-content: center; margin: 0 4px; margin-bottom: 20px; }
.mdod-arrow svg { width: 24px; height: 8px; opacity: 0.3; }


/* ===== LAYERS ===== */
/* Desktop: headline + text on left column, visual on right spanning both rows */
.layers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; align-items: start; }
.layers-headline { grid-column: 1; }
.layers-text { grid-column: 1; }
.layers-visual { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.layers { margin-top: 20px; display: flex; flex-direction: column; }
.layer { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); transition: background 0.3s, padding-left 0.3s; border-radius: 8px; cursor: default; }
.layer:hover { background: rgba(34,197,94,0.04); padding-left: 12px; }
.layer:hover .layer-num { color: rgba(34,197,94,0.2); }
.layer:hover h3 { color: var(--green); }
.layer:last-child { border-bottom: none; }
.layer-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: rgba(255, 255, 255, 0.06); line-height: 1; min-width: 44px; transition: color 0.3s; }
.layer-content h3 { font-size: 1rem; margin-bottom: 4px; transition: color 0.3s; }
.layer-content p { font-size: 0.82rem; line-height: 1.55; color: var(--text-dim); max-width: 480px; }
.layers-visual { display: flex; align-items: center; justify-content: center; }
.layers-rings { width: 100%; max-width: 400px; height: auto; filter: drop-shadow(0 0 20px rgba(34,197,94,0.08)); transition: filter 0.5s, transform 0.5s; cursor: default; }
.layers-rings:hover { filter: drop-shadow(0 0 30px rgba(34,197,94,0.2)) drop-shadow(0 0 60px rgba(168,85,247,0.1)); transform: scale(1.02); }


/* ===== SPLIT ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-text { max-width: 520px; }


/* ===== INTEGRATION GRID ===== */
.integration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.integration-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; }
.integration-item:hover { border-color: rgba(34,197,94,0.3); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(34,197,94,0.08); }
.integration-item svg { width: 22px; height: 22px; color: var(--green); }
.integration-item span { font-size: 0.72rem; font-weight: 500; color: var(--text-dim); }


/* ===== STATS ===== */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.stat { text-align: center; padding: 16px 12px; border-radius: 10px; transition: background 0.3s, transform 0.3s, box-shadow 0.3s; cursor: default; }
.stat:hover { background: rgba(34,197,94,0.04); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(34,197,94,0.08); }
.stat:hover .stat-value { text-shadow: 0 0 16px rgba(34,197,94,0.4); }
.stat-value { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 8px; transition: text-shadow 0.3s; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }


/* ===== CTA / WAITLIST ===== */
.section-cta { text-align: center; }
.section-cta h2 { margin-bottom: 16px; }
.cta-sub { font-size: 1.05rem; color: var(--text-dim); max-width: 520px; margin: 0 auto 40px; line-height: 1.65; }
.waitlist-form { max-width: 560px; margin: 0 auto; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { margin-bottom: 16px; }
.form-group label { font-size: 0.82rem; font-weight: 500; color: var(--text-dim); margin-bottom: 6px; }
.form-group input, .form-group textarea { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; color: var(--white); font-family: var(--font-body); font-size: 0.92rem; transition: border-color 0.2s, box-shadow 0.2s; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 80px; }
.waitlist-form .btn { width: 100%; margin-top: 4px; padding: 14px; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; text-align: center; }


/* ===== FOOTER ===== */
.site-footer { position: relative; z-index: 1; padding: 60px 0 32px; border-top: 1px solid var(--border); width: 100%; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 24px; width: auto; margin-bottom: 10px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); max-width: 280px; }
.footer-links { display: flex; gap: 60px; }
.footer-col h4 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }


/* ===== FADE TARGETS (staggered reveal within slides) ===== */
.fade-target {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-target.visible {
  opacity: 1;
  transform: translateY(0);
}


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

/* Overflow protection — on slides themselves, not containers (so table scroll works) */
[data-slide] img { max-width: 100%; }

@media (max-width: 900px) {
  .hero-grid, .split, .problem-hero { grid-template-columns: 1fr; gap: 32px; }
  /* How It Works: headline → graphic → text on tablet/mobile */
  .layers-grid { display: flex; flex-direction: column; gap: 20px; }
  .layers-headline { order: 1; }
  .layers-visual { order: 2; }
  .layers-text { order: 3; }
  .layers-rings { max-width: 280px; margin: 0 auto; }
  .market-stats { flex-direction: row; flex-wrap: wrap; }
  .hero-content { max-width: 100%; }
  .bse-visual { flex-direction: column; gap: 24px; padding: 24px; }
  .bse-chart-wrap { width: 160px; height: 160px; }
}

@media (max-width: 768px) {
  /* Navigation */
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10, 10, 15, 0.98); padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }

  /* Global slide padding */
  .slide-inner { padding: 64px 0 20px; }
  .container { padding: 0 16px; }
  .container.mid-wide { max-width: 100%; }

  /* Hero: headline first, then chat demo, then summary text */
  .hero-grid { display: flex; flex-direction: column; gap: 20px; }
  .hero-headline { order: 1; }
  .hero-demo { order: 2; }
  .hero-content { order: 3; }
  .hero-sub { font-size: 0.95rem; }
  [data-slide="0"] h1 { font-size: 1.8rem; margin-bottom: 0; }
  [data-slide="0"] .slide-inner { padding-top: 64px; }

  /* Demo window mobile */
  .demo-window { margin: 0 -4px; }
  .demo-persona-bar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .demo-state-panel { width: 100%; padding: 6px 0 0 0; margin-left: 0; border-left: none; border-top: 1px solid var(--border); }
  .demo-chat { max-height: 200px; min-height: 160px; padding: 12px; }
  .demo-title { font-size: 0.58rem; }

  /* Problem slide — single column, narrower graphics */
  .problem-hero { display: flex; flex-direction: column; gap: 16px; }
  .problem-text .prose p { font-size: 0.88rem; }
  .market-stats { flex-direction: row; gap: 8px; max-width: 92%; margin: 0 auto; }
  .market-stat { padding: 10px 8px; flex: 1; }
  .market-stat-value { font-size: 1.1rem; }
  .market-stat-label { font-size: 0.62rem; }
  .comparison-table-wrap { overflow-x: hidden; }
  .comparison-table { table-layout: fixed; width: 100%; }
  .comparison-table colgroup { display: table-column-group; }
  .comparison-table thead th:first-child { width: 16%; }
  .comparison-table thead th.col-qual,
  .comparison-table thead th.col-quant { width: 30%; }
  .comparison-table thead th.col-coridor { width: 24%; }
  .comparison-table th, .comparison-table td { padding: 8px 5px; font-size: 0.68rem; }
  .comparison-table .row-label { font-size: 0.68rem; white-space: nowrap; }
  .comp-rating { font-size: 0.7rem; }
  .comp-detail { font-size: 0.6rem; }

  /* Solution cards */
  .card-grid { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 16px; }
  .card p { font-size: 0.78rem; }

  /* Memory Depth — keep horizontal flow, shrink it */
  .mdod-flow { flex-direction: row; flex-wrap: nowrap; gap: 2px; justify-content: center; overflow-x: auto; padding: 8px 0; }
  .mdod-arrow { width: 16px; flex-shrink: 0; }
  .mdod-arrow svg { width: 16px; }
  .mdod-icon { width: 36px; height: 36px; }
  .mdod-icon svg { width: 16px; height: 16px; }
  .mdod-label { font-size: 0.52rem; }
  .mdod-step { flex-shrink: 0; }
  .big-quote { font-size: 1.05rem; padding-left: 16px; margin-bottom: 20px; }

  /* How It Works — tighten gap between graphic and text */
  .layers-grid { gap: 12px; }
  .layers { margin-top: 0; }
  .layers-rings { max-width: 220px; }
  .layer { flex-direction: column; gap: 6px; padding: 10px 0; }
  .layer-num { font-size: 1.6rem; min-width: auto; }
  .layer-content p { font-size: 0.78rem; }

  /* Integrations */
  .integration-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .integration-item { padding: 10px 6px; }
  .integration-item svg { width: 18px; height: 18px; }
  .integration-item span { font-size: 0.6rem; }
  .split { gap: 28px; }

  /* Validation stats */
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 10px 6px; }
  .stat-value { font-size: 1.5rem; }
  .stat-label { font-size: 0.72rem; }
  .prose p { font-size: 0.92rem; }

  /* Team */
  .team-logos { gap: 12px; padding: 0; }
  .team-logos-row { gap: 16px; }
  .team-logos img { height: 18px; max-width: 70px; }

  /* Waitlist — full mobile optimization */
  [data-slide="8"] .slide-inner { justify-content: flex-start; min-height: auto; padding-bottom: 0; }
  .section-cta h2 { font-size: 1.6rem; margin-bottom: 12px; }
  .cta-sub { font-size: 0.9rem; margin-bottom: 24px; }
  .waitlist-form { max-width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
  .form-group input, .form-group textarea { padding: 10px 12px; font-size: 0.88rem; }
  .form-group label { font-size: 0.78rem; }
  .form-group textarea { min-height: 60px; }
  .waitlist-form .btn { padding: 12px; font-size: 0.9rem; }

  /* Footer */
  .site-footer { padding: 32px 0 20px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { flex-wrap: wrap; gap: 24px; }
  .footer-col a { font-size: 0.82rem; }
  .footer-brand p { font-size: 0.78rem; }

  /* Avatar canvas — keep visible on mobile but dimmer */
  #avatar-canvas { opacity: 0.4; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  .container { padding: 0 12px; }
  .slide-inner { padding: 60px 0 16px; }

  /* Hero even tighter */
  .hero-cta { flex-direction: column; gap: 8px; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .hero-sub { font-size: 0.88rem; line-height: 1.6; }

  /* Problem table scroll hint */
  .comparison-table-wrap { margin: 0 -12px; padding: 0 12px; }

  /* Memory Depth — still horizontal but smaller */
  .mdod-icon { width: 32px; height: 32px; }
  .mdod-icon svg { width: 14px; height: 14px; }
  .mdod-label { font-size: 0.48rem; }
  .mdod-arrow { width: 12px; }

  /* Integration grid 2 col on very small */
  .integration-grid { grid-template-columns: repeat(2, 1fr); }

  /* Stats single column on tiny screens */
  .stat-row { grid-template-columns: 1fr; gap: 12px; }
  .stat { text-align: center; }

  /* Team logos wrap tighter */
  .team-logos-row { gap: 10px; }
  .team-logos img { height: 16px; max-width: 56px; }

  /* Footer links stack */
  .footer-links { flex-direction: column; gap: 20px; }
}
