@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ============================================================================
   Amperes — dark industrial theme overlay
   Loaded AFTER style.css. Used by the marketing pages (index, solutions,
   use-cases, integrations). Docs and pricing keep the light theme — they
   are reference pages, not poster pages.

   Design language: full-bleed hero sections with video, sparse uppercase
   typography, black background, white text. No cards. No accordions. No
   bullets in body copy. Every section is a poster.
   ============================================================================ */

:root {
  --x-black: #000000;
  --x-near-black: #0a0a0a;
  --x-charcoal: #181818;
  --x-white: #ffffff;
  --x-grey: #b3b3b3;
  --x-grey-2: #6d6d6d;
  --x-accent: #ffffff;          /* white is the only accent color */
  --x-border: rgba(255,255,255,0.12);
  --x-border-strong: rgba(255,255,255,0.32);
}

body.x-theme {
  background: var(--x-black);
  color: var(--x-white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

/* ─── Topbar (transparent over hero, solid after scroll) ─────────────── */
body.x-theme .x-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
  transition: background 240ms ease;
  pointer-events: none;
}
body.x-theme .x-topbar > * { pointer-events: auto; }
body.x-theme .x-topbar.scrolled { background: rgba(0,0,0,0.92); backdrop-filter: blur(8px); }
body.x-theme .x-topbar .x-logo {
  color: var(--x-white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.24em;
  font-size: 14px;
}
body.x-theme .x-topbar .x-logo img { height: 22px; vertical-align: middle; filter: brightness(0) invert(1); }
body.x-theme .x-topbar nav { display: flex; gap: 32px; align-items: center; }
body.x-theme .x-topbar nav a {
  color: var(--x-white);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 160ms ease;
}
body.x-theme .x-topbar nav a:hover,
body.x-theme .x-topbar nav a.active { opacity: 1; }
body.x-theme .x-topbar .x-cta {
  border: 1px solid var(--x-white);
  padding: 10px 22px;
  letter-spacing: 0.18em;
  transition: background 160ms ease, color 160ms ease;
}
body.x-theme .x-topbar .x-cta:hover { background: var(--x-white); color: var(--x-black); opacity: 1; }
@media (max-width: 720px) {
  body.x-theme .x-topbar nav a:not(.x-cta) { display: none; }
  body.x-theme .x-topbar { padding: 14px 18px; }
}

/* ─── Hero/poster sections ───────────────────────────────────────────── */
body.x-theme .x-poster {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--x-black);
}
body.x-theme .x-poster.center  { align-items: center; }

body.x-theme .x-poster video,
body.x-theme .x-poster img.x-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
body.x-theme .x-poster::after {
  /* darkening gradient so text is always readable on top of the hero visual.
     Weighted left+bottom (where the headline sits) so the routing diagram on
     the right stays crisp. */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 38%, rgba(0,0,0,0.80) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.0) 55%);
  z-index: 1;
}

