@font-face {
  font-family: "Public Sans";
  src: url("/landing/fonts/public-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("/landing/fonts/lora.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #07090e;
  --ink-2: #0c111b;
  --panel: rgba(14, 20, 31, 0.82);
  --panel-solid: #0f1622;
  --paper: #f3f1e9;
  --text: #eef2f5;
  --muted: #8e9aad;
  --muted-2: #647086;
  --line: rgba(223, 238, 247, 0.11);
  --line-strong: rgba(223, 238, 247, 0.22);
  --cyan: #6fe7ff;
  --cyan-soft: rgba(111, 231, 255, 0.14);
  --amber: #ffb45c;
  --amber-soft: rgba(255, 180, 92, 0.14);
  --mint: #8cf0c4;
  --mint-soft: rgba(140, 240, 196, 0.14);
  --blue: #7aa7ff;
  --danger: #ff7d76;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --font-sans: "Public Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Lora", "Songti SC", "STSong", serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --header-height: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #f3f1e9;
  --ink-2: #ebe7dd;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-solid: #fbfaf6;
  --paper: #0d121b;
  --text: #111722;
  --muted: #5f6877;
  --muted-2: #7a8390;
  --line: rgba(17, 23, 34, 0.1);
  --line-strong: rgba(17, 23, 34, 0.18);
  --cyan: #0878d8;
  --cyan-soft: rgba(8, 120, 216, 0.1);
  --amber: #c56b17;
  --amber-soft: rgba(197, 107, 23, 0.1);
  --mint: #0d8f66;
  --mint-soft: rgba(13, 143, 102, 0.1);
  --blue: #285fc4;
  --danger: #c3443e;
  --shadow: 0 30px 80px rgba(27, 35, 48, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

html[data-theme="light"] body::before {
  background:
    linear-gradient(rgba(17, 23, 34, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 23, 34, 0.035) 1px, transparent 1px);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-solid);
  color: var(--text);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 54vw;
  height: 54vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.14;
  pointer-events: none;
}

.ambient-cyan {
  top: -28vw;
  right: -12vw;
  background: var(--cyan);
}

.ambient-amber {
  top: 46vh;
  left: -34vw;
  background: var(--amber);
  opacity: 0.08;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--ink) 76%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text);
}

.brand-mark {
  width: 36px;
  height: 36px;
  color: var(--cyan);
}

.brand-word {
  font-size: 17px;
  font-weight: 760;
  letter-spacing: 0.11em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  margin-right: 16px;
}

