:root {
  --bg: #090d16;
  --bg-2: #0c1320;
  --panel: rgba(14, 22, 36, 0.86);
  --panel-solid: #0d1624;
  --text: #f4f7fb;
  --muted: #a9b4c5;
  --line: rgba(169, 180, 197, 0.17);
  --line-strong: rgba(196, 207, 221, 0.34);
  --red: #ff3040;
  --blue: #2f8fff;
  --yellow: #ffe323;
  --green: #45e19f;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --max: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background: linear-gradient(rgba(255,255,255,.018), rgba(255,255,255,0));
  mix-blend-mode: screen;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
::selection { background: var(--yellow); color: #111; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  transform: translateY(-160%);
  z-index: 999;
  padding: 10px 14px;
  background: var(--yellow);
  color: #0a0d13;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.page-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .7;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(169,180,197,.08) 1px, transparent 1px);
  background-size: min(12vw, 160px) 100%, 100% 120px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.84) 72%, transparent 100%);
}
.scroll-rail {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255,255,255,.05);
  z-index: 60;
}
.scroll-rail span { display: block; width: 100%; height: 0; background: var(--red); box-shadow: 0 0 20px rgba(255,48,64,.8); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  z-index: 40;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  background: rgba(7, 11, 19, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -.025em; }
.brand-mark { width: 31px; height: 31px; }
.status-chip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255,227,35,.34);
  color: #f9e75b;
  font: 600 11px/1 var(--mono);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.status-dot { width: 7px; height: 7px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 12px rgba(255,227,35,.8); }
