:root {
  --bg: #08090a;
  --bg-2: #060708;
  --panel: #0e1012;
  --panel-2: #101315;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f5f6;
  --text-2: #c6ccd0;
  --muted: #98a1a7;
  --dim: #8f989e;
  --accent: #ff7a45;
  --accent-2: #ffb08a;
  --ok: #7ee2a8;
  --warn: #ffcf6b;
  --radius: 14px;
  --max: 1120px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(880px 520px at 82% -12%, rgba(255, 122, 69, 0.1), transparent 62%),
    radial-gradient(720px 520px at 4% 6%, rgba(120, 160, 255, 0.05), transparent 60%);
}

::selection {
  background: rgba(255, 122, 69, 0.32);
  color: #fff;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
pre {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 48px, var(--max));
  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: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #180a04;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

.topbar-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 10, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  border-radius: 7px;
}

.brand-name {
  font-family: var(--mono);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.89rem;
}

.nav-desktop a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-desktop a:hover {
  color: var(--text);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.btn-primary {
  background: var(--accent);
  color: #1a0b04;
}

.btn-primary:hover {
  background: #ff8d5e;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.btn-lg {
  padding: 11px 19px;
  border-radius: 10px;
  font-size: 0.93rem;
}

.menu {
  display: none;
  position: relative;
  margin-left: auto;
}

.menu summary {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  cursor: pointer;
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text-2);
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -5px;
}

.menu-icon::after {
  top: 5px;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: flex;
  flex-direction: column;
  min-width: 216px;
  padding: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
}

.menu-panel a {
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--text-2);
  font-size: 0.9rem;
}

.menu-panel a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: 64px;
  padding: 92px 0 80px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40px 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(56% 62% at 32% 34%, #000 0%, transparent 78%);
  mask-image: radial-gradient(56% 62% at 32% 34%, #000 0%, transparent 78%);
  opacity: 0.55;
}

.hero > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 122, 69, 0.8);
}