.desktop-nav a {
  position: relative;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0.01em;
  transition: color 180ms ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-out);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a.is-active {
  color: var(--text);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.icon-button {
  width: 38px;
}

.language-toggle {
  gap: 5px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang-divider {
  color: var(--muted-2);
}

.icon-button:hover,
.language-toggle:hover,
.icon-button:focus-visible,
.language-toggle:focus-visible {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.theme-toggle .icon-moon {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

html[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  gap: 9px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.button-primary:hover {
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.26);
}

.button-ghost {
  min-height: 38px;
  padding: 0 13px;
  border-color: var(--line);
  background: transparent;
  color: var(--text);
  font-size: 12px;
}

.button-ghost:hover {
  border-color: var(--line-strong);
  background: var(--panel);
}

.mobile-menu-button {
  display: none;
}

.mobile-nav {
  position: absolute;
  top: calc(var(--header-height) - 1px);
  right: 24px;
  left: 24px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 13px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.mobile-nav a:hover {
  background: var(--panel);
  color: var(--text);
}

main {
  display: block;
}

.hero {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: calc(var(--header-height) + 74px) 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 74%, transparent);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-soft), 0 0 14px var(--mint);
}

.status-dot.is-static {
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft), 0 0 14px var(--amber);
}

.eyebrow-separator {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

.eyebrow-mono {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
}

.hero-title {
  max-width: 820px;
  margin: 26px 0 0;
  font-size: clamp(3rem, 5.45vw, 5.35rem);
  font-weight: 740;
  line-height: 0.97;
  letter-spacing: -0.062em;
}

.hero-title .serif {
  display: inline-block;
  margin-right: 0.06em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.hero-break {
  display: block;
}

.hero-description {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 670;
}

.text-link .icon {
  width: 15px;
  height: 15px;
  color: var(--cyan);
  transition: transform 180ms var(--ease-out);
}

.text-link:hover .icon {
  transform: translate(2px, -2px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 54px 0 0;
}

.hero-meta div {
  display: grid;
  gap: 4px;
}

.hero-meta dt {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.routing-stage {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 42%, var(--cyan-soft), transparent 38%),
    linear-gradient(145deg, color-mix(in srgb, var(--panel-solid) 86%, transparent), color-mix(in srgb, var(--ink-2) 92%, transparent));
  box-shadow: var(--shadow);
  isolation: isolate;
}

.routing-stage::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 42%, black 12%, transparent 74%);
  opacity: 0.48;
}

.routing-stage::after {
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: calc(var(--radius-xl) - 1px);
  content: "";
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.07), transparent 26%, transparent 70%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

.stage-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
}

.stage-title,
.stage-status {
  display: flex;
  align-items: center;
  gap: 11px;
}

.stage-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.stage-live > span:first-child {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  animation: livePulse 2s ease-in-out infinite;
}

.stage-id {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
}

.stage-status {
  color: var(--muted);
  font-size: 10px;
}

.stage-status strong {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.route-map {
  position: relative;
  height: 360px;
  margin: 0 10px;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--cyan);
}

.route-line {
  fill: none;
  stroke: url("#lineGradient");
  stroke-width: 1.1;
  stroke-dasharray: 3 6;
  animation: routeDash 8s linear infinite;
}

.route-packet {
  fill: var(--cyan);
  filter: url("#glow");
}

.packet-2 {
  fill: var(--mint);
}

.packet-3 {
  fill: var(--amber);
}

.map-node {
  position: absolute;
  display: grid;
  gap: 3px;
  min-width: 104px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--panel-solid) 76%, transparent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.map-node strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 720;
}

.map-node > span:last-child {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.node-kicker {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.map-client {
  top: 140px;
  left: 18px;
}

.map-core {
  top: 118px;
  left: 50%;
  min-width: 118px;
  border-color: color-mix(in srgb, var(--cyan) 45%, var(--line));
  background: color-mix(in srgb, var(--panel-solid) 88%, transparent);
  box-shadow: 0 0 0 6px var(--cyan-soft), 0 24px 50px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%) translateZ(26px);
}

.map-core strong {
  color: var(--cyan);
  font-size: 16px;
  letter-spacing: 0.07em;
}

.core-orbit {
  position: absolute;
  inset: -13px;
  border: 1px solid color-mix(in srgb, var(--cyan) 26%, transparent);
  border-radius: 19px;
  animation: coreOrbit 6s linear infinite;
  pointer-events: none;
}

.map-openai {
  top: 48px;
  right: 20px;
}

.map-claude {
  top: 150px;
  right: 20px;
}

.map-gemini {
  top: 252px;
  right: 20px;
}

.model-dot {
  position: absolute;
  top: 13px;
  right: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.dot-green {
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.dot-amber {
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

.dot-blue {
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
}

.stage-log {
  display: grid;
  gap: 7px;
  margin: 0 22px 22px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.13);
}

html[data-theme="light"] .stage-log {
  background: rgba(255, 255, 255, 0.46);
}

.log-line {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.45;
}

.log-line > span:first-child {
  flex: 0 0 auto;
  color: var(--muted-2);
}

.log-muted {
  opacity: 0.62;
}

.log-success {
  color: var(--mint);
}

.protocol-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 30px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strip-label {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.strip-mark {
  color: var(--cyan);
  font-family: var(--font-sans);
  font-size: 13px;
}

.section {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 118px 0;
}

.section-heading {
  max-width: 680px;
}

.section-index {
  margin: 0 0 18px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.section-heading h2,
.workflow-intro h2,
.pricing-copy h2,
.cta-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.1rem, 4.2vw, 4.4rem);
  font-weight: 720;
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.section-heading > p:last-child,
.workflow-intro > p:last-of-type,
.pricing-copy > p:last-of-type,
.cta-copy > p:last-of-type {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.endpoint-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 42px;
  align-items: start;
  margin-top: 48px;
}

.code-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #090d15;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

html[data-theme="light"] .code-panel {
  background: #101722;
}

.code-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.code-tab,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7f8ca1;
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
}

.code-tab {
  padding: 0 9px;
}

.code-tab:hover,
.copy-button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #dce7f1;
}

.code-tab.is-active {
  background: rgba(111, 231, 255, 0.1);
  color: #8ceaff;
}

.code-tab-spacer {
  flex: 1;
}

.copy-button {
  width: 30px;
}

.code-body {
  overflow: auto;
  margin: 0;
  padding: 24px 22px 26px;
  color: #c9d5e2;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.85;
  tab-size: 2;
}

.code-body code {
  font: inherit;
}

.code-comment {
  color: #66758b;
}

.code-string {
  color: #9be9c7;
}

.code-keyword {
  color: #ffbf76;
}

.endpoint-notes {
  display: grid;
  gap: 0;
}

.note-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.note-row:first-child {
  padding-top: 0;
}

.note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--cyan);
  background: var(--cyan-soft);
}

.note-icon .icon {
  width: 16px;
  height: 16px;
}

.note-row h3 {
  margin: 1px 0 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.note-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.note-link {
  margin-top: 24px;
}

.routing-section {
  padding-top: 96px;
}

.routing-list {
  display: grid;
  gap: 0;
  margin-top: 54px;
  border-top: 1px solid var(--line);
}

.routing-row {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: center;
  min-height: 210px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.routing-copy {
  position: relative;
  padding-left: 34px;
}

.routing-number {
  position: absolute;
  top: 5px;
  left: 0;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
}

.routing-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.routing-copy p {
  max-width: 400px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.routing-visual {
  min-height: 128px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--panel) 66%, transparent);
}

.health-line {
  display: grid;
  grid-template-columns: 56px 1fr 58px;
  gap: 12px;
  align-items: center;
  margin: 10px 0;
}

.health-label,
.health-value {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.health-value {
  text-align: right;
}

.health-bar {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line);
}

.health-bar i {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: var(--mint);
  box-shadow: 0 0 14px var(--mint);
}

.is-warning .health-bar i {
  background: var(--amber);
  box-shadow: 0 0 14px var(--amber);
}

.is-down .health-bar i {
  background: var(--muted-2);
  box-shadow: none;
}

.health-pulse {
  width: 7px;
  height: 7px;
  margin: 16px 0 0 74px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px var(--mint-soft), 0 0 18px var(--mint);
  animation: livePulse 2.4s ease-in-out infinite;
}

.cost-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.cost-head strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 550;
}

.cost-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 62px;
  margin-top: 12px;
}

