/* ===========================================================================
   Nexus by Stingray — unified static site design system
   One stylesheet, two themes: light (front site, default) + .theme-dark
   (developer portal). No external fonts, no CDN, no framework.
   Generated pages link this file; do not hand-edit generated HTML.
   =========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --surface-2: #F1F5FB;
  --tint: #F0F6FE;            /* faint-blue band */
  --ink: #0B1F3A;
  --mut: #475569;
  --faint: #8595AB;
  --line: #E3E9F2;
  --line-2: #D3DEEC;
  --brand: #0F6CE0;
  --brand-2: #0A57BC;        /* deeper hover */
  --brand-dark: #0A57BC;
  --brand-tint: #EAF2FE;
  --accent: #3BB2C4;         /* teal accent tint */
  --accent-tint: #E6F6F8;
  --violet: #6D5AE6;
  --violet-tint: #EEEBFB;
  --ok: #047857;
  --ok-bg: #E7F7EF;
  --warn: #92400E;
  --warn-bg: #FDF1D6;

  --font: "Segoe UI", -apple-system, system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1140px;
  --shadow: 0 1px 2px rgba(11, 31, 58, .05), 0 2px 6px rgba(11, 31, 58, .05);
  --shadow-md: 0 4px 12px rgba(11, 31, 58, .07), 0 1px 3px rgba(11, 31, 58, .06);
  --shadow-lg: 0 18px 40px -18px rgba(11, 31, 58, .28), 0 2px 8px rgba(11, 31, 58, .06);
  --hero-wash: radial-gradient(1100px 520px at 78% -8%, var(--brand-tint) 0%, rgba(240,246,254,0) 60%),
               radial-gradient(700px 420px at 6% 4%, var(--accent-tint) 0%, rgba(230,246,248,0) 55%);
}

html.theme-dark {
  --bg: #070E1B;
  --surface: #0F1B2F;
  --surface-2: #111F38;
  --tint: #0C1728;
  --ink: #EAF1FB;
  --mut: #9FB0C7;
  --faint: #64758F;
  --line: #1D2C48;
  --line-2: #263a5e;
  --brand: #5AA9FF;
  --brand-2: #86C2FF;
  --brand-dark: #86C2FF;
  --brand-tint: #13233E;
  --accent: #4FD0E0;
  --accent-tint: #0E2530;
  --violet: #9E8CFF;
  --violet-tint: #1A1B3A;
  --ok: #34D399;
  --ok-bg: #0E2A22;
  --warn: #FCD34D;
  --warn-bg: #2A2410;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .28);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, .4);
  --shadow-lg: 0 22px 48px -20px rgba(0, 0, 0, .6), 0 2px 10px rgba(0, 0, 0, .4);
  --hero-wash: radial-gradient(1100px 540px at 80% -10%, rgba(30,64,120,.55) 0%, rgba(7,14,27,0) 62%),
               radial-gradient(680px 420px at 4% 2%, rgba(20,60,72,.42) 0%, rgba(7,14,27,0) 58%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; color: var(--ink); overflow-wrap: break-word; }
h2 { font-size: clamp(22px, 2.6vw, 29px); }
h3 { font-size: 18px; }
p { color: var(--mut); overflow-wrap: break-word; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.section { padding: 40px 0; }
.section-sm { padding: 26px 0; }
.section.tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--brand-dark); background: var(--brand-tint);
  padding: 6px 12px; border-radius: 999px;
}
.lead { font-size: clamp(16.5px, 1.4vw, 19px); color: var(--mut); line-height: 1.55; }
.muted { color: var(--mut); }
.faint { color: var(--faint); }
.center { text-align: center; }

/* ---------- Header / nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .bar {
  max-width: var(--maxw); margin: 0 auto; padding: 9px 24px;
  min-height: 60px; display: flex; align-items: center; gap: 20px;
}
header.site .brand {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  font-weight: 700; font-size: 18px; color: var(--ink); flex-shrink: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
header.site .brand img { flex-shrink: 0; }
header.site .brand:hover { text-decoration: none; }
header.site .brand .sub { font-weight: 500; font-size: 13px; color: var(--faint); }
header.site nav.primary {
  display: flex; gap: 2px; flex: 1; font-size: 14.5px; font-weight: 500; align-items: center;
}
header.site nav.primary a { color: var(--mut); padding: 7px 11px; border-radius: 7px; white-space: nowrap; }
header.site nav.primary a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
header.site nav.primary a[aria-current="page"] { color: var(--brand-dark); font-weight: 600; }
header.site nav.primary a.dev-link { color: var(--faint); }
header.site nav.primary a.dev-link:hover { color: var(--brand-dark); }
header.site .actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Mobile hamburger (pure CSS details/summary) */
.nav-menu { display: none; position: relative; }
.nav-menu > summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 9px;
  border: 1px solid var(--line-2); background: var(--surface); display: flex; align-items: center; justify-content: center; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary .burger { position: relative; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-menu > summary .burger::before, .nav-menu > summary .burger::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-menu > summary .burger::before { top: -6px; }
.nav-menu > summary .burger::after { top: 6px; }
.nav-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(78vw, 288px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; }
.nav-panel nav { display: flex; flex-direction: column; gap: 1px; }
.nav-panel a { padding: 11px 12px; border-radius: 8px; color: var(--mut); font-size: 15px; font-weight: 500; }
.nav-panel a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-panel a[aria-current="page"] { color: var(--brand-dark); font-weight: 600; background: var(--brand-tint); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; font-family: inherit; line-height: 1;
  padding: 11px 17px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: background .14s, border-color .14s, color .14s, box-shadow .14s, transform .14s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 1px 2px rgba(15,108,224,.25); }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); transform: translateY(-1px); box-shadow: 0 6px 16px -4px rgba(15,108,224,.4); }
