/* ==========================================================================
   Xperova — site styles
   Single stylesheet, no build step, no external requests.
   Layout uses a 12-column grid on desktop that collapses to a single column.
   ========================================================================== */

/* --- tokens -------------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* Surfaces. Near-black neutral, not blue-black: it keeps the accent honest. */
  --bg:          #08090b;
  --bg-soft:     #0b0d10;
  --panel:       #0e1116;
  --panel-2:     #121620;

  /* Hairlines carry most of the structure, so there are three weights. */
  --line:        rgba(255, 255, 255, 0.075);
  --line-mid:    rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);

  /* Ink */
  --ink:         #e8eaee;
  --ink-2:       #a7adb7;
  /* The muted step is used on all four surfaces, including the lightest panel.
     #7d848f clears 4.5:1 against every one of them; the darker grey it replaced
     landed at 4.30:1 on --panel-2. */
  --ink-3:       #7d848f;

  /* Accent: one hue, two roles.
     --accent is the interface step (links, marks, focus).
     --accent-data is the chart step, validated for L-band and >= 3:1 contrast
     against the panel surface. */
  --accent:      #5cc7b4;
  --accent-data: #3fa893;
  --accent-ink:  #04120f;
  --accent-wash: rgba(92, 199, 180, 0.09);

  /* Status. Reserved — never reused as decoration. */
  --ok:   #4ec97f;
  --warn: #e0a458;
  --err:  #e2705e;

  /* Type */
  /* System faces only — no webfont request, so the page renders on first paint.
     The list prefers the best face each platform actually ships. */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
          "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  /* Rhythm */
  --shell:  1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --sec-y:  clamp(72px, 11vw, 132px);
  --r:      3px;
  --r-lg:   6px;
}

/* --- reset --------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* A faint square grid, the quietest possible nod to a lattice of blocks.
   Two 1px lines at 64px — invisible until you look for it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.38;
  mask-image: radial-gradient(ellipse 120% 70% at 50% -10%, #000 0%, transparent 78%);
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 560;
  letter-spacing: -0.028em;
  line-height: 1.1;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* One focus style everywhere, always visible on keyboard. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- utility ------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.mono {
  font-family: var(--mono);
  font-feature-settings: "tnum" 1, "zero" 1;
  font-variant-numeric: tabular-nums slashed-zero;
}

.num { font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r);
  font-weight: 600;
  font-size: 14px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* --- navigation ---------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.nav[data-stuck="true"] {
  background: rgba(8, 9, 11, 0.82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  flex: none;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand__mark { width: 26px; height: 26px; color: var(--accent); flex: none; }
.brand__ver {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  border: 1px solid var(--line-mid);
  border-radius: 2px;
  padding: 1px 5px;
  letter-spacing: 0;
  font-weight: 400;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
}
/* `:not(.btn)` matters: without it this rule out-specifies .btn--primary and
   repaints the call-to-action's label grey on mint. */
.nav__links a:not(.btn) {
  display: block;
  padding: 7px 11px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: var(--r);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav__links a:not(.btn):hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
}

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-mid);
  border-radius: var(--r);
  color: var(--ink);
  cursor: pointer;
}
.nav__toggle svg { width: 18px; height: 18px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r);
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease,
              color 0.16s ease, transform 0.16s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #6fd4c2; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--ink-3); }

.btn--sm { padding: 8px 14px; font-size: 13.5px; }
.btn__arrow { transition: transform 0.16s ease; }
.btn:hover .btn__arrow { transform: translateX(2px); }

/* --- section scaffolding ------------------------------------------------- */

.section { padding-block: var(--sec-y); border-top: 1px solid var(--line); }
.section--flush { border-top: none; }

.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: 0.8;
  flex: none;
}

.section__title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}
.section__lede {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--ink-2);
  line-height: 1.65;
}

/* --- hero ---------------------------------------------------------------- */

