:root {
  color-scheme: dark;
  --orange: #ef6e2c;
  --orange-hot: #ff9156;
  --navy: #00315a;
  --steel: #335a7b;
  --bg: #051425;
  --bg-raised: #0a1e34;
  --bg-sunken: #030e1b;
  --bg-hover: #0f2843;
  --line: #163352;
  --line-strong: #24486e;
  --text: #ebf1f7;
  --text-2: #a9bacc;
  --text-3: #8399b0;
  --accent: var(--orange);
  --accent-text: #ff9156;
  --accent-ink: #071526;
  --accent-soft: rgba(239, 110, 44, 0.14);
  --code-bg: #020b16;
  --code-line: #13304d;
  --code-text: #d7e2ee;
  --badge-bg: rgba(255, 196, 84, 0.14);
  --badge-text: #ffcf70;
  --ok: #6fd3a0;
  --danger: #ff9a8a;
  --header-bg: rgba(5, 20, 37, 0.78);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --glow-a: rgba(239, 110, 44, 0.42);
  --glow-b: rgba(51, 90, 123, 0.75);
  --glow-c: rgba(0, 49, 90, 0.9);
  --dot: rgba(169, 186, 204, 0.12);
  --header-h: 64px;
  --max: 1200px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f4f7fa;
    --bg-raised: #ffffff;
    --bg-sunken: #e9eff5;
    --bg-hover: #eef3f8;
    --line: #d9e2ec;
    --line-strong: #bccbdb;
    --text: #07223d;
    --text-2: #3b5470;
    --text-3: #546b84;
    --accent-text: #b04c17;
    --accent-soft: rgba(239, 110, 44, 0.1);
    --badge-bg: #fff1d1;
    --badge-text: #7a4b00;
    --ok: #167347;
    --danger: #b42318;
    --header-bg: rgba(244, 247, 250, 0.82);
    --shadow: 0 1px 2px rgba(7, 34, 61, 0.05), 0 18px 40px -22px rgba(7, 34, 61, 0.28);
    --glow-a: rgba(239, 110, 44, 0.26);
    --glow-b: rgba(51, 90, 123, 0.22);
    --glow-c: rgba(0, 49, 90, 0.16);
    --dot: rgba(7, 34, 61, 0.09);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fa;
  --bg-raised: #ffffff;
  --bg-sunken: #e9eff5;
  --bg-hover: #eef3f8;
  --line: #d9e2ec;
  --line-strong: #bccbdb;
  --text: #07223d;
  --text-2: #3b5470;
  --text-3: #546b84;
  --accent-text: #b04c17;
  --accent-soft: rgba(239, 110, 44, 0.1);
  --badge-bg: #fff1d1;
  --badge-text: #7a4b00;
  --ok: #167347;
  --danger: #b42318;
  --header-bg: rgba(244, 247, 250, 0.82);
  --shadow: 0 1px 2px rgba(7, 34, 61, 0.05), 0 18px 40px -22px rgba(7, 34, 61, 0.28);
  --glow-a: rgba(239, 110, 44, 0.26);
  --glow-b: rgba(51, 90, 123, 0.22);
  --glow-c: rgba(0, 49, 90, 0.16);
  --dot: rgba(7, 34, 61, 0.09);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font);
  font-stretch: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

main { flex: 1 0 auto; }

img { max-width: 100%; }

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

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

::selection { background: rgba(239, 110, 44, 0.35); color: var(--text); }

h1, h2, h3 { color: var(--text); text-wrap: balance; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 16px;
  top: 10px;
  z-index: 100;
  background: var(--orange);
  color: var(--accent-ink);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.logo { display: block; height: 28px; width: auto; }
.logo-on-light { display: none; }
:root[data-theme="light"] .logo-on-light { display: block; }
:root[data-theme="light"] .logo-on-dark { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .logo-on-light { display: block; }
  :root:not([data-theme]) .logo-on-dark { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand-sub {
  font-weight: 600;
  font-stretch: 112%;
  font-size: 0.95rem;
  color: var(--text-2);
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  line-height: 1.2;
}
.brand:hover .brand-sub { color: var(--text); }

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  white-space: nowrap;
}

.site-nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  position: relative;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--text); background: var(--bg-hover); }
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.label-short { display: none; }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-strong); background: var(--bg-hover); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; grid-area: 1 / 1; transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-60deg) scale(0.6); }
:root[data-theme="light"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(60deg) scale(0.6); }
:root[data-theme="light"] .theme-toggle .icon-moon { opacity: 1; transform: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--orange);
  color: var(--accent-ink);
  font: 700 0.95rem/1.2 var(--font);
  font-stretch: 105%;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 24px -10px rgba(239, 110, 44, 0.65);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.button:hover { background: var(--orange-hot); color: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(239, 110, 44, 0.8); }