html.theme-dark .btn-primary { color: #06121F; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-1px); }
.btn-lg { padding: 13px 22px; font-size: 15.5px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn .icn { width: 17px; height: 17px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 52px; background: var(--hero-wash); overflow: clip; }
.hero .hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero-copy { max-width: 620px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 18px 0 16px; letter-spacing: -.032em; }
.hero p.lead { max-width: 600px; }
.hero .btn-row { margin-top: 26px; }
.hero.center .hero-grid { grid-template-columns: 1fr; }
.hero.center .hero-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.hero.center p.lead { margin-left: auto; margin-right: auto; }
.hero.center .btn-row { justify-content: center; }
.hero-viz { display: flex; align-items: center; justify-content: center; min-width: 0; }
.hero-svg { width: 100%; max-width: 520px; height: auto; }

/* Hero diagram theming */
.hv-node rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.3; }
.hv-node text { fill: var(--mut); font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.hv-wire { fill: none; stroke: var(--line-2); stroke-width: 1.6; }
.hv-dot { fill: var(--brand); opacity: .85; }
.hv-core rect { fill: var(--brand-tint); stroke: var(--brand); stroke-width: 1.6; filter: url(#hvGlow); }
.hv-core-label { fill: var(--brand-dark); font-family: var(--font); font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.hv-core-sub { fill: var(--mut); font-family: var(--font); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }

/* ---------- Icons & chips ---------- */
.icn { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.ico-chip {
  width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-tint); color: var(--brand-dark); flex-shrink: 0;
}
.ico-chip .icn { width: 21px; height: 21px; }
.ico-accent { background: var(--accent-tint); color: var(--accent); }
.ico-violet { background: var(--violet-tint); color: var(--violet); }
html.theme-dark .ico-accent { color: var(--accent); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  background: var(--surface); box-shadow: var(--shadow); display: block; min-width: 0;
}
a.card { color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin: 0 0 7px; font-size: 18px; }
.card p { margin: 0; font-size: 14.5px; }
.card .meta { font-size: 12.5px; color: var(--faint); margin-top: 10px; }
.card .kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-dark); }
.card .card-ico { margin-bottom: 14px; }
.card .arrow { color: var(--brand); font-weight: 600; font-size: 14px; margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; }
.card .arrow .icn { width: 16px; height: 16px; transition: transform .15s; }
a.card:hover .arrow .icn { transform: translateX(3px); }
.card.quiet { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }

/* Feature item (icon chip + text, no border) */
.feature .card-ico { margin-bottom: 13px; }
.feature h3 { font-size: 17px; margin: 0 0 6px; }
.feature p { font-size: 14.5px; margin: 0; color: var(--mut); }

/* ---------- Prose section ---------- */
.prose h2 { font-size: clamp(21px, 2.4vw, 26px); margin: 0 0 12px; }
.prose h3 { font-size: 19px; margin: 26px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; color: var(--mut); }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); }
.section-head h2 { font-size: clamp(22px, 2.6vw, 29px); margin: 10px 0 0; }

/* Bullet card (split right side) with check marks */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px solid var(--line); color: var(--mut); font-size: 14.5px; }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border-radius: 999px;
  background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center/12px no-repeat; }
