/* Hindsight marketing site — futuristic dark theme. Self-contained, no build step.
   Indigo→violet→cyan accents, glassmorphism, Three.js hero, scroll-reveal. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --bg: #06070e;
  --bg-2: #0a0c16;
  --card: rgba(255,255,255,.035);
  --card-2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.16);
  --text: #eef1f8;
  --text-2: #c2c8d6;
  --muted: #8b93a7;
  --faint: #5c6478;
  --accent: #6366f1;
  --accent-2: #818cf8;
  --violet: #a855f7;
  --cyan: #22d3ee;
  --ok: #34d399;
  --warn: #fbbf24;
  --error: #fb7185;
  --grad: linear-gradient(110deg, #6366f1 0%, #a855f7 50%, #22d3ee 100%);
  --grad-soft: linear-gradient(110deg, rgba(99,102,241,.18), rgba(168,85,247,.14), rgba(34,211,238,.12));
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px; --pill: 999px;
  --sh-2: 0 24px 60px -24px rgba(0,0,0,.7);
  --glow: 0 0 0 1px rgba(99,102,241,.25), 0 20px 60px -20px rgba(99,102,241,.45);
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1140px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font: 16px/1.65 var(--font); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; letter-spacing: -0.003em; overflow-x: hidden;
}
/* Ambient background glows (fixed, GPU layer) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 82% -8%, rgba(99,102,241,.22), transparent 60%),
    radial-gradient(800px 600px at 10% 8%, rgba(168,85,247,.14), transparent 55%),
    radial-gradient(700px 700px at 60% 100%, rgba(34,211,238,.10), transparent 60%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; }
.muted { color: var(--muted); }

/* Nav */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,9,16,.6); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo { width: 28px; height: 28px; border-radius: 8px; display: block; flex: 0 0 auto; box-shadow: 0 0 24px -4px rgba(99,102,241,.7); }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--text); }
.brand-tag { font-size: 11px; font-weight: 500; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; }
.nav-links a.muted:hover { color: var(--text); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } .brand-tag { display: none; } }

/* Buttons */
.btn { position: relative; display: inline-block; padding: 11px 20px; border-radius: var(--pill); font-weight: 600; font-size: 14.5px; cursor: pointer; border: 1px solid transparent; transition: transform .1s ease, box-shadow .2s ease, background .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); background-size: 180% 180%; color: #fff; box-shadow: 0 10px 30px -10px rgba(99,102,241,.8); animation: grad-pan 8s ease infinite; }
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(99,102,241,1); transform: translateY(-1px); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: var(--accent-2); }
@keyframes grad-pan { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Eyebrow / kicker */
.eyebrow, .kicker { display:inline-block; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow { background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.28); padding: 6px 14px; border-radius: var(--pill); margin-bottom: 24px; }
.kicker { margin-bottom: 14px; }

/* Hero — pinned 3D stage. The .hero gives scroll length; .hero-stage sticks and holds the
   3D model centerpiece + headline, which scroll-transform away as you move down the page. */
.hero { position: relative; height: 150vh; padding: 0; }
.hero-stage { position: sticky; top: 0; height: 100vh; min-height: 620px; display: grid; place-items: start center; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 920px; margin: 0 auto; padding: 88px 24px 0; will-change: transform, opacity; }
@media (max-width: 700px){ .hero-content { padding-top: 72px; } }
.hero-content::before { content:""; position:absolute; inset:-60px -20px; z-index:-1; background: radial-gradient(60% 55% at 50% 50%, rgba(6,7,14,.72), transparent 72%); pointer-events:none; }
.eyebrow { margin-bottom: 22px; }
h1.headline { font-family: var(--display); font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; margin: 0 auto; max-width: 16ch; }
h1.headline .grad { background: var(--grad); background-size: 200% 200%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: grad-pan 7s ease infinite; }
.subhead { margin: 24px auto 0; font-size: clamp(17px, 2.1vw, 21px); color: var(--text-2); max-width: 58ch; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); font-family: var(--mono); letter-spacing: .02em; }
.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: translateX(-50%) translateY(0); opacity:.55; } 50% { transform: translateX(-50%) translateY(5px); opacity:1; } }
.showcase { padding-top: 48px; }