.nav-links { justify-self: end; display: flex; gap: 30px; font-size: 14px; color: #ccd5e2; }
.nav-links a { position: relative; }
.nav-links a::after { content:""; position:absolute; left:0; right:100%; bottom:-6px; height:2px; background:var(--blue); transition:right .18s ease; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { right: 0; }

.button {
  border: 0;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s cubic-bezier(.2,.9,.2,1), box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translate(-2px,-2px); }
.button:active { transform: translate(0,0); }
.button-primary { background: var(--red); color: white; box-shadow: 5px 5px 0 rgba(255,255,255,.08); }
.button-primary:hover { box-shadow: 7px 7px 0 rgba(47,143,255,.45); }

.section-frame {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 112px 34px;
}
.hero {
  max-width: none;
  min-height: 100svh;
  padding: 148px max(34px, calc((100vw - var(--max)) / 2)) 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .85fr);
  align-items: center;
  gap: 6vw;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
}
.hero-visual, .waitlist-visual {
  position: absolute;
  inset: -9%;
  width: 118%;
  height: 118%;
  object-fit: cover;
  object-position: 50% 10%;
  filter: saturate(1.1) contrast(1.1) brightness(.5) blur(.4px);
  opacity: .44;
  transform: scale(1.03);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,9,15,.99) 0%, rgba(5,9,15,.92) 38%, rgba(5,9,15,.42) 68%, rgba(5,9,15,.78) 100%),
    linear-gradient(180deg, rgba(7,11,18,.58), rgba(7,11,18,.96));
}
.kinetic-rail { position:absolute; z-index:1; transform:skewX(-28deg); filter: drop-shadow(0 0 18px rgba(0,0,0,.2)); }
.rail-red { width: 12vw; height: 140%; right: 22vw; top:-20%; background: linear-gradient(180deg, transparent, rgba(255,48,64,.78), transparent); opacity:.55; }
.rail-blue { width: 4vw; height: 110%; right: 8vw; top:0; background: linear-gradient(180deg, transparent, rgba(47,143,255,.85), transparent); opacity:.4; }
.rail-yellow { width: 1.2vw; height: 70%; right: 44vw; top:14%; background: linear-gradient(180deg, transparent, rgba(255,227,35,.92), transparent); opacity:.45; }
.hero-copy, .hero-console-wrap { position: relative; z-index: 3; }
.eyebrow, .section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(47,143,255,.55);
  background: rgba(7,14,24,.65);
  color: #c8dcff;
  font: 600 11px/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.eyebrow span { color: #6b7483; }
.hero h1 {
  margin: 26px 0 24px;
  max-width: 820px;
  font-size: clamp(56px, 6.6vw, 112px);
  line-height: .88;
  letter-spacing: -.07em;
  font-weight: 900;
  text-wrap: balance;
}
.accent-red, .red-text { color: var(--red); }
.accent-blue, .blue-text { color: var(--blue); }
.yellow-text { color: var(--yellow); }
.red-bg { background: var(--red); }
.blue-bg { background: var(--blue); }
.yellow-bg { background: var(--yellow); }
.lead { max-width: 760px; color: #c1cad8; font-size: clamp(16px,1.35vw,20px); line-height: 1.65; }
.waitlist-form { position: relative; display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 10px; max-width: 690px; margin-top: 30px; }
.input-shell { min-height: 52px; display:flex; align-items:center; gap:12px; padding:0 14px; border:1px solid var(--line-strong); background:rgba(10,18,30,.78); }
.input-shell span { color:#8390a5; }
.input-shell input { width:100%; border:0; outline:0; background:transparent; color:var(--text); font-family:var(--mono); font-size:13px; }
.input-shell:focus-within { border-color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
.form-status { position:absolute; left:0; top:100%; margin:8px 0 0; min-height:20px; font:500 12px var(--mono); color:var(--green); }
.form-status.error { color:#ff8a95; }
.helper-copy { margin: 12px 0 0; color:#8995a7; font-size:12px; }
.hero-index { display:flex; flex-wrap:wrap; gap:10px; margin-top:38px; color:#8e9aab; font:600 10px var(--mono); letter-spacing:.18em; }
.hero-index b { color:#4f5968; }
.hero-console-wrap {
  width: min(100%, 690px);
  justify-self: end;
  border: 1px solid rgba(142,160,186,.38);
  background: rgba(7,13,22,.93);
  box-shadow: var(--shadow), 18px 18px 0 rgba(255,48,64,.1), -10px -10px 0 rgba(47,143,255,.07);
  transform: rotate(-.4deg);
}
.console-header, .code-card-header {
  min-height: 46px;
  padding: 0 12px;
  border-bottom:1px solid var(--line);
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:12px;
  font:500 11px var(--mono);
  color:#aab7c8;
}
.window-dots { display:flex; gap:6px; }
.window-dots i { width:9px;height:9px;border-radius:50%;background:var(--red); }
.window-dots i:nth-child(2){background:var(--yellow)}
.window-dots i:nth-child(3){background:var(--green)}
.copy-button { border:1px solid var(--line-strong); background:#101927; padding:6px 9px; cursor:pointer; font:600 10px var(--mono); }
.copy-button:hover { border-color:var(--blue); color:#d9e9ff; }
.console { margin:0; padding:20px; min-height: 390px; overflow:auto; font:500 12px/1.85 var(--mono); color:#d2dae7; }
.console code { white-space: pre-wrap; }
.console .muted { color:#66758a; }
.console .ok { color:var(--green); }
.console .target { display:inline-block; margin-left:-8px; padding:0 8px; color:#fff27a; background:rgba(255,227,35,.08); border:1px solid rgba(255,227,35,.4); }
.console-footer { display:flex; justify-content:space-between; gap:12px; padding:11px 14px; border-top:1px solid var(--line); color:#657286; font:500 9px var(--mono); text-transform:uppercase; letter-spacing:.08em; }
.hero-scroll { position:absolute; z-index:3; left:max(34px, calc((100vw - var(--max)) / 2)); bottom:24px; display:flex; align-items:center; gap:14px; color:#8290a3; font:600 10px var(--mono); letter-spacing:.16em; }
.hero-scroll b { color:var(--red); }

.section-kicker { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:18px; margin-bottom:28px; color:var(--red); font:700 12px var(--mono); letter-spacing:.08em; }
.section-kicker i { height:1px; background:linear-gradient(90deg,var(--red),var(--line-strong)); }
.section-kicker small { color:#758296; font:600 9px var(--mono); letter-spacing:.16em; }
.section-heading { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.55fr); gap:60px; align-items:start; margin-bottom:44px; }
.section-heading.compact { grid-template-columns:minmax(0,1.1fr) minmax(300px,.5fr); }
.section-heading h2, .docs h2, .waitlist-section h2 { margin:0; font-size:clamp(46px,5vw,80px); line-height:.95; letter-spacing:-.055em; font-weight:900; text-wrap:balance; }
.section-heading p, .docs p, .waitlist-copy > p { color:#aeb9c9; margin:8px 0 0; font-size:15px; line-height:1.7; }
.architecture, .pipeline, .benchmarks, .docs { border-bottom:1px solid var(--line-strong); }
.architecture-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.system-card {
  position:relative;
  min-height:410px;
  padding:30px 26px 24px;
  background:linear-gradient(160deg, rgba(20,30,46,.92), rgba(8,14,24,.96));
  border:1px solid var(--line-strong);
  clip-path:polygon(0 0,92% 0,100% 18%,100% 100%,0 100%);
  overflow:hidden;
}
.system-card::before { content:""; position:absolute; left:0; top:0; width:70px; height:12px; background:currentColor; }
.system-card.red{color:var(--red)} .system-card.blue{color:var(--blue)} .system-card.yellow{color:var(--yellow)}
.system-card::after { content:""; position:absolute; right:-18%; bottom:-34%; width:55%; height:90%; background:currentColor; opacity:.08; transform:skewX(-24deg); }
.system-index { margin-top:12px; font:800 42px/1 var(--mono); }
.system-card h3 { margin:18px 0 14px; color:var(--text); font-size:22px; letter-spacing:-.03em; }
.system-card p { color:#aab5c6; line-height:1.65; font-size:14px; }
.system-icon { margin-top:28px; width:50px; height:50px; display:grid; place-items:center; border:1px solid currentColor; font-size:28px; }
.tag-row { display:flex; flex-wrap:wrap; gap:6px; margin-top:22px; }
.tag-row span { padding:5px 7px; border:1px solid rgba(255,255,255,.18); color:#8f9aab; font:600 9px var(--mono); letter-spacing:.08em; }

.pipeline-track { display:grid; grid-template-columns:1fr auto 1fr auto 1fr auto 1fr; align-items:stretch; }
.pipeline-step { position:relative; min-height:350px; padding:24px 22px; border:1px solid var(--line-strong); background:rgba(10,17,28,.72); clip-path:polygon(0 0,90% 0,100% 12%,90% 100%,0 100%,7% 52%); }
.pipeline-step:first-child { clip-path:polygon(0 0,90% 0,100% 12%,90% 100%,0 100%); }
.pipeline-step h3 { margin:12px 0 10px; font-size:20px; line-height:1.1; }
.pipeline-step p { min-height:70px; color:#9fabbc; font-size:13px; }
.step-no { font:800 34px/1 var(--mono); }
.flow-arrow { display:grid; place-items:center; padding:0 5px; font:400 30px var(--mono); }
.wave { height:62px; display:flex; align-items:center; gap:5px; margin-top:14px; color:var(--red); }
.wave i { width:3px; height:20px; background:currentColor; }
.wave i:nth-child(2), .wave i:nth-child(6){height:40px}.wave i:nth-child(3),.wave i:nth-child(5){height:54px}.wave i:nth-child(4){height:30px}
.node-icon { position:relative; width:70px; height:62px; margin-top:14px; }
.node-icon i { position:absolute; width:13px;height:13px;border:2px solid var(--blue);border-radius:50%; }
.node-icon i:nth-child(1){left:30px;top:0}.node-icon i:nth-child(2){left:2px;bottom:4px}.node-icon i:nth-child(3){right:2px;bottom:4px}.node-icon i:nth-child(4){left:29px;bottom:5px}
.node-icon::before,.node-icon::after{content:"";position:absolute;top:16px;width:36px;height:2px;background:var(--blue)}
.node-icon::before{left:7px;transform:rotate(55deg)}.node-icon::after{right:7px;transform:rotate(-55deg)}
.stack-icon { width:70px; height:60px; margin-top:12px; position:relative; }
.stack-icon i { position:absolute; width:52px; height:30px; left:8px; border:2px solid #9bb0c9; transform:rotate(45deg) skew(-8deg,-8deg); }
.stack-icon i:nth-child(2){top:11px}.stack-icon i:nth-child(3){top:22px}
.screen-icon { width:70px;height:52px;border:2px solid var(--yellow);margin-top:16px;position:relative; }
.screen-icon i { position:absolute;left:18px;right:18px;bottom:-12px;height:2px;background:var(--yellow); }

.metric-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:16px; }
.metric-card { position:relative; min-height:180px; padding:26px; background:rgba(11,18,30,.72); border:1px solid var(--line-strong); overflow:hidden; }
.metric-value { font:800 clamp(36px,4vw,62px)/1 var(--mono); letter-spacing:-.06em; }
.metric-card p { color:#a8b4c5; margin:12px 0 0; font-size:13px; }
.metric-line { position:absolute; left:0; right:40%; bottom:0; height:5px; }
.benchmark-note { display:flex;gap:10px;align-items:center;margin:18px 0 0;color:#7f8c9f;font:500 11px var(--mono); }
.benchmark-note span { width:18px;height:18px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center; }

.capability-strip {
  position:relative;
  z-index:2;
  max-width:var(--max);
  margin:0 auto;
  padding:34px;
  display:grid;
  grid-template-columns:290px 1fr;
  gap:32px;
  border-bottom:1px solid var(--line-strong);
  background:linear-gradient(105deg, rgba(235,239,244,.95) 0 22%, rgba(11,19,31,.96) 22% 100%);
}
.capability-lead { color:#0f1722; font:900 18px/1.05 var(--sans); letter-spacing:-.03em; }
.capability-lead span { display:block;width:36px;height:3px;background:var(--red);margin-top:16px; }
.capability-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line-strong);border:1px solid var(--line-strong); }
.capability { min-height:100px;padding:18px;background:#0e1827;display:flex;flex-direction:column;justify-content:center; }
.capability b { font-size:13px; }.capability span { margin-top:6px;color:#8996a8;font-size:11px; }

.docs-grid { display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center; }
.docs h2 { font-size:clamp(42px,4.5vw,72px); }
.code-card { border:1px solid var(--line-strong); background:#0a111c; }
.code-card pre { margin:0;padding:24px;overflow:auto;color:#c8d3e1;font:500 12px/1.7 var(--mono); }
.code-card-header { grid-template-columns:1fr auto; }

.waitlist-section {
  max-width:none;
  min-height:650px;
  padding:105px max(34px, calc((100vw - var(--max)) / 2));
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,.55fr);
  align-items:center;
  gap:80px;
  overflow:hidden;
}
.waitlist-visual { object-position:50% 92%; opacity:.48; filter:saturate(1.2) contrast(1.12) brightness(.44); }
.waitlist-overlay { position:absolute;inset:0;background:linear-gradient(90deg,#070c14 0%,rgba(7,12,20,.94) 45%,rgba(7,12,20,.28) 100%),linear-gradient(180deg,rgba(7,12,20,.25),#070c14); }
.waitlist-copy,.manifesto{position:relative;z-index:2}.waitlist-copy{max-width:780px}.waitlist-copy .section-label{border-color:rgba(255,48,64,.55);color:#ff949d}.waitlist-copy h2{margin-top:20px}.waitlist-copy>p{max-width:600px}
.manifesto { justify-self:end; color:#d9dde5; font:800 clamp(30px,3.7vw,58px)/.95 var(--mono); letter-spacing:.04em; text-align:left; text-shadow:0 2px 30px #000; }
.manifesto span{display:block;width:44px;height:4px;background:var(--yellow);margin-top:22px}

.site-footer {
  position:relative;z-index:2;
  max-width:var(--max);margin:0 auto;padding:30px 34px;
  display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:28px;
  border-top:1px solid var(--line-strong);color:#8290a3;font-size:11px;
}
.footer-brand{display:flex;align-items:center;gap:10px;color:#fff}.footer-brand .brand-mark{width:24px;height:24px}.site-footer p{margin:0}.site-footer p:nth-child(2){justify-self:start}.site-footer nav{display:flex;gap:18px}.site-footer a:hover{color:#fff}

.legal-popover { position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.72);display:grid;place-items:center;padding:20px; }
.legal-popover[hidden]{display:none}.legal-popover>div{position:relative;max-width:620px;padding:34px;background:#0d1624;border:1px solid var(--line-strong);box-shadow:var(--shadow)}.legal-popover h2{margin:0 0 12px;font-size:34px}.legal-popover p{color:#aeb9c9}.legal-popover button{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:26px;cursor:pointer}

[data-reveal] { opacity:0; transform:translate3d(0,28px,0) skewY(.8deg); transition:opacity .45s ease, transform .45s cubic-bezier(.18,.9,.22,1); transition-delay: var(--delay,0ms); }
[data-reveal].is-visible { opacity:1; transform:translate3d(0,0,0) skewY(0); }

@media (max-width: 1080px) {
  .site-header { grid-template-columns:auto 1fr auto; }
  .status-chip { display:none; }
  .nav-links { display:none; }
  .hero { grid-template-columns:1fr; min-height:auto; padding-top:130px; }
  .hero-console-wrap { justify-self:start; width:min(100%,760px); }
  .architecture-grid { grid-template-columns:1fr; }
  .system-card { min-height:0; }
  .section-heading,.section-heading.compact { grid-template-columns:1fr; gap:18px; }
  .pipeline-track { grid-template-columns:1fr; gap:12px; }
  .flow-arrow { transform:rotate(90deg); min-height:22px; }
  .pipeline-step,.pipeline-step:first-child { clip-path:none; min-height:0; }
  .metric-grid { grid-template-columns:1fr; }
  .capability-strip { grid-template-columns:1fr; background:#0e1827; }
  .capability-lead { color:#f4f7fb; }
  .docs-grid { grid-template-columns:1fr; }
  .waitlist-section { grid-template-columns:1fr; }
  .manifesto { justify-self:start; }
  .site-footer { grid-template-columns:1fr 1fr; }
  .site-footer nav { justify-self:end; }
}

@media (max-width: 720px) {
  .site-header { height:64px; padding:0 18px; gap:12px; }
  .brand span { font-size:14px; }
  .header-cta { min-height:40px; padding:0 12px; font-size:11px; }
  .hero { padding:112px 20px 74px; gap:38px; }
  .hero h1 { font-size:clamp(48px,15vw,72px); }
  .hero-visual { opacity:.34; object-position:70% 10%; }
  .waitlist-form { grid-template-columns:1fr; }
  .waitlist-form .button { width:100%; }
  .form-status { position:static; grid-column:1/-1; margin-top:0; }
  .console { min-height:0; padding:14px; font-size:10px; }
  .console-footer { flex-direction:column; }
  .section-frame { padding:84px 20px; }
  .section-heading h2,.docs h2,.waitlist-section h2 { font-size:clamp(42px,13vw,62px); }
  .section-kicker { grid-template-columns:auto 1fr; }.section-kicker small{display:none}
  .capability-strip { margin:0;padding:24px 20px; }
  .capability-grid { grid-template-columns:1fr 1fr; }
  .waitlist-section { padding:84px 20px; min-height:620px; }
  .manifesto { font-size:34px; }
  .site-footer { grid-template-columns:1fr; padding:26px 20px; }.site-footer nav{justify-self:start}
  .page-grid { background-size: 25vw 100%,100% 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation:none !important; transition:none !important; }
  [data-reveal] { opacity:1; transform:none; }
}
