:root {
  color-scheme: dark;
  --bg: #090a0c;
  --surface: #0e1013;
  --surface-2: #12151a;
  --line: #24282f;
  --line-soft: #191c21;
  --text: #edf0f2;
  --muted: #949ba5;
  --faint: #5e6671;
  --accent: #6ee7b7;
  --blue: #79aef8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 74% 7%, rgb(43 84 71 / 14%), transparent 31rem),
    radial-gradient(circle at 17% 55%, rgb(38 67 82 / 7%), transparent 26rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 20; padding: 10px 14px; color: #07120e; background: var(--accent); border-radius: 5px; }
.skip-link:focus { top: 12px; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.nav { position: relative; z-index: 5; height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 760; letter-spacing: .2em; }
.brand img { width: 30px; height: 30px; }
.nav nav { display: flex; gap: 30px; color: var(--muted); font-size: 13px; }
.nav nav a:hover, footer a:hover { color: var(--text); }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 19px; border: 1px solid var(--accent); border-radius: 7px; color: #07120e; background: var(--accent); font-size: 13px; font-weight: 700; transition: transform .18s ease, filter .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.button-small { min-height: 36px; padding-inline: 14px; font-size: 12px; }
.button-ghost { color: var(--text); background: #101318; border-color: #30363e; }

.hero { min-height: 720px; padding-block: 78px 102px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 66px; }
.eyebrow, .kicker { margin: 0; color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 26px; }
.eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.hero h1 { margin: 0; font-size: clamp(51px, 5.2vw, 78px); line-height: .99; letter-spacing: -.058em; font-weight: 570; }
.hero h1 em { color: var(--accent); font-style: normal; font-weight: 530; }
.hero-lede { max-width: 590px; margin: 29px 0 32px; color: #a8afb8; font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; gap: 10px; }
.proof-row { margin-top: 29px; display: flex; flex-wrap: wrap; gap: 19px; color: var(--faint); font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.proof-row span { display: flex; align-items: center; gap: 7px; }
.proof-row i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.vector-stage { position: relative; aspect-ratio: 1.04; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, rgb(14 17 20 / 92%), rgb(8 10 12 / 70%)); box-shadow: 0 38px 120px rgb(0 0 0 / 46%); }
.stage-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle, black, transparent 82%); }
#vector-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.query-card, .stage-status { position: absolute; z-index: 2; border: 1px solid var(--line); background: rgb(9 11 14 / 88%); backdrop-filter: blur(8px); font-family: "SFMono-Regular", Consolas, monospace; }
.query-card { left: 18px; top: 18px; padding: 11px 13px; border-radius: 5px; }
.query-card span { display: block; margin-bottom: 5px; color: var(--faint); font-size: 8px; letter-spacing: .1em; }
.query-card strong { color: #cbd1d7; font-size: 9px; font-weight: 500; }
.stage-status { right: 18px; top: 18px; display: flex; align-items: center; gap: 7px; padding: 8px 10px; color: var(--muted); border-radius: 5px; font-size: 8px; }
.stage-status span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.vector-stage > p { position: absolute; bottom: 14px; left: 0; right: 0; z-index: 2; margin: 0; color: var(--faint); text-align: center; font-size: 9px; }

.principles { min-height: 96px; display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); align-items: center; border-block: 1px solid var(--line-soft); color: #bcc2c9; font-size: 12px; }
.principles > p { color: var(--faint); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; letter-spacing: .12em; }
.principles > div { border-left: 1px solid var(--line-soft); padding-left: 21px; }
.principles span { margin-right: 8px; color: var(--accent); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; }

.section { padding-block: 128px; border-bottom: 1px solid var(--line-soft); }
.section-heading { margin-bottom: 58px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 85px; }
.section h2, .closing h2 { max-width: 760px; margin: 12px 0 0; font-size: clamp(38px, 4.2vw, 59px); font-weight: 530; letter-spacing: -.047em; line-height: 1.06; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.section-heading code { color: #c2c8ce; }

.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 0 28px; padding: 0; border: 1px solid var(--line); list-style: none; background: var(--surface); }
.pipeline li { position: relative; min-height: 148px; padding: 24px 20px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.pipeline li:last-child { border-right: 0; background: linear-gradient(145deg, rgb(110 231 183 / 8%), transparent); }
.pipeline li:not(:last-child)::after { content: "→"; position: absolute; right: -10px; bottom: 25px; z-index: 2; padding: 2px 4px; color: var(--accent); background: var(--surface); }
.pipeline span { color: var(--faint); font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; }
.pipeline strong { margin-top: auto; font-size: 13px; font-weight: 650; }
.pipeline small { margin-top: 6px; color: var(--faint); font-size: 9px; }
.architecture-frame { padding: 17px; border: 1px solid var(--line); background: #0c0e11; }
.architecture-frame img { width: 100%; border-radius: 4px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.feature-grid article { min-height: 235px; padding: 31px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgb(14 16 19 / 50%); transition: background .2s ease; }
.feature-grid article:hover { background: var(--surface-2); }
.feature-grid b { color: var(--accent); font-family: "SFMono-Regular", Consolas, monospace; font-size: 22px; font-weight: 400; }
.feature-grid h3 { margin: 43px 0 12px; font-size: 15px; font-weight: 650; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }

.benchmark-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) .6fr; border: 1px solid var(--line); background: var(--surface); }
.benchmark-layout figure { margin: 0; padding: 25px; border-right: 1px solid var(--line); }
.benchmark-layout figure img { width: 100%; border-radius: 4px; }
.benchmark-layout figcaption { margin-top: 14px; color: var(--faint); font-size: 9px; line-height: 1.6; }
.metric-stack { display: grid; grid-template-rows: repeat(3, 1fr) auto; }
.metric-stack > div { padding: 23px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); }
.metric-stack span { color: var(--faint); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; letter-spacing: .1em; }
.metric-stack strong { margin: 7px 0 4px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 25px; font-weight: 500; }
.metric-stack small { color: var(--muted); font-size: 9px; }
.metric-stack > a { padding: 18px 22px; display: flex; justify-content: space-between; color: var(--accent); font-size: 11px; }
.evidence-note { max-width: 850px; margin: 25px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }

.deploy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.deploy-grid article { min-height: 315px; padding: 29px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.deploy-grid article.featured { border-color: rgb(110 231 183 / 42%); background: linear-gradient(150deg, rgb(110 231 183 / 8%), var(--surface) 55%); }
.status-tag { align-self: flex-start; padding: 5px 7px; border: 1px solid #303640; border-radius: 3px; color: var(--faint); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; letter-spacing: .1em; }
.featured .status-tag { color: var(--accent); border-color: rgb(110 231 183 / 35%); }
.deploy-grid h3 { margin: 47px 0 13px; font-size: 19px; }
.deploy-grid p { margin: 0 0 26px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.deploy-grid code { margin-top: auto; padding: 11px 12px; color: #bfc6ce; border: 1px solid var(--line); border-radius: 4px; background: #090b0d; font-size: 10px; }
.boundary { margin: 18px 0 0; padding: 16px 18px; color: var(--muted); border-left: 2px solid #38404a; background: rgb(14 16 19 / 55%); font-size: 11px; line-height: 1.75; }
.boundary strong { color: #d3d8dd; }

.console-tabs { display: flex; gap: 5px; margin-bottom: 12px; }
.console-tabs button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--surface); font-size: 10px; cursor: pointer; }
.console-tabs button:hover { color: var(--text); border-color: #3d454f; }
.console-tabs button[aria-selected="true"] { color: #07120e; border-color: var(--accent); background: var(--accent); }
.console-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #0b0d0f; box-shadow: 0 30px 90px rgb(0 0 0 / 35%); }
.browser-bar { height: 41px; padding: 0 14px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #343941; }
.browser-bar span { margin-left: 9px; color: var(--faint); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; }
.console-frame > img { width: 100%; transition: opacity .18s ease; }

.quickstart { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 92px; }
.quickstart h2 { margin-bottom: 22px; }
.quickstart-copy > p:not(.kicker) { color: var(--muted); font-size: 13px; line-height: 1.8; }
.quick-links { margin-top: 27px; display: flex; flex-direction: column; gap: 12px; }
.quick-links a { display: flex; justify-content: space-between; padding-bottom: 10px; color: var(--accent); border-bottom: 1px solid var(--line); font-size: 11px; }
.code-window { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #0c0e11; box-shadow: 0 28px 80px rgb(0 0 0 / 30%); }
.code-title { height: 43px; padding: 0 14px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); }
.code-title i { width: 7px; height: 7px; border-radius: 50%; background: #343941; }
.code-title span { margin-left: 8px; color: var(--faint); font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; }
.code-title button { margin-left: auto; padding: 4px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: #101318; font-size: 8px; cursor: pointer; }
.code-window pre { margin: 0; padding: 30px; overflow-x: auto; color: #c9d0d7; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; line-height: 1.85; }
.purple { color: #c4a7e7; }.green { color: #8bd5ca; }.gold { color: #f6c177; }

.closing { min-height: 500px; padding-block: 115px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.closing h2 { max-width: 820px; }
.closing > p:not(.kicker) { max-width: 620px; margin: 24px 0 31px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.closing > div { display: flex; gap: 10px; }
footer { min-height: 190px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 10px; }
footer .brand { color: var(--text); }
footer nav { display: flex; justify-content: flex-end; gap: 21px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .shell { width: min(100% - 28px, 740px); }
  .nav nav { display: none; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 55px; padding-block: 65px 78px; }
  .vector-stage { max-width: 620px; width: 100%; }
  .principles { padding-block: 24px; grid-template-columns: 1fr 1fr; gap: 19px; }
  .principles > p { grid-column: 1 / -1; }
  .principles > div { padding: 0; border: 0; }
  .section { padding-block: 84px; }
  .section-heading, .quickstart { grid-template-columns: 1fr; gap: 33px; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline li { min-height: 82px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pipeline li:not(:last-child)::after { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .benchmark-layout { grid-template-columns: 1fr; }
  .benchmark-layout figure { border-right: 0; border-bottom: 1px solid var(--line); }
  .deploy-grid { grid-template-columns: 1fr; }
  .deploy-grid article { min-height: 250px; }
  footer { grid-template-columns: 1fr; gap: 20px; padding-block: 43px; }
  footer nav { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 45px; }
  .hero-actions, .closing > div { align-items: stretch; flex-direction: column; }
  .proof-row { flex-direction: column; gap: 9px; }
  .principles { grid-template-columns: 1fr; }
  .principles > p { grid-column: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .section h2, .closing h2 { font-size: 36px; }
  .benchmark-layout figure { padding: 12px; }
  .console-tabs { overflow-x: auto; padding-bottom: 4px; }
  .console-tabs button { white-space: nowrap; }
  .code-window pre { padding: 22px; font-size: 10px; }
  footer > p { line-height: 1.6; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
