:root {
  --bg: #000;
  --fg: #f5f7f6;
  --muted: #9aa3a0;
  --green: #22e07a;
  --red: #ff3b3b;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(10, 14, 12, 0.72);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.green { color: var(--green); }
a { color: inherit; }

#hall { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; transition: opacity .2s linear; }
/* lighter backdrop that fades in once you scroll past the hero */
#veil { position: fixed; inset: 0; z-index: 1; background: radial-gradient(ellipse at 50% 30%, #262e2b 0%, #1a201e 60%, #151a18 100%); opacity: 0; pointer-events: none; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(0,0,0,.85), rgba(0,0,0,0));
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; font-size: 18px; }
.mark { width: 14px; height: 14px; border: 2px solid var(--green); border-radius: 3px; position: relative; }
.mark::after { content: ""; position: absolute; inset: 3px; background: var(--fg); border-radius: 1px; }
.nav nav { display: flex; gap: 22px; align-items: center; font-size: 14px; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--fg); }
.btn-sm { border: 1px solid var(--green); color: var(--green) !important; padding: 7px 12px; border-radius: 999px; }
@media (max-width: 760px) { .nav nav a:not(.btn-sm) { display: none; } }

main { position: relative; z-index: 2; }
section { padding: 0 clamp(16px, 6vw, 96px); }
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  pointer-events: none; padding-top: 80px;
}
.hero > * { pointer-events: auto; max-width: 720px; }
.eyebrow { color: var(--green); font-size: 13px; letter-spacing: .08em; text-transform: lowercase; margin: 0 0 18px; }
h1 { font-size: clamp(40px, 7vw, 88px); line-height: .98; letter-spacing: -0.045em; margin: 0 0 22px; font-weight: 800;
     text-shadow: 0 2px 30px #000, 0 0 2px #000; }
.lede { font-size: clamp(16px, 1.6vw, 20px); color: #d6dbd9; line-height: 1.55; max-width: 600px; margin: 0 0 28px;
        text-shadow: 0 1px 12px #000; }
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pill { border: 1px solid var(--line); padding: 10px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(0,0,0,.6); }
.btn { display: inline-block; background: var(--green); color: #000; font-weight: 700; padding: 12px 20px; border-radius: 999px; text-decoration: none; }
.btn:hover { filter: brightness(1.1); }
.btn.big { font-size: 18px; padding: 16px 26px; margin: 8px 0 22px; }
.hint { margin-top: 26px; font-size: 12px; color: var(--muted); }

.panel { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; padding-top: 12vh; padding-bottom: 12vh; }
.panel > * { max-width: 1100px; }
h2 { font-size: clamp(28px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 32px; font-weight: 800; }
h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.body { color: #c9cfcc; font-size: 18px; line-height: 1.65; max-width: 760px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; backdrop-filter: blur(6px); }
.num { display: block; font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; color: var(--red); letter-spacing: -0.03em; }
.lbl { color: var(--muted); font-size: 14px; line-height: 1.45; display: block; }
.src { display: block; margin-top: 10px; font-size: 11px; color: #6f7774; letter-spacing: .02em; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }


.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; backdrop-filter: blur(6px); }
.card h3 { color: var(--green); }
.card p { color: var(--muted); line-height: 1.55; margin: 0; font-size: 15px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

.centered { align-items: center; text-align: center; }
.centered > * { max-width: 1200px; }
.sub { color: #c9cfcc; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; max-width: 780px; margin: -12px auto 40px; }
.vision-sec { min-height: 100vh; }
.vision-sec h2 { font-size: clamp(42px, 6.6vw, 96px); line-height: 1; letter-spacing: -0.045em; margin-bottom: 30px; }
.vision { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; text-align: left; width: 100%; }
.v { background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 30px 32px; backdrop-filter: blur(6px); position: relative; overflow: hidden; }
.v::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--green), transparent); }
.vnum { color: var(--green); font-size: 15px; }
.v h3 { margin-top: 12px; font-size: clamp(22px, 2.1vw, 30px); letter-spacing: -0.02em; }
.v p { color: #b9c1be; line-height: 1.6; margin: 0; font-size: 17px; }
@media (max-width: 760px) { .vision { grid-template-columns: 1fr; } }

.demos h2.second { margin-top: 110px; }
.demo { width: 100%; max-width: 1150px; }
.viewport { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 680px; min-height: 320px; background: #000;
            border: 1px solid rgba(255,255,255,.14); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.viewport canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.viewport canvas:active { cursor: grabbing; }
.hud { position: absolute; left: 16px; top: 14px; font-size: 12px; color: var(--muted); pointer-events: none; }
.hud b { color: var(--green); }
.drag { position: absolute; right: 16px; bottom: 12px; font-size: 11px; color: #5d6662; pointer-events: none; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.steps li { counter-increment: s; font-size: 12px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: #6f7774; background: rgba(0,0,0,.35); transition: all .25s; }
.steps li::before { content: counter(s) "  "; color: inherit; opacity: .7; }
.steps li.done { color: #9fd9b9; border-color: rgba(34,224,122,.35); }
.steps li.on { color: #000; background: var(--green); border-color: var(--green); }
.steps li.on.bad { background: var(--red); border-color: var(--red); color: #fff; }

.why { padding: 0; list-style: none; margin: 0; max-width: 820px; }
.why li { padding: 16px 0; border-bottom: 1px solid var(--line); color: #c9cfcc; font-size: 18px; line-height: 1.5; }
.why b { color: var(--fg); }

.centered .body, .centered .team { margin-left: auto; margin-right: auto; max-width: 780px; }
.centered .stats, .centered .grid { width: 100%; }
.centered .why { margin: 0 auto; }
.centered .why li { text-align: center; }
.team { color: var(--muted); max-width: 640px; line-height: 1.6; }

footer { position: relative; z-index: 2; padding: 40px clamp(16px, 6vw, 96px) 60px; border-top: 1px solid var(--line); background: rgba(0,0,0,.35); text-align: center; }
.notes { color: #6f7774; font-size: 11px; line-height: 1.7; max-width: 1100px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