.button:active { transform: translateY(0); }
.button-small { padding: 8px 14px; font-size: 0.875rem; box-shadow: none; }
.button-large { padding: 14px 24px; font-size: 1rem; border-radius: 12px; }
.button-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.button-ghost:hover { background: var(--bg-hover); color: var(--text); border-color: var(--text-3); box-shadow: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.lead { font-size: 1.15rem; line-height: 1.6; color: var(--text-2); max-width: 60ch; margin: 18px 0 0; }

.section { padding: 112px 0; }
.section-tight { padding: 8px 24px 96px; }
.section-alt { background: var(--bg-sunken); border-block: 1px solid var(--line); }
.section:not(.section-alt) + .section:not(.section-alt) { padding-top: 16px; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2,
.page-head h1,
.cta-band h2 {
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem);
  line-height: 1.08;
  font-weight: 800;
  font-style: italic;
  font-stretch: 112%;
  letter-spacing: -0.02em;
}
.section-head p { margin: 16px 0 0; color: var(--text-2); font-size: 1.075rem; max-width: 58ch; }

.hero {
  position: relative;
  isolation: isolate;
  padding: 88px 0 104px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.blob-a { width: 520px; height: 520px; background: var(--glow-a); top: -200px; right: 4%; animation: drift-a 22s ease-in-out infinite alternate; }
.blob-b { width: 640px; height: 640px; background: var(--glow-b); bottom: -360px; left: -160px; animation: drift-b 26s ease-in-out infinite alternate; }
.blob-c { width: 420px; height: 420px; background: var(--glow-c); top: 18%; left: 38%; animation: drift-c 30s ease-in-out infinite alternate; }

@keyframes drift-a { to { transform: translate(-120px, 90px) scale(1.15); } }
@keyframes drift-b { to { transform: translate(140px, -80px) scale(0.9); } }
@keyframes drift-c { to { transform: translate(-80px, -60px) scale(1.2); } }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.hero-version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg-raised) 70%, transparent);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.hero-version::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--accent-soft); }
a.hero-version:hover { color: var(--text); border-color: var(--orange); }

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 1.5rem + 3vw, 3.9rem);
  line-height: 1;
  font-weight: 900;
  font-style: italic;
  font-stretch: 112%;
  letter-spacing: -0.035em;
}

.hero .lead { font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); }