h1 {
  font-size: clamp(2.5rem, 6.1vw, 4.5rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hl {
  background: linear-gradient(96deg, #ffe2d4 0%, #ff9d72 44%, #ff7a45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .hl {
    color: var(--accent);
  }
}

.lede {
  max-width: 34rem;
  margin-top: 22px;
  color: var(--text-2);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.65;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin-top: 26px;
  list-style: none;
}

.chips li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.stream-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 0;
  background:
    radial-gradient(620px 260px at 100% -30%, rgba(255, 122, 69, 0.13), transparent 62%),
    linear-gradient(180deg, #101315, #0a0c0d);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.95);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.card-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.sid {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-2);
}

.pill {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.pill-ok {
  border: 1px solid rgba(126, 226, 168, 0.26);
  background: rgba(126, 226, 168, 0.08);
  color: var(--ok);
}

.events {
  padding: 0;
  list-style: none;
}

.events li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.events li:last-child {
  border-bottom: 0;
}

.seq {
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.72rem;
}

.kind {
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.note {
  color: var(--muted);
  font-size: 0.69rem;
  text-align: right;
}

.events .is-key {
  box-shadow: inset 2px 0 0 var(--accent);
  background: linear-gradient(90deg, rgba(255, 122, 69, 0.11), transparent 72%);
}

.events .is-key .kind {
  color: var(--accent-2);
}

.events .is-key .seq {
  color: var(--accent);
}

.card-foot {
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.strip {
  border-block: 1px solid var(--line);
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  padding: 16px 0;
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.strip-inner span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
  vertical-align: middle;
}

.section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}

.strip + .section {
  border-top: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 42px;
}

h2 {
  font-size: clamp(1.72rem, 3.3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.028em;
  max-width: 22ch;
}

.section-lede {
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid > * {
  min-width: 0;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0)) var(--panel);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.card p {
  color: var(--muted);
  font-size: 0.895rem;
  line-height: 1.62;
}

.card-feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-index {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.card-feature p {
  margin: 0;
}

.feature-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-2);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  margin: 0 0 44px;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.pipeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px 18px 0 0;
}

.pipeline li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 122, 69, 0.12);
}

.pipeline strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.pipeline span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: start;
  gap: 44px;
}

.two-col > * {
  min-width: 0;
}

.model-list {
  counter-reset: model;
  padding: 0;
  list-style: none;
}

.model-list li {
  position: relative;
  padding: 16px 0 16px 46px;
  border-top: 1px solid var(--line);
  counter-increment: model;
}

.model-list li:first-child {
  padding-top: 2px;
  border-top: 0;
}

.model-list li::before {
  content: counter(model, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.model-list li:first-child::before {
  top: 4px;
}

.model-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.94rem;
  font-weight: 600;
}

.model-list span {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.callout {
  padding: 24px;
  border: 1px solid rgba(255, 122, 69, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 122, 69, 0.07), rgba(255, 122, 69, 0.015));
}

.callout h3 {
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffc3a9;
}

.callout p {
  color: var(--text-2);
  font-size: 0.885rem;
  line-height: 1.66;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

p code,
li code,
h3 code,
.section-lede code {
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.86em;
  color: #ffd9c7;
}

pre {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a0c0d;
  color: #d7dde1;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
  scrollbar-width: thin;
}

pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.stream-stack {
  display: grid;
  gap: 22px;
}

.stream-stack > * {
  min-width: 0;
}

.side-notes {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 32px;
}

.side-notes > * {
  min-width: 0;
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a0c0d;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #0f1214;
}

.dots {
  display: inline-flex;
  gap: 5px;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.term-title {
  margin-left: 4px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.copy-btn {
  margin-left: auto;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.copy-btn[data-copied] {
  color: var(--ok);
  border-color: rgba(126, 226, 168, 0.3);
}

.pre-wrap {
  position: relative;
  min-width: 0;
}

.pre-wrap pre {
  padding-right: 78px;
}

.pre-wrap > .copy-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  opacity: 0.72;
  background: rgba(14, 16, 18, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pre-wrap > .copy-btn:hover,
.pre-wrap > .copy-btn:focus-visible {
  opacity: 1;
}

.clipboard-fallback {
  position: fixed;
  top: -1000px;
  left: -1000px;
  opacity: 0;
}

.terminal pre {
  border: 0;
  border-radius: 0;
  padding: 18px;
  font-size: 12px;
  line-height: 1.78;
}

.side-notes h3 {
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

.side-notes pre {
  font-size: 11.5px;
  line-height: 1.95;
}

.side-notes p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.card-proof pre {
  margin: 16px 0 14px;
  font-size: 12px;
}

.tag {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag-warn {
  border: 1px solid rgba(255, 207, 107, 0.26);
  background: rgba(255, 207, 107, 0.08);
  color: var(--warn);
}

.tag-ok {
  border: 1px solid rgba(126, 226, 168, 0.26);
  background: rgba(126, 226, 168, 0.08);
  color: var(--ok);
}

.card-proof p {
  font-size: 0.845rem;
  line-height: 1.6;
}

.footnote {
  margin-top: 18px;
  color: var(--dim);
  font-size: 0.78rem;
  line-height: 1.6;
}

.boundaries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.boundaries > div {
  min-width: 0;
}

.boundaries h3 {
  margin-bottom: 7px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.boundaries h3::before {
  content: "\2014";
  margin-right: 8px;
  color: var(--dim);
}

.boundaries p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.62;
}

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps > li {
  min-width: 0;
}

.steps h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 122, 69, 0.36);
  border-radius: 50%;
  background: rgba(255, 122, 69, 0.08);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.steps pre {
  font-size: 12px;
}

.quickstart-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.quickstart-foot p {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.98rem;
  letter-spacing: 0.05em;
}

.footer-top p {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 190px));
  gap: 24px;
  padding: 30px 0;
}

.footer-cols h4 {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-cols a {
  display: block;
  padding: 5px 0;
  color: var(--text-2);
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.footer-cols a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.75rem;
}

.topbar-back {
  margin-left: auto;
}

.nf {
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: calc(100vh - 65px);
  padding: 72px 24px;
  text-align: center;
}

.nf-code {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.nf h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.nf p {
  max-width: 46ch;
  color: var(--muted);
}

.nf .cta-row {
  justify-content: center;
  margin-top: 18px;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding: 72px 0 64px;
  }

  .stream-card {
    max-width: 620px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .nav-desktop,
  .topbar-actions {
    display: none;
  }

  .menu {
    display: block;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  h2 {
    max-width: none;
  }

  .section-lede {
    max-width: 60ch;
  }
}

@media (max-width: 880px) {
  .grid-3,
  .boundaries {
    grid-template-columns: minmax(0, 1fr);
  }

  .side-notes,
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .pre-wrap pre {
    padding-right: 18px;
  }

  .pre-wrap > .copy-btn {
    position: static;
    display: block;
    margin: 8px 0 0 auto;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 40px, var(--max));
  }

  .topbar {
    height: 58px;
    gap: 16px;
  }

  .hero {
    padding: 56px 0 52px;
  }

  .section {
    padding: 68px 0;
  }

  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
  }


  .card-foot {
    font-size: 0.75rem;
  }
}

@media (max-width: 460px) {
  .eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .cta-row .btn {
    flex: 1 1 100%;
  }

  .chips li {
    font-size: 0.66rem;
  }

  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
