:root {
  color-scheme: dark;
  --bg: #0b0910;
  --panel: #100d16;
  --panel-2: #15111d;
  --text: #eeeaf4;
  --muted: #9b94a5;
  --quiet: #665f70;
  --line: #30283b;
  --purple: #9a7cff;
  --green: #72ef98;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.55; }
a { color: inherit; }
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 20; padding: .6rem .8rem; background: var(--green); color: #07150a; }
.skip-link:focus { top: 1rem; }

.site-header { width: min(calc(100% - 2rem), var(--max)); min-height: 3.8rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { font: 850 1.18rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.06em; text-decoration: none; }
.brand span, .brand i { color: var(--green); font-style: normal; }
nav { display: flex; gap: clamp(.8rem, 2.4vw, 1.8rem); }
nav a { color: var(--muted); font: 650 .71rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--green); }

main > section, footer { padding-left: max(1rem, calc((100vw - var(--max)) / 2)); padding-right: max(1rem, calc((100vw - var(--max)) / 2)); }
.intro { padding-top: 3.8rem; padding-bottom: 2.5rem; }
.technical-line, .section-label { margin: 0 0 .9rem; color: var(--green); font: 700 .7rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
h1 { margin: 0 0 1rem; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.055em; }
.summary { max-width: 780px; margin: 0; color: #bbb5c4; font-size: clamp(1rem, 1.8vw, 1.18rem); }
.meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.meta span { padding: .3rem .55rem; border: 1px solid var(--line); color: var(--muted); font: 650 .62rem/1 ui-monospace, monospace; }
.meta .pre { border-color: #594395; color: var(--purple); }

.terminal-demo { padding-bottom: 4.5rem; }
.terminal-top { min-height: 2.4rem; padding: 0 .9rem; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-bottom: 0; background: var(--panel-2); color: var(--muted); font: 650 .64rem/1 ui-monospace, monospace; }
.terminal-top i { display: inline-block; width: .45rem; height: .45rem; margin-right: .35rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 .5rem #72ef9888; }
.terminal-demo pre { margin: 0; padding: clamp(1rem, 2.2vw, 1.8rem); overflow-x: auto; border: 1px solid var(--line); background: #08070b; font: clamp(.56rem, 1.15vw, .84rem)/1.52 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.violet { color: var(--purple); }.green { color: var(--green); }.dim { color: #756e7e; }.selected { background: var(--green); color: #07150a; }
.demo-note { margin: .65rem 0 0; color: var(--quiet); font: 600 .61rem/1.4 ui-monospace, monospace; text-align: right; }

.text-section, .feature-section, .internals, .install { padding-top: 4.5rem; padding-bottom: 4.5rem; border-top: 1px solid var(--line); }
h2 { margin: 0; font-size: clamp(1.8rem, 3.3vw, 3rem); line-height: 1.08; letter-spacing: -.04em; }
.section-content { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); }
.story-content > div { color: var(--muted); font-size: .98rem; }
.story-content > div p:last-child { margin-bottom: 0; }

.feature-section { background: var(--panel); }
.feature-section > h2 { margin-bottom: 2rem; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-list article { min-height: 150px; padding: 1.25rem; display: grid; grid-template-columns: 80px 1fr; gap: 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
kbd { align-self: start; justify-self: start; min-width: 2.1rem; padding: .35rem .45rem; border: 1px solid #514263; border-radius: .25rem; color: var(--green); background: #0b0910; box-shadow: none; font: 700 .68rem/1 ui-monospace, monospace; text-align: center; }
.feature-list h3 { margin: 0 0 .35rem; font-size: 1rem; }
.feature-list p { margin: 0; color: var(--muted); font-size: .83rem; }

.internals h2 { margin-bottom: 2rem; }
.stack { border-top: 1px solid var(--line); }
.stack div { min-height: 3.5rem; display: grid; grid-template-columns: 130px 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.stack span { color: var(--purple); font: 700 .67rem/1 ui-monospace, monospace; }
.stack strong { color: #c6c0ce; font: 600 .79rem/1.5 ui-monospace, monospace; }

.install { background: var(--panel-2); }
.install-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; margin-bottom: 2rem; }
.install-heading p { max-width: 590px; margin: 0; color: var(--muted); font-size: .86rem; }
.commands { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.commands > div { position: relative; min-width: 0; padding: 1rem; border: 1px solid var(--line); background: #08070b; }
.commands span { display: block; margin-bottom: .6rem; color: var(--quiet); font: 650 .59rem/1 ui-monospace, monospace; text-transform: uppercase; }
.commands code { display: block; overflow-x: auto; padding-right: 3.5rem; color: var(--green); font: 650 .75rem/1.5 ui-monospace, monospace; white-space: nowrap; }
.commands button { position: absolute; right: .75rem; bottom: .75rem; border: 0; background: transparent; color: var(--purple); font: 650 .62rem/1 ui-monospace, monospace; cursor: pointer; }
.commands button:hover { color: var(--green); }

footer { padding-top: 2.5rem; padding-bottom: 2.5rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; color: var(--quiet); border-top: 1px solid var(--line); }
footer > div { display: flex; flex-direction: column; gap: .6rem; }
footer strong { color: var(--text); font: 850 1rem/1 ui-monospace, monospace; } footer strong span { color: var(--green); }
footer span, footer p { margin: 0; font-size: .68rem; }
footer p { max-width: 650px; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
@media (max-width: 720px) {
  nav a:not(:last-child) { display: none; }
  .intro { padding-top: 2.8rem; }
  .section-content, .install-heading, footer { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-list, .commands { grid-template-columns: 1fr; }
  .feature-list article { min-height: 135px; grid-template-columns: 65px 1fr; }
}
@media (max-width: 430px) {
  .site-header { min-height: 3.4rem; }
  h1 { font-size: 2.3rem; }
  .stack div { grid-template-columns: 95px 1fr; gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.terminal-demo video { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #08070b; }
.not-found { width: min(calc(100% - 2rem), 760px); min-height: 100vh; margin: 0 auto; padding: 16vh 0 4rem; }
.not-found a { color: var(--green); font: 700 .75rem/1 ui-monospace, monospace; text-decoration: none; }