.hero-copy > * { animation: rise 0.9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-demo { animation: rise 1s 0.2s var(--ease) both; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.terminal {
  position: relative;
  border-radius: 18px;
  background: var(--code-bg);
  border: 1px solid var(--code-line);
  box-shadow: 0 40px 80px -30px rgba(0, 10, 25, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  color: var(--code-text);
  overflow: hidden;
  color-scheme: dark;
}
.terminal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 110, 44, 0.7), transparent);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--code-line);
  background: rgba(255, 255, 255, 0.02);
}
.terminal-lights { display: flex; gap: 6px; }
.terminal-lights i { width: 10px; height: 10px; border-radius: 50%; background: #23405f; }
.terminal-lights i:first-child { background: var(--orange); }

.terminal-tabs { display: flex; gap: 2px; flex: 1; min-width: 0; }
.terminal-tabs button {
  border: 0;
  background: transparent;
  color: #8ea4bb;
  font: 600 0.82rem/1 var(--mono);
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.terminal-tabs button:hover { color: #e6eef6; }
.terminal-tabs button[aria-selected="true"] { color: #fff; background: #10263f; }

.copy-button {
  border: 1px solid #1d3a59;
  background: transparent;
  color: #a9bacc;
  font: 600 0.78rem/1 var(--font);
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.copy-button:hover { color: #fff; border-color: #34587d; }
.copy-button.is-copied { color: #071526; background: #6fd3a0; border-color: #6fd3a0; }

.terminal-steps {
  list-style: none;
  margin: 0;
  padding: 10px 16px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--code-line);
  counter-reset: step;
}
.terminal-steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8ea4bb;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.terminal-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10263f;
  font-size: 0.72rem;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.terminal-steps li.is-active { color: #fff; border-color: rgba(239, 110, 44, 0.5); background: rgba(239, 110, 44, 0.1); }
.terminal-steps li.is-active::before,
.terminal-steps li.is-done::before { background: var(--orange); color: #071526; }
.terminal-steps li.is-done { color: #d7e2ee; }

.terminal-panel { height: 380px; overflow: auto; scrollbar-width: thin; scrollbar-color: #1d3a59 transparent; }
.terminal-panel:focus-visible { outline-offset: -3px; }
.terminal pre { margin: 0; padding: 18px 20px; font: 400 0.8rem/1.7 var(--mono); tab-size: 2; }
.terminal pre code { font: inherit; white-space: pre; }
.terminal .caret { display: inline-block; width: 0.55em; height: 1.15em; margin-left: 1px; vertical-align: text-bottom; background: var(--orange); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.terminal-response {
  border-top: 1px solid var(--code-line);
  background: #031426;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.terminal-response pre { padding: 4px 20px 16px; font-size: 0.78rem; }
.terminal-status { margin: 0; padding: 12px 20px 4px; font: 500 0.78rem/1.4 var(--mono); color: #8ea4bb; }
.terminal-status span { color: #6fd3a0; font-weight: 600; margin-right: 8px; }
.terminal.is-typing .terminal-response { opacity: 0; transform: translateY(8px); }

.tok-key { color: #ffb48a; }
.tok-str { color: #9fdcb6; }
.tok-num { color: #f7c873; }
.tok-kw { color: #ff8f57; }
.tok-fn { color: #ffd479; font-weight: 600; }
.tok-flag { color: #8fc3ff; }
.tok-var { color: #f7c873; }
.tok-com { color: #6d859e; font-style: italic; }
.tok-punct { color: #8ea4bb; }

.vendors { padding: 40px 0; border-bottom: 1px solid var(--line); }
.vendors-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.vendors h2 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--text-2); }
.vendor-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 44px; }
.vendor-list li {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem);
  font-weight: 800;
  font-style: italic;
  font-stretch: 125%;
  letter-spacing: -0.03em;
  color: var(--text-3);
  transition: color 0.3s var(--ease);
}
.vendor-list li:hover { color: var(--text); }

.route-wrap { position: relative; --pin: 48px; }
.route {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}
.route-wrap::before,
.route-wrap::after {
  content: "";
  position: absolute;
  top: calc(var(--pin) / 2 - 7px);
  left: calc(10% - 12px);
  right: calc(10% - 12px);
  height: 14px;
  border-radius: 999px;
}
.route-wrap::before { background: var(--bg-raised); border: 1px solid var(--line); }
.route-wrap::after {
  top: calc(var(--pin) / 2 - 1px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 14px, transparent 14px 26px);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.8s var(--ease);
}
.route-wrap.is-visible::after { transform: scaleX(1); }

.route-car {
  position: absolute;
  z-index: 2;
  top: calc(var(--pin) / 2 - 6px);
  left: calc(10% - 12px);
  width: 22px;
  height: 12px;
  border-radius: 6px 8px 8px 6px;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 24px rgba(239, 110, 44, 0.8);
  opacity: 0;
}
.route-wrap.is-visible .route-car { animation: drive 1.8s var(--ease) forwards; }
@keyframes drive {
  0% { opacity: 1; left: calc(10% - 12px); }
  90% { opacity: 1; }
  100% { opacity: 0; left: calc(90% - 10px); }
}

.route-stop { position: relative; text-align: center; padding-top: calc(var(--pin) + 18px); }
.route-pin {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  width: var(--pin);
  height: var(--pin);
  margin-left: calc(var(--pin) / -2);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-strong);
  color: var(--text-2);
  font-weight: 800;
  font-style: italic;
  font-stretch: 115%;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  transition-delay: calc(var(--i) * 0.36s);
}
.route-wrap.is-visible .route-pin { border-color: var(--orange); color: var(--accent-ink); background: var(--orange); box-shadow: 0 0 0 6px var(--accent-soft); }
.route-stop h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; font-stretch: 110%; }
.route-stop code {
  display: inline-block;
  font: 500 0.76rem/1.4 var(--mono);
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.route-stop p { margin: 10px auto 0; color: var(--text-2); font-size: 0.93rem; line-height: 1.55; max-width: 24ch; }
.route-stop:last-child .route-pin { border-style: dashed; }
.route-wrap.is-visible .route-stop:last-child .route-pin { animation: ping 2.4s 2s var(--ease) infinite; }
@keyframes ping { 0%, 100% { box-shadow: 0 0 0 6px var(--accent-soft); } 50% { box-shadow: 0 0 0 14px rgba(239, 110, 44, 0); } }

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.feature { background: var(--bg-raised); padding: 32px 30px 34px; transition: background-color 0.3s var(--ease); }
.feature:hover { background: var(--bg-hover); }
.feature .icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}
.feature:hover .icon { transform: translateY(-2px) rotate(-4deg); }
.feature h3 { margin: 18px 0 8px; font-size: 1.1rem; font-weight: 700; font-stretch: 108%; }
.feature p { margin: 0; color: var(--text-2); font-size: 0.95rem; }

.guide-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.guide-card:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-card h3 { margin: 0; font-size: 1.3rem; font-weight: 800; font-stretch: 110%; letter-spacing: -0.01em; }
.guide-card p { margin: 0; color: var(--text-2); font-size: 0.97rem; }
.guide-card-cta { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--accent-text); }
.guide-card-cta::after { content: ""; display: inline-block; width: 18px; height: 2px; margin-left: 10px; vertical-align: middle; background: currentColor; transition: width 0.3s var(--ease); }
.guide-card:hover .guide-card-cta::after { width: 30px; }
.guide-card-large {
  grid-row: span 2;
  padding: 40px;
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(239, 110, 44, 0.22), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(51, 90, 123, 0.35), transparent 60%),
    var(--bg-raised);
  min-height: 300px;
}
.guide-card-large h3 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); font-style: italic; font-weight: 900; font-stretch: 115%; letter-spacing: -0.025em; }
.guide-card-large p { font-size: 1.05rem; max-width: 46ch; }
.guide-grid > .guide-card:only-child { grid-column: 1 / -1; }
.guide-steps { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: step; }
.guide-steps li {
  counter-increment: step;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-2);
}
.guide-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 800;
}

.guide-more { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; }
.guide-more h3 { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--text-3); }
.guide-more ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.guide-more a { font-weight: 600; }

.env-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.env-layout .section-head { margin-bottom: 0; }
.env-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.env {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 24px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.env-name { display: flex; align-items: center; gap: 10px; min-width: 112px; }
.env-name h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.env-dot { width: 10px; height: 10px; border-radius: 50%; background: #3fb07a; box-shadow: 0 0 0 4px rgba(63, 176, 122, 0.18); }
.env-production .env-dot { background: var(--orange); box-shadow: 0 0 0 4px var(--accent-soft); }
.env-url { display: flex; align-items: center; gap: 10px; min-width: 0; justify-content: space-between; }
.env-url code { font: 500 0.9rem/1.4 var(--mono); color: var(--text); overflow-wrap: anywhere; }
.env .copy-button { border-color: var(--line-strong); color: var(--text-2); }
.env .copy-button:hover { color: var(--text); }
.env-scope { grid-column: 2; margin: 0; font-size: 0.82rem; color: var(--text-3); }
.env-scope code { font: 400 0.8rem/1.4 var(--mono); overflow-wrap: anywhere; }

.cta-section { padding-top: 0; }
.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 48px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  color: #f2f6fa;
  background: linear-gradient(120deg, #00315a 0%, #08243f 55%, #3a2416 100%);
  border: 1px solid #1b4570;
}
.cta-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -120px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 110, 44, 0.55), transparent 65%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.cta-band p { margin: 12px 0 0; color: #c3d2e2; max-width: 52ch; }
.cta-band .actions { margin-top: 0; }
.cta-band .button-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.cta-band .button-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; color: #fff; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-sunken); padding: 64px 0 28px; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { margin: 16px 0 0; color: var(--text-3); max-width: 36ch; }
.footer-col h2 { margin: 0 0 14px; font-size: 0.9rem; font-weight: 700; color: var(--text); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-2); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--accent-text); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 48px) 1px no-repeat; color: var(--text-3); }
.footer-base p { margin: 0; }
.footer-base strong { color: var(--text-2); font-family: var(--mono); font-weight: 600; }

.reveal { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(24px); }

.page-head { position: relative; padding: 80px 0 48px; overflow: hidden; }
.page-head::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: var(--glow-a);
  filter: blur(90px);
  opacity: 0.6;
  z-index: -1;
}
.page-head h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem); font-weight: 900; font-stretch: 116%; }

.guide-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: guide; }
.guide-rows li { counter-increment: guide; border-bottom: 1px solid var(--line); }
.guide-rows a {
  display: grid;
  grid-template-columns: 56px minmax(0, 18rem) minmax(0, 1fr);
  gap: 8px 24px;
  align-items: baseline;
  padding: 26px 8px;
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.25s var(--ease), padding 0.25s var(--ease);
}
.guide-rows a::before { content: counter(guide, decimal-leading-zero); font: 600 0.85rem/1 var(--mono); color: var(--text-3); }
.guide-rows a:hover { background: var(--bg-raised); padding-left: 16px; }
.guide-rows a:hover::before { color: var(--orange); }
.guide-row-title { font-size: 1.25rem; font-weight: 800; font-stretch: 110%; }
.guide-row-text { color: var(--text-2); }

.doc-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
}
.doc-shell.has-toc { grid-template-columns: 240px minmax(0, 1fr) 220px; }

.doc-sidebar {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 40px 0 32px;
  scrollbar-width: thin;
}
.doc-sidebar-title { margin: 0 0 10px; font-size: 0.85rem; font-weight: 700; }
.doc-sidebar-title + ul + .doc-sidebar-title { margin-top: 28px; }
.doc-sidebar-title a { color: var(--text); text-decoration: none; }
.doc-sidebar-title a:hover { color: var(--accent-text); }
.doc-sidebar ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.doc-sidebar li a {
  display: block;
  margin-left: -1px;
  padding: 7px 12px 7px 16px;
  border-left: 2px solid transparent;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.93rem;
  line-height: 1.4;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.doc-sidebar li a:hover { color: var(--text); border-left-color: var(--line-strong); }
.doc-sidebar li a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  border-left-color: var(--orange);
  background: linear-gradient(90deg, var(--accent-soft), transparent);
}

.prose { min-width: 0; max-width: 780px; padding: 48px 0 80px; }
.prose > :first-child { margin-top: 0; }
.prose h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.1rem);
  line-height: 1.05;
  font-weight: 900;
  font-style: italic;
  font-stretch: 114%;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.prose h2 { font-size: 1.6rem; line-height: 1.2; font-weight: 800; font-stretch: 110%; letter-spacing: -0.015em; margin: 56px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; font-stretch: 106%; margin: 36px 0 12px; }
.prose h4 { font-size: 1rem; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; color: var(--text); }
.prose p { max-width: 72ch; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--text-3); }
.prose strong { font-weight: 700; color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose img { border-radius: 12px; }

code, pre { font-family: var(--mono); }
:not(pre) > code {
  font-size: 0.86em;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
a > code { color: inherit; }

.code-block {
  position: relative;
  margin: 0 0 24px;
  border-radius: 14px;
  background: var(--code-bg);
  border: 1px solid var(--code-line);
  overflow: hidden;
  color-scheme: dark;
}
.code-block-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 6px 16px;
  border-bottom: 1px solid var(--code-line);
  font: 500 0.75rem/1 var(--mono);
  color: #8ea4bb;
}
.prose pre {
  margin: 0 0 24px;
  padding: 18px 20px;
  overflow-x: auto;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 14px;
  border: 1px solid var(--code-line);
  font-size: 0.85rem;
  line-height: 1.65;
}
.prose .code-block pre { margin: 0; border: 0; border-radius: 0; }
.prose pre code { font: inherit; background: none; border: 0; padding: 0; }
.prose pre.mermaid {
  background: var(--bg-raised);
  color: var(--text);
  border-color: var(--line);
  text-align: center;
  padding: 24px;
}
.prose pre.mermaid svg { max-width: 100%; height: auto; }

.headerlink {
  margin-left: 0.35em;
  color: var(--text-3);
  text-decoration: none;
  font-weight: 500;
  font-style: normal;
  opacity: 0;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}
.headerlink:hover { color: var(--orange); }
h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, .headerlink:focus { opacity: 1; }

.table-wrap { overflow-x: auto; margin: 0 0 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-raised); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--bg-sunken); font-weight: 700; color: var(--text); white-space: nowrap; }
.table-wrap tbody tr { transition: background-color 0.2s var(--ease); }
.table-wrap tbody tr:hover { background: var(--bg-hover); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap code { overflow-wrap: normal; white-space: nowrap; }

.prose blockquote {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--steel);
  background: var(--bg-raised);
  color: var(--text-2);
}
.prose blockquote > :last-child { margin-bottom: 0; }
.prose blockquote.callout-warning { border-left-color: var(--orange); background: linear-gradient(90deg, var(--accent-soft), var(--bg-raised) 60%); }
.prose blockquote.callout-note { border-left-color: #5b8fc2; }

.toc-side {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 48px 0 32px;
  font-size: 0.86rem;
  scrollbar-width: thin;
}
.toc-title { margin: 0 0 12px; font-weight: 700; color: var(--text); }
.toc-side ul { list-style: none; margin: 0; padding: 0; }
.toc-side ul ul { padding-left: 12px; }
.toc-side a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); color: var(--text-3); text-decoration: none; line-height: 1.4; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.toc-side a:hover { color: var(--text); }
.toc-side a.is-active { color: var(--accent-text); border-left-color: var(--orange); }

.doc-meta { margin-top: 48px; font-size: 0.9rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.pager a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raised);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.pager a:hover { border-color: var(--orange); transform: translateY(-2px); color: var(--text); }
.pager a span { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-3); margin-bottom: 4px; }
.pager-next { grid-column: 2; text-align: right; }