html.theme-dark .check-list li::before { background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334D399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Steps (ordered) */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; }
ol.steps li { counter-increment: step; position: relative; padding-left: 46px; }
ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 999px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
html.theme-dark ol.steps li::before { color: #06121F; }
ol.steps li strong { display: block; color: var(--ink); margin-bottom: 2px; }

/* Trust strip — bordered inline band */
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  padding: 16px 22px; }
.trust span { font-size: 13.5px; color: var(--mut); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.trust span::before { content: ""; width: 16px; height: 16px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center/contain no-repeat; }
html.theme-dark .trust span::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334D399' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 700; background: var(--surface-2); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data code { font-size: .9em; }

/* ---------- Code ---------- */
code {
  font-family: var(--mono); font-size: .9em;
  background: var(--surface-2); color: var(--ink);
  padding: 2px 6px; border-radius: 5px; overflow-wrap: anywhere; word-break: break-word;
}
pre {
  background: #0B1220; color: #E6EDF7; padding: 16px 18px; border-radius: var(--radius);
  overflow-x: auto; font-size: 13.5px; line-height: 1.6; border: 1px solid var(--line);
}
html.theme-dark pre { background: #060D1A; border-color: var(--line); }
pre code { background: none; padding: 0; color: inherit; font-size: inherit; word-break: normal; overflow-wrap: normal; }
.codeblock { margin: 18px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.codeblock .label { font-size: 12px; color: var(--faint); background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 9px 16px; font-weight: 600; font-family: var(--mono); }
.codeblock pre { margin: 0; border: 0; border-radius: 0; }

/* ---------- Pricing ---------- */
.price-card { position: relative; overflow: hidden; }
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.price-card.featured::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.price-amt { font-size: 46px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; margin: 8px 0 0; }
.price-amt .unit { font-size: 16px; color: var(--faint); font-weight: 500; letter-spacing: 0; }
.price-feat { list-style: none; margin: 0; padding: 0; }
.price-feat li { position: relative; padding: 9px 0 9px 28px; color: var(--mut); font-size: 14.5px; border-bottom: 1px solid var(--line); }
.price-feat li:last-child { border-bottom: 0; }
.price-feat li::before { content: ""; position: absolute; left: 0; top: 12px; width: 17px; height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F6CE0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center/contain no-repeat; }
html.theme-dark .price-feat li::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235AA9FF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center/contain no-repeat; }
.enterprise-band { background: linear-gradient(180deg, var(--tint), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }

/* ---------- FAQ (details/summary) ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 18px 44px 18px 20px; font-weight: 600; font-size: 16px;
  color: var(--ink); list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-2); }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 15px; font-size: 22px;
  font-weight: 400; color: var(--faint); transition: transform .15s;
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 20px; }
.faq details > div p { margin: 0; }

/* ---------- Callout / status states ---------- */
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--brand);
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 14px 18px; margin: 18px 0; font-size: 14.5px;
}
.callout p { margin: 0; }
.status {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px;
  padding: 6px 12px; border-radius: 999px;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.status-warn { background: var(--warn-bg); color: var(--warn); }
.status-ok { background: var(--ok-bg); color: var(--ok); }
html.theme-dark .status-warn { color: var(--warn); }

/* ---------- Docs index (section cards) ---------- */
.docs-hero { background: var(--hero-wash); border-bottom: 1px solid var(--line); }
.docs-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .docs-cards { grid-template-columns: 1fr; } }
.doc-sec { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: 20px 22px; }
.doc-sec .doc-sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.doc-sec h2 { font-size: 16px; margin: 0; letter-spacing: -.01em; }
.doc-sec ul { list-style: none; margin: 0; padding: 0; }
.doc-sec li { border-top: 1px solid var(--line); }
.doc-sec li:first-child { border-top: 0; }
.doc-sec li a { display: block; padding: 9px 0; color: var(--mut); font-size: 14px; font-weight: 500; }
.doc-sec li a:hover { color: var(--brand-dark); text-decoration: none; padding-left: 4px; transition: padding .12s; }

/* ---------- Docs layout ---------- */
.docs-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 44px; padding: 34px 0 48px; }
aside.docs-nav { font-size: 14px; position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; border-right: 1px solid var(--line); padding-right: 16px; }
aside.docs-nav > a.home { display: block; font-weight: 700; color: var(--ink); margin-bottom: 8px; font-size: 15px; }
aside.docs-nav .grp { font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 5px; }
aside.docs-nav a { display: block; padding: 5px 10px; border-radius: 7px; color: var(--mut); }
aside.docs-nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
aside.docs-nav a[aria-current="page"] { color: var(--brand-dark); font-weight: 600; background: var(--brand-tint); box-shadow: inset 2px 0 0 var(--brand); }
.docs-main { min-width: 0; max-width: 760px; }
.docs-main > .lead { font-size: 18px; }
.docs-main h1 { font-size: clamp(26px, 3.4vw, 33px); margin: 0 0 14px; }
.docs-main h2 { font-size: 22px; margin: 32px 0 8px; padding-top: 8px; }
.docs-main h3 { font-size: 17px; margin: 22px 0 6px; }
.docs-main p, .docs-main li { color: var(--mut); }
.docs-main blockquote { border-left: 3px solid var(--brand); margin: 16px 0; padding: 10px 18px; color: var(--mut); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.docs-main pre { margin: 18px 0; }
.docs-main table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 14px 0; display: block; overflow-x: auto; }
.docs-main th, .docs-main td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.docs-main th { background: var(--surface-2); }
.pager { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 44px; padding-top: 20px; font-size: 14px; gap: 16px; }
.pager a { font-weight: 600; }
@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 22px; }
  aside.docs-nav { position: static; max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 4px; }
}

