:root {
  --ink: #111319;
  --paper: #f4f1e9;
  --paper-2: #e9e5da;
  --white: #fffdf8;
  --blue: #315cff;
  --blue-dark: #2445cc;
  --orange: #ff7043;
  --lime: #c9f34a;
  --muted: #686a70;
  --line: rgba(17, 19, 25, .16);
  --radius: 8px;
  --shell: 1180px;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Manrope, "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
svg, img { display: block; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 1000; top: -60px; left: 16px; padding: 12px 16px;
  color: white; background: var(--blue); border-radius: var(--radius);
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.site-header {
  position: absolute; z-index: 50; top: 0; left: 0; right: 0;
  color: white; border-bottom: 1px solid rgba(255,255,255,.16);
}
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.045em; }
.brand svg { width: 34px; }
.brand rect { fill: var(--blue); stroke: var(--blue); }
.brand path, .brand circle { fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand circle { fill: white; stroke: none; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 600; }
.nav-links > a:not(.nav-download) { color: #b8bbc3; transition: color .2s ease; }
.nav-links > a:not(.nav-download):hover { color: white; }
.nav-links .language-link {
  min-width: 38px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 8px; border: 1px solid rgba(255,255,255,.24); border-radius: 4px; font: 500 10px var(--mono);
}
.nav-download {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 17px;
  color: var(--ink); border-radius: var(--radius); background: white;
  transition: color .2s ease, background .2s ease;
}
.nav-download:hover { color: white; background: var(--blue); }
.menu-button {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent;
}
.menu-button span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .2s ease; }

.hero { position: relative; overflow: hidden; color: white; background: var(--ink); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.hero-grid {
  position: relative; z-index: 2; min-height: 790px; display: grid;
  grid-template-columns: 1.05fr .95fr; align-items: center; gap: 66px; padding: 145px 0 96px;
}
.overline {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin: 0 0 32px; padding-bottom: 10px; border-bottom: 1px solid currentColor;
  font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.overline b { font-weight: 500; }
.hero-copy h1 {
  margin: 0; font-size: clamp(58px, 6.1vw, 91px); line-height: .98;
  letter-spacing: -.07em; text-wrap: balance;
}
.hero-copy h1 em { color: var(--lime); font-style: normal; }
.hero-lead {
  max-width: 590px; margin: 30px 0 0; color: #aeb1b9;
  font-size: 17px; line-height: 1.85;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button {
  min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 21px; border: 1px solid transparent; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { background: #476dff; }
.button-quiet { color: #d1d2d6; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); }
.button-quiet:hover { color: white; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.button-quiet span { color: var(--lime); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: #747780; font: 10px var(--mono); }
.hero-meta span { position: relative; }
.hero-meta span:not(:last-child)::after { content: ""; position: absolute; top: 5px; right: -13px; width: 3px; height: 3px; border-radius: 50%; background: #747780; }

.hero-stage { position: relative; min-height: 550px; display: grid; place-items: center; }
.stage-index {
  position: absolute; top: 17px; right: 5px; color: rgba(255,255,255,.1);
  font: 800 100px/.75 var(--sans); letter-spacing: -.1em; text-align: right;
}
.app-window {
  position: relative; z-index: 2; width: min(100%, 455px); overflow: hidden;
  border: 1px solid rgba(255,255,255,.22); border-radius: 14px;
  background: #1a1d25; box-shadow: 0 45px 90px rgba(0,0,0,.55);
  transform: rotate(1.5deg);
}
.window-bar {
  min-height: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.12);
  color: #888b95; font: 9px var(--mono); letter-spacing: .1em;
}
.traffic-lights { display: flex; gap: 6px; }
.traffic-lights i { width: 8px; height: 8px; border-radius: 50%; background: #4d5059; }
.traffic-lights i:first-child { background: var(--orange); }
.mode-toggle {
  justify-self: end; width: 42px; height: 24px; display: flex; align-items: center;
  justify-content: flex-end; padding: 3px; border: 0; border-radius: 30px; background: var(--blue);
}
.mode-toggle i { width: 18px; height: 18px; border-radius: 50%; background: white; transition: transform .2s ease; }
.mode-toggle[aria-pressed="false"] { justify-content: flex-start; background: #555963; }
.window-body { padding: 27px; }
.status-line, .status-line > div { display: flex; align-items: center; }
.status-line { justify-content: space-between; }
.status-line > div { gap: 13px; }
.live-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(201,243,74,.12); }
.mode-toggle[aria-pressed="false"] ~ * .live-dot { background: #777; }
.status-line div div { display: grid; gap: 4px; }
.status-line small { color: #71757f; font: 8px var(--mono); letter-spacing: .1em; }
.status-line strong { font-size: 16px; letter-spacing: -.03em; }
.status-code { padding: 7px 8px; color: var(--lime); border: 1px solid rgba(201,243,74,.25); border-radius: 4px; font: 8px var(--mono); }
.speed-readout { margin-top: 30px; padding: 25px 0; border-top: 1px solid rgba(255,255,255,.11); border-bottom: 1px solid rgba(255,255,255,.11); }
.speed-readout p { margin: 0 0 5px; color: #777a84; font-size: 10px; }
.speed-readout strong { display: flex; align-items: baseline; gap: 8px; font: 500 58px/1 var(--mono); letter-spacing: -.08em; }
.speed-readout strong small { color: #8a8d96; font-size: 10px; letter-spacing: 0; }
.speed-bars { height: 38px; display: flex; align-items: end; gap: 5px; margin-top: 20px; }
.speed-bars i { flex: 1; min-height: 3px; background: var(--blue); animation: bars 2.5s ease-in-out infinite alternate; }
.speed-bars i:nth-child(2n) { animation-delay: -.7s; }.speed-bars i:nth-child(3n) { animation-delay: -1.4s; }
.speed-bars i:nth-child(1) { height: 18%; }.speed-bars i:nth-child(2) { height: 43%; }.speed-bars i:nth-child(3) { height: 28%; }
.speed-bars i:nth-child(4) { height: 68%; }.speed-bars i:nth-child(5) { height: 48%; }.speed-bars i:nth-child(6) { height: 88%; }
.speed-bars i:nth-child(7) { height: 65%; }.speed-bars i:nth-child(8) { height: 93%; }.speed-bars i:nth-child(9) { height: 46%; }
.speed-bars i:nth-child(10) { height: 76%; }.speed-bars i:nth-child(11) { height: 35%; }.speed-bars i:nth-child(12) { height: 57%; }
@keyframes bars { to { transform: scaleY(.45); transform-origin: bottom; opacity: .55; } }
.route-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.route-option {
  min-width: 0; padding: 13px; text-align: left; color: #858994;
  border: 1px solid rgba(255,255,255,.12); border-radius: 7px; background: transparent;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.route-option span { display: flex; align-items: center; gap: 8px; }
.route-option b { font-size: 11px; }
.route-option small { display: block; margin-top: 8px; font-size: 8px; }
.route-symbol { width: 19px; height: 19px; display: grid; place-items: center; font: normal 8px var(--mono); border: 1px solid currentColor; border-radius: 3px; }
.route-option.active { color: white; border-color: var(--blue); background: rgba(49,92,255,.16); }
.stage-note {
  position: absolute; z-index: 3; right: -12px; bottom: 62px; min-width: 128px;
  padding: 12px 14px; color: var(--ink); border-radius: 6px; background: var(--lime);
  box-shadow: 0 15px 35px rgba(0,0,0,.25); transform: rotate(-3deg);
}
.stage-note span { display: block; margin-bottom: 4px; font: 8px var(--mono); text-transform: uppercase; }
.stage-note strong { font-size: 15px; }
.stage-stamp {
  position: absolute; left: -4px; bottom: 50px; padding: 10px;
  color: #8a8c93; border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
  font: 8px/1.2 var(--mono); text-align: center; transform: rotate(-12deg);
}
.hero-ticker {
  position: relative; z-index: 3; overflow: hidden; padding: 11px 0;
  color: var(--ink); background: var(--lime); font: 500 10px var(--mono); white-space: nowrap;
}
.hero-ticker div { width: max-content; animation: ticker 28s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }

.signal-strip { border-bottom: 1px solid var(--line); background: var(--paper-2); }
.signal-grid { min-height: 104px; display: grid; grid-template-columns: repeat(4, 1fr) 1.45fr; align-items: center; }
.signal-grid p { display: grid; gap: 5px; margin: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.signal-grid p span { font: 500 22px var(--mono); }
.signal-grid p small { color: var(--muted); font-size: 9px; }
.signal-grid > div { display: flex; align-items: center; gap: 12px; font-size: 11px; }
.signal-grid > div .live-dot { background: var(--blue); box-shadow: 0 0 0 5px rgba(49,92,255,.12); }

.section { padding: 132px 0; }
.section-heading { margin-bottom: 58px; }
.section-heading .overline { color: var(--muted); }
.section-heading > div { display: grid; grid-template-columns: 1fr .75fr; align-items: end; gap: 80px; }
.section-heading h2, .workflow h2, .download-cta h2 {
  margin: 0; font-size: clamp(44px, 5.2vw, 70px); line-height: 1.02; letter-spacing: -.065em; text-wrap: balance;
}
.section-heading > div p, .workflow-copy > p:not(.overline), .channel-heading > div p {
  max-width: 510px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8;
}
.capability-list { border-top: 1px solid var(--line); }
.capability-list article {
  min-height: 174px; display: grid; grid-template-columns: 55px 70px 1fr auto;
  align-items: center; gap: 34px; border-bottom: 1px solid var(--line);
  transition: padding .25s ease, background .25s ease;
}
.capability-list article:hover { padding-inline: 18px; background: var(--white); }
.card-number { align-self: start; padding-top: 27px; color: var(--muted); font: 9px var(--mono); }
.capability-icon { width: 58px; height: 58px; display: grid; place-items: center; color: white; border-radius: 50%; background: var(--blue); }
.capability-icon.orange { background: var(--orange); }
.capability-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.capability-list h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.04em; }
.capability-list p { max-width: 620px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.card-tag { padding: 8px 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; font: 8px var(--mono); }

.workflow { color: white; background: var(--blue); }
.workflow-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 110px; }
.workflow-copy .overline { margin-bottom: 48px; color: #c8d2ff; }
.workflow-copy > p:not(.overline) { margin-top: 27px; color: #cbd3fa; }
.text-link { display: inline-flex; gap: 9px; margin-top: 30px; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 700; }
.text-link span { transition: transform .2s ease; }.text-link:hover span { transform: translate(2px, -2px); }
.workflow-steps { padding: 0; margin: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.3); }
.workflow-steps li { border-bottom: 1px solid rgba(255,255,255,.3); }
.workflow-steps button {
  width: 100%; min-height: 86px; display: grid; grid-template-columns: 42px 1fr 24px;
  align-items: center; gap: 12px; padding: 0; color: white; text-align: left; border: 0; background: transparent;
}
.workflow-steps button span { color: #c6d0ff; font: 10px var(--mono); }
.workflow-steps button strong { font-size: 20px; letter-spacing: -.035em; }
.workflow-steps button i { position: relative; width: 20px; height: 20px; }
.workflow-steps button i::before, .workflow-steps button i::after { content: ""; position: absolute; top: 9px; left: 4px; width: 12px; height: 1px; background: white; }
.workflow-steps button i::after { transform: rotate(90deg); transition: transform .2s ease; }
.workflow-steps li.active button i::after { transform: rotate(0); }
.workflow-steps li > div { max-height: 0; overflow: hidden; padding-left: 54px; transition: max-height .3s ease, padding-bottom .3s ease; }
.workflow-steps li.active > div { max-height: 150px; padding-bottom: 27px; }
.workflow-steps li p { margin: 0 0 13px; color: #d4dafe; font-size: 13px; line-height: 1.65; }
.workflow-steps code { padding: 7px 9px; color: var(--ink); border-radius: 4px; background: var(--lime); font: 9px var(--mono); }

.channels { background: var(--white); }
.channel-heading .overline { color: var(--muted); }
.channel-grid { display: grid; grid-template-columns: 1fr 1fr .55fr; gap: 12px; }
.channel-grid article, .channel-grid aside { min-height: 390px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.channel-grid article { display: flex; flex-direction: column; }
.channel-grid .stable { color: white; background: var(--ink); }
.channel-grid .lab { background: var(--paper); }
.channel-top { display: flex; justify-content: space-between; align-items: center; font: 8px var(--mono); letter-spacing: .08em; }
.channel-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(201,243,74,.13); }
.lab .channel-top i { background: var(--orange); box-shadow: 0 0 0 5px rgba(255,112,67,.13); }
.channel-grid h3 { margin: 66px 0 12px; font-size: 47px; letter-spacing: -.07em; }
.channel-grid article > p { margin: 0; color: #aaadb5; font-size: 13px; line-height: 1.7; }
.channel-grid .lab > p { color: var(--muted); }
.channel-grid ul { display: grid; gap: 10px; margin: auto 0 0; padding: 24px 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.14); }
.channel-grid .lab ul { border-color: var(--line); }
.channel-grid li { position: relative; padding-left: 18px; font-size: 11px; }
.channel-grid li::before { content: "—"; position: absolute; left: 0; color: var(--lime); }
.channel-grid .lab li::before { color: var(--orange); }
.channel-grid aside { display: flex; flex-direction: column; justify-content: space-between; color: white; background: var(--orange); }
.channel-grid aside span { font: 9px var(--mono); text-transform: uppercase; }
.channel-grid aside code { font: 500 15px/2 var(--mono); }

.download-cta { padding: 118px 0; color: white; background: var(--ink); }
.cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; align-items: end; }
.download-cta .overline { color: #8a8d95; }
.cta-grid > div:last-child { display: flex; align-items: flex-start; flex-direction: column; }
.cta-grid > div:last-child p { max-width: 470px; margin: 0 0 28px; color: #a7aab2; font-size: 14px; line-height: 1.8; }
.button-light { color: var(--ink); background: var(--lime); }
.button-light:hover { background: white; }

.site-footer { padding: 75px 0 25px; background: var(--paper-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 70px; }
.footer-brand { color: var(--ink); }
.footer-grid > div:first-child p { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.footer-grid > div:nth-child(2), .footer-grid > div:nth-child(3) { display: grid; align-content: start; gap: 13px; }
.footer-grid strong { margin-bottom: 6px; font: 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.footer-grid a:not(.brand) { color: var(--muted); font-size: 11px; transition: color .2s ease; }
.footer-grid a:not(.brand):hover { color: var(--blue); }
.footer-status { display: flex; align-items: flex-start; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.footer-status .live-dot { margin-top: 4px; background: var(--blue); box-shadow: 0 0 0 5px rgba(49,92,255,.1); }
.footer-status p { margin: 0; font-size: 11px; line-height: 1.6; }
.footer-status small { color: var(--muted); font-size: 9px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 65px; padding-top: 20px; color: #7a7b7f; border-top: 1px solid var(--line); font: 8px var(--mono); text-transform: uppercase; }

/* Shared inner pages */
.nav-links a.active { color: white !important; }
.page-hero {
  padding: 150px 0 86px; color: white; background: var(--blue);
}
.page-hero.orange-hero { background: var(--orange); }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 90px; }
.page-hero .overline { color: rgba(255,255,255,.72); }
.page-hero h1, .article-hero h1, .download-hero h1 {
  margin: 0; max-width: 820px; font-size: clamp(50px, 6.7vw, 88px);
  line-height: .98; letter-spacing: -.07em; text-wrap: balance;
}
.page-hero-grid > p {
  max-width: 520px; margin: 0 0 5px; color: rgba(255,255,255,.75);
  font-size: 16px; line-height: 1.8;
}
.docs-layout {
  display: grid; grid-template-columns: 210px minmax(0, 790px);
  justify-content: space-between; gap: 90px; padding-block: 72px 120px;
}
.docs-nav { position: sticky; top: 28px; align-self: start; display: grid; gap: 4px; }
.docs-nav strong { margin-bottom: 14px; color: var(--muted); font: 9px var(--mono); letter-spacing: .08em; }
.docs-nav a {
  min-height: 42px; display: flex; align-items: center; padding: 0 12px;
  color: var(--muted); border-left: 2px solid var(--line); font-size: 11px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.docs-nav a:hover, .docs-nav a.active { color: var(--blue); border-color: var(--blue); background: rgba(49,92,255,.06); }
.prose section { scroll-margin-top: 35px; padding-bottom: 68px; margin-bottom: 68px; border-bottom: 1px solid var(--line); }
.prose section:last-child { border-bottom: 0; }
.section-code { margin: 0 0 16px; color: var(--blue); font: 9px var(--mono); letter-spacing: .08em; }
.prose h2, .tutorial-chapter h2 { margin: 0 0 22px; font-size: clamp(34px, 4vw, 48px); line-height: 1.08; letter-spacing: -.055em; }
.prose h3 { margin: 36px 0 12px; font-size: 19px; letter-spacing: -.035em; }
.prose p, .prose li { color: var(--muted); font-size: 14px; line-height: 1.85; }
.prose a { color: var(--blue-dark); text-decoration: underline; text-decoration-color: rgba(49,92,255,.35); text-underline-offset: 3px; }
.prose code, .inline-note code { font-family: var(--mono); font-size: .88em; }
.prose ul { padding-left: 20px; }
.callout {
  display: grid; grid-template-columns: 125px 1fr; gap: 20px; margin: 27px 0; padding: 20px;
  color: var(--ink); border-left: 4px solid var(--blue); background: rgba(49,92,255,.07);
}
.callout strong { font-size: 11px; }.callout span { color: var(--muted); font-size: 12px; line-height: 1.7; }
.callout.warning { border-color: var(--orange); background: rgba(255,112,67,.09); }
.number-list { display: grid; gap: 10px; padding: 0; margin: 24px 0; list-style: none; counter-reset: ordered; }
.number-list li {
  counter-increment: ordered; display: grid; grid-template-columns: 42px 1fr;
  gap: 14px; align-items: start; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.number-list li::before {
  content: counter(ordered, decimal-leading-zero); width: 36px; height: 36px; display: grid; place-items: center;
  color: white; border-radius: 50%; background: var(--blue); font: 9px var(--mono);
}
.number-list li span { padding-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.number-list li strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 13px; }
.code-block {
  position: relative; margin: 22px 0; padding: 24px; overflow-x: auto;
  color: #d9dce4; border-radius: var(--radius); background: var(--ink);
  font: 11px/1.9 var(--mono); white-space: pre-wrap;
}
.copy-button {
  position: absolute; top: 10px; right: 10px; min-width: 58px; min-height: 34px;
  color: #b8bbc3; border: 1px solid rgba(255,255,255,.18); border-radius: 4px;
  background: rgba(255,255,255,.07); font-size: 9px;
}
.copy-button:hover { color: white; background: rgba(255,255,255,.13); }
.path-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.path-line span { color: var(--muted); font-size: 10px; }.path-line code { color: var(--blue-dark); font-size: 10px; }
.compact-footer { padding-top: 0; }
.compact-footer .footer-bottom { margin-top: 0; }

/* Releases */
.releases { padding: 88px 0 80px; border-bottom: 1px solid var(--line); background: var(--white); }
.release-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 28px; }
.release-heading .overline { min-width: 380px; margin-bottom: 22px; color: var(--muted); }
.release-heading h2 { margin: 0; font-size: 48px; letter-spacing: -.06em; }
.dark-link { color: var(--blue-dark); }
.release-list, .release-skeleton { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.release-item {
  min-width: 0; min-height: 156px; display: flex; flex-direction: column;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.release-item:hover { color: white; background: var(--blue); transform: translateY(-3px); }
.release-item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.release-version { overflow: hidden; font: 500 15px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.release-badge { padding: 5px 6px; color: var(--blue-dark); border: 1px solid currentColor; border-radius: 3px; font: 7px var(--mono); }
.release-badge.lab { color: #b33f1c; }
.release-item:hover .release-badge { color: white; }
.release-date { margin-top: 9px; color: var(--muted); font: 8px var(--mono); }
.release-item:hover .release-date { color: #cad3ff; }
.release-download { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 25px; font-size: 10px; font-weight: 700; }
.release-download svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.release-skeleton { grid-column: 1 / -1; }
.release-skeleton i { height: 156px; border-radius: var(--radius); background: linear-gradient(100deg, #ece9e0 20%, #faf8f1 40%, #ece9e0 60%); background-size: 200% 100%; animation: release-shimmer 1.4s infinite; }
@keyframes release-shimmer { to { background-position-x: -200%; } }
.release-fallback { margin: 0; color: var(--muted); font-size: 12px; }

/* Tools */
.tools-section { background: var(--paper); }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool-panel { padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.tool-title { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.tool-title > span { width: 52px; height: 52px; display: grid; place-items: center; color: white; border-radius: 50%; background: var(--blue); font: 10px var(--mono); }
.tool-title small { color: var(--orange); font: 8px var(--mono); letter-spacing: .08em; }
.tool-title h2 { margin: 4px 0 0; font-size: 27px; letter-spacing: -.05em; }
.tool-panel > p { min-height: 48px; margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.tool-form { display: grid; gap: 10px; }
.tool-form label { margin-top: 5px; font-size: 11px; font-weight: 700; }
.tool-form input, .tool-form select {
  width: 100%; min-height: 50px; padding: 0 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); background: white; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.tool-form input:focus, .tool-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,92,255,.13); }
.tool-form .button { justify-self: start; margin-top: 9px; }
.tool-output { margin-top: 20px; padding: 17px; border: 1px solid rgba(49,92,255,.3); border-radius: var(--radius); background: rgba(49,92,255,.06); }
.tool-output > span { display: block; margin-bottom: 10px; color: var(--blue-dark); font: 8px var(--mono); letter-spacing: .08em; }
.tool-output code { display: block; overflow-wrap: anywhere; color: var(--ink); font: 10px/1.7 var(--mono); }
.tool-output > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.tool-output .button { min-height: 40px; padding: 0 13px; color: white; background: var(--blue); font-size: 10px; }
.inline-note { margin-top: 22px; padding: 15px; color: var(--muted); border-left: 3px solid var(--orange); background: rgba(255,112,67,.07); font-size: 11px; line-height: 1.7; }
.diagnostics { background: var(--paper-2); }
.diagnostic-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.diagnostic-steps article { min-height: 215px; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.diagnostic-steps article:first-child { border-left: 1px solid var(--line); }
.diagnostic-steps span { color: var(--blue); font: 9px var(--mono); }
.diagnostic-steps h3 { margin: 48px 0 10px; font-size: 20px; letter-spacing: -.04em; }
.diagnostic-steps p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.subheading { margin: 60px 0 20px; font-size: 25px; letter-spacing: -.04em; }
.command-list { display: grid; gap: 8px; }
.command-list > div { min-width: 0; display: grid; grid-template-columns: 1fr minmax(280px, 1.3fr) 64px; align-items: center; gap: 20px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.command-list span { display: grid; gap: 3px; }.command-list strong { font-size: 11px; }.command-list small { color: var(--muted); font-size: 9px; }
.command-list code { min-width: 0; overflow-x: auto; color: var(--blue-dark); font: 9px var(--mono); white-space: nowrap; }
.copy-inline { min-height: 38px; color: var(--blue-dark); border: 1px solid rgba(49,92,255,.25); border-radius: 4px; background: rgba(49,92,255,.06); font-size: 9px; }

/* Download */
.download-hero { padding: 150px 0 90px; color: white; background: var(--ink); }
.download-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 100px; }
.download-hero .overline { color: #898c95; }
.version-label { display: inline-flex; margin-bottom: 24px; padding: 7px 9px; color: var(--lime); border: 1px solid rgba(201,243,74,.3); border-radius: 4px; font: 8px var(--mono); }
.version-label b { margin-left: 5px; }
.download-hero h1 { font-size: clamp(54px, 6.2vw, 84px); }
.download-hero-grid > div:first-child > p:not(.overline) { max-width: 590px; margin: 26px 0 0; color: #aeb1b9; font-size: 15px; line-height: 1.8; }
.package-card { padding: 28px; color: var(--ink); border-radius: var(--radius); background: var(--lime); transform: rotate(1.5deg); }
.package-icon { height: 130px; display: grid; place-items: center; margin-bottom: 15px; border-bottom: 1px solid rgba(17,19,25,.22); }
.package-icon svg { width: 70px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.package-card p { display: flex; justify-content: space-between; gap: 20px; margin: 0; padding: 13px 0; border-bottom: 1px solid rgba(17,19,25,.18); font-size: 10px; }
.package-card p span { color: rgba(17,19,25,.6); }.package-card p strong { text-align: right; }
.security-note { color: white; background: var(--orange); }
.security-note > div { min-height: 78px; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 30px; }
.security-note span { font: 9px var(--mono); text-transform: uppercase; }
.security-note p { margin: 0; font-size: 12px; line-height: 1.6; }.security-note a { text-decoration: underline; text-underline-offset: 3px; }
.after-download { background: var(--paper-2); }
.after-download ol { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.after-download li { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.after-download li > span { color: var(--blue); font: 9px var(--mono); }
.after-download h3 { margin: 0 0 8px; font-size: 20px; }.after-download li p { margin: 0; color: var(--muted); font-size: 12px; }

/* Tutorials and article */
.tutorial-index { background: var(--paper-2); }
.tutorial-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tutorial-cards a { min-height: 300px; display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: color .2s ease, background .2s ease, transform .2s ease; }
.tutorial-cards a:hover { color: white; background: var(--blue); transform: translateY(-3px); }
.tutorial-cards a > span { width: 38px; height: 38px; display: grid; place-items: center; color: white; border-radius: 50%; background: var(--blue); font: 9px var(--mono); }
.tutorial-cards a:hover > span { color: var(--ink); background: var(--lime); }
.tutorial-cards small { margin-top: 35px; color: var(--orange); font: 8px var(--mono); }
.tutorial-cards h2 { margin: 8px 0 10px; font-size: 22px; letter-spacing: -.045em; }
.tutorial-cards p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.tutorial-cards a:hover p { color: #d5dbf8; }
.tutorial-cards i { margin-top: auto; padding-top: 20px; font-size: 10px; font-style: normal; font-weight: 700; }
.tutorial-cards .featured { grid-column: 1 / -1; min-height: 225px; color: white; background: var(--ink); }
.tutorial-cards .featured h2 { font-size: 34px; }
.tutorial-cards .featured p { max-width: 620px; color: #aeb1b9; }
.tutorial-chapter { scroll-margin-top: 0; padding: 95px 0; border-bottom: 1px solid var(--line); }
.tutorial-chapter:nth-child(even) { background: var(--white); }
.chapter-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; }
.chapter-grid header > p:not(.section-code) { color: var(--muted); font-size: 13px; line-height: 1.75; }
.chapter-grid .number-list { margin: 0; }
.article-hero { padding: 145px 0 88px; color: white; background: var(--blue); }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 42px; color: #bdc8ff; font-size: 10px; }
.article-hero .overline { color: #bdc8ff; }
.article-hero > .shell > p:not(.overline) { max-width: 700px; margin: 28px 0 0; color: #cad2ff; font-size: 16px; line-height: 1.8; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 25px; margin-top: 28px; color: #aebcff; font: 8px var(--mono); }
.article-layout { grid-template-columns: 210px minmax(0, 790px); }
.route-diagram { display: grid; grid-template-columns: 1fr 30px 1.3fr 30px 1fr; align-items: center; gap: 10px; margin: 30px 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-align: center; }
.route-diagram span, .route-diagram strong { padding: 16px; border-radius: 4px; background: var(--paper-2); font-size: 11px; }
.route-diagram strong { color: white; background: var(--blue); }
.route-diagram i { color: var(--orange); font-style: normal; }
.criteria-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 28px 0; }
.criteria-grid > div { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.criteria-grid span { color: var(--orange); font: 8px var(--mono); }.criteria-grid strong { display: block; margin-top: 22px; font-size: 14px; }
.criteria-grid p { margin: 8px 0 0; font-size: 11px; }
.prose details { border-bottom: 1px solid var(--line); }
.prose summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-size: 13px; font-weight: 700; list-style: none; }
.prose summary::-webkit-details-marker { display: none; }.prose summary::after { content: "+"; color: var(--blue); font-size: 22px; font-weight: 400; }.prose details[open] summary::after { content: "−"; }
.prose details p { margin: 0 0 20px; font-size: 12px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 140px; }
  .hero-copy { max-width: 730px; }
  .hero-stage { min-height: 580px; }
  .app-window { width: 455px; }
  .signal-grid { grid-template-columns: repeat(4, 1fr); }
  .signal-grid > div { grid-column: 1 / -1; min-height: 55px; border-top: 1px solid var(--line); }
  .section-heading > div { grid-template-columns: 1fr .8fr; gap: 40px; }
  .workflow-grid { gap: 65px; }
  .channel-grid { grid-template-columns: 1fr 1fr; }
  .channel-grid aside { grid-column: 1 / -1; min-height: auto; flex-direction: row; align-items: center; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }.footer-status { grid-column: 1 / -1; }
  .docs-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 45px; }
  .tool-grid, .download-hero-grid { gap: 30px; }
  .tutorial-cards { grid-template-columns: 1fr 1fr; }
  .tutorial-cards .featured { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .site-header { position: absolute; }
  .nav { min-height: 68px; }
  .menu-button { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 14px; right: 14px; display: none;
    align-items: stretch; flex-direction: column; gap: 3px; padding: 12px;
    color: var(--ink); border-radius: var(--radius); background: white; box-shadow: 0 22px 50px rgba(0,0,0,.3);
  }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.nav-download) { min-height: 44px; display: flex; align-items: center; padding: 0 12px; color: var(--ink); }
  .nav-download { justify-content: center; color: white; background: var(--blue); }
  .hero-grid { min-height: auto; padding: 115px 0 60px; }
  .overline { margin-bottom: 25px; }
  .hero-copy h1 { font-size: clamp(48px, 14vw, 66px); }
  .hero-lead { font-size: 15px; }
  .hero-actions { flex-direction: column; }.hero-actions .button { width: 100%; }
  .hero-meta { gap: 9px 18px; }.hero-meta span:not(:last-child)::after { right: -10px; }
  .hero-stage { min-height: 485px; }
  .app-window { width: calc(100% - 8px); transform: none; }
  .window-body { padding: 19px; }
  .speed-readout strong { font-size: 47px; }
  .stage-index { font-size: 70px; }
  .stage-note { right: 0; bottom: 30px; }
  .stage-stamp { display: none; }
  .signal-grid { grid-template-columns: 1fr 1fr; padding-top: 20px; }
  .signal-grid p { min-height: 70px; padding-left: 15px; }
  .section { padding: 86px 0; }
  .section-heading > div { grid-template-columns: 1fr; gap: 22px; }
  .section-heading h2, .workflow h2, .download-cta h2 { font-size: 46px; }
  .capability-list article { min-height: 0; grid-template-columns: 34px 52px 1fr; gap: 13px; padding: 25px 0; }
  .capability-list article:hover { padding-inline: 8px; }
  .capability-icon { width: 48px; height: 48px; }
  .capability-list h3 { font-size: 19px; }
  .capability-list p { font-size: 12px; }
  .card-number { padding-top: 5px; }
  .card-tag { grid-column: 3; justify-self: start; margin-top: 5px; }
  .workflow-grid, .cta-grid { grid-template-columns: 1fr; gap: 55px; }
  .channel-grid { grid-template-columns: 1fr; }
  .channel-grid article { min-height: 350px; padding: 26px; }
  .channel-grid aside { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 45px 28px; }
  .footer-grid > div:first-child, .footer-status { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
  .page-hero, .article-hero { padding: 120px 0 65px; }
  .page-hero-grid, .download-hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .page-hero h1, .article-hero h1, .download-hero h1 { font-size: 49px; }
  .docs-layout { grid-template-columns: 1fr; gap: 35px; padding-top: 30px; }
  .docs-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 5px; }
  .docs-nav strong { display: none; }
  .docs-nav a { flex: 0 0 auto; min-height: 40px; white-space: nowrap; border: 1px solid var(--line); border-radius: 4px; }
  .prose section { padding-bottom: 50px; margin-bottom: 50px; }
  .callout { grid-template-columns: 1fr; gap: 8px; }
  .release-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .release-heading .overline { min-width: 0; width: 100%; }
  .releases { padding: 64px 0; }
  .release-list, .release-skeleton { grid-template-columns: 1fr; }
  .tool-grid, .diagnostic-steps { grid-template-columns: 1fr; }
  .tool-panel { padding: 25px; }
  .diagnostic-steps article { border-left: 1px solid var(--line); }
  .command-list > div { grid-template-columns: 1fr 64px; gap: 10px; }
  .command-list > div > span { grid-column: 1 / -1; }
  .package-card { transform: none; }
  .security-note > div { grid-template-columns: 1fr; gap: 5px; padding-block: 18px; }
  .after-download ol { grid-template-columns: 1fr; }
  .after-download li { min-height: 145px; }
  .tutorial-cards { grid-template-columns: 1fr; }
  .tutorial-cards .featured { grid-column: auto; }
  .chapter-grid { grid-template-columns: 1fr; gap: 30px; }
  .route-diagram { grid-template-columns: 1fr; }
  .route-diagram i { transform: rotate(90deg); }
  .criteria-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .hero-copy h1 { font-size: 46px; }
  .route-stack { grid-template-columns: 1fr; }
  .hero-stage { min-height: 550px; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal-grid p { min-height: 60px; }
}

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