@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0c1017;
  --panel: #141d2a;
  --ink: #edf2f9;
  --muted: #acbbce;
  --accent: #8ac4ff;
  --memory: #9adecc;
  --line: #2a384b;
  --code: #101722;
  --measure: 1120px;
  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 "Segoe UI", Helvetica, Arial, sans-serif; }
html { scrollbar-color: #52647c var(--bg); }
::selection { background: #314c70; color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: #cde5ff; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.16; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 4.8vw, 4.5rem); letter-spacing: -.035em; margin: 0 0 28px; }
h2 { font-size: clamp(2rem, 3.2vw, 3rem); letter-spacing: -.03em; margin: 0; }
h3 { font-size: 1.35rem; letter-spacing: -.015em; margin: 0 0 16px; }
strong { color: var(--ink); font-weight: 600; }
pre, code { font-family: var(--mono); }
code { font-size: .86em; overflow-wrap: anywhere; }
p code, th code { color: #c5ddf7; }
pre { font-size: 14px; line-height: 1.8; margin: 0; padding: 24px; overflow: auto; background: var(--code); border: 1px solid var(--line); border-radius: 6px; tab-size: 2; scrollbar-width: thin; scrollbar-color: #52647c var(--code); }
pre code { font-size: inherit; overflow-wrap: normal; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 30; padding: 12px 20px; background: var(--ink); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 32px; padding: 16px max(24px, calc((100vw - var(--measure)) / 2)); border-bottom: 1px solid var(--line); background: var(--bg); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font: 600 20px/1 var(--display); text-decoration: none; white-space: nowrap; }
.mark { width: 28px; height: 28px; color: var(--accent); flex: none; }
.release { color: var(--muted); font: 12px/1 var(--mono); margin-left: 3px; }
.links { display: flex; justify-content: center; flex: 1; gap: 24px; }
.links a, .source-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; white-space: nowrap; }
.links a { color: var(--muted); border-bottom: 1px solid transparent; transition: color .15s ease, border-color .15s ease; }
.links a:hover, .links a:focus-visible { color: var(--ink); border-bottom-color: var(--accent); }
.source-link { gap: 8px; }
.hero { position: relative; isolation: isolate; max-width: var(--measure); margin: auto; padding: 88px 0 0; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 80% 36%, #1b36554d, transparent 65%); pointer-events: none; }
.hero-connections { position: absolute; inset: 0; width: 100%; height: calc(100% - 70px); color: var(--accent); opacity: .16; z-index: -1; pointer-events: none; }
.hero h1 span { color: var(--accent); }
.sub strong { color: var(--memory); font-weight: 600; }
.sub { font-size: 21px; line-height: 1.55; color: var(--ink); max-width: 44ch; }
.hero-detail { color: var(--muted); max-width: 56ch; font-size: 16px; }
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 24px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 13px 20px; min-height: 48px; background: var(--accent); color: #101d2d; font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 5px; box-shadow: 0 5px 16px #03070d66; transition: background .15s ease, box-shadow .15s ease; }
.btn:hover { background: #b8dcff; color: #101d2d; box-shadow: 0 8px 24px #03070d99; }
.btn:active { background: #78b6f2; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.knowledge-preview { margin: 0; border: 1px solid #476587; border-radius: 10px; overflow: hidden; background: linear-gradient(155deg, #1b2a3e, var(--panel) 60%); box-shadow: 0 24px 56px #05080d80; }
.knowledge-preview figcaption { display: flex; align-items: center; gap: 10px; padding: 18px 24px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.status-dot { height: 6px; width: 6px; background: var(--accent); border-radius: 50%; flex: none; }
.file-preview { padding: 24px 24px 16px; }
.file-path { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; font: 13px/1.6 var(--mono); margin-bottom: 14px; }
.file-path span { font: 12px/1.6 "Segoe UI", sans-serif; color: var(--muted); }
.file-preview pre { border: 0; padding: 0; background: transparent; font-size: 13px; }
.syntax-muted { color: var(--muted); }
.syntax-key { color: #b6ceff; }
.syntax-link { color: #8cdbca; }
.preview-index { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 0 24px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.preview-query { padding: 22px 24px 12px; background: #10252266; margin-top: 14px; }
.preview-query > span { font-size: 12px; display: block; margin-bottom: 6px; color: var(--memory); }
.preview-query strong { font: 500 19px/1.4 var(--display); }
.preview-query p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.preview-caption { padding: 8px 24px 18px; font-size: 12px; color: var(--muted); }
.principles { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; list-style: none; margin: 0; padding: 24px 0; border-top: 1px solid var(--line); gap: 12px 24px; color: var(--muted); font-size: 14px; }
.principles li { display: flex; align-items: center; gap: 10px; }
.principles li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #577698; }
.principles li:first-child { color: var(--memory); }
.principles li:first-child::before { background: var(--memory); }
main { max-width: var(--measure); margin: auto; }
section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: .85fr 1.4fr; gap: 72px; align-items: start; margin-bottom: 44px; }
.section-intro h2::after { content: ""; display: block; width: 48px; height: 2px; margin-top: 24px; background: var(--accent); }
.prose { color: var(--muted); max-width: 72ch; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 24px; margin: 0 0 32px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(120deg, #152235, #101722); }
.flow li { padding: 0 24px; border-left: 1px solid var(--line); }
.flow li:first-child { padding-left: 0; border: 0; }
.flow-label { color: var(--muted); font-size: 12px; display: block; margin-bottom: 8px; }
.flow strong { display: block; font: 500 18px/1.3 var(--display); }
.flow p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.memory-vault { display: grid; grid-template-columns: .85fr 1.4fr; gap: 64px; position: relative; padding: 36px; border: 1px solid #375a60; border-radius: 10px; background: linear-gradient(115deg, #142c30, #141d2a 75%); box-shadow: 0 16px 32px #05080d40; scroll-margin-top: 120px; }
.memory-heading, .memory-body { min-width: 0; }
.memory-symbol { width: 56px; height: 56px; color: var(--memory); margin-bottom: 18px; }
.memory-heading h3 { font-size: 27px; color: var(--ink); }
.memory-heading p { color: #b1cec9; font-size: 15px; }
.memory-body > p { color: #b7c9d6; font-size: 16px; }
.memory-loop { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 20px 0; margin: 24px 0; border-block: 1px solid #37535c; }
.memory-loop strong { display: block; font: 500 18px/1.4 var(--display); color: var(--memory); margin-bottom: 8px; }
.memory-loop span { display: block; font-size: 14px; line-height: 1.6; color: #b7c9d6; }
.memory-body .memory-storage { font-size: 14px; color: #b7c9d6; }
.note { display: grid; grid-template-columns: .85fr 1.4fr; gap: 72px; padding: 28px 32px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.note h3 { font-size: 18px; margin: 0; }
.note p { color: var(--muted); font-size: 15px; }
.setup { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 30px; background: linear-gradient(140deg, #1a283b, var(--panel) 65%); border: 1px solid #3b506b; border-radius: 8px; margin-bottom: 48px; }
.setup > div, .step > div, .doors article, .impl > *, .hero > *, .section-intro > * { min-width: 0; }
.setup p { color: var(--muted); font-size: 15px; }
.setup pre { margin-top: 20px; }
.small-copy { font-size: 13px !important; margin-top: 12px; }
.timeline { counter-reset: steps; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 36px 0; border-top: 1px solid var(--line); }
.step-copy { position: relative; padding-left: 46px; }
.step-no { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #4d7196; border-radius: 50%; font: 500 14px/1 var(--display); color: var(--accent); }
.step p { color: var(--muted); font-size: 16px; }
.example-label { display: block; color: var(--muted); font-size: 12px; margin: 0 0 12px; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.feat-grid article { border-top: 1px solid var(--line); padding: 28px 0; }
.feat-grid h3 { font-size: 21px; margin-bottom: 12px; color: #b9d9fb; }
.feat-grid p { color: var(--muted); font-size: 16px; max-width: 60ch; }
.table-wrap { overflow-x: auto; margin: 32px 0; scrollbar-width: thin; scrollbar-color: #52647c var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
caption { text-align: left; color: var(--muted); font-size: 13px; padding-bottom: 16px; }
th, td { padding: 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--muted); font-size: 12px; font-weight: 600; }
tbody th { font-weight: 500; color: var(--ink); }
td { color: var(--muted); }
tbody tr:hover { background: var(--panel); }
.tag { display: inline-block; color: #8cdbca; font-size: 11px; margin-left: 6px; }
.impl { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 44px; align-items: start; }
.impl p { color: var(--muted); font-size: 16px; }
.doors { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.doors article { border-top: 1px solid var(--line); padding-top: 28px; }
.doors h3 { font-size: 22px; }
.doors p { color: var(--muted); font-size: 15px; }
.doors pre { font-size: 12px; padding: 18px; margin-top: 24px; }
.package { display: grid; grid-template-columns: .85fr 1.4fr; gap: 72px; border-top: 1px solid var(--line); padding: 36px 0; scroll-margin-top: 120px; }
.package-heading h3 { font-size: 30px; margin-bottom: 12px; }
.package-heading p { color: var(--muted); font-size: 15px; }
.ver { font: 12px/1 var(--mono); color: var(--muted); margin-left: 8px; vertical-align: middle; }
.benchmark { padding: 22px 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 36px; }
summary { cursor: pointer; font-size: 16px; color: var(--ink); padding-block: 4px; }
summary::marker { color: var(--accent); }
.benchmark > p { color: var(--muted); font-size: 14px; margin-top: 20px; }
.benchmark .table-wrap { margin-bottom: 8px; }
.closing { text-align: center; padding-block: 88px; background: radial-gradient(ellipse at 50% 100%, #1b36554d, transparent 70%); }
.closing p { max-width: 60ch; margin: 24px auto 0; color: var(--muted); }
.closing .cta { justify-content: center; }
footer { max-width: var(--measure); margin: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 30px; padding: 30px 0 40px; border-top: 1px solid var(--line); font-size: 14px; }
footer p { color: var(--muted); margin: 0; }
footer > div { display: flex; gap: 24px; margin-left: auto; }
footer a:not(.brand) { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 1200px) {
  .hero, main, footer { margin-inline: 32px; }
  .top { padding-inline: 32px; gap: 24px; }
  .links { gap: 18px; }
  .hero { gap: 36px; }
}
@media (max-width: 1000px) {
  .top { flex-wrap: wrap; gap: 4px 20px; padding-block: 12px 0; }
  .source-link { margin-left: auto; }
  .links { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; gap: 26px; padding: 0 2px 4px; scrollbar-width: thin; }
  .hero { padding-top: 60px; gap: 32px; }
  .section-intro, .note, .package, .memory-vault { gap: 36px; }
  .step, .impl { gap: 32px; }
  .doors { grid-template-columns: 1fr; gap: 32px; }
  .doors article { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0 32px; }
  .doors h3, .doors p, .doors .text-link { grid-column: 1; }
  .doors pre { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; font-size: 13px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 140px; }
  body { font-size: 16px; }
  .top { padding-inline: 20px; }
  .release { display: none; }
  .hero, main, footer { margin-inline: 20px; }
  .hero { grid-template-columns: 1fr; padding-top: 44px; gap: 36px; }
  h1 { font-size: clamp(2.6rem, 8.5vw, 3.5rem); }
  .sub { font-size: 19px; }
  .hero-detail { font-size: 16px; }
  .principles { justify-content: flex-start; gap: 10px 24px; font-size: 13px; }
  section { padding-block: 56px; }
  .section-intro, .setup, .step, .impl, .note, .package, .memory-vault { grid-template-columns: 1fr; gap: 24px; }
  .hero-connections { opacity: .1; height: 65%; }
  .memory-vault { padding: 24px; scroll-margin-top: 140px; }
  .memory-symbol { width: 44px; height: 44px; margin-bottom: 12px; }
  .memory-heading h3 br { display: none; }
  .section-intro { margin-bottom: 32px; }
  .flow { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .flow li { padding: 0; border: 0; }
  .note, .setup { padding: 24px; }
  .setup { gap: 36px; }
  .step { padding-block: 30px; }
  .example { margin-left: 46px; }
  .feat-grid { column-gap: 28px; }
  .feat-grid h3 { font-size: 20px; }
  .doors article { display: block; }
  .doors pre { margin-top: 24px; }
  .package { scroll-margin-top: 140px; }
  table { min-width: 580px; }
  th, td { padding: 14px 12px; }
  footer > div { margin-left: 0; width: 100%; }
}
@media (max-width: 480px) {
  .feat-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.65rem; }
  .example { margin-left: 0; }
  pre { padding: 18px; font-size: 12px; }
  .file-preview, .preview-query { padding-inline: 20px; }
  .preview-index { margin-inline: 20px; }
  .benchmark { padding: 18px; }
  .memory-loop { grid-template-columns: 1fr; gap: 20px; }
  .memory-loop strong { margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root { --bg: #fff; --ink: #111; --muted: #333; --accent: #134b80; --line: #bbb; --panel: #f5f5f5; --code: #f5f5f5; }
  .top, .skip-link, .cta, .principles { display: none; }
  .hero, main, footer { margin-inline: 0; }
  section { padding-block: 32px; }
  .knowledge-preview { box-shadow: none; }
  pre { white-space: pre-wrap; overflow: visible; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
}