/* ---------- Breadcrumbs ---------- */
.crumb { font-size: 13px; color: var(--faint); margin-bottom: 12px; }
.crumb a { color: var(--mut); }

/* ---------- In-page sub-nav (anchors) ---------- */
.subnav { position: sticky; top: 60px; z-index: 40; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .bar { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; gap: 6px; overflow-x: auto; font-size: 14px; }
.subnav a { padding: 12px 10px; color: var(--mut); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); text-decoration: none; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); background: var(--surface); margin-top: 56px; }
footer.site .cols { max-width: var(--maxw); margin: 0 auto; padding: 46px 24px 30px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 460px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site .blurb { font-size: 14px; color: var(--mut); max-width: 300px; }
footer.site .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 10px; }
footer.site h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 0 0 12px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: 7px 0; }
footer.site a { color: var(--mut); font-size: 14px; }
footer.site a:hover { color: var(--ink); }
footer.site .legal { max-width: var(--maxw); margin: 0 auto; padding: 18px 24px 30px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

/* ---------- 404 ---------- */
.center-page { min-height: 52vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; }

/* ===========================================================================
   Developer portal (dark) — Nexus Exchange
   =========================================================================== */

/* Copyable endpoint / command block */
.copy-block { margin: 18px 0; max-width: 640px; }
.copy-block .cb-label { font-size: 12px; color: var(--faint); margin-bottom: 6px; font-weight: 600; letter-spacing: .02em; }
.copy-block .cb-row {
  display: flex; align-items: stretch; gap: 0; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; box-shadow: var(--shadow);
}
.copy-block .cb-row code {
  font-family: var(--mono); font-size: 13px; color: var(--ink); background: none;
  padding: 12px 14px; border-radius: 0; overflow-x: auto; white-space: nowrap; flex: 1; min-width: 0;
}
.copy-block .cb-copy {
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--mut);
  background: var(--surface); border: 0; border-left: 1px solid var(--line-2);
  padding: 0 16px; cursor: pointer; white-space: nowrap; transition: color .12s, background .12s;
}
.copy-block .cb-copy:hover { color: var(--brand-dark); background: var(--brand-tint); }
.copy-block .cb-copy.is-copied { color: var(--ok); }

.small { font-size: 13.5px; }

/* Developer pricing card + roles */
.dev-price { max-width: none; }
.role { padding: 16px 0; border-top: 1px solid var(--line); }
.role:first-of-type { border-top: 0; padding-top: 4px; }
.role p { margin: 8px 0 0; font-size: 14px; }

/* Badges (roles / status) */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--mut); white-space: nowrap;
}
.badge-dev { background: var(--brand-tint); color: var(--brand-dark); border-color: transparent; }
.badge-pub { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge-admin { background: var(--warn-bg); color: var(--warn); border-color: transparent; }

/* Dashboard cards */
.auth-card { max-width: 520px; }
.auth-card h2 { margin: 0 0 6px; }
.legal-line { font-size: 13px; color: var(--faint); margin: 16px 0 0; }
.dash-card { margin-bottom: 20px; }
.dash-card > h2 { font-size: 20px; margin: 0 0 4px; }
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dash-head h2 { margin: 0; font-size: 20px; }
.dash-rows { margin-top: 16px; border-top: 1px solid var(--line); }
.dash-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.dash-row:last-child { border-bottom: 0; }
.dash-row .faint { font-weight: 500; }
.chip {
  font-size: 12.5px; font-weight: 600; color: var(--mut); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.btn-sm { padding: 7px 13px; font-size: 13px; }
.signout-row { margin-top: 8px; }

/* Inline notice (billing dormant state) */
.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--brand);
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 13px 16px; font-size: 14px; color: var(--mut);
}
#portal-msg.is-error { border-left-color: var(--warn); }

/* ---------- Utility spacing ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 22px; }
.mt-3 { margin-top: 34px; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 14px; }

/* ---------- Responsive: header + hero ---------- */
@media (max-width: 900px) {
  .hero { padding: 44px 0 40px; }
  .hero .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero-copy { max-width: 640px; }
  .hero-viz { order: 2; width: 100%; max-width: 100%; }
  .hero-svg { width: 100%; max-width: 440px; }
}
@media (max-width: 860px) {
  header.site nav.primary { display: none; }
  .nav-menu { display: block; }
}
@media (max-width: 560px) {
  header.site .brand .sub { display: none; }
  .hero h1 { font-size: clamp(27px, 8vw, 34px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