.cost-bars span {
  display: block;
  width: 100%;
  height: var(--w);
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(to top, color-mix(in srgb, var(--cyan) 34%, transparent), var(--cyan));
  opacity: 0.8;
}

.cost-bars span:nth-child(2) {
  background: linear-gradient(to top, color-mix(in srgb, var(--amber) 34%, transparent), var(--amber));
}

.cost-bars span:nth-child(3) {
  background: linear-gradient(to top, color-mix(in srgb, var(--blue) 34%, transparent), var(--blue));
}

.cost-bars span:nth-child(4) {
  background: linear-gradient(to top, color-mix(in srgb, var(--mint) 34%, transparent), var(--mint));
}

.cost-labels {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.cost-labels span {
  width: 100%;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  text-align: center;
}

.trace-visual {
  padding-top: 15px;
}

.trace-row {
  display: grid;
  grid-template-columns: 78px 9px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.trace-row:last-child {
  border-bottom: 0;
}

.trace-time {
  color: var(--muted-2);
}

.trace-row strong {
  color: var(--mint);
  font-weight: 550;
}

.trace-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

.trace-dot.is-amber {
  background: var(--amber);
}

.trace-dot.is-green {
  background: var(--mint);
}

.connect-section {
  padding-top: 96px;
  padding-bottom: 84px;
}

.connect-heading {
  max-width: 700px;
}

.tool-rail {
  position: relative;
  overflow: hidden;
  margin-top: 42px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tool-rail::before,
.tool-rail::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 100px;
  content: "";
  pointer-events: none;
}

.tool-rail::before {
  left: 0;
  background: linear-gradient(to right, var(--ink), transparent);
}

.tool-rail::after {
  right: 0;
  background: linear-gradient(to left, var(--ink), transparent);
}

html[data-theme="light"] .tool-rail::before {
  background: linear-gradient(to right, var(--ink), transparent);
}

html[data-theme="light"] .tool-rail::after {
  background: linear-gradient(to left, var(--ink), transparent);
}

.tool-track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: toolMarquee 42s linear infinite;
}

.tool-rail:hover .tool-track {
  animation-play-state: paused;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  white-space: nowrap;
}

.tool-chip b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--panel);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
}