body.reference { --scalar-custom-header-height: var(--header-h); }
body.reference main { min-height: calc(100vh - var(--header-h)); }

.not-found { position: relative; padding: 96px 0 120px; overflow: hidden; }
.not-found-code {
  margin: 0;
  font-size: clamp(6rem, 3rem + 14vw, 13rem);
  line-height: 0.85;
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px var(--line-strong);
  background: linear-gradient(100deg, var(--orange), var(--orange-hot) 40%, transparent 70%);
  -webkit-background-clip: text;
  background-clip: text;
}
.not-found-road {
  height: 4px;
  margin: 28px 0 40px;
  max-width: 560px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 24px, transparent 24px 40px);
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent);
  mask-image: linear-gradient(90deg, #000 40%, transparent);
}
.not-found h1 { margin: 0; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 800; font-style: italic; font-stretch: 112%; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.news-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.news-form { position: relative; margin: 28px 0 0; }
.news-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--bg);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.news-field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px var(--accent-soft); }
.news-form[data-state="error"] .news-field { border-color: var(--danger); }
.news-field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 500 1rem/1.4 var(--font);
  padding: 10px 12px;
}
.news-field input::placeholder { color: var(--text-3); opacity: 1; }
.news-field input:focus { outline: none; }
.news-field .button { flex-shrink: 0; padding: 12px 20px; box-shadow: none; }
.news-field .button:disabled { cursor: progress; opacity: 0.85; transform: none; }
.news-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: news-spin 0.7s linear infinite;
}
.news-form[data-state="sending"] .news-spinner { display: inline-block; }
@keyframes news-spin { to { transform: rotate(360deg); } }

