:root {
  --bg: #060b16;
  --bg-soft: #0a1224;
  --surface: #0d1729;
  --surface-2: #111d33;
  --border: #1e2d49;
  --border-soft: #17243c;
  --text: #e8eefb;
  --muted: #94a6c4;
  --muted-2: #6f82a3;
  --accent: #2ee6a8;
  --accent-2: #38bdf8;
  --accent-3: #818cf8;
  --danger: #fb7185;
  --warning: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

code,
pre,
kbd {
  font-family: var(--mono);
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #04120c;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 11, 22, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04120c;
  box-shadow: 0 8px 24px rgba(46, 230, 168, 0.28);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  text-transform: uppercase;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 9px;
  text-decoration: none;
  transition: color 0.16s ease, background 0.16s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 9px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 11px 19px;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #55f0bd);
  color: #04140d;
  box-shadow: 0 10px 30px rgba(46, 230, 168, 0.22);
}

.btn-ghost {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: #2f456c;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.82rem;
  border-radius: 8px;
}

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 54px;
  background:
    radial-gradient(900px 480px at 78% -10%, rgba(56, 189, 248, 0.16), transparent 65%),
    radial-gradient(720px 420px at 12% 8%, rgba(46, 230, 168, 0.12), transparent 62%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 166, 196, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 166, 196, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 78%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  border: 1px solid rgba(46, 230, 168, 0.28);
  border-radius: 999px;
  background: rgba(46, 230, 168, 0.08);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(46, 230, 168, 0.14);
}

h1.hero-title {
  margin: 20px 0 18px;
  font-size: clamp(2.35rem, 5.1vw, 4.15rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent) 8%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 26px;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(17, 29, 51, 0.96), rgba(8, 14, 27, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

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

.window-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #26395b;
}

.hero-card-body {
  padding: 18px;
}

.code-line {
  margin: 0;
  padding: 13px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #050a13;
  color: #b9c9e6;
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
}

.code-line .tok-get {
  color: var(--accent);
  font-weight: 700;
}

.code-line .tok-url {
  color: var(--accent-2);
}

.hero-card .mini-response {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: rgba(5, 10, 19, 0.7);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.65;
  color: #9db2d3;
  overflow-x: auto;
}

.hero-card .mini-response .k {
  color: #c4b5fd;
}

.hero-card .mini-response .s {
  color: var(--accent);
}

.hero-card .mini-response .n {
  color: var(--warning);
}

/* ------------------------------------------------------------------- stats */
.stats-band {
  padding: 8px 0 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat {
  padding: 20px 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(17, 29, 51, 0.7), rgba(9, 16, 30, 0.6));
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ------------------------------------------------------------------ search */
.section {
  padding: 62px 0;
}

.section-tight {
  padding: 34px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-head h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.search-shell {
  position: relative;
  z-index: 5;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(46, 230, 168, 0.09), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-row input,
.field input,
.field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #070e1b;
  color: var(--text);
  padding: 13px 15px;
  font-family: var(--sans);
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.search-row input:focus,
.field input:focus,
.field select:focus {
  border-color: rgba(46, 230, 168, 0.55);
  box-shadow: 0 0 0 3px rgba(46, 230, 168, 0.12);
}

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

.search-hint {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 0.82rem;
}

.search-results {
  display: none;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #081020;
  overflow: hidden;
}

.search-results.open {
  display: block;
}

.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 11px 15px;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover,
.search-result:focus-visible {
  background: var(--surface-2);
  outline: none;
}

.search-result .code {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.78rem;
  white-space: nowrap;
}

.search-result .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-empty {
  padding: 14px 15px;
  color: var(--muted);
  font-size: 0.9rem;
}

.scheme-panel {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

.scheme-panel.open {
  display: block;
}

.scheme-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.scheme-title strong {
  font-size: 1.02rem;
}

.scheme-title span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.nav-highlight {
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-highlight b {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.05rem;
}

.url-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
}

.url-row label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.url-row code {
  padding: 9px 11px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #050a13;
  color: #a9c0e2;
  font-size: 0.78rem;
  overflow-x: auto;
  white-space: nowrap;
}

.copy-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.copy-btn:hover {
  color: var(--text);
  border-color: #345078;
}

/* ------------------------------------------------------------------ cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(17, 29, 51, 0.72), rgba(8, 14, 27, 0.55));
  padding: 24px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: #2a3f61;
  transform: translateY(-2px);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  border-radius: 11px;
  background: rgba(46, 230, 168, 0.1);
  border: 1px solid rgba(46, 230, 168, 0.2);
  font-size: 1.2rem;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------- pipeline */
.pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

.pipeline-step {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
}

.pipeline-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.pipeline-step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.pipeline-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.pipeline-step code {
  color: var(--accent-2);
  font-size: 0.82rem;
}

/* ----------------------------------------------------------------- tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(8, 14, 27, 0.5);
}

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

td code,
th code {
  color: #b9d4f5;
  font-size: 0.83rem;
}

.method {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.method.get {
  background: rgba(46, 230, 168, 0.12);
  border: 1px solid rgba(46, 230, 168, 0.3);
  color: var(--accent);
}

/* ---------------------------------------------------------------- code block */
pre {
  position: relative;
  margin: 14px 0;
  padding: 16px 18px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #050a13;
  color: #b9c9e6;
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
}

pre code {
  font-size: inherit;
}

pre .copy-pre {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid var(--border);
  background: #0d1729;
  color: var(--muted);
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}

pre:hover .copy-pre,
pre:focus-within .copy-pre {
  opacity: 1;
}

/* ------------------------------------------------------------------- footer */
.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--border-soft);
  background: #050a13;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  padding: 48px 0 36px;
}

.footer-brand p {
  max-width: 330px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-col h4 {
  margin: 4px 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-col a {
  display: block;
  margin: 7px 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted-2);
  font-size: 0.8rem;
}

/* -------------------------------------------------------------- docs layout */
.docs-hero {
  padding: 50px 0 30px;
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(56, 189, 248, 0.1), transparent 70%);
}

.docs-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -0.035em;
}

.docs-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 46px;
  padding: 40px 0 70px;
}

.docs-sidebar {
  align-self: start;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 8px;
}

.docs-sidebar h4 {
  margin: 22px 0 8px;
  color: var(--muted-2);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-sidebar h4:first-child {
  margin-top: 0;
}

.docs-sidebar a {
  display: block;
  padding: 6px 10px;
  margin: 2px 0;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.87rem;
  text-decoration: none;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
  color: var(--text);
  border-left-color: var(--accent);
  background: rgba(46, 230, 168, 0.05);
}

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

.doc-section {
  padding: 8px 0 34px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 30px;
}

.doc-section:last-child {
  border-bottom: 0;
}

.doc-section h2 {
  margin: 6px 0 14px;
  font-size: 1.6rem;
  letter-spacing: -0.025em;
  scroll-margin-top: 96px;
}

.doc-section h3 {
  margin: 28px 0 10px;
  font-size: 1.1rem;
  scroll-margin-top: 96px;
}

.doc-section p,
.doc-section li {
  color: var(--muted);
}

.doc-section strong {
  color: var(--text);
}

.doc-section ul {
  padding-left: 22px;
}

.note {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-left: 3px solid var(--accent-2);
  border-radius: 0 10px 10px 0;
  background: rgba(56, 189, 248, 0.06);
  color: #b8cbe8;
  font-size: 0.9rem;
}

.note.warn {
  border-color: rgba(251, 191, 36, 0.26);
  border-left-color: var(--warning);
  background: rgba(251, 191, 36, 0.06);
}

.endpoint-card {
  margin: 18px 0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.endpoint-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(5, 10, 19, 0.5);
}

.endpoint-head code {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.endpoint-body {
  padding: 16px;
}

.endpoint-body p {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.endpoint-body .params {
  width: 100%;
  font-size: 0.83rem;
}

.endpoint-body .params th,
.endpoint-body .params td {
  padding: 8px 10px;
}

.endpoint-body pre {
  margin-bottom: 0;
}

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---------------------------------------------------------------- explorer */
.explorer-wrap {
  padding: 36px 0 70px;
}

.explorer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: start;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(5, 10, 19, 0.45);
}

.panel-head h2 {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.panel-body {
  padding: 18px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field[hidden] {
  display: none;
}

.request-url {
  margin: 4px 0 16px;
  padding: 11px 13px;
  border: 1px dashed var(--border);
  border-radius: 9px;
  background: #050a13;
  color: #9fb6d8;
  font-family: var(--mono);
  font-size: 0.76rem;
  word-break: break-all;
}

.response-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
}

.status-dot.ok {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(46, 230, 168, 0.12);
}

.status-dot.err {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

.response-code {
  margin: 0;
  min-height: 380px;
  max-height: 620px;
  overflow: auto;
  white-space: pre;
}

/* --------------------------------------------------------------- status page */
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.status-card {
  padding: 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
}

.status-card .label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.status-card .value {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
  font-weight: 800;
}

.status-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(46, 230, 168, 0.24);
  border-radius: var(--radius);
  background: rgba(46, 230, 168, 0.06);
  margin-bottom: 22px;
}

.status-banner .big-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(46, 230, 168, 0.14);
  flex: none;
}

.status-banner strong {
  display: block;
  font-size: 1.02rem;
}

.status-banner span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ------------------------------------------------------------------- legal */
.prose {
  max-width: 820px;
  padding: 50px 0 70px;
}

.prose h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.035em;
  margin: 0 0 10px;
}

.prose h2 {
  margin: 34px 0 10px;
  font-size: 1.3rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose .updated {
  color: var(--muted-2);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-card {
    max-width: 640px;
  }

  .feature-grid,
  .pipeline,
  .status-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
    padding: 14px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .docs-sidebar h4 {
    width: 100%;
    margin: 10px 0 4px;
  }

  .docs-sidebar a {
    border-left: 0;
    border-radius: 7px;
    padding: 5px 9px;
  }

  .docs-sidebar a:hover,
  .docs-sidebar a.active {
    border-left-color: transparent;
  }

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 20px 18px;
    background: rgba(6, 11, 22, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    padding-top: 48px;
  }

  .stats-grid,
  .feature-grid,
  .pipeline,
  .status-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search-row {
    flex-direction: column;
  }

  .url-row {
    grid-template-columns: 1fr auto;
  }

  .url-row label {
    grid-column: 1 / -1;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 24px;
    padding-top: 34px;
  }

  .section {
    padding: 44px 0;
  }

  .doc-section h2 {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* --------------------------------------------------------------- utilities */
.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--mono);
}

.nowrap {
  white-space: nowrap;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.text-sm {
  font-size: 0.86rem;
}

.hidden {
  display: none !important;
}