.workflow-section {
  padding-top: 96px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(340px, 1.18fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

.workflow-intro {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.workflow-intro .button {
  margin-top: 30px;
}

.workflow-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.workflow-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.step-number {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
}

.workflow-step h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 690;
}

.workflow-step p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.workflow-step code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
}

.pricing-section {
  padding-top: 104px;
}

.pricing-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(40px, 7vw, 90px);
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 18%, var(--amber-soft), transparent 30%),
    color-mix(in srgb, var(--panel) 78%, transparent);
  box-shadow: var(--shadow);
}

.pricing-copy h2 {
  font-size: clamp(2.2rem, 4.4vw, 4.5rem);
}

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.pricing-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-self: center;
  border-top: 1px solid var(--line);
}

.pricing-fact {
  min-width: 0;
  padding: 20px 18px 0 0;
  border-right: 1px solid var(--line);
}

.pricing-fact:last-child {
  border-right: 0;
  padding-right: 0;
}

.pricing-fact > span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-fact strong {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
  font-weight: 680;
  letter-spacing: -0.05em;
}

.pricing-fact p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.cta-section {
  position: relative;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 126px 0 138px;
  text-align: center;
}

.cta-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-copy h2 {
  font-size: clamp(2.5rem, 5vw, 5.2rem);
}

.cta-copy p:last-of-type {
  margin-right: auto;
  margin-left: auto;
}

.cta-copy .button {
  margin-top: 30px;
}

.cta-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(700px, 90vw);
  height: min(300px, 50vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-orbit span {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-9deg);
}

.cta-orbit span:nth-child(1) {
  width: 100%;
  height: 100%;
}

.cta-orbit span:nth-child(2) {
  width: 72%;
  height: 72%;
  transform: translate(-50%, -50%) rotate(22deg);
}

.cta-orbit span:nth-child(3) {
  width: 44%;
  height: 44%;
  transform: translate(-50%, -50%) rotate(-36deg);
  border-color: color-mix(in srgb, var(--cyan) 28%, transparent);
}

.site-footer {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding: 42px 0 36px;
}

.footer-brand .brand-mark {
  width: 31px;
  height: 31px;
}

.footer-brand .brand-word {
  font-size: 15px;
}

.footer-brand p {
  max-width: 240px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: clamp(40px, 7vw, 96px);
}