.news-status { display: flex; align-items: flex-start; gap: 10px; min-height: 1.6em; margin: 12px 0 0; font-size: 0.93rem; line-height: 1.5; color: var(--text-2); }
.news-status:empty { margin: 0; min-height: 0; }
.news-status:not(:empty)::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.5em; border-radius: 50%; background: currentColor; }
.news-form[data-state="success"] .news-status { color: var(--ok); font-weight: 600; }
.news-form[data-state="error"] .news-status { color: var(--danger); font-weight: 600; }
.news-form[data-state="sending"] .news-status::before { animation: blink 1s steps(2, start) infinite; }

.news-section { padding-bottom: 120px; }
.news-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  padding: 52px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}
.news-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 100% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 90% at 100% 50%, #000 20%, transparent 75%);
}
.news-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -140px;
  bottom: -220px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-a), transparent 65%);
  opacity: 0.7;
}
.news-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.news-eyebrow .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.news-copy h2 {
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem);
  line-height: 1.08;
  font-weight: 800;
  font-style: italic;
  font-stretch: 112%;
  letter-spacing: -0.02em;
}
.news-text { margin: 16px 0 0; color: var(--text-2); font-size: 1.075rem; max-width: 50ch; }
.news-fineprint { margin: 14px 0 0; color: var(--text-3); font-size: 0.86rem; }
.news-form[data-state="success"] + .news-fineprint { display: none; }

