:root {
  color-scheme: dark;
  --bg: #07101d;
  --bg-soft: #0b1728;
  --panel: #101e32;
  --panel-2: #14253c;
  --ink: #f2f7ff;
  --muted: #a9bad0;
  --accent: #63e6be;
  --accent-2: #6ea8fe;
  --warning: #ffd166;
  --danger: #ff7b8b;
  --line: #263b56;
  --max: 76rem;
  --radius: 1rem;
  --shadow: 0 24px 80px rgb(0 0 0 / 24%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% -10%, rgb(63 120 170 / 18%), transparent 33rem),
    radial-gradient(circle at 8% 18%, rgb(50 200 158 / 9%), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .24em; }
a:hover { color: #a3f5dc; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
code { font-size: .92em; }
pre { margin: 0; overflow: auto; white-space: pre; }
h1, h2, h3 { color: var(--ink); line-height: 1.08; text-wrap: balance; }
h1 { margin: .25rem 0 1.5rem; font-size: clamp(3rem, 8vw, 6.8rem); letter-spacing: -.055em; }
h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4.5vw, 3.65rem); letter-spacing: -.035em; }
h3 { margin: 0 0 .65rem; font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.skip { position: fixed; left: -9999px; top: .75rem; z-index: 100; }
.skip:focus { left: .75rem; padding: .65rem 1rem; border-radius: .5rem; background: var(--ink); color: var(--bg); }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgb(38 59 86 / 80%); background: rgb(7 16 29 / 88%); backdrop-filter: blur(18px); }
.nav { width: min(100% - 2rem, var(--max)); min-height: 4.5rem; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .65rem; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06101a; font-size: .78rem; letter-spacing: -.04em; box-shadow: 0 0 40px rgb(99 230 190 / 22%); }
.nav-links { display: flex; align-items: center; gap: 1.2rem; overflow-x: auto; padding: .6rem 0; }
.nav-links a { color: var(--muted); font-weight: 650; text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

main, .footer { width: min(100% - 2rem, var(--max)); margin: auto; }
.hero { min-height: 42rem; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(5rem, 10vw, 9rem) 0 5rem; }
.hero h1 { max-width: 11ch; }
.hero-copy .lead { max-width: 49rem; }
.eyebrow, .kicker { color: var(--accent); font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.lead { max-width: 58rem; color: #bdcbe0; font-size: clamp(1.18rem, 2.1vw, 1.5rem); line-height: 1.55; }
.lead-small { color: var(--muted); font-size: 1.15rem; }
.micro { color: var(--muted); font-size: .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1.25rem; }
.actions.centered { justify-content: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: .7rem; color: var(--ink); background: rgb(16 30 50 / 72%); font-weight: 750; text-decoration: none; }
.button:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.button.primary { border-color: transparent; background: var(--accent); color: #04120e; }

.terminal { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #07101b; box-shadow: var(--shadow); transform: rotate(1deg); }
.terminal-bar { height: 2.8rem; display: flex; align-items: center; gap: .45rem; padding: 0 1rem; border-bottom: 1px solid var(--line); background: var(--panel); }
.terminal-bar span { width: .7rem; height: .7rem; border-radius: 50%; background: #ff6b6b; }
.terminal-bar span:nth-child(2) { background: #ffd166; }
.terminal-bar span:nth-child(3) { background: #63e6be; }
.terminal-bar strong { margin-left: .45rem; color: var(--muted); font-size: .75rem; }
.terminal pre { padding: 1.5rem; color: #dbe8fa; font-size: .84rem; line-height: 1.75; }
.prompt { color: var(--accent-2); }.good { color: var(--accent); }.muted { color: #70849d; }

.release-banner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin: 0 0 2rem; padding: 1.25rem 1.4rem; border: 1px solid #375275; border-radius: var(--radius); background: linear-gradient(90deg, rgb(30 66 92 / 55%), rgb(16 30 50 / 80%)); }
.release-banner.warning { border-color: #745d28; background: linear-gradient(90deg, rgb(100 70 16 / 30%), rgb(16 30 50 / 80%)); }
.release-banner a { flex: 0 0 auto; font-weight: 750; }

.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; border-bottom: 1px solid var(--line); }
.section.compact { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.section-heading { max-width: 52rem; margin-bottom: 2rem; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.1rem; }
.code-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #0a1525; box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%); }
.code-panel pre { padding: 1.5rem; color: #e4eefb; line-height: 1.8; }
.code-panel.short { max-width: 38rem; margin-top: 1.5rem; }
.inline-links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.25rem; }
.inline-links a { font-weight: 700; }
.notice { margin-top: 1.5rem; padding: 1rem 1.2rem; border-left: 3px solid var(--warning); background: rgb(255 209 102 / 8%); color: #d8e2f0; }

.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; padding: 0; list-style: none; counter-reset: item; }
.pipeline li { min-height: 14rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.pipeline span { display: inline-block; margin-bottom: 2.5rem; color: var(--accent); font: 700 .75rem/1 monospace; }
.pipeline strong { display: block; margin-bottom: .5rem; font-size: 1.05rem; }
.pipeline p { color: var(--muted); font-size: .88rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card-grid article, .feature-row article, .example-grid article, .status-list article, .status-columns article { padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--panel), rgb(11 23 40 / 72%)); }
.card-grid article { min-height: 18rem; display: flex; flex-direction: column; }
.card-grid article p, .feature-row p, .example-grid p, .status-list p, .status-columns p { color: var(--muted); }
.card-grid article a { margin-top: auto; font-weight: 700; }
.icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 2.1rem; border: 1px solid #3b5777; border-radius: .7rem; color: var(--accent); font: 750 .72rem/1 monospace; }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.check-list, .cross-list { margin: 0; padding: 0; list-style: none; }
.check-list li, .cross-list li { position: relative; padding: .85rem 0 .85rem 2rem; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.cross-list li::before { content: "×"; position: absolute; left: 0; color: var(--danger); font-weight: 900; }
.check-list.small li { padding-top: .45rem; padding-bottom: .45rem; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-row article { min-height: 13rem; }
.feature-row a { font-weight: 700; }
.cta { text-align: center; }
.cta > p:not(.kicker) { max-width: 48rem; margin-left: auto; margin-right: auto; color: var(--muted); font-size: 1.1rem; }

.page { padding-bottom: 2rem; }
.page-hero { max-width: 68rem; padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { max-width: 14ch; font-size: clamp(2.8rem, 7vw, 5.8rem); }
.toc { position: sticky; top: 4.5rem; z-index: 20; display: flex; gap: .8rem; overflow-x: auto; margin: 0 0 1rem; padding: .8rem 0; background: rgb(7 16 29 / 94%); }
.toc a { padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 99rem; color: var(--muted); text-decoration: none; white-space: nowrap; font-size: .85rem; }
.toc a:hover { border-color: var(--accent); color: var(--ink); }
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.link-grid > a { min-height: 9rem; display: flex; flex-direction: column; padding: 1.2rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--panel); color: var(--ink); text-decoration: none; }
.link-grid > a:hover { border-color: var(--accent); transform: translateY(-2px); }
.link-grid span { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.link-grid.dense > a { min-height: 8rem; }
.topic-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.topic-columns > div { display: flex; flex-direction: column; gap: .45rem; }
.topic-columns h3 { margin-bottom: .6rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.topic-columns a { color: #c7d7e9; text-decoration: none; }
.topic-columns a:hover { color: var(--accent); }

.example-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.example-grid.three { grid-template-columns: repeat(3, 1fr); }
.example-grid article { display: flex; flex-direction: column; min-height: 17rem; }
.example-grid article > a { margin-top: auto; font-weight: 700; }
.example-grid pre { margin: 1rem 0; padding: .8rem; border-radius: .6rem; background: #081321; font-size: .78rem; }
.tag { align-self: flex-start; margin-bottom: 1.5rem; padding: .25rem .55rem; border: 1px solid #3a5776; border-radius: 99rem; color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.example-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.example-feature > pre { padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: #081321; font-size: .8rem; line-height: 1.75; }

.package-table { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.package-table a { display: grid; grid-template-columns: minmax(16rem, .8fr) 1.2fr; gap: 1.5rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.package-table a:last-child { border-bottom: 0; }
.package-table a:hover { background: var(--panel); }
.package-table span { color: var(--muted); }
.api-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.api-flow > div { padding: 1.1rem; border-top: 2px solid var(--accent); background: var(--panel); }
.api-flow p { margin: .5rem 0 0; color: var(--muted); font-size: .9rem; }
.command-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.command-groups > div { padding: 1.1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--panel); }
.command-groups code { display: inline-block; margin: .18rem; padding: .25rem .45rem; border-radius: .35rem; background: #07111f; color: #d5e3f5; }

.metrics { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; margin-bottom: 2rem; }
.metrics > div { padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--panel); }
.metrics strong { display: block; color: var(--accent); font-size: 2rem; line-height: 1; }
.metrics span { display: block; margin-top: .6rem; color: var(--muted); font-size: .8rem; }
.status-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.status-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.status-columns article { min-height: 16rem; }
.status-columns li { margin-bottom: .35rem; }
.status-ready { border-top: 3px solid var(--accent) !important; }
.status-development { border-top: 3px solid var(--warning) !important; }
.gate-table { display: grid; gap: .5rem; }
.gate-table > div { display: grid; grid-template-columns: 6rem minmax(12rem, .75fr) 1.25fr; gap: 1rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--panel); }
.gate-table p { margin: 0; color: var(--muted); }
.gate { display: inline-flex; justify-content: center; padding: .25rem .45rem; border-radius: 99rem; font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.gate.pass { color: var(--accent); background: rgb(99 230 190 / 10%); }
.gate.partial { color: var(--warning); background: rgb(255 209 102 / 10%); }
.gate.blocked { color: var(--danger); background: rgb(255 123 139 / 10%); }

.footer { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; padding: 3.5rem 0 2rem; color: var(--muted); }
.footer > div { display: flex; flex-direction: column; gap: .35rem; }
.footer strong { color: var(--ink); }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-meta { grid-column: 1 / -1; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .78rem; overflow-wrap: anywhere; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 12ch; }
  .terminal { max-width: 48rem; transform: none; }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .card-grid, .link-grid, .example-grid.three { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .nav { align-items: flex-start; flex-direction: column; gap: 0; padding: .65rem 0; }
  .nav-links { width: 100%; flex-wrap: wrap; gap: .55rem 1rem; overflow: visible; }
  .hero { min-height: 0; padding-top: 4rem; }
  .release-banner { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .pipeline, .card-grid, .feature-row, .link-grid, .topic-columns, .example-grid, .example-grid.three, .status-list, .status-columns, .command-groups { grid-template-columns: 1fr; }
  .split, .example-feature { grid-template-columns: 1fr; }
  .api-flow { grid-template-columns: repeat(2, 1fr); }
  .package-table a { grid-template-columns: 1fr; gap: .35rem; }
  .gate-table > div { grid-template-columns: 5.5rem 1fr; }
  .gate-table p { grid-column: 1 / -1; }
  .footer { grid-template-columns: repeat(2, 1fr); }
  .toc { top: 7.4rem; }
}

@media (max-width: 480px) {
  main, .footer, .nav { width: min(100% - 1.2rem, var(--max)); }
  h1 { font-size: 2.75rem; }
  .actions .button { width: 100%; }
  .pipeline, .api-flow, .metrics, .footer { grid-template-columns: 1fr; }
  .terminal pre, .code-panel pre { font-size: .74rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  :root { color-scheme: light; --bg: #fff; --panel: #fff; --ink: #101828; --muted: #344054; --line: #d0d5dd; }
  body { background: #fff; }
  .site-header, .actions, .toc { display: none; }
  main, .footer { width: 100%; }
  a { color: #101828; }
}