.footer-links > div {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links > div > span {
  margin-bottom: 4px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--muted);
  font-size: 12px;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy .reveal:nth-child(2) {
  transition-delay: 60ms;
}

.hero-copy .reveal:nth-child(3) {
  transition-delay: 130ms;
}

.hero-copy .reveal:nth-child(4) {
  transition-delay: 200ms;
}

.hero-copy .reveal:nth-child(5) {
  transition-delay: 270ms;
}

.routing-stage.reveal {
  transition-delay: 120ms;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

@keyframes routeDash {
  to {
    stroke-dashoffset: -80;
  }
}

@keyframes coreOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes toolMarquee {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .routing-stage {
    min-height: 520px;
  }

  .endpoint-grid {
    grid-template-columns: 1fr;
  }

  .endpoint-notes {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .note-row {
    grid-template-columns: 30px 1fr;
    padding: 0;
    border-bottom: 0;
  }

  .note-row:first-child {
    padding-top: 0;
  }

  .note-icon {
    width: 30px;
    height: 30px;
  }

  .note-link {
    grid-column: 1 / -1;
    margin-top: 4px;
  }

  .pricing-panel {
    grid-template-columns: 1fr;
  }

  .pricing-facts {
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 66px;
  }

  .header-inner,
  .hero,
  .protocol-strip,
  .section,
  .cta-section,
  .site-footer {
    width: min(100% - 32px, 1240px);
  }

  .desktop-nav,
  .header-console {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .hero {
    padding-top: calc(var(--header-height) + 52px);
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-meta {
    gap: 20px;
    margin-top: 38px;
  }

  .routing-stage {
    min-height: 480px;
    border-radius: 20px;
  }

  .stage-chrome {
    padding: 16px 16px 12px;
  }

  .stage-status {
    display: none;
  }

  .route-map {
    height: 300px;
    margin: 0 2px;
  }

  .map-node {
    min-width: 88px;
    padding: 9px 10px;
  }

  .map-client {
    top: 118px;
    left: 8px;
  }

  .map-core {
    top: 98px;
    min-width: 96px;
  }

  .map-core strong {
    font-size: 14px;
  }

  .map-openai {
    top: 34px;
    right: 8px;
  }

  .map-claude {
    top: 122px;
    right: 8px;
  }

  .map-gemini {
    top: 210px;
    right: 8px;
  }

  .stage-log {
    margin: 0 14px 14px;
    padding: 11px 12px;
  }

  .protocol-strip {
    justify-content: flex-start;
    gap: 10px 18px;
    padding: 18px 0;
  }

  .strip-label {
    flex-basis: 100%;
  }

  .section {
    padding: 84px 0;
  }

  .section-heading h2,
  .workflow-intro h2,
  .pricing-copy h2,
  .cta-copy h2 {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .endpoint-notes {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .note-row {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }

  .note-row:first-child {
    padding-top: 0;
  }

  .note-link {
    grid-column: auto;
  }

  .code-body {
    padding: 18px 14px 20px;
    font-size: 10px;
  }

  .routing-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0;
  }

  .routing-copy h3 {
    font-size: 21px;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .workflow-intro {
    position: static;
  }

  .pricing-panel {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .pricing-facts {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .pricing-fact {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pricing-fact:last-child {
    border-bottom: 0;
  }

  .cta-section {
    padding: 92px 0 100px;
  }

  .footer-main {
    flex-direction: column;
    gap: 36px;
  }

  .footer-links {
    gap: 34px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Shared public pages
   -------------------------------------------------------------------------- */

html[lang="zh-CN"] .lang-en,
html[lang="en"] .lang-zh {
  display: none !important;
}

.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;
}

.page-hero {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: calc(var(--header-height) + 72px) 0 58px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
}

.page-hero-copy {
  min-width: 0;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.breadcrumb a {
  color: var(--muted);
}

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

.breadcrumb-separator {
  color: var(--muted-2);
}

.page-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.page-title {
  max-width: 850px;
  margin: 0;
  color: var(--text);
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 740;
  line-height: 0.96;
  letter-spacing: -0.062em;
}

.page-title .serif {
  display: inline-block;
  margin-right: 0.06em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.page-lede {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.75;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 32px;
}

.page-actions .button {
  min-height: 44px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 42px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
}

.page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-meta b {
  color: var(--text);
  font-weight: 550;
}

.page-aside {
  min-width: 0;
}

.surface-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 86% 12%, var(--cyan-soft), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--panel-solid) 88%, transparent), color-mix(in srgb, var(--ink-2) 92%, transparent));
  box-shadow: var(--shadow);
}

.hero-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(135deg, black, transparent 76%);
  opacity: 0.44;
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
}

.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel-head strong {
  color: var(--cyan);
  font-weight: 550;
}

.hero-panel-title {
  margin: 22px 0 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 680;
  letter-spacing: -0.035em;
}

.hero-panel-title .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.hero-panel-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.hero-fact {
  min-width: 0;
  padding: 15px;
  background: color-mix(in srgb, var(--panel-solid) 86%, transparent);
}

.hero-fact span {
  display: block;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-fact strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere;
}

.hero-endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

html[data-theme="light"] .hero-endpoint {
  background: rgba(255, 255, 255, 0.46);
}

.hero-endpoint .status-dot {
  flex: 0 0 auto;
}

.hero-endpoint code {
  min-width: 0;
  color: var(--text);
  font: inherit;
  overflow-wrap: anywhere;
}

.page-shell {
  min-height: 100vh;
}

.page-shell main {
  min-width: 0;
}

.page-section {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 110px;
}

.page-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.page-section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 710;
  letter-spacing: -0.045em;
}

.page-section-head p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.page-cta {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 110px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 20%, var(--amber-soft), transparent 32%),
    color-mix(in srgb, var(--panel) 76%, transparent);
}

.page-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.page-cta h2 {
  max-width: 640px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.page-cta p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.page-cta .button {
  flex: 0 0 auto;
}

.inline-code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.copy-button.is-copied {
  background: var(--mint-soft);
  color: var(--mint);
}

/* Documentation ------------------------------------------------------------ */

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(38px, 6vw, 72px);
  align-items: start;
}

.docs-sidebar,
.legal-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 26px);
  min-width: 0;
}

.docs-nav,
.legal-toc {
  display: grid;
  gap: 3px;
  padding-left: 15px;
  border-left: 1px solid var(--line);
}

.docs-nav-label,
.legal-toc-label {
  margin: 0 0 10px -15px;
  padding-left: 15px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-nav a,
.legal-toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  transition: color 160ms ease;
}

.docs-nav a:hover,
.docs-nav a:focus-visible,
.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--text);
}

.docs-content {
  min-width: 0;
}

.docs-section {
  padding: 0 0 58px;
  margin: 0 0 58px;
  border-bottom: 1px solid var(--line);
}

.docs-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.docs-section h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 710;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.docs-section h3 {
  margin: 32px 0 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.docs-section p,
.docs-section li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.docs-section > p:first-of-type {
  max-width: 760px;
  margin: 16px 0 0;
}

.docs-section p code,
.docs-section li code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.docs-section ul,
.docs-section ol {
  margin: 16px 0 0;
  padding-left: 20px;
}

.docs-section li + li {
  margin-top: 6px;
}

.guide-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.guide-step {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}

.guide-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, var(--line));
  border-radius: 8px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
}

.guide-step h3 {
  margin: 16px 0 0;
  font-size: 15px;
}

.guide-step p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.65;
}