/* ─── Hero routing visualization (monochrome SVG; replaces the stock video) ── */
body.x-theme .x-poster .x-routeviz { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
body.x-theme .x-routeviz svg { width: 100%; height: 100%; display: block; }
body.x-theme .x-routeviz .rv-label {
  fill: var(--x-grey);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
}
body.x-theme .x-routeviz .rv-cap {
  fill: var(--x-grey-2);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
}
body.x-theme .x-routeviz .rv-router {
  fill: var(--x-white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
}
body.x-theme .x-routeviz .pkt   { filter: drop-shadow(0 0 5px rgba(255,255,255,0.85)); }
body.x-theme .x-routeviz .stream{ opacity: 0.85; }
/* each route dims to ~.28 and lights to full white in sequence */
body.x-theme .x-routeviz .route { opacity: 0.28; animation: rv-flare 12s linear infinite; }
body.x-theme .x-routeviz .route.r1 { animation-delay: 0s; }
body.x-theme .x-routeviz .route.r2 { animation-delay: 1.5s; }
body.x-theme .x-routeviz .route.r3 { animation-delay: 3s; }
body.x-theme .x-routeviz .route.r4 { animation-delay: 4.5s; }
body.x-theme .x-routeviz .route.r5 { animation-delay: 6s; }
body.x-theme .x-routeviz .route.r6 { animation-delay: 7.5s; }
body.x-theme .x-routeviz .route.r7 { animation-delay: 9s; }
body.x-theme .x-routeviz .route.r8 { animation-delay: 10.5s; }
@keyframes rv-flare {
  0%, 3%    { opacity: 0.28; filter: none; }
  5%, 12%   { opacity: 1;    filter: drop-shadow(0 0 7px rgba(255,255,255,0.5)); }
  15%, 100% { opacity: 0.28; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.x-theme .x-routeviz .route { animation: none; opacity: 0.6; }
  body.x-theme .x-routeviz .pkt, body.x-theme .x-routeviz .stream { display: none; }
}
body.x-theme .x-poster .x-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  padding: 0 32px 80px;
  margin: 0 auto;
}
body.x-theme .x-poster.center .x-content { padding-bottom: 0; text-align: center; }

body.x-theme .x-eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.75;
  margin-bottom: 14px;
}

body.x-theme .x-poster h1 {
  font-size: clamp(40px, 7.5vw, 88px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0 0 22px;
  text-transform: uppercase;
}
body.x-theme .x-poster h2 {
  font-size: clamp(32px, 5.2vw, 64px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0 0 18px;
  text-transform: uppercase;
}
body.x-theme .x-poster .x-lede {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
  max-width: 580px;
  margin: 0 0 28px;
  color: var(--x-grey);
  font-weight: 400;
}
body.x-theme .x-poster.center .x-lede { margin-left: auto; margin-right: auto; }

body.x-theme .x-btn {
  display: inline-block;
  border: 1px solid var(--x-white);
  color: var(--x-white);
  text-decoration: none;
  padding: 14px 32px;
  font-size: 13px;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}
body.x-theme .x-btn:hover { background: var(--x-white); color: var(--x-black); }
body.x-theme .x-btn + .x-btn { margin-left: 16px; }
body.x-theme .x-btn.filled { background: var(--x-white); color: var(--x-black); }
body.x-theme .x-btn.filled:hover { background: transparent; color: var(--x-white); }

/* ─── Footer ─────────────────────────────────────────────────────────── */
body.x-theme .x-footer {
  background: var(--x-black);
  color: var(--x-grey);
  border-top: 1px solid var(--x-border);
  padding: 56px 32px 32px;
}
body.x-theme .x-footer .x-footer-row {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
body.x-theme .x-footer .x-footer-row > div { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
body.x-theme .x-footer .x-footer-row h4 {
  color: var(--x-white);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 4px;
}
body.x-theme .x-footer .x-footer-row a {
  color: var(--x-grey);
  text-decoration: none;
  opacity: 0.85;
}
body.x-theme .x-footer .x-footer-row a:hover { color: var(--x-white); opacity: 1; }
body.x-theme .x-footer .x-meta {
  max-width: 1280px;
  margin: 56px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--x-grey-2);
}

/* ─── Sub-page hero (shorter than full viewport for inner pages) ───── */
body.x-theme .x-poster.short {
  height: 70vh;
  min-height: 480px;
  align-items: center;
}

/* ─── Sub-page content section (used after hero on solutions etc.) ── */
body.x-theme .x-section {
  background: var(--x-near-black);
  padding: 96px 32px;
  color: var(--x-white);
}
body.x-theme .x-section .x-inner {
  max-width: 1100px;
  margin: 0 auto;
}
body.x-theme .x-section h2 {
  font-size: clamp(28px, 4vw, 44px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0 0 18px;
}
body.x-theme .x-section .x-lede {
  font-size: 16px;
  color: var(--x-grey);
  max-width: 620px;
  line-height: 1.55;
  margin: 0 0 56px;
}
body.x-theme .x-section.alt { background: var(--x-charcoal); }

/* ─── Tile grid (used on inner pages for use-cases / integrations) ── */
body.x-theme .x-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--x-border);
  border: 1px solid var(--x-border);
}
@media (max-width: 900px) { body.x-theme .x-tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { body.x-theme .x-tile-grid { grid-template-columns: 1fr; } }
body.x-theme .x-tile {
  background: var(--x-black);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: background 160ms ease;
}
body.x-theme .x-tile:hover { background: var(--x-charcoal); }
body.x-theme .x-tile .x-tile-eyebrow {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--x-grey);
  margin-bottom: 12px;
}
body.x-theme .x-tile h3 {
  font-size: 20px;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
  font-weight: 600;
  line-height: 1.15;
}
body.x-theme .x-tile p {
  color: var(--x-grey);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

/* Hide global light-theme topbar + footer when x-theme is active */
body.x-theme > header.topbar,
body.x-theme > footer:not(.x-footer) { display: none !important; }

/* ─── Live widget + dashboard mockups (added to bring real product onto site) ── */
body.x-theme .x-widget-section {
  background: var(--x-near-black);
  padding: 96px 32px;
  border-top: 1px solid var(--x-border);
  border-bottom: 1px solid var(--x-border);
}
body.x-theme .x-widget-section .x-inner { max-width: 980px; margin: 0 auto; }
body.x-theme .x-widget-section h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
  line-height: 1;
}
body.x-theme .x-widget-section .x-lede {
  font-size: 16px; color: var(--x-grey); max-width: 580px; margin: 0 0 32px; line-height: 1.5;
}

body.x-theme .x-widget {
  background: #050505;
  border: 1px solid var(--x-border-strong);
  border-radius: 4px;
  overflow: hidden;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
}
body.x-theme .x-widget .row {
  padding: 14px 18px;
  border-bottom: 1px solid var(--x-border);
  display: flex; align-items: center; gap: 14px;
}
body.x-theme .x-widget .row:last-child { border-bottom: 0; }
body.x-theme .x-widget .row.input { padding: 0; align-items: stretch; }
body.x-theme .x-widget .row.input textarea {
  flex: 1; background: transparent; border: 0; outline: none; color: var(--x-white);
  font: 14px/1.5 'JetBrains Mono', 'SF Mono', monospace;
  padding: 18px;
  resize: none; min-height: 64px;
}
body.x-theme .x-widget .row.input textarea::placeholder { color: var(--x-grey-2); }
body.x-theme .x-widget .row.input button {
  background: var(--x-white); color: var(--x-black); border: 0; cursor: pointer;
  padding: 0 28px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 12px; font-family: 'Inter', sans-serif;
}
body.x-theme .x-widget .row.input button:disabled { background: var(--x-grey-2); cursor: not-allowed; }
body.x-theme .x-widget .row.chips { background: #0d0d0d; flex-wrap: wrap; }
body.x-theme .x-widget .row.chips span.label { color: var(--x-grey-2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; }
body.x-theme .x-widget .row.chips button {
  background: transparent; border: 1px solid var(--x-border-strong); color: var(--x-grey);
  font: 12px 'JetBrains Mono', monospace; padding: 5px 12px; border-radius: 999px; cursor: pointer;
}
body.x-theme .x-widget .row.chips button:hover { border-color: var(--x-white); color: var(--x-white); }
body.x-theme .x-widget .headers { background: #050505; font-size: 11px; color: var(--x-grey); padding: 14px 18px; display: none; }
body.x-theme .x-widget .headers.show { display: block; }
body.x-theme .x-widget .headers .hk { color: var(--x-grey-2); display: inline-block; min-width: 24ch; }
body.x-theme .x-widget .headers .hv { color: var(--x-white); }
body.x-theme .x-widget .headers .hv.accent { color: #4ade80; }
body.x-theme .x-widget .output {
  padding: 18px; min-height: 100px; color: var(--x-white); font-size: 14px; line-height: 1.55;
  white-space: pre-wrap; word-wrap: break-word;
}
body.x-theme .x-widget .output.placeholder { color: var(--x-grey-2); }
body.x-theme .x-widget .footer-row {
  padding: 10px 18px; font-size: 11px; color: var(--x-grey-2);
  text-transform: uppercase; letter-spacing: 0.18em;
  display: flex; justify-content: space-between; align-items: center;
  background: #050505;
}
body.x-theme .x-widget .footer-row .live::before {
  content: ""; display: inline-block; width: 7px; height: 7px;
  background: #4ade80; border-radius: 50%; margin-right: 8px; vertical-align: 1px;
  animation: x-pulse 1.4s ease-in-out infinite;
}
body.x-theme .x-widget .footer-row.idle .live::before { background: var(--x-grey-2); animation: none; }
@keyframes x-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
body.x-theme .x-widget .cursor { display: inline-block; width: 7px; height: 1em; background: var(--x-white); vertical-align: -2px; animation: x-blink 1s steps(2) infinite; }
@keyframes x-blink { 50% { opacity: 0; } }

/* ─── Dashboard mockup card (for "what you see" section) ─── */
body.x-theme .x-dash {
  background: #050505;
  border: 1px solid var(--x-border-strong);
  border-radius: 4px;
  overflow: hidden;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
}
body.x-theme .x-dash .dash-bar {
  background: #0d0d0d; padding: 10px 18px;
  border-bottom: 1px solid var(--x-border);
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--x-grey-2);
}
body.x-theme .x-dash .dash-bar .dot { width: 9px; height: 9px; border-radius: 50%; }
body.x-theme .x-dash .dash-bar .dot.r { background: #ef4444; }
body.x-theme .x-dash .dash-bar .dot.y { background: #f59e0b; }
body.x-theme .x-dash .dash-bar .dot.g { background: #10b981; }
body.x-theme .x-dash .dash-bar .title { margin-left: auto; letter-spacing: 0.04em; }

body.x-theme .x-dash .kpis {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--x-border);
  border-bottom: 1px solid var(--x-border);
}
@media (max-width: 600px) { body.x-theme .x-dash .kpis { grid-template-columns: repeat(2, 1fr); } }
body.x-theme .x-dash .kpi { background: #050505; padding: 18px 20px; }
body.x-theme .x-dash .kpi-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--x-grey-2); }
body.x-theme .x-dash .kpi-value { font-size: 24px; font-weight: 700; margin-top: 4px; letter-spacing: -0.01em; color: var(--x-white); font-family: 'Inter', sans-serif; }
body.x-theme .x-dash .kpi-delta { font-size: 11px; color: #4ade80; margin-top: 2px; font-family: 'JetBrains Mono', monospace; }
body.x-theme .x-dash .kpi-delta.bad { color: #f87171; }
body.x-theme .x-dash .kpi-delta.neutral { color: var(--x-grey-2); }

body.x-theme .x-dash table.rows { width: 100%; border-collapse: collapse; font-size: 12px; }
body.x-theme .x-dash table.rows th, body.x-theme .x-dash table.rows td {
  padding: 10px 18px; text-align: left;
  border-bottom: 1px solid var(--x-border);
}
body.x-theme .x-dash table.rows th {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 10px;
  color: var(--x-grey-2); font-weight: 600;
}
body.x-theme .x-dash table.rows td { color: var(--x-grey); }
body.x-theme .x-dash table.rows tr:last-child td { border-bottom: 0; }
body.x-theme .x-dash table.rows td.cost { color: var(--x-white); }
body.x-theme .x-dash table.rows td.saved { color: #4ade80; }
body.x-theme .x-dash .pill { padding: 2px 8px; border-radius: 999px; font-size: 10px; letter-spacing: 0.04em; }
body.x-theme .x-dash .pill.crit { background: rgba(239,68,68,0.15); color: #f87171; }
body.x-theme .x-dash .pill.warn { background: rgba(245,158,11,0.15); color: #fbbf24; }
body.x-theme .x-dash .pill.good { background: rgba(16,185,129,0.15); color: #4ade80; }
body.x-theme .x-dash .pill.mute { background: rgba(255,255,255,0.06); color: var(--x-grey-2); }

body.x-theme .x-dash .drift-card {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.25);
  margin: 14px 18px;
  padding: 14px 16px;
}
body.x-theme .x-dash .drift-card.warn {
  background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.25);
}
body.x-theme .x-dash .drift-card .h { color: var(--x-white); font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif; }
body.x-theme .x-dash .drift-card .d { color: var(--x-grey); font-size: 12px; margin-top: 4px; line-height: 1.5; }
body.x-theme .x-dash .drift-card .a { color: #4ade80; font-size: 11px; margin-top: 8px; font-family: 'JetBrains Mono', monospace; }

/* ─── Problem grid (lead with pain, not product) ─── */
body.x-theme .x-problems {
  background: var(--x-near-black);
  padding: 96px 32px;
  border-top: 1px solid var(--x-border);
  border-bottom: 1px solid var(--x-border);
}
body.x-theme .x-problems .inner { max-width: 1100px; margin: 0 auto; }
body.x-theme .x-problems h2 {
  font-size: clamp(28px, 4vw, 44px);
  text-transform: uppercase; letter-spacing: 0.02em;
  margin: 0 0 56px; line-height: 1;
}
body.x-theme .x-problems h2 em { font-style: normal; color: var(--x-grey-2); }
body.x-theme .x-problems .grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--x-border); border: 1px solid var(--x-border);
}
@media (max-width: 900px) { body.x-theme .x-problems .grid { grid-template-columns: 1fr; } }
body.x-theme .x-problems .cell {
  background: var(--x-near-black); padding: 36px 32px; min-height: 280px;
}
body.x-theme .x-problems .cell .quote {
  font-size: 18px; line-height: 1.45; color: var(--x-white);
  font-style: italic; margin: 0 0 18px; letter-spacing: -0.01em;
  border-left: 2px solid var(--x-border-strong); padding-left: 16px;
}
body.x-theme .x-problems .cell .fix-label {
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--x-white); margin-bottom: 8px; font-weight: 600;
}
body.x-theme .x-problems .cell .fix {
  font-size: 14px; line-height: 1.55; color: var(--x-grey); margin: 0;
}

/* ─── Prose section (clear explanation, not poster) ─── */
body.x-theme .x-prose {
  padding: 96px 32px; background: var(--x-black);
  border-bottom: 1px solid var(--x-border);
}
body.x-theme .x-prose .inner { max-width: 760px; margin: 0 auto; }
body.x-theme .x-prose h2 {
  font-size: clamp(28px, 4.4vw, 48px);
  text-transform: uppercase; letter-spacing: 0.02em;
  margin: 0 0 28px; line-height: 1.05;
}
body.x-theme .x-prose p {
  font-size: 17px; line-height: 1.65; color: var(--x-grey);
  margin: 0 0 18px;
}
body.x-theme .x-prose p strong { color: var(--x-white); font-weight: 600; }
body.x-theme .x-prose code {
  background: var(--x-charcoal); padding: 2px 8px; border-radius: 3px;
  font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--x-white);
}

/* Legal page support — lists, sub-headings, contact blocks. Used by
   /privacy, /terms, /dpa stubs. Layered on top of .x-prose. */
body.x-theme .x-prose h3 {
  font-size: 18px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--x-white); margin: 36px 0 14px; line-height: 1.25;
  font-weight: 600;
}
body.x-theme .x-prose h4 {
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--x-grey); margin: 28px 0 10px; font-weight: 600;
}
body.x-theme .x-prose ul,
body.x-theme .x-prose ol {
  margin: 0 0 18px 0; padding-left: 24px;
  color: var(--x-grey); font-size: 16px; line-height: 1.65;
}
body.x-theme .x-prose ul li,
body.x-theme .x-prose ol li { margin-bottom: 8px; }
body.x-theme .x-prose ul li strong,
body.x-theme .x-prose ol li strong { color: var(--x-white); font-weight: 600; }
body.x-theme .x-prose hr {
  border: 0; border-top: 1px solid var(--x-border); margin: 48px 0;
}
body.x-theme .x-prose .x-stamp {
  font-size: 13px; color: var(--x-grey-2); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 18px;
}
body.x-theme .x-prose .x-callout {
  border-left: 2px solid var(--x-border-strong);
  padding: 8px 0 8px 16px; margin: 0 0 24px;
  font-size: 15px; color: var(--x-grey); line-height: 1.6;
}
body.x-theme .x-prose .x-callout strong { color: var(--x-white); }
body.x-theme .x-prose table.x-table {
  width: 100%; border-collapse: collapse; margin: 0 0 24px;
  font-size: 14px; color: var(--x-grey);
}
body.x-theme .x-prose table.x-table th,
body.x-theme .x-prose table.x-table td {
  padding: 10px 12px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--x-border);
}
body.x-theme .x-prose table.x-table th {
  color: var(--x-white); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* Three-up value props row (text-driven, no video) */
body.x-theme .x-3up {
  padding: 96px 32px; background: var(--x-near-black);
  border-bottom: 1px solid var(--x-border);
}
body.x-theme .x-3up .inner { max-width: 1100px; margin: 0 auto; }
body.x-theme .x-3up .eyebrow {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--x-grey-2); margin-bottom: 14px; font-weight: 600;
}
body.x-theme .x-3up h2 {
  font-size: clamp(28px, 4vw, 44px);
  text-transform: uppercase; letter-spacing: 0.02em;
  margin: 0 0 56px; line-height: 1;
}
body.x-theme .x-3up .row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
@media (max-width: 900px) { body.x-theme .x-3up .row { grid-template-columns: 1fr; gap: 40px; } }
body.x-theme .x-3up .col h3 {
  font-size: 22px; margin: 0 0 14px; letter-spacing: -0.01em;
  color: var(--x-white); line-height: 1.2;
}
body.x-theme .x-3up .col p {
  color: var(--x-grey); line-height: 1.6; font-size: 15px; margin: 0;
}
body.x-theme .x-3up .col .num {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--x-grey-2); letter-spacing: 0.12em; margin-bottom: 12px;
  text-transform: uppercase; font-weight: 600;
}

/* ─── Design polish pass (2026-05-29): rhythm, type, a11y; monochrome-safe ── */
/* premium pages breathe — a touch more vertical air, consistent across sections */
body.x-theme .x-problems,
body.x-theme .x-prose,
body.x-theme .x-section,
body.x-theme .x-widget-section { padding-top: 116px; padding-bottom: 116px; }
/* balance heading line-breaks so they don't leave orphans / ragged edges */
body.x-theme .x-poster h1, body.x-theme .x-poster h2,
body.x-theme .x-problems h2, body.x-theme .x-prose h2,
body.x-theme .x-section h2, body.x-theme .x-widget-section h2 { text-wrap: balance; }
/* visible keyboard focus (theme set outline:none in places) */
body.x-theme a:focus-visible, body.x-theme button:focus-visible,
body.x-theme .x-btn:focus-visible, body.x-theme textarea:focus-visible,
body.x-theme input:focus-visible { outline: 2px solid var(--x-white); outline-offset: 3px; }
/* aligned numerals in the product mockups */
body.x-theme .x-dash .kpi-value, body.x-theme .x-dash table.rows td { font-variant-numeric: tabular-nums; }
/* honor reduced-motion site-wide (routing hero handled in its own block) */
@media (prefers-reduced-motion: reduce) {
  body.x-theme .x-widget .footer-row .live::before,
  body.x-theme .x-widget .cursor { animation: none; }
}

/* ─── Shadow-analysis lead-capture form (dark, poster-consistent) ──────── */
body.x-theme .x-shadow-section {
  background: var(--x-near-black);
  padding: 116px 32px;
  border-bottom: 1px solid var(--x-border);
}
body.x-theme .x-shadow-section .x-inner { max-width: 760px; margin: 0 auto; }
body.x-theme .x-shadow-section h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  text-transform: uppercase; letter-spacing: 0.02em;
  margin: 0 0 14px; line-height: 1; text-wrap: balance;
}
body.x-theme .x-shadow-section .x-lede {
  font-size: 16px; color: var(--x-grey); max-width: 620px; margin: 0 0 40px; line-height: 1.5;
}
body.x-theme .x-shadow-form .row { margin-bottom: 22px; }
body.x-theme .x-shadow-form .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
body.x-theme .x-shadow-form label {
  display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--x-grey); margin-bottom: 9px; font-weight: 600;
}
body.x-theme .x-shadow-form .req { color: var(--x-white); }
body.x-theme .x-shadow-form input,
body.x-theme .x-shadow-form select,
body.x-theme .x-shadow-form textarea {
  width: 100%; background: #050505; border: 1px solid var(--x-border-strong);
  color: var(--x-white); padding: 13px 14px;
  font: 15px 'Inter', -apple-system, sans-serif; outline: none;
  transition: border-color 160ms ease; border-radius: 0;
}
body.x-theme .x-shadow-form input::placeholder,
body.x-theme .x-shadow-form textarea::placeholder { color: var(--x-grey-2); }
body.x-theme .x-shadow-form input:focus,
body.x-theme .x-shadow-form select:focus,
body.x-theme .x-shadow-form textarea:focus { border-color: var(--x-white); }
body.x-theme .x-shadow-form textarea { min-height: 96px; resize: vertical; }
body.x-theme .x-shadow-form select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--x-grey) 50%), linear-gradient(135deg, var(--x-grey) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1.15em), calc(100% - 15px) calc(1.15em);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
body.x-theme .x-shadow-form .x-hint {
  font-size: 12px; color: var(--x-grey-2); line-height: 1.55; margin: 9px 0 0;
}
body.x-theme .x-shadow-form .x-hint code {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  background: var(--x-charcoal); padding: 1px 6px; color: var(--x-grey);
}
body.x-theme .x-shadow-form .row.submit { display: flex; align-items: center; gap: 18px; margin-top: 30px; margin-bottom: 0; }
body.x-theme .x-shadow-form button[type="submit"] {
  background: var(--x-white); color: var(--x-black); border: 0;
  padding: 14px 34px; font-size: 13px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; cursor: pointer; font-family: 'Inter', sans-serif;
  transition: opacity 160ms ease;
}
body.x-theme .x-shadow-form button[type="submit"]:hover { opacity: 0.82; }
body.x-theme .x-shadow-form button[type="submit"]:disabled { background: var(--x-grey-2); cursor: not-allowed; }
body.x-theme .x-shadow-form .status { font-size: 13px; letter-spacing: 0.01em; }
body.x-theme .x-shadow-form .status.loading { color: var(--x-grey); }
body.x-theme .x-shadow-form .status.ok { color: #4ade80; }
body.x-theme .x-shadow-form .status.error { color: #f87171; }
@media (max-width: 600px) { body.x-theme .x-shadow-form .row.two { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════════════
   ND-clarity pass (2026-05-31): serif display type, whitespace, restraint.
   Keeps the dark brand but borrows Not Diamond's calm — serif sentence-case
   headlines (were uppercase Inter, deck-like), big air, lighter ledes.
   ════════════════════════════════════════════════════════════════════════ */
body.x-theme .x-poster h1,
body.x-theme .x-poster h2,
body.x-theme .x-widget-section h2,
body.x-theme .x-3up h2,
body.x-theme .x-shadow-section h2 {
  font-family: 'Spectral', Georgia, 'Times New Roman', serif;
  text-transform: none;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
body.x-theme .x-poster h1 { font-size: clamp(40px, 5.6vw, 72px); margin: 0 0 24px; }
body.x-theme .x-poster.center h2 { font-size: clamp(40px, 5.4vw, 66px); }
body.x-theme .x-widget-section h2,
body.x-theme .x-3up h2,
body.x-theme .x-shadow-section h2 { font-size: clamp(30px, 3.6vw, 46px); margin: 0 0 18px; }

/* quieter eyebrows */
body.x-theme .x-eyebrow,
body.x-theme .x-3up .eyebrow { font-size: 11px; letter-spacing: 0.26em; opacity: 0.5; font-weight: 600; }

/* air: more vertical room, calmer measure */
body.x-theme .x-widget-section,
body.x-theme .x-3up,
body.x-theme .x-shadow-section { padding-top: 152px; padding-bottom: 152px; }
body.x-theme .x-widget-section .x-inner,
body.x-theme .x-shadow-section .x-inner { max-width: 1000px; }

/* ledes: lighter, shorter measure */
body.x-theme .x-poster .x-lede,
body.x-theme .x-widget-section .x-lede,
body.x-theme .x-shadow-section .x-lede {
  font-size: 18px; line-height: 1.6; font-weight: 400; color: var(--x-grey); max-width: 520px;
}

/* how it works: serif step titles, air, lighter numerals */
body.x-theme .x-3up .row { gap: 56px; }
body.x-theme .x-3up .col h3 {
  font-family: 'Spectral', Georgia, serif; font-weight: 500; font-size: 23px;
  letter-spacing: -0.01em; color: var(--x-white); margin: 0 0 10px;
}
body.x-theme .x-3up .col .num { opacity: 0.45; }
body.x-theme .x-3up .col p { font-size: 15px; line-height: 1.6; color: var(--x-grey); }

/* ─── Provider strip: "works with every major model" ──────────────────── */
body.x-theme .x-providers { padding: 92px 32px; border-bottom: 1px solid var(--x-border); }
body.x-theme .x-providers .inner { max-width: 1000px; margin: 0 auto; text-align: center; }
body.x-theme .x-providers .eyebrow {
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--x-grey-2);
  margin-bottom: 34px; font-weight: 600;
}
body.x-theme .x-providers .logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px 52px;
}
body.x-theme .x-providers .logos img {
  height: 32px; width: auto; display: block;
  opacity: 0.9; transition: opacity 160ms ease, transform 160ms ease;
}
body.x-theme .x-providers .logos img:hover { opacity: 1; transform: translateY(-2px); }

/* ─── Frontier chart: cost vs quality (monochrome, ND-style) ──────────── */
body.x-theme .x-frontier { padding: 152px 32px; border-bottom: 1px solid var(--x-border); background: var(--x-near-black); }
body.x-theme .x-frontier .inner { max-width: 1000px; margin: 0 auto; }
body.x-theme .x-frontier .chart { margin-top: 44px; }
body.x-theme .x-frontier svg { width: 100%; height: auto; display: block; }
body.x-theme .x-frontier .fc-curve { fill: none; stroke: var(--x-white); stroke-width: 1.5; opacity: 0.9; }
body.x-theme .x-frontier .fc-dot { fill: var(--x-white); }
body.x-theme .x-frontier .fc-model { fill: var(--x-grey-2); }
body.x-theme .x-frontier .fc-label { fill: var(--x-grey); font: 13px 'Inter', sans-serif; }
body.x-theme .x-frontier .fc-amperes { fill: var(--x-white); font: 600 13px 'Inter', sans-serif; }
body.x-theme .x-frontier .fc-axislabel { fill: var(--x-grey-2); font: 11px 'Inter', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; }
body.x-theme .x-frontier .bar-num { font: 700 30px 'Spectral', serif; }
body.x-theme .x-frontier .bar-cat { font: 13px 'Inter', sans-serif; }
body.x-theme .x-frontier .bar-save { font: 700 20px 'Inter', sans-serif; }
body.x-theme .x-frontier .fc-caption { margin: 28px auto 0; max-width: 760px; text-align: center; color: var(--x-grey-2); font: 13px/1.65 'Inter', sans-serif; }
body.x-theme .x-frontier .fc-caption a { color: var(--x-grey); text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════════════
   ND-clarity pass 2 (2026-05-31): fainter hero diagram + inner pages.
   ════════════════════════════════════════════════════════════════════════ */

/* Hero routing diagram → barely-there line-art so the serif headline leads. */
body.x-theme .x-poster .x-routeviz { opacity: 0.6; }
body.x-theme .x-routeviz .rv-edge { stroke-width: 0.9; }
body.x-theme .x-routeviz .rv-node { stroke-width: 1; }
body.x-theme .x-routeviz .rv-label { font-size: 13px; fill: var(--x-grey-2); }
body.x-theme .x-routeviz .route { opacity: 0.22; }
body.x-theme .x-routeviz .pkt { filter: none; opacity: 0.5; }
@keyframes rv-flare {
  0%, 3%    { opacity: 0.22; filter: none; }
  5%, 12%   { opacity: 0.7;  filter: none; }
  15%, 100% { opacity: 0.22; filter: none; }
}

/* Serif clarity rolled onto inner dark pages (solutions, use-cases,
   benchmarks, legal, status) — match the homepage. */
body.x-theme .x-poster.short h1,
body.x-theme .x-section h2,
body.x-theme .x-prose h2,
body.x-theme .x-prose h3,
body.x-theme .x-tile h3 {
  font-family: 'Spectral', Georgia, 'Times New Roman', serif;
  text-transform: none;
  font-weight: 500;
  letter-spacing: -0.01em;
}
body.x-theme .x-poster.short h1 { line-height: 1.04; }
body.x-theme .x-section h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.06; }
body.x-theme .x-section { padding: 140px 32px; }
body.x-theme .x-section .x-lede { font-size: 18px; line-height: 1.6; color: var(--x-grey); max-width: 560px; }
body.x-theme .x-prose p { font-size: 17px; line-height: 1.7; }
body.x-theme .x-tile h3 { font-size: 21px; }
body.x-theme .x-section .x-eyebrow,
body.x-theme .x-tile .x-tile-eyebrow { opacity: 0.6; }

/* ════════════════════════════════════════════════════════════════════════
   ND-clarity pass 3 (2026-05-31): sleek sci-fi HUD routing animation.
   Overrides pass-2's "barely there" hero diagram — the user wants the
   routing viz to pop and feel "from the future" (faster + glow + pulse).
   ════════════════════════════════════════════════════════════════════════ */
body.x-theme .x-poster .x-routeviz { opacity: 1; }
body.x-theme .x-routeviz .rv-edge { stroke-width: 1; }
body.x-theme .x-routeviz .rv-label { font-size: 14px; fill: var(--x-grey); }
body.x-theme .x-routeviz .rv-core { filter: drop-shadow(0 0 12px rgba(255,255,255,0.45)); }
body.x-theme .x-routeviz .rv-pulse { fill: none; }
body.x-theme .x-routeviz .route { opacity: 0.30; animation: rv-flare 6s linear infinite; }
body.x-theme .x-routeviz .route.r1 { animation-delay: 0s; }
body.x-theme .x-routeviz .route.r2 { animation-delay: 0.75s; }
body.x-theme .x-routeviz .route.r3 { animation-delay: 1.5s; }
body.x-theme .x-routeviz .route.r4 { animation-delay: 2.25s; }
body.x-theme .x-routeviz .route.r5 { animation-delay: 3s; }
body.x-theme .x-routeviz .route.r6 { animation-delay: 3.75s; }
body.x-theme .x-routeviz .route.r7 { animation-delay: 4.5s; }
body.x-theme .x-routeviz .route.r8 { animation-delay: 5.25s; }
@keyframes rv-flare {
  0%, 3%    { opacity: 0.28; filter: none; }
  8%, 16%   { opacity: 1;    filter: drop-shadow(0 0 7px rgba(255,255,255,0.7)); }
  22%, 100% { opacity: 0.28; filter: none; }
}
body.x-theme .x-routeviz .pkt { filter: drop-shadow(0 0 7px rgba(255,255,255,0.9)); }
body.x-theme .x-routeviz .stream { opacity: 0.9; filter: drop-shadow(0 0 5px rgba(255,255,255,0.7)); }
@media (prefers-reduced-motion: reduce) {
  body.x-theme .x-routeviz .rv-pulse { display: none; }
}

/* ─── Mobile layout overrides — placed LAST so they win the cascade ─── */
@media (max-width: 720px) {
  /* INDEX hero only (the one with the routing animation): STACK it — animation
     band on top, headline + copy BELOW it on solid black, so they never overlap.
     Scoped with :not(.short):not(.center) so inner-page heroes (.short) and CTA
     sections (.center) keep their original layout + fixed-topbar clearance. */
  body.x-theme .x-poster:not(.short):not(.center) { display: block; height: auto; min-height: 0; padding: 0; }
  body.x-theme .x-poster:not(.short):not(.center) .x-routeviz { position: relative; inset: auto; width: 100%; height: 300px; opacity: 0.9; }
  body.x-theme .x-poster:not(.short):not(.center)::after { display: none; }
  body.x-theme .x-poster:not(.short):not(.center) .x-content { box-sizing: border-box; padding: 28px 22px 64px; }
  /* trim only the big VERTICAL section padding so phones don't scroll forever (sides unchanged → no overflow) */
  body.x-theme .x-frontier,
  body.x-theme .x-section,
  body.x-theme .x-widget-section,
  body.x-theme .x-providers { padding-top: 76px; padding-bottom: 76px; }
}

/* ─── Use-cases icon-card grid (visual, low-text) ─── */
body.x-theme .x-usecases { padding: 92px 32px; }
body.x-theme .x-usecases .inner { max-width: 1100px; margin: 0 auto; }
body.x-theme .x-usecase-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--x-border); border: 1px solid var(--x-border);
}
body.x-theme .uc-card {
  background: var(--x-near-black); padding: 38px 30px;
  display: flex; flex-direction: column; gap: 12px; min-height: 248px;
  transition: background 160ms ease;
}
body.x-theme .uc-card:hover { background: #121212; }
body.x-theme .uc-ico { width: 30px; height: 30px; filter: invert(1); opacity: 0.9; margin-bottom: 4px; }
body.x-theme .uc-num { font: 600 11px 'Inter', sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--x-grey-2); }
body.x-theme .uc-card h3 { font: 500 21px/1.2 'Spectral', serif; color: var(--x-white); margin: 0; }
body.x-theme .uc-card p { font: 400 14.5px/1.6 'Inter', sans-serif; color: var(--x-grey); margin: 0; }
body.x-theme .uc-chip {
  margin-top: auto; align-self: flex-start;
  font: 400 11.5px 'JetBrains Mono', monospace; color: var(--x-grey);
  border: 1px solid var(--x-border); border-radius: 999px; padding: 5px 12px;
}
body.x-theme .uc-card.wide { grid-column: span 2; }
@media (max-width: 900px) { body.x-theme .x-usecase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  body.x-theme .x-usecase-grid { grid-template-columns: 1fr; }
  body.x-theme .x-usecases { padding: 64px 22px; }
  body.x-theme .uc-card { min-height: 0; }
  body.x-theme .uc-card.wide { grid-column: auto; }
}