/* Glass mock */
.mock { margin-top: 60px; border: 1px solid var(--border); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); box-shadow: var(--sh-2), var(--glow); overflow: hidden; backdrop-filter: blur(6px); }
.mock .shot { display: block; width: 100%; height: auto; opacity: .96; }
.mock-bar { display:flex; align-items:center; gap:7px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.03); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.18); display:inline-block; }
.mock-bar span { margin-left: 10px; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }

/* Sections */
section { padding: 60px 0; position: relative; }
section.alt { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-family: var(--display); font-size: clamp(28px, 3.8vw, 42px); letter-spacing: -.02em; line-height: 1.1; font-weight: 700; max-width: 20ch; }
.lead { color: var(--text-2); font-size: 18px; margin-top: 18px; max-width: 64ch; }

/* Cards / grid */
.grid { display: grid; gap: 18px; margin-top: 30px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px){ .grid-3 { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; transition: transform .2s ease, border-color .2s ease, background .2s ease; overflow: hidden; }
.card::after { content:""; position:absolute; inset:0; border-radius: inherit; background: radial-gradient(400px 200px at var(--mx,50%) -20%, rgba(99,102,241,.16), transparent 60%); opacity:0; transition: opacity .25s ease; pointer-events:none; }
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--card-2); }
.card:hover::after { opacity: 1; }
.card h3 { font-family: var(--display); font-size: 18px; letter-spacing: -.01em; margin-bottom: 9px; color: var(--text); }
.card p { color: var(--muted); font-size: 15px; }
.card .ico { width: 46px; height: 46px; border-radius: var(--r); display:flex; align-items:center; justify-content:center; font-size: 22px; margin-bottom: 18px; background: var(--grad-soft); border: 1px solid var(--border); }

/* Steps */
.steps { margin-top: 34px; }
.step { display:flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: 0; }
.step .n { counter-increment: step; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--border-strong); display:flex; align-items:center; justify-content:center; font-family: var(--mono); font-weight: 600; color: var(--accent-2); }
.steps { counter-reset: step; }
.step .n::before { content: "0" counter(step); }
.step h3 { font-family: var(--display); font-size: 18px; color: var(--text); }
.step p { color: var(--muted); font-size: 15px; margin-top: 5px; }
.step strong { color: var(--text-2); font-weight: 600; }