.docs-callout {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 13px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 68%, transparent);
}

.docs-callout.is-warning {
  border-color: color-mix(in srgb, var(--amber) 35%, var(--line));
  background: var(--amber-soft);
}

.docs-callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.docs-callout.is-warning .docs-callout-icon {
  background: var(--amber-soft);
  color: var(--amber);
}

.docs-callout strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.docs-callout p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.7;
}

.doc-code {
  margin-top: 22px;
}

.doc-code .code-tabs {
  flex-wrap: wrap;
}

.doc-code .code-body {
  max-width: 100%;
  overflow-x: auto;
}

.doc-code .code-body code {
  display: block;
  min-width: max-content;
}

.code-label {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.code-tab-spacer + .code-label {
  margin-left: 4px;
}

.endpoint-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.endpoint-field {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 62%, transparent);
}

.endpoint-field span {
  display: block;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.endpoint-field strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 550;
  overflow-wrap: anywhere;
}

.doc-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.doc-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}

.doc-table th,
.doc-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc-table tr:last-child td {
  border-bottom: 0;
}

.doc-table th {
  background: color-mix(in srgb, var(--panel) 74%, transparent);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.doc-table td {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.doc-table td:first-child {
  color: var(--text);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.doc-table code {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.94em;
  overflow-wrap: anywhere;
}

.faq-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  flex: 0 0 auto;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 16px;
  content: "+";
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  max-width: 720px;
  margin: -4px 0 18px;
  padding-right: 34px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.doc-note {
  margin-top: 18px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Model catalog
   -------------------------------------------------------------------------- */

.catalog-toolbar {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--panel) 76%, transparent);
}

.model-search {
  position: relative;
}

.model-search .icon {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 17px;
  height: 17px;
  color: var(--muted-2);
  transform: translateY(-50%);
  pointer-events: none;
}

.model-search input {
  width: 100%;
  height: 48px;
  padding: 0 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: var(--ink-2);
  color: var(--text);
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

html[data-theme="light"] .model-search input {
  background: var(--panel-solid);
}

.model-search input::placeholder {
  color: var(--muted-2);
}

.model-search input:focus {
  border-color: color-mix(in srgb, var(--cyan) 55%, var(--line));
  box-shadow: 0 0 0 3px var(--cyan-soft);
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.search-clear:hover {
  background: var(--line);
  color: var(--text);
}

.search-clear.is-visible {
  display: inline-flex;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.filter-chip {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.filter-chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.filter-chip.is-active {
  border-color: color-mix(in srgb, var(--cyan) 45%, var(--line));
  background: var(--cyan-soft);
  color: var(--cyan);
}

.filter-chip-count {
  margin-left: 5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.filter-chip.is-active .filter-chip-count {
  color: color-mix(in srgb, var(--cyan) 72%, var(--text));
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0 0;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.catalog-count strong {
  color: var(--text);
  font-weight: 550;
}

.catalog-groups {
  display: grid;
  gap: 44px;
  margin-top: 36px;
}

.model-group {
  min-width: 0;
}

.model-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.model-group-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.model-group-head span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.model-group-head::after {
  flex: 1;
  height: 1px;
  content: "";
  background: var(--line);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.model-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 172px;
  flex-direction: column;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  transition: transform 180ms var(--ease-out), border-color 180ms ease, background 180ms ease;
}

.model-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--provider, var(--cyan)), transparent);
  opacity: 0.52;
}

.model-card:hover {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  transform: translateY(-2px);
}

.model-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.provider-badge {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.provider-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border: 1px solid color-mix(in srgb, var(--provider, var(--cyan)) 28%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--provider, var(--cyan)) 12%, transparent);
  color: var(--provider, var(--cyan));
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
}

.model-copy {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
}

.model-copy:hover {
  border-color: var(--line);
  background: var(--line);
  color: var(--text);
}

.theme-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 16px;
  line-height: 1;
}

.theme-glyph-moon {
  display: none;
}

html[data-theme="light"] .theme-glyph-sun {
  display: none;
}

html[data-theme="light"] .theme-glyph-moon {
  display: inline-flex;
}

.arrow-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  transition: transform 180ms var(--ease-out);
}

.text-link .arrow-mark {
  color: var(--cyan);
  font-size: 15px;
}

.text-link:hover .arrow-mark,
.button:hover .arrow-mark {
  transform: translate(2px, -2px);
}

.mobile-nav a.is-active {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.model-id {
  margin: 20px 0 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.35;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.model-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin: 9px 0 0;
  color: var(--muted-2);
  font-size: 10px;
}

.model-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.model-meta span::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: var(--provider, var(--cyan));
}

.model-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.model-card-foot a {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 650;
}

.model-card-foot a:hover {
  color: var(--cyan);
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 58px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  text-align: center;
}

.empty-state strong {
  color: var(--text);
  font-size: 16px;
}

.empty-state p {
  max-width: 360px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.catalog-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 28px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.7;
}

.catalog-note strong {
  color: var(--text);
  font-weight: 650;
}

/* --------------------------------------------------------------------------
   Service status
   -------------------------------------------------------------------------- */

.status-banner {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--amber) 34%, var(--line));
  border-radius: 14px;
  background: var(--amber-soft);
}