.news-feed { border: 1px solid var(--line); border-radius: 18px; background: var(--bg-sunken); overflow: hidden; }
.news-feed-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.news-feed-bar p { margin: 0; font: 600 0.78rem/1.3 var(--mono); color: var(--text-3); letter-spacing: 0.02em; }
.news-feed .terminal-lights i { background: var(--line-strong); }
.news-feed .terminal-lights i:first-child { background: var(--orange); }
.news-feed ol { position: relative; list-style: none; margin: 0; padding: 22px 22px 6px 46px; }
.news-feed ol::before { content: ""; position: absolute; left: 26px; top: 30px; bottom: 34px; width: 2px; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.news-feed li { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 0 0 20px; }
.news-feed li::before { content: ""; position: absolute; left: -25px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg-sunken); border: 2px solid var(--orange); }
.news-feed li:first-child::before { background: var(--orange); box-shadow: 0 0 0 5px var(--accent-soft); }
.news-feed-version { font: 600 0.82rem/1.5 var(--mono); color: var(--accent-text); background: var(--accent-soft); padding: 1px 8px; border-radius: 6px; }
.news-feed time { font: 400 0.8rem/1.5 var(--mono); color: var(--text-3); }
.news-feed-text { flex: 1 1 100%; color: var(--text); font-weight: 600; font-size: 0.97rem; line-height: 1.45; }
.news-feed-more { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-top: 1px solid var(--line); font-weight: 600; font-size: 0.92rem; text-decoration: none; transition: background-color 0.2s var(--ease); }
.news-feed-more::after { content: "→"; transition: transform 0.2s var(--ease); }
.news-feed-more:hover { background: var(--bg-hover); }
.news-feed-more:hover::after { transform: translateX(4px); }