/* Dollar-impact spotlight band */
.spotlight { background: var(--grad-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.spotlight .wrap { display:grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items:center; }
@media (max-width: 820px){ .spotlight .wrap { grid-template-columns: 1fr; } }
.stat-card { background: rgba(8,9,16,.55); border: 1px solid var(--border-strong); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--glow); backdrop-filter: blur(8px); }
.stat-big { font-family: var(--display); font-size: clamp(40px, 7vw, 66px); font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.03em; }
.stat-cap { color: var(--muted); font-size: 14px; margin-top: 10px; }
.stat-row { display:flex; justify-content:space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 14.5px; color: var(--text-2); }
.stat-row:last-child { border-bottom: 0; }
.stat-row b { color: var(--text); font-family: var(--mono); }

/* Audience */
.aud { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 46px; }
@media (max-width: 820px){ .aud { grid-template-columns: 1fr; } }
.aud .card { padding: 32px; }
.aud ul { list-style: none; margin-top: 18px; display: grid; gap: 11px; }
.aud li { padding-left: 28px; position: relative; color: var(--muted); font-size: 15px; }
.aud li::before { content: "→"; position: absolute; left: 0; color: var(--cyan); }

/* AI band */
.aiband { background: linear-gradient(120deg, rgba(99,102,241,.12), rgba(34,211,238,.08)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.aiband .wrap { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 56px 24px; }
@media (max-width: 720px){ .aiband .wrap { grid-template-columns: 1fr; gap: 16px; } }
.aiband .glyph { font-size: 50px; line-height: 1; filter: drop-shadow(0 0 20px rgba(99,102,241,.7)); }
.aiband h2 { font-size: clamp(24px, 3vw, 32px); }
.aiband p { color: var(--text-2); font-size: 17px; margin-top: 12px; max-width: 66ch; }
.aiband .pill { display:inline-block; margin-top: 16px; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent-2); background: rgba(8,9,16,.5); border: 1px solid var(--border-strong); border-radius: var(--pill); padding: 7px 14px; }

/* Trust */
.trust-badges { display:flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.trust-badges span { font-size: 13.5px; color: var(--text-2); border: 1px solid var(--border); border-radius: var(--pill); padding: 8px 15px; background: var(--card); }

/* CTA */
.cta { text-align: center; }
.cta h2 { margin: 0 auto; }
.cta .lead { margin: 18px auto 0; }
.cta .hero-cta { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 42px 0; color: var(--muted); font-size: 14px; }
.foot-inner { display:flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-links { display:flex; gap: 24px; }
.foot-links a:hover { color: var(--text); }
footer .brand b { font-family: var(--display); font-size: 15px; }

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn-primary, h1.headline .grad { animation: none; }
}

/* About page */
.page-hero { padding: 72px 0 24px; }
.prose { max-width: 70ch; }
.prose p { color: var(--text-2); font-size: 17px; margin-top: 18px; }
.prose h2 { margin-top: 48px; font-size: 28px; }
.principle { display:flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.principle:last-child { border-bottom: 0; }
.principle .b { font-weight: 700; color: var(--text); min-width: 210px; }
.principle .b small { display:block; color: var(--accent-2); font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }

/* ── Waitlist modal (0041) ─────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: rgba(3,4,10,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: wl-fade .18s ease; }
.modal-overlay[hidden] { display: none; }
/* `.wl-form{display:flex}` would otherwise beat the UA [hidden] rule, leaving the form visible
   under the success state — force hidden to win for the toggled views. */
.wl-form[hidden], .wl-success[hidden] { display: none !important; }
@keyframes wl-fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card { position: relative; width: 100%; max-width: 432px; background: #0c0f1c; border: 1px solid var(--border-strong);
  border-radius: var(--r-xl); padding: 34px 30px 30px; box-shadow: var(--sh-2), var(--glow); animation: wl-pop .22s cubic-bezier(.2,.7,.2,1); }
@keyframes wl-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: var(--pill); border: 1px solid transparent;
  background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; transition: background .15s, color .15s; }
.modal-close:hover { background: var(--card-2); color: var(--text); }
.wl-form { display: flex; flex-direction: column; }
.wl-form h3, .wl-success h3 { font-family: var(--display); font-size: 24px; letter-spacing: -.01em; margin: 12px 0 6px; color: var(--text); }
.wl-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.wl-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.wl-field > span { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.wl-field > span em { color: var(--accent-2); font-style: normal; }
.wl-field input { width: 100%; box-sizing: border-box; padding: 11px 14px; font-size: 15px; color: var(--text);
  background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: var(--r); transition: border-color .15s, box-shadow .15s; }
.wl-field input::placeholder { color: var(--faint); }
.wl-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.22); }
.wl-submit { width: 100%; margin-top: 8px; justify-content: center; }
.wl-msg { min-height: 18px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.wl-msg.wl-err { color: var(--error); }
.wl-success { text-align: center; padding: 8px 0; }
.wl-check { width: 56px; height: 56px; margin: 0 auto 4px; border-radius: var(--pill); display: grid; place-items: center;
  font-size: 28px; color: #fff; background: var(--grad); box-shadow: var(--glow); }
.wl-success .btn { margin-top: 16px; }