.status-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--amber) 16%, transparent);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.status-banner strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.status-banner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.status-banner-meta {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 9px;
  white-space: nowrap;
}

.status-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}

.status-summary-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 66%, transparent);
}

.status-summary-card span {
  display: block;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-summary-card strong {
  display: block;
  margin-top: 9px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 550;
}

.status-summary-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.status-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.status-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.status-panel-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.status-panel-head span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.status-list {
  display: grid;
}

.endpoint-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 150px minmax(0, 1.45fr) 34px;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.endpoint-row:last-child {
  border-bottom: 0;
}

.endpoint-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.endpoint-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.endpoint-main h3 {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 680;
}

.endpoint-main code {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.status-pill::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: currentColor;
}

.status-pill.is-unknown {
  border-color: color-mix(in srgb, var(--amber) 32%, var(--line));
  background: var(--amber-soft);
  color: var(--amber);
}

.status-pill.is-operational {
  border-color: color-mix(in srgb, var(--mint) 32%, var(--line));
  background: var(--mint-soft);
  color: var(--mint);
}

.status-pill.is-degraded {
  border-color: color-mix(in srgb, var(--amber) 32%, var(--line));
  background: var(--amber-soft);
  color: var(--amber);
}

.status-pill.is-maintenance {
  border-color: color-mix(in srgb, var(--blue) 32%, var(--line));
  background: color-mix(in srgb, var(--blue) 11%, transparent);
  color: var(--blue);
}

.endpoint-note {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.endpoint-copy {
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
}

.endpoint-copy:hover {
  border-color: var(--line);
  background: var(--line);
  color: var(--text);
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
}

.status-legend .status-pill {
  min-height: 24px;
}

.status-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.status-note-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 58%, transparent);
}

.status-note-card span {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 9px;
}

.status-note-card h3 {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 13px;
}

.status-note-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.incident-empty {
  margin-top: 34px;
  padding: 36px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  text-align: center;
}

.incident-empty strong {
  color: var(--text);
  font-size: 15px;
}

.incident-empty p {
  max-width: 520px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(38px, 6vw, 72px);
  align-items: start;
}