.news-compact {
  margin: 56px 0 36px;
  padding: 26px 26px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-raised) 60%);
}
.news-compact-head { display: flex; align-items: flex-start; gap: 16px; }
.news-compact-icon { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-strong); fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.news-compact .news-compact-title { margin: 0; font-size: 1.15rem; line-height: 1.3; font-weight: 800; font-style: italic; font-stretch: 110%; color: var(--text); }
.news-compact .news-compact-text { margin: 4px 0 0; color: var(--text-2); font-size: 0.95rem; }
.news-compact .news-form { margin-top: 18px; }
.news-compact .news-status { margin-bottom: 0; }

.status-page { position: relative; isolation: isolate; overflow: hidden; padding: 104px 0 128px; }
.status-inner { max-width: 760px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.status-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin-bottom: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--text-2);
  box-shadow: var(--shadow);
}
.status-mark::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: status-ring 2.6s var(--ease) 0.4s 2;
}
.status-success .status-mark { color: var(--ok); }
.status-warning .status-mark { color: var(--orange); }
.status-icon { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.status-success .status-icon path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: status-draw 0.7s var(--ease) 0.25s forwards; }
@keyframes status-ring { 0% { opacity: 0.55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.55); } }
@keyframes status-draw { to { stroke-dashoffset: 0; } }
.status-eyebrow { margin: 0; font: 600 0.8rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.status-success .status-eyebrow { color: var(--ok); }
.status-warning .status-eyebrow { color: var(--accent-text); }
.status-page h1 { margin: 12px 0 0; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); line-height: 1.06; font-weight: 900; font-style: italic; font-stretch: 116%; letter-spacing: -0.02em; }
.status-page .lead { margin: 18px auto 0; }
.status-page .actions { justify-content: center; }
.status-form { width: 100%; max-width: 540px; margin-top: 36px; text-align: left; }
.status-form .news-form { margin: 0; }

@media (max-width: 1024px) {
  .news-card { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 40px; }
}

@media (max-width: 720px) {
  .news-section { padding-bottom: 80px; }
  .news-card { padding: 30px 20px 22px; border-radius: 20px; }
  .news-field { flex-direction: column; align-items: stretch; padding: 6px; }
  .news-field input { padding: 12px; }
  .news-field .button { width: 100%; }
  .news-feed ol { padding: 18px 16px 4px 40px; }
  .news-feed ol::before { left: 20px; }
  .news-compact { padding: 22px 18px 18px; }
  .news-compact-icon { width: 36px; height: 36px; padding: 8px; }
  .status-page { padding: 64px 0 88px; }
  .status-mark { width: 88px; height: 88px; margin-bottom: 22px; }
  .status-icon { width: 40px; height: 40px; }
}

