@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --paper: #f7f8fb;
  --cloud: #f4f6fb;
  --cloud-2: #eef1f8;
  --ink: #0a0e1a;
  --ink-2: #1a2236;
  --body: #3d4557;
  --muted: #6b7488;
  --line: #e6e9f2;
  --line-strong: #d3d9e8;
  --blue: #0b5cff;
  --blue-deep: #0a44cc;
  --blue-bright: #5b8cff;
  --blue-tint: #eaf0ff;
  --violet: #7a5cff;
  --green: #08794f;
  --green-bright: #00c776;
  --green-tint: #e2f6ec;
  --amber: #9a5400;
  --amber-tint: #fcefda;
  --red: #d13a52;
  --red-tint: #fdecef;
  --void: #080b16;
  --void-2: #0f1626;
  --void-3: #161f36;
  --navy: #080b16;
  --navy-2: #0f1626;
  --navy-line: rgba(255, 255, 255, 0.1);
  --navy-text: #aab6d4;
  --font-display: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(10, 14, 26, 0.04), 0 1px 1px rgba(10, 14, 26, 0.03);
  --shadow-md: 0 2px 8px rgba(10, 14, 26, 0.04), 0 16px 40px -18px rgba(10, 14, 26, 0.16);
  --shadow-lg: 0 4px 12px rgba(10, 14, 26, 0.05), 0 36px 80px -28px rgba(10, 14, 26, 0.28);
  --shadow-blue: 0 18px 50px -18px rgba(11, 92, 255, 0.5);
  --grad: linear-gradient(115deg, #0b5cff 10%, #5b8cff 60%, #7a5cff 100%);
  --grad-soft: linear-gradient(115deg, #eaf0ff, #f0ecff);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  min-height: 100vh;
}

::selection {
  background: #cfdfff;
  color: var(--ink);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-track {
  background: transparent;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
b,
strong {
  color: var(--ink);
  font-weight: 600;
}
code,
pre,
kbd {
  font-family: var(--font-mono);
}
p code,
li code,
td code {
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  font-size: 0.86em;
  color: var(--ink-2);
  white-space: nowrap;
}

a {
  color: var(--blue-deep);
  text-decoration: none;
  font-weight: 500;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h3,
h4 {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.017em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.9rem, 1.4rem + 6.4vw, 5.6rem);
  letter-spacing: -0.05em;
}
h2 {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem);
  letter-spacing: -0.048em;
}
h3 {
  font-size: 1.32rem;
  line-height: 1.25;
}
h4 {
  font-size: 1.04rem;
  line-height: 1.35;
}
h1 + p {
  margin-top: 1.25rem;
}
h2 + p,
h3 + p {
  margin-top: 0.8rem;
}
p + p {
  margin-top: 0.85rem;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--on-ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: top 0.15s var(--ease-out);
}
.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

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

.wrap {
  width: var(--page-width);
  margin-inline: auto;
}
/* one page width (tokens.css): --wide and --narrow no longer change the edges */
.wrap--narrow, .wrap--wide {
  width: var(--page-width);
}
.u-maxw {
  max-width: var(--measure);
}
.u-dim {
  color: var(--muted);
}
.u-mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.u-meter {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mt-2 {
  margin-top: 1.6rem;
}
.mt-3 {
  margin-top: 2.6rem;
}
.t-live {
  color: var(--green);
  font-weight: 600;
}
.t-signal {
  color: var(--blue-deep);
  font-weight: 600;
}

main > section {
  padding: clamp(4.4rem, 3.4rem + 4vw, 8rem) 0;
  position: relative;
}
main > section:nth-of-type(even) {
  background: var(--paper);
  border-block: 1px solid var(--line);
}
/* dark showcase band opts a section out of the light rhythm */
main > section.band-dark,
section.band-dark {
  background: var(--void);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--navy-text);
  overflow: hidden;
}
.band-dark h1,
.band-dark h2 {
  color: #fff;
}
.band-dark h3,
.band-dark h4 {
  color: #fff;
}
.band-dark .lede,
.band-dark p {
  color: var(--navy-text);
}
.band-dark a:not(.btn) {
  color: var(--blue-bright);
}
.band-dark .eyebrow {
  color: #fff;
}
.band-signal {
  background: var(--void);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.lede {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  line-height: 1.55;
  max-width: 64ch;
  color: var(--body);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  position: relative;
  padding-left: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 1.35rem;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.7rem;
  height: 2px;
  transform: translateY(-50%);
  background: var(--grad);
}
.eyebrow::after {
  content: "";
  position: absolute;
  left: 1.55rem;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(5, 82, 240, 0.14);
}
.eyebrow b {
  color: inherit;
  font-weight: inherit;
}
/* status variants: keep the rail, recolor the node */
.eyebrow--alert {
  color: var(--red);
}
.eyebrow--alert::before {
  background: linear-gradient(120deg, #c93a4f, #ef8f9e);
}
.eyebrow--alert::after {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(201, 58, 79, 0.16);
}
.eyebrow--sys {
  color: var(--muted);
}
.eyebrow--sys::before {
  background: var(--line-strong);
}
.eyebrow--sys::after {
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(95, 109, 136, 0.14);
}
.eyebrow--demand {
  color: var(--green);
}
.eyebrow--demand::before {
  background: linear-gradient(120deg, #0a7a54, #4fd0a0);
}
.eyebrow--demand::after {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(10, 122, 84, 0.16);
}
.eyebrow--rail {
  padding-left: 2.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85em 1.8em;
  font: 600 1rem/1.2 var(--font-body);
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  min-height: 48px;
  transition: background 0.16s var(--ease-out), border-color 0.16s var(--ease-out),
    box-shadow 0.2s var(--ease-out), transform 0.16s var(--ease-out), color 0.16s var(--ease-out),
    filter 0.16s var(--ease-out);
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn--meter {
  background: var(--grad);
  background-size: 140% 140%;
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn--meter:hover {
  filter: brightness(1.06);
  box-shadow: 0 24px 60px -18px rgba(11, 92, 255, 0.62);
}
.band-dark .btn--meter,
.band-signal .btn--meter {
  box-shadow: 0 20px 50px -16px rgba(11, 92, 255, 0.7);
}
.btn--signal {
  background: var(--ink);
  color: var(--on-ink);
}
.btn--signal:hover {
  background: var(--ink-2);
}
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--cloud);
}
.btn--sm {
  padding: 0.5em 1.2em;
  font-size: 0.9rem;
  min-height: 38px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.05em;
}
.logo svg {
  color: var(--blue);
}
.logo:hover {
  text-decoration: none;
}
.site-nav {
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  color: var(--body);
  font-weight: 550;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
}
.site-nav a:hover {
  color: var(--ink);
  background: var(--cloud);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  color: var(--blue-deep);
  background: var(--blue-tint);
}
.header-cta {
  margin-left: 0.2rem;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}
.nav-toggle .icon-close {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 3rem + 5vw, 8rem) 0 clamp(3.5rem, 2.6rem + 3vw, 6rem);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
/* animated gradient signal field */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 150%;
  z-index: 0;
  background:
    radial-gradient(50% 55% at 82% 18%, rgba(122, 92, 255, 0.22), transparent 62%),
    radial-gradient(48% 50% at 96% 42%, rgba(11, 92, 255, 0.2), transparent 60%),
    radial-gradient(60% 60% at 60% 0%, rgba(91, 140, 255, 0.16), transparent 62%);
  filter: blur(8px);
  animation: drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(10, 14, 26, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 14, 26, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 15%, #000, transparent 72%);
  mask-image: radial-gradient(120% 90% at 70% 15%, #000, transparent 72%);
  pointer-events: none;
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-3%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.02); }
}
.hero-canvas {
  display: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.hero-copy {
  max-width: 36rem;
}
.hero h1 {
  max-width: 14ch;
}
.hero-sub {
  margin-top: 1.6rem;
  max-width: 44ch;
  font-size: clamp(1.12rem, 1.02rem + 0.5vw, 1.28rem);
  line-height: 1.55;
  color: var(--body);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}
.hero-meta {
  list-style: none;
  padding: 1.5rem 0 0;
  margin: 2.4rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-meta b {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-right: 0.4em;
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

.fabric {
  position: relative;
  background: var(--void-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(11, 92, 255, 0.08),
    0 40px 90px -30px rgba(11, 92, 255, 0.35);
  padding: 1rem 1rem 0.9rem;
  overflow: hidden;
}
.fabric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
}
.fabric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.4rem 0.9rem;
}
.fabric-title {
  font: 500 0.82rem/1 var(--font-mono);
  color: var(--navy-text);
}
.fabric-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--green-bright);
  font-weight: 600;
  margin-right: 0.15em;
}
.fabric-live .dot {
  width: 8px;
  height: 8px;
  background: var(--green-bright);
}
.fabric-stage {
  position: relative;
  height: 272px;
  border-radius: var(--r-md);
  background:
    radial-gradient(90% 120% at 12% 50%, rgba(11, 92, 255, 0.14), transparent 58%),
    radial-gradient(70% 90% at 96% 30%, rgba(122, 92, 255, 0.12), transparent 60%),
    var(--void);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.fabric-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
}
.fabric-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-content: center;
  padding: 1rem;
}
.no-js .fabric-stage canvas {
  display: none;
}
.no-js .fabric-fallback {
  display: grid;
}
.fabric-stage[data-fallback] canvas {
  display: none;
}
.fabric-stage[data-fallback] .fabric-fallback {
  display: grid;
}
.fabric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  padding: 0.9rem 0.45rem 0.15rem;
  font: 500 0.82rem/1.3 var(--font-mono);
  color: var(--navy-text);
}
.fs-k {
  color: #7f8bab;
}
.fs-item b {
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
#fx-routed {
  color: var(--blue-bright);
}
.fabric-feed {
  list-style: none;
  padding: 0.6rem 0.45rem 0.2rem;
  margin: 0;
  display: grid;
  gap: 0.3rem;
  min-height: 3.9rem;
  font: 500 0.76rem/1.35 var(--font-mono);
}
.fabric-feed .ff {
  color: #8a95b5;
  opacity: 0;
  transform: translateY(-3px);
  animation: ff-in 0.3s var(--ease-out) forwards;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fabric-feed .ff::before {
  content: "•";
  margin-right: 0.5em;
  color: rgba(255, 255, 255, 0.25);
}
.ff--routed::before { content: "→"; color: var(--blue-bright); }
.ff--join::before { content: "+"; color: var(--green-bright); }
.ff--leave::before { content: "–"; color: #7f8bab; }
.ff--drop::before { content: "!"; color: #ffb454; }
.ff--price::before { content: "↓"; color: var(--blue-bright); }
.ff--routed { color: #d6ddf0; }
.ff--drop { color: #ffc478; }
@keyframes ff-in {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fabric-feed .ff { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .fabric {
    max-width: 34rem;
  }
  .fabric-stage {
    height: 230px;
  }
}
@media (max-width: 480px) {
  .fabric-stage {
    height: 200px;
  }
  .fabric-feed .ff:nth-child(n+3) {
    display: none;
  }
}
.hp-cand {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cloud);
  transition: border-color 0.2s var(--ease-out);
}
.hp-cand--win {
  background: var(--surface);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(5, 82, 240, 0.1);
}
.hp-cand--dim {
  opacity: 0.6;
}
.hp-tick {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}
.hp-cand--win .hp-tick {
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-tint);
}
.hp-node {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.82rem;
}
.hp-price {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.hp-tag {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.2em 0.55em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.hp-cand--win .hp-tag {
  color: var(--blue-deep);
  border-color: #c9dbff;
  background: var(--blue-tint);
}
.hp-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 0.78rem;
}
.hp-foot b {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .hero-copy {
    max-width: 40rem;
  }
  .hero-panel {
    max-width: 30rem;
  }
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--cloud);
  padding: 0.62rem 0;
}
.ticker-track {
  display: flex;
  gap: 2.8rem;
  width: max-content;
  animation: ticker 46s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}
.ticker-item b {
  color: var(--ink-2);
  font-weight: 600;
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 1.3rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.3rem;
}
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(1.6rem, 1rem + 3vw, 4rem);
  align-items: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.24s var(--ease-out), transform 0.24s var(--ease-out),
    border-color 0.24s var(--ease-out);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.card:hover::after {
  transform: scaleX(1);
}
.card--accent::after,
.card--demand::after {
  transform: scaleX(1);
}
.card--demand::after {
  background: linear-gradient(115deg, #08794f, #00c776);
}
.card--accent::before,
.card--demand::before {
  content: "Supply";
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font: 500 0.66rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  opacity: 0.65;
}
.card--accent,
.card--demand {
  position: relative;
}
.card--demand::before {
  content: "Demand";
  color: var(--green);
}
.card h3 {
  margin-bottom: 0.55rem;
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  color: var(--blue-deep);
  border: 1px solid var(--line);
  margin-bottom: 1.3rem;
}
.card-icon svg {
  width: 26px;
  height: 26px;
}
.card-icon--signal {
  background: var(--green-tint);
  color: var(--green);
}
.card-icon--live {
  background: var(--amber-tint);
  color: var(--amber);
}

.check-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}
.check-list li {
  padding-left: 1.75rem;
  position: relative;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--green-tint) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230a7a54" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.2 4.2L19 7"/></svg>') center/62% no-repeat;
}
.x-list li::before {
  background: var(--red-tint) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23c93a4f" stroke-width="3.2" stroke-linecap="round"><path d="M6.5 6.5l11 11M17.5 6.5l-11 11"/></svg>') center/56% no-repeat;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.15rem 1.3rem 1.15rem 3.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.15rem;
  top: 1.15rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-tint);
  color: var(--blue-deep);
  font: 600 0.92rem/1 var(--font-mono);
}
.steps li b {
  display: block;
  margin-bottom: 0.15rem;
}

.stat {
  display: grid;
  gap: 0.3rem;
  padding: 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.stat .n {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(2rem, 1.5rem + 1.4vw, 2.7rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.stat .l {
  font-size: 0.86rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.stat--live .n {
  color: var(--green);
}
.band-dark .stat {
  background: var(--void-2);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.band-dark .stat .n {
  color: #fff;
}
.band-dark .stat--live .n {
  color: var(--green-bright);
}
.band-dark .stat .l {
  color: var(--navy-text);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  border-radius: 999px;
  font: 600 0.72rem/1 var(--font-mono);
  letter-spacing: 0.04em;
  padding: 0.42em 0.85em;
  vertical-align: middle;
  white-space: nowrap;
}
.badge--sim {
  background: var(--amber-tint);
  color: var(--amber);
  border: 1px solid #f3ddb8;
}
.badge--live {
  background: var(--green-tint);
  color: var(--green);
  border: 1px solid #c8ecdc;
}
.badge--signal {
  background: var(--blue-tint);
  color: var(--blue-deep);
  border: 1px solid #d4e2ff;
}
.badge--alert {
  background: var(--red-tint);
  color: var(--red);
  border: 1px solid #f6d3da;
}
.badge--lic {
  background: var(--cloud-2);
  color: var(--muted);
  border: 1px solid var(--line-strong);
  margin-left: 0.5em;
}

/* Modality badges — the marketplace's model types at a glance */
.badge--llm {
  background: var(--blue-tint);
  color: var(--blue-deep);
  border: 1px solid #d4e2ff;
}
.badge--tts {
  background: var(--green-tint);
  color: var(--green);
  border: 1px solid #c8ecdc;
}
.badge--stt {
  background: var(--amber-tint);
  color: var(--amber);
  border: 1px solid #f3ddb8;
}
.badge--emb {
  background: #f0eaff;
  color: #5c3dd6;
  border: 1px solid #ddd0fa;
}
.badge--image {
  background: #ffeaf4;
  color: #b03072;
  border: 1px solid #f8d2e6;
}
/* Capability tags — vision, OCR, tools… (secondary to the type badge) */
.badge--tag {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  font-weight: 600;
}
.chip--tag { border-style: dashed; }
.mk-na { color: var(--muted); }

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--body);
  border-radius: 999px;
  padding: 0.45em 1.05em;
  font: 550 0.88rem/1.2 var(--font-body);
  cursor: pointer;
  min-height: 38px;
  transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out),
    color 0.15s var(--ease-out);
}
.chip:hover {
  border-color: var(--blue);
  color: var(--blue-deep);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}

.receipt {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 1.2rem 1.35rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  position: relative;
  overflow: hidden;
}
.receipt::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad);
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
  font-weight: 600;
  padding: 0.35rem 0 0.75rem;
  border-bottom: 1px dashed var(--line-strong);
  margin-bottom: 0.7rem;
}
.receipt-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.28rem 0;
  color: var(--muted);
}
.receipt-row .fill {
  flex: 1;
  border-bottom: 1px dotted var(--line-strong);
  transform: translateY(-0.28em);
}
.receipt-row .val {
  color: var(--ink-2);
  font-weight: 600;
}
.receipt-total {
  border-top: 1px dashed var(--line-strong);
  margin-top: 0.45rem;
  padding-top: 0.65rem;
  color: var(--ink);
  font-weight: 600;
}
.receipt-total .val {
  color: var(--blue-deep);
}
.receipt-foot {
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.74rem;
  color: var(--muted);
}
ul.receipt,
ol.receipt {
  list-style: none;
}
.band-dark .receipt {
  background: var(--void-2);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 40px 90px -30px rgba(11, 92, 255, 0.35);
}
.band-dark .receipt-head {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.16);
}
.band-dark .receipt-row {
  color: #8a95b5;
}
.band-dark .receipt-row .fill {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}
.band-dark .receipt-row .val {
  color: #dbe2f2;
}
.band-dark .receipt-total {
  color: #fff;
  border-top-color: rgba(255, 255, 255, 0.16);
}
.band-dark .receipt-total .val {
  color: var(--blue-bright);
}
.band-dark .receipt-foot {
  color: #7f8bab;
  border-top-color: rgba(255, 255, 255, 0.16);
}

.code {
  background: var(--navy);
  border: 1px solid var(--navy-2);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.1rem;
  border-bottom: 1px solid var(--navy-line);
  color: var(--navy-text);
  font: 500 0.82rem/1.3 var(--font-mono);
}
.code pre {
  margin: 0;
  padding: 1.1rem 1.2rem 1.25rem;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.65;
  color: #e7eeff;
}
.code code {
  color: inherit;
}
.code-line {
  display: block;
}
.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--navy-line);
  color: #fff;
  border-radius: 999px;
  font: 600 0.78rem/1 var(--font-body);
  padding: 0.5em 1.1em;
  cursor: pointer;
  min-height: 32px;
  transition: background 0.15s var(--ease-out);
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.copy-btn[data-copied="true"] {
  background: var(--green);
  border-color: var(--green);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
caption {
  text-align: left;
  padding: 1rem 1.2rem 0.4rem;
  font-weight: 600;
  color: var(--ink);
}
th,
td {
  text-align: left;
  padding: 0.8rem 1.2rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  border-top: 0;
  background: var(--cloud);
  color: var(--muted);
  font: 650 0.74rem/1.4 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
tbody th {
  font-weight: 600;
  color: var(--ink);
}
tbody tr:hover td,
tbody tr:hover th {
  background: var(--hover);
}
td.num,
th.num {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.88em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
td .val {
  color: var(--ink);
  font-weight: 600;
}

.demo-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.6rem;
}
.demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.3rem;
}
.demo-head h3 {
  margin: 0;
}

.node-list {
  display: grid;
  gap: 0.7rem;
}
.node {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.node[data-status="offline"] {
  opacity: 0.62;
}
.node-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  display: block;
}
.node-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}
.node > div {
  min-width: 0;
}
.node .switch {
  margin-left: auto;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}
.dot--pulse {
  animation: pulse 2.1s ease-in-out infinite;
}
.dot--off {
  background: var(--line-strong);
  animation: none;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(10, 122, 84, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(10, 122, 84, 0);
  }
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: background 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(10, 26, 51, 0.28);
  transition: transform 0.18s var(--ease-out);
}
.switch[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
}
.switch[aria-pressed="true"]::after {
  transform: translateX(20px);
}

.price-editor {
  display: grid;
  gap: 0.65rem;
}
.price-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.9rem;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.price-line label {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.price-line input {
  grid-row: span 2;
  width: 7.5rem;
  text-align: right;
}
.model-sub {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.spark {
  width: 100%;
  height: auto;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.filter-bar input[type="search"],
.filter-bar input[type="text"] {
  flex: 1 1 220px;
}
.sort-select {
  min-width: 180px;
}

input,
select,
textarea {
  font: 500 0.96rem/1.4 var(--font-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.62em 0.95em;
  min-height: 44px;
  width: 100%;
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}
input::placeholder {
  color: #93a0b8;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(5, 82, 240, 0.18);
}
input[type="number"] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%235f6d88" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9.5l6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.85em center;
  background-size: 1em;
  padding-right: 2.5em;
}

.play-route {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}
.r-node {
  font: 600 0.8rem/1 var(--font-mono);
  color: var(--body);
  background: var(--cloud);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.55em 1em;
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out);
}
.r-node[data-active="true"] {
  background: var(--accent);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(5, 82, 240, 0.6);
}
.r-node[data-dead="true"] {
  background: var(--red-tint);
  border-color: #f0c3cb;
  color: var(--red);
  text-decoration: line-through;
}

.play-log {
  background: var(--navy);
  border: 1px solid var(--navy-2);
  border-radius: var(--r-md);
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
  padding: 1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.msg-u {
  color: #9fc0ff;
}
.msg-u::before {
  content: "you › ";
  color: #6d87b8;
}
.msg-a {
  color: #eaf0fc;
  white-space: pre-wrap;
}
.msg-sys {
  color: #8aa2c9;
  font-size: 0.78rem;
}
.msg-ok {
  color: #5fd9a4;
  font-size: 0.8rem;
}
.msg-fail {
  color: #ff98a6;
  font-size: 0.8rem;
}
.play-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.play-controls input {
  flex: 1 1 240px;
}

.calc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.7rem;
}
.calc-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.field {
  display: grid;
  gap: 0.35rem;
}
.field label {
  font: 600 0.86rem/1.3 var(--font-body);
  color: var(--ink);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: end;
  justify-content: center;
}
.form-row .field {
  flex: 1 1 220px;
  max-width: 320px;
  text-align: left;
}
.form-msg {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  min-height: 1.4em;
  font-weight: 550;
}
.form-msg[data-state="ok"] {
  color: var(--green);
}
.form-msg[data-state="error"] {
  color: var(--red);
}
.cta-band .form-msg[data-state="ok"] {
  color: #7fe6b6;
}
.cta-band .form-msg[data-state="error"] {
  color: #ffa8b4;
}

.cta-band {
  position: relative;
  background: var(--void);
  border-radius: var(--r-xl);
  color: var(--navy-text);
  text-align: center;
  padding: clamp(3.2rem, 2.4rem + 3.5vw, 5.5rem) clamp(1.4rem, 1rem + 3vw, 4rem);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -2;
  background:
    radial-gradient(40% 50% at 80% 10%, rgba(122, 92, 255, 0.5), transparent 60%),
    radial-gradient(45% 55% at 15% 100%, rgba(11, 92, 255, 0.45), transparent 60%),
    radial-gradient(40% 40% at 50% 40%, rgba(91, 140, 255, 0.22), transparent 60%);
  filter: blur(6px);
  animation: drift 20s ease-in-out infinite alternate;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(120% 120% at 50% 0%, #000, transparent 75%);
}
@media (prefers-reduced-motion: reduce) {
  .cta-band::before { animation: none; }
}
.cta-band h2 {
  color: #fff;
}
.cta-band > p {
  max-width: 54ch;
  margin: 1rem auto 2rem;
  font-size: 1.1rem;
}
.cta-band a {
  color: #bcd4ff;
}
.cta-band .field label {
  color: #e3ebfa;
}
.cta-band input,
.cta-band select {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.cta-band input::placeholder {
  color: rgba(227, 235, 250, 0.55);
}
.cta-band select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23c6d4ee" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9.5l6 6 6-6"/></svg>');
}
.cta-band select option {
  color: var(--ink);
  background: var(--surface);
}
.cta-band .btn--meter {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}
.cta-band .btn--meter:hover {
  background: var(--blue-tint);
  filter: none;
}
.cta-band :focus-visible {
  outline-color: #fff;
}

.faq-group {
  display: grid;
  gap: 0.8rem;
}
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
details[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 3.2rem 1.05rem 1.3rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  transform: translateY(-50%);
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230552f0" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9.5l6 6 6-6"/></svg>') center/contain no-repeat;
  transition: transform 0.18s var(--ease-out);
}
details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}
summary:hover {
  background: var(--cloud);
}
details > :not(summary) {
  padding: 0 1.3rem;
}
details > p:last-child,
details > ul:last-child {
  padding-bottom: 1.15rem;
}
details ul {
  margin-top: 0.5rem;
}

.diagram-svg {
  width: 100%;
  height: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  color: var(--blue-deep);
}

.schematic {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.datapath {
  width: 100%;
  height: auto;
  display: block;
  color: var(--muted);
}
.d-lane {
  font: 650 12px/1 var(--font-mono);
  letter-spacing: 0.14em;
  fill: var(--muted);
  text-anchor: middle;
}
.d-div {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 6;
}
.d-wire {
  fill: none;
  stroke-width: 2;
}
.d-wire--in {
  stroke: var(--ink-2);
  color: var(--ink-2);
}
.d-wire--tap {
  stroke: var(--line-strong);
  color: var(--line-strong);
  stroke-dasharray: 4 4;
}
.d-hair {
  stroke: var(--line);
  stroke-width: 1;
}
.d-chip rect {
  fill: var(--surface);
  stroke: var(--line-strong);
  stroke-width: 1.5;
}
.d-chip--edge rect {
  fill: var(--cloud);
  stroke: var(--blue);
  stroke-width: 2;
}
.d-chip--settle rect {
  stroke-dasharray: 0;
}
.d-title {
  font: 600 15px/1 var(--font-display);
  fill: var(--ink);
  text-anchor: middle;
  letter-spacing: -0.01em;
}
.d-chip--edge .d-title {
  text-anchor: middle;
}
.d-sub {
  font: 400 11px/1 var(--font-mono);
  fill: var(--muted);
  text-anchor: middle;
}
.d-op {
  font: 400 12.5px/1 var(--font-body);
  fill: var(--body);
}
.d-idx {
  font: 600 11px/1 var(--font-mono);
  fill: var(--blue-deep);
}
.d-note {
  font: 400 10.5px/1 var(--font-mono);
  fill: var(--muted);
}
.d-rail {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}
.d-rail--live {
  stroke: url(#live-rail);
  color: var(--green);
}
.d-rail--standby {
  stroke: var(--line-strong);
  color: var(--muted);
  stroke-dasharray: 6 6;
}
.d-pulse {
  fill: var(--blue);
}
.d-node rect {
  fill: var(--surface);
  stroke-width: 1.5;
}
.d-node--live rect {
  stroke: var(--green);
}
.d-node--standby rect {
  stroke: var(--line-strong);
  stroke-dasharray: 5 4;
}
.d-node-name {
  font: 600 13px/1 var(--font-mono);
  fill: var(--ink);
}
.d-node-sub {
  font: 400 11px/1 var(--font-mono);
  fill: var(--muted);
}
.d-dot {
  fill: var(--green);
}
.d-dot--idle {
  fill: var(--line-strong);
}
.d-failover {
  fill: none;
  stroke: var(--amber);
  color: var(--amber);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
}
.d-failover-lbl {
  font: 600 10px/1.2 var(--font-mono);
  fill: var(--amber);
  letter-spacing: 0.04em;
}
.d-caption {
  padding: 0.9rem 1.2rem;
  border-top: 1px solid var(--line);
  background: var(--cloud);
  font: 400 0.84rem/1.5 var(--font-mono);
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .d-pulse {
    display: none;
  }
}
@media (max-width: 560px) {
  .d-caption {
    font-size: 0.76rem;
  }
}

.footnote {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.4rem;
  line-height: 1.6;
}

/* Marketplace: friendly "how the prices work" explainer under the table */
.mk-note {
  margin-top: 1.3rem;
  padding: 1.25rem 1.5rem;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--body);
}
.mk-note p {
  margin: 0 0 0.7rem;
}
.mk-note p:last-child {
  margin-bottom: 0;
}
.mk-note strong {
  color: var(--ink);
}
.mk-note ul {
  margin: 0 0 0.8rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}
.mk-note li {
  padding-left: 0.15rem;
}

.error-hero {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1rem;
  padding: 4rem 0;
}
.error-hero .num {
  font: 600 clamp(4rem, 3rem + 8vw, 8rem)/1 var(--font-mono);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
}

.site-footer {
  background: var(--navy);
  color: var(--navy-text);
  margin-top: clamp(3rem, 2.4rem + 2.4vw, 5rem);
  padding: clamp(2.8rem, 2.2rem + 2.4vw, 4.4rem) 0 2rem;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--navy-line);
}
.footer-brand {
  max-width: 34ch;
}
.footer-brand .logo {
  color: #fff;
  margin-bottom: 0.7rem;
}
.footer-brand .logo svg {
  color: var(--blue-bright);
}
.site-footer .footer-grid h2 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.85rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.site-footer a {
  color: var(--navy-text);
  font-weight: 500;
}
.site-footer a:hover {
  color: #fff;
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  padding-top: 1.6rem;
  font-size: 0.84rem;
  color: #8aa2c9;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 0.8rem 1.3rem 1.2rem;
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0.1rem;
  }
  .site-nav a {
    display: block;
    padding: 0.8rem 0.9rem;
    border-radius: 10px;
    font-size: 1.02rem;
  }
  .header-cta {
    margin-left: auto;
  }
  .hero-meta {
    gap: 0.5rem 1.4rem;
  }
  .price-line {
    grid-template-columns: 1fr;
  }
  .price-line input {
    grid-row: auto;
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .form-row .field {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
  }
  .ticker-clone {
    display: none;
  }
}

/* Live data badge */
.badge--live {
  background: #08794f;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge--live::before {
  content: "●";
  margin-right: 4px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Warm/cold badges */
.badge--warm {
  background: #e2f6ec;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.badge--cold {
  background: #f4f6fb;
  color: #6b7488;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Empty state in tables */
td.empty {
  text-align: center;
  padding: 40px 20px;
  color: #6b7488;
  font-size: 14px;
}

/* Code block grid layout */
.code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 768px) {
  .code-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Payout countries (rendered from the backend's list via {{payout_countries_list}}) ── */
.country-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.country-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 0.95rem;
}
.country-list .cc {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--blue);
  background: var(--blue-tint);
  border-radius: 6px;
  padding: 2px 6px;
  min-width: 2.4em;
  text-align: center;
}
.country-list .cur {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.mt-1 { margin-top: 1rem; }
.mk-expand { background: rgba(15, 23, 42, 0.025); padding: 0.9rem 1.2rem; }
.mk-na--lead { font-size: 0.82rem; margin-bottom: 0.5rem; }

/* Important-before-you-act notice (e.g. payout country limits) */
.callout {
  background: var(--red-tint);
  border: 1px solid #f6d3da;
  border-left: 4px solid #a72c40;
  border-radius: var(--r-lg);
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}
.callout p { margin: 0; }
.callout p + p { margin-top: 0.5rem; }
/* Good-news offer box (fee-free period) — its own div, deliberately not .callout */
.offer {
  background: var(--green-tint);
  border: 1px solid #bfe6d2;
  border-left: 4px solid var(--green);
  border-radius: var(--r-lg);
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}
.offer p { margin: 0; }
.offer p + p { margin-top: 0.5rem; }


/* Admin → Model reference: the full section on /models/<id> (only rendered while the feature is on).
   Everything inside .mref-card is a third party's model card, rendered as escaped Markdown. */
.mref-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 0.55rem; margin: 1rem 0 0; }
@media (max-width: 600px) { .mref-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mref-facts > div { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.8rem; min-width: 0; }
.mref-facts dt { font: 600 0.68rem/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mref-facts dd { margin: 0.25rem 0 0; color: var(--ink); overflow-wrap: anywhere; }
.mref-h { margin: 2.2rem 0 0.3rem; }
.mref-note { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.9rem; }
.mref-card { border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.25rem; background: var(--surface, var(--paper)); overflow-wrap: anywhere; }
.mref-card > :first-child { margin-top: 0; }
.mref-card h3 { font-size: 1.12rem; margin: 1.5rem 0 0.5rem; }
.mref-card p, .mref-card li { max-width: var(--measure, 74ch); }
.mref-card ul, .mref-card ol { padding-left: 1.3rem; }
.mref-card pre { overflow-x: auto; max-width: 100%; }
.mref-card .blog-table { overflow-x: auto; margin: 0.8rem 0; }
.mref-card table { border-collapse: collapse; font-size: 0.88rem; }
.mref-card th, .mref-card td { border: 1px solid var(--line); padding: 0.35rem 0.55rem; text-align: left; vertical-align: top; }
.mref-card blockquote { border-left: 3px solid var(--line-strong); margin: 0.8rem 0; padding: 0.1rem 0 0.1rem 0.9rem; color: var(--body); }
.mref-more { margin-top: 1rem; }
.mref-more > summary { cursor: pointer; font-weight: 600; color: var(--link, var(--blue-deep)); min-height: 38px; display: flex; align-items: center; }

/* ── guides from the blog + latest posts (server-drawn, services/site_seo.py, 2026-11-29) ── */
.guides-grid { align-items: stretch; }
a.card.guide-card { display: flex; flex-direction: column; gap: 0.45rem; color: inherit; text-decoration: none; }
a.card.guide-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; color: var(--ink); }
a.card.guide-card p { margin: 0; color: var(--body); font-size: 0.95rem; line-height: 1.5; }
a.card.guide-card .eyebrow { margin: 0; }
a.card.guide-card:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