.legal-article {
  min-width: 0;
  max-width: 860px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.legal-meta strong {
  color: var(--text);
  font-weight: 550;
}

.legal-notice {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 13px;
  margin-top: 24px;
  padding: 17px;
  border: 1px solid color-mix(in srgb, var(--amber) 34%, var(--line));
  border-radius: 13px;
  background: var(--amber-soft);
}

.legal-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--amber) 14%, transparent);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.legal-notice strong {
  display: block;
  color: var(--text);
  font-size: 12px;
}

.legal-notice p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.legal-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.legal-section:last-of-type {
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.legal-section h3 {
  margin: 22px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 680;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.legal-section p {
  margin: 11px 0 0;
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-section li + li {
  margin-top: 6px;
}

.legal-section code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.legal-end {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--panel) 64%, transparent);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Page-specific responsive rules
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .page-aside {
    max-width: 640px;
  }

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

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

@media (max-width: 980px) {
  .desktop-nav,
  .header-console {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .docs-layout,
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .docs-sidebar,
  .legal-sidebar {
    position: static;
  }

  .docs-nav,
  .legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 0;
    border-left: 0;
  }

  .docs-nav-label,
  .legal-toc-label {
    flex-basis: 100%;
    margin: 0 0 2px;
    padding-left: 0;
  }

  .docs-nav a,
  .legal-toc a {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
  }

  .docs-nav a:hover,
  .docs-nav a:focus-visible,
  .legal-toc a:hover,
  .legal-toc a:focus-visible {
    border-color: var(--line-strong);
  }
}

@media (max-width: 760px) {
  .page-hero,
  .page-section,
  .page-cta {
    width: min(100% - 32px, 1240px);
  }

  .page-hero {
    padding-top: calc(var(--header-height) + 46px);
    padding-bottom: 40px;
  }

  .page-title {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .page-lede {
    margin-top: 20px;
    font-size: 14px;
  }

  .page-actions {
    gap: 14px;
    margin-top: 26px;
  }

  .page-actions .button {
    width: 100%;
  }

  .page-meta {
    gap: 9px 18px;
    margin-top: 30px;
  }

  .hero-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .hero-panel-title {
    font-size: 21px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .page-section {
    padding-bottom: 82px;
  }

  .page-section-head {
    display: block;
    margin-bottom: 24px;
  }

  .page-section-head p {
    margin-top: 12px;
  }

  .page-cta {
    margin-bottom: 82px;
  }

  .page-cta-inner {
    display: block;
  }

  .page-cta .button {
    margin-top: 22px;
  }

  .docs-section {
    padding-bottom: 42px;
    margin-bottom: 42px;
  }

  .docs-section h2 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .docs-section p,
  .docs-section li {
    font-size: 13px;
  }

  .guide-step-grid,
  .endpoint-fields {
    grid-template-columns: 1fr;
  }

  .doc-code .code-body {
    font-size: 10px;
  }

  .catalog-toolbar {
    padding: 14px;
  }

  .catalog-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .model-grid {
    grid-template-columns: 1fr;
  }

  .model-card {
    min-height: 158px;
  }

  .model-group-head h2 {
    font-size: 14px;
  }

  .status-banner {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .status-banner-icon {
    width: 30px;
    height: 30px;
  }

  .status-banner-meta {
    grid-column: 2;
  }

  .status-summary,
  .status-notes {
    grid-template-columns: 1fr;
  }

  .endpoint-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 14px;
    padding: 16px;
  }

  .endpoint-main {
    grid-column: 1 / -1;
  }

  .endpoint-row > .status-pill {
    grid-column: 1;
    grid-row: 2;
  }

  .endpoint-note {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .endpoint-copy {
    grid-column: 2;
    grid-row: 2;
  }

  .status-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 15px 16px;
  }

  .legal-meta {
    font-size: 8px;
  }

  .legal-section {
    padding: 24px 0;
  }

  .legal-section h2 {
    font-size: 17px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 12px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: 12px;
  }

  .brand-word {
    font-size: 15px;
  }

  .header-actions {
    gap: 5px;
  }

  .icon-button {
    width: 34px;
  }

  .language-toggle {
    height: 34px;
    padding: 0 7px;
  }

  .page-title {
    font-size: 2.45rem;
  }

  .filter-chip {
    min-height: 30px;
    padding: 0 10px;
  }
}