.hero { padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(56px, 8vw, 96px); }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line-mid);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.hero__tag b { color: var(--ink); font-weight: 500; }
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hero__title {
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.038em;
  max-width: 15ch;
  margin-bottom: 26px;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__lede {
  font-size: clamp(16.5px, 1.7vw, 19px);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 60ch;
  margin-bottom: 36px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }

/* Metric tiles: hairline-separated cells, no boxes. */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
  list-style: none;
}
.metric { padding: 22px 24px; border-left: 1px solid var(--line); }
.metric:first-child { border-left: none; }
.metric__value {
  font-family: var(--mono);
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 7px;
  font-variant-numeric: tabular-nums slashed-zero;
}
.metric__value small { font-size: 0.62em; color: var(--ink-3); font-weight: 400; }
.metric__label {
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

/* --- notice -------------------------------------------------------------- */

.notice {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line-mid);
  border-left: 2px solid var(--warn);
  border-radius: var(--r);
  background: rgba(224, 164, 88, 0.05);
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.notice strong { color: var(--ink); font-weight: 560; }
.notice--plain { border-left-color: var(--line-strong); background: rgba(255, 255, 255, 0.02); }

/* --- panels & cards ------------------------------------------------------ */

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}
.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.panel__title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.panel__body { padding: 20px; }

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
        border-radius: var(--r-lg); overflow: hidden; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.cell {
  background: var(--bg);
  padding: clamp(20px, 2.4vw, 28px);
  transition: background-color 0.2s ease;
}
.cell:hover { background: var(--panel); }

.cell__icon {
  width: 26px; height: 26px;
  color: var(--accent);
  margin-bottom: 18px;
}
.cell__title {
  font-size: 16.5px;
  font-weight: 560;
  margin-bottom: 9px;
  letter-spacing: -0.02em;
}
.cell__text { font-size: 14.5px; color: var(--ink-2); line-height: 1.62; }
.cell__meta {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* Numbered principle list (Why Xperova) */
.principles { list-style: none; display: grid; gap: 1px; background: var(--line); }
.principle {
  background: var(--bg);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(16px, 3vw, 40px);
  padding: 26px 4px;
  align-items: start;
}
.principle__n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  padding-top: 5px;
  letter-spacing: 0.06em;
}
.principle__title { font-size: 17px; font-weight: 560; margin-bottom: 8px; }
.principle__text { font-size: 15px; color: var(--ink-2); line-height: 1.65; max-width: 68ch; }