@media (max-width: 1180px) {
  .doc-shell.has-toc { grid-template-columns: 220px minmax(0, 1fr); }
  .toc-side { display: none; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero { padding: 64px 0 80px; }
  .env-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .doc-shell, .doc-shell.has-toc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .doc-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 20px 0 0;
    margin: 0 -24px;
    border-bottom: 1px solid var(--line);
  }
  .doc-sidebar-title { display: none; }
  .doc-sidebar ul { display: flex; gap: 8px; overflow-x: auto; border: 0; padding: 0 24px 16px; scrollbar-width: none; }
  .doc-sidebar li { flex-shrink: 0; }
  .doc-sidebar li a { margin: 0; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; white-space: nowrap; background: var(--bg-raised); }
  .doc-sidebar li a[aria-current="page"] { border-color: var(--orange); background: var(--accent-soft); }
  .prose { padding-top: 32px; }
  .route { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .route-wrap::before, .route-wrap::after { top: calc(var(--pin) / 2); bottom: calc(var(--pin) / 2); left: calc(var(--pin) / 2 - 7px); right: auto; width: 14px; height: auto; }
  .route-wrap::after { left: calc(var(--pin) / 2 - 1px); width: 2px; background: repeating-linear-gradient(180deg, var(--orange) 0 14px, transparent 14px 26px); transform: scaleY(0); transform-origin: center top; }
  .route-wrap.is-visible::after { transform: scaleY(1); }
  .route-car { display: none; }
  .route-stop { text-align: left; padding: 0 0 0 calc(var(--pin) + 20px); min-height: var(--pin); }
  .route-pin { left: 0; margin-left: 0; }
  .route-stop p { margin-left: 0; max-width: 46ch; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-card-large { grid-row: auto; min-height: 0; }
  .guide-rows a { grid-template-columns: 40px minmax(0, 1fr); }
  .guide-row-text { grid-column: 2; }
}

@media (max-width: 720px) {
  :root { --header-h: 100px; }
  .container { padding: 0 16px; }
  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 10px;
    padding: 10px 16px 0;
    min-height: 0;
  }
  .brand { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 3; grid-row: 1; gap: 8px; }
  .badge { grid-column: 1; grid-row: 2; justify-self: start; font-size: 0.7rem; padding: 2px 8px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; margin: 0 -16px; padding: 0 10px 4px; }
  .header-inner:has(.badge) .site-nav { grid-column: 2 / -1; margin-left: 0; padding-left: 0; }
  .brand-sub { display: none; }
  .logo { height: 24px; }
  .theme-toggle { width: 34px; height: 34px; }
  .label-long { display: none; }
  .label-short { display: inline; }
  .section { padding: 72px 0; }
  .section-tight { padding: 0 16px 72px; }
  .section-head { margin-bottom: 32px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature { padding: 26px 22px; }
  .vendors-inner { gap: 16px; }
  .vendor-list { gap: 6px 24px; }
  .env { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .env-scope { grid-column: 1; }
  .env-url code { font-size: 0.8rem; overflow-wrap: normal; }
  .cta-band { padding: 32px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-base { background-size: calc(100% - 32px) 1px; }
  .doc-shell { padding: 0 16px; }
  .doc-sidebar { margin: 0 -16px; }
  .doc-sidebar ul { padding: 0 16px 14px; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { grid-column: 1; }
  .terminal-panel { height: 320px; }
  .terminal pre { padding: 16px; font-size: 0.74rem; }
  .terminal-steps { padding: 8px 12px; gap: 2px; }
  .terminal-steps li { font-size: 0.74rem; padding-right: 6px; }
  .page-head { padding: 56px 0 32px; }
  .guide-card-large { padding: 28px 24px; }
}

@media (max-width: 400px) {
  .header-actions .button-small { padding: 8px 10px; }
  .terminal-bar { gap: 8px; padding-left: 12px; }
  .terminal-lights { display: none; }
  .env-url { flex-wrap: wrap; }
  .actions .button { flex: 1 1 100%; }
}

html:not(.js) .route-wrap::after { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .blob { animation: none !important; }
  .js .reveal:not(.is-visible) { opacity: 1; transform: none; }
  .route-wrap::after { transform: none; }
  .route-car { display: none; }
  .terminal .caret { display: none; }
}