/* --- live network panel -------------------------------------------------- */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--line-mid);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.status-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.status-badge[data-state="live"]    { color: var(--ok);  border-color: rgba(78, 201, 127, 0.35); }
.status-badge[data-state="live"] .status-badge__dot    { background: var(--ok); animation: pulse 2.4s ease-in-out infinite; }
.status-badge[data-state="error"]   { color: var(--err); border-color: rgba(226, 112, 94, 0.35); }
.status-badge[data-state="error"] .status-badge__dot   { background: var(--err); }
.status-badge[data-state="loading"] .status-badge__dot { background: var(--warn); animation: pulse 1s ease-in-out infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.endpoint {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}
.endpoint input {
  width: 236px;
  padding: 7px 11px;
  background: var(--bg);
  border: 1px solid var(--line-mid);
  border-radius: var(--r);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
}
.endpoint input::placeholder { color: var(--ink-3); }
.endpoint input:focus { border-color: var(--accent); }

.readout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.readout__item { background: var(--panel); padding: 18px 20px; }
.readout__label {
  font-size: 11.5px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.readout__value {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums slashed-zero;
  overflow-wrap: anywhere;
}
.readout__value[data-empty="true"] { color: var(--ink-3); }

/* --- code ---------------------------------------------------------------- */

.code {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  overflow: hidden;
}
.code__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.code pre {
  margin: 0;
  padding: 18px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
  -webkit-overflow-scrolling: touch;
}
.code pre .c { color: var(--ink-3); }         /* comment */
.code pre .p { color: var(--accent); }        /* prompt / command name */
.copy {
  background: none;
  border: 1px solid var(--line-mid);
  border-radius: 2px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.copy:hover { color: var(--ink); border-color: var(--ink-3); }

/* --- chart --------------------------------------------------------------- */

.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; overflow: visible; touch-action: pan-y; }

.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-text {
  fill: var(--ink-3);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}
.chart .series-line { stroke: var(--accent-data); stroke-width: 2; fill: none;
                      stroke-linejoin: round; stroke-linecap: round; }
.chart .series-area { fill: url(#emission-fill); }
.chart .cap-line { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .cap-text { fill: var(--ink-2); font-family: var(--mono); font-size: 10.5px; }
.chart .halving-tick { stroke: var(--line-mid); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .node-dot { fill: var(--bg); stroke: var(--accent-data); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .crosshair { stroke: var(--ink-3); stroke-width: 1; opacity: 0; }
.chart .crosshair[data-on="true"] { opacity: 1; }
.chart .focus-dot { fill: var(--accent); opacity: 0; }
.chart .focus-dot[data-on="true"] { opacity: 1; }

.tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 9px 12px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  transition: opacity 0.12s ease;
}
.tooltip[data-on="true"] { opacity: 1; }
.tooltip b { color: var(--accent); font-weight: 500; }
.tooltip span { color: var(--ink-3); }

/* --- data table ---------------------------------------------------------- */

details.table-toggle { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
details.table-toggle > summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
details.table-toggle > summary::-webkit-details-marker { display: none; }
details.table-toggle > summary::before { content: "+"; color: var(--accent); }
details.table-toggle[open] > summary::before { content: "−"; }
details.table-toggle > summary:hover { color: var(--ink); }

.table-scroll { overflow-x: auto; margin-top: 16px; -webkit-overflow-scrolling: touch; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums slashed-zero;
}
table.data caption { text-align: left; color: var(--ink-3); font-size: 12px; padding-bottom: 10px; }
table.data th, table.data td { padding: 8px 14px 8px 0; text-align: right; white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th {
  color: var(--ink-3);
  font-weight: 400;
  border-bottom: 1px solid var(--line-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}
table.data tbody td { border-bottom: 1px solid var(--line); color: var(--ink-2); }
table.data tbody tr:hover td { color: var(--ink); background: rgba(255, 255, 255, 0.02); }

/* --- architecture pipeline ----------------------------------------------- */

.pipeline { display: grid; gap: 0; list-style: none; counter-reset: step; }

.step {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: clamp(16px, 3vw, 36px);
  padding: 20px 0;
  position: relative;
  border-top: 1px solid var(--line);
}
.step:first-child { border-top: none; }

.step__stage {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 560;
  font-size: 15px;
  letter-spacing: -0.015em;
}
.step__glyph {
  width: 30px; height: 30px;
  border: 1px solid var(--line-mid);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex: none;
  background: var(--panel);
}
.step__glyph svg { width: 15px; height: 15px; }

.step__detail { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.step__where {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2px 7px;
}

/* --- link list ----------------------------------------------------------- */

.linklist { list-style: none; display: grid; }
.linklist a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 4px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  transition: padding-left 0.18s ease, color 0.18s ease;
}
.linklist a:hover { text-decoration: none; color: var(--accent); padding-left: 10px; }
.linklist a span.desc { color: var(--ink-3); font-size: 13.5px; margin-left: auto; text-align: right; }
.linklist a svg { width: 15px; height: 15px; flex: none; opacity: 0.65; }

/* --- stats strip --------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  list-style: none;
}
.stat { background: var(--bg); padding: clamp(22px, 3vw, 32px); text-align: left; }
.stat__value {
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums slashed-zero;
}
.stat__label { font-size: 14px; color: var(--ink-2); }
.stat__note { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

/* --- whitepaper CTA ------------------------------------------------------ */

.cta {
  border: 1px solid var(--line-mid);
  border-radius: var(--r-lg);
  padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--accent-wash), transparent 62%),
    var(--panel);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
}
.cta__title { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 12px; }
.cta__text { color: var(--ink-2); font-size: 15.5px; max-width: 54ch; }

/* --- footer -------------------------------------------------------------- */

.footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 72px) 32px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer__about { color: var(--ink-3); font-size: 14px; line-height: 1.65; max-width: 40ch; margin-top: 16px; }
.footer h3 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
  font-weight: 400;
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: var(--ink-2); font-size: 14.5px; }
.footer ul a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
}

.disclaimer {
  margin-bottom: 32px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-soft);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-3);
}
.disclaimer strong { color: var(--ink-2); font-weight: 560; }

/* --- motion -------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}
[data-reveal][data-shown="true"] { opacity: 1; transform: none; }

.draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); }
[data-shown="true"] .draw { animation: draw 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Everything above is decoration; none of it is required to read the page. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; }
  .status-badge__dot { animation: none !important; }
}

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .readout { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: rgba(8, 9, 11, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
  }
  .nav__links[data-open="true"] { display: flex; }
  .nav__links a { padding: 12px 8px; font-size: 15.5px; border-radius: var(--r); }
  .nav__links li:last-child { margin-top: 10px; }
  .nav__links .btn { width: 100%; }
  .nav__toggle { display: inline-flex; }

  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { border-left: none; border-top: 1px solid var(--line); }
  .metric:nth-child(-n + 2) { border-top: none; }
  .metric:nth-child(even) { border-left: 1px solid var(--line); }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .grid--4 { grid-template-columns: 1fr; }
  .readout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .endpoint { margin-left: 0; width: 100%; }
  .endpoint input { width: 100%; flex: 1 1 auto; }
  .principle { grid-template-columns: 1fr; gap: 8px; }
  .principle__n { padding-top: 0; }
  .stats { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

@media print {
  body::before, .nav, .endpoint { display: none; }
  body { background: #fff; color: #000; }
}
