/* RWX — dark instrument theme (from the "Palette call decision" brief).
   Rules: green means verified, never "profit". Direction = ▲/▼ + lightness.
   Numbers are always IBM Plex Mono, tabular. Corners 2/4px max.
   Separation comes from space and surface steps, not from rules: no borders or
   dividers except where they carry data (chart grid, composition bar, active tab). */

:root {
  --ink-900: #0B0E0D;   /* page */
  --ink-850: #0F1312;   /* tinted band */
  --ink-800: #141A19;   /* card */
  --ink-700: #1C2423;   /* raised: buttons, tags, hover */
  --ink-600: #26302E;   /* pressed / selected surface */

  --text-hi: #E9EFEC;
  --text-mid: #98A5A0;
  --text-lo: #5E6B67;

  --live: #3FBF87;
  --attested: #D8A33C;
  --declared: #6B7975;
  --risk: #DB5A4C;

  --paper-00: #EFEBE1;
  --paper-ink: #1A1E1C;
  --paper-mid: #5B5F57;

  /* Asset colours, named --series-<asset code>: chart lines, composition bars and the RWX mark only
     (an agreed exception to "colour = trust state"). Keep clear of --live / --attested / --risk. */
  --series-btc: #F7931A;
  --series-xau: #EAC54F;
  --series-ndx: #7FA7D9;
  --series-other: #98A5A0;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --gutter: 64px;
  --section: 96px;
  --r-sm: 2px;
  --r-md: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text-hi); text-decoration: none; }
a:hover { color: var(--live); }
::selection { background: var(--live); color: var(--ink-900); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--live); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ── type ─────────────────────────────────────────── */
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
/* Labels are sentence case in the body face; mono is kept for numbers, dates, tickers and codes. */
.kicker { font-family: var(--font-body); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-mid); }
.caption { font-family: var(--font-body); font-size: 13px; line-height: 18px; color: var(--text-lo); }
.step-n { font-family: var(--font-mono); font-size: 12px; line-height: 26px; color: var(--text-lo); }
.display-1 { font-weight: 700; font-size: 44px; line-height: 48px; letter-spacing: -.02em; }
.display-2 { font-weight: 600; font-size: 32px; line-height: 38px; letter-spacing: -.015em; }
.title { font-weight: 600; font-size: 18px; line-height: 26px; letter-spacing: -.01em; }
.body-mid { color: var(--text-mid); }
.metric-xl { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500; font-size: 36px; line-height: 40px; letter-spacing: -.01em; }
.metric-md { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500; font-size: 20px; line-height: 26px; }
.metric-md.word { font-family: var(--font-body); font-weight: 600; letter-spacing: -.01em; }
.data-sm { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; line-height: 18px; }
.hl { color: var(--text-hi); font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: .93em; white-space: nowrap; }

/* direction: glyph + lightness only */
.dir { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dir.up { color: var(--text-hi); }
.dir.down { color: var(--text-mid); }
.dir.flat { color: var(--text-lo); }
.dir .g { font-size: .78em; margin-right: 4px; position: relative; top: -1px; }

/* ── layout ───────────────────────────────────────── */
.wrap { max-width: 1440px; margin: 0 auto; }
.pad { padding-left: var(--gutter); padding-right: var(--gutter); }
.block { padding-top: var(--section); padding-bottom: var(--section); }
.tint { background: var(--ink-850); }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }


/* ── nav ──────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ink-900) 92%, transparent); backdrop-filter: blur(8px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.nav-left { display: flex; align-items: center; gap: 48px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: .14em; }
.brand-mark { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.brand:hover { color: var(--text-hi); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.nav-links a { color: var(--text-mid); padding: 4px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--text-hi); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; background: var(--ink-700); border: 0; border-radius: var(--r-sm); width: 36px; height: 36px; cursor: pointer; }

/* ── buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: flex-start;
  font-family: var(--font-body); font-size: 13px; font-weight: 500; line-height: 18px;
  padding: 9px 14px; border-radius: var(--r-sm); border: 0;
  cursor: pointer; text-align: left; white-space: nowrap;
}
.btn-lg { font-size: 15px; font-weight: 600; padding: 13px 20px; border-radius: var(--r-md); }
.btn-solid { background: var(--text-hi); color: var(--ink-900); }
.btn-solid:hover { background: #FFFFFF; color: var(--ink-900); }
.btn-soft { background: var(--ink-700); color: var(--text-hi); }
.btn-soft:hover { background: var(--ink-600); color: var(--text-hi); }
.btn-block { display: flex; width: 100%; justify-content: space-between; }

/* ── seal (data freshness / verification) ─────────── */
.seal { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; color: var(--text-mid); white-space: nowrap; }
.seal .bars { display: inline-flex; gap: 2px; }
.seal .bars i { width: 4px; height: 12px; background: var(--ink-600); display: block; }
.seal-live .bars i.on { background: var(--live); }
.seal-attested .bars i.on { background: var(--attested); }
.seal-declared .bars i.on { background: var(--declared); }
.seal-risk .bars i.on { background: var(--risk); }
.seal .lvl { color: var(--text-hi); font-weight: 500; }
.seal .mono { font-size: 12px; }
.seal-attested .lvl { color: var(--attested); }
.seal-risk .lvl { color: var(--risk); }
.seal-live .lvl { color: var(--live); }
.seal .sep { color: var(--text-lo); }

/* ── tags ─────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; line-height: 16px; color: var(--text-mid); background: var(--ink-700); border-radius: var(--r-sm); padding: 5px 8px; white-space: nowrap; }
.tag-strong { color: var(--text-hi); background: var(--ink-600); }

/* ── hero ─────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; padding-top: 80px; padding-bottom: var(--section); }
.hero-copy { display: flex; flex-direction: column; }
.hero-copy h1 { margin-top: 16px; max-width: 20ch; }
.hero-copy .lead { margin-top: 20px; max-width: 52ch; color: var(--text-mid); }
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; }
.hero-feed { display: flex; flex-direction: column; }
.feed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.feed-cards { display: grid; gap: 12px; margin-top: 16px; }

/* ── vault card ───────────────────────────────────── */
.vcard { display: flex; flex-direction: column; gap: 20px; background: var(--ink-800); padding: 24px; border-radius: var(--r-md); color: var(--text-hi); }
.vcard:hover { background: var(--ink-700); color: var(--text-hi); }
.vcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.vcard-sym { font-size: 13px; color: var(--text-mid); }
.vcard-sym .mono { font-size: 12px; }
.vcard-name { font-weight: 600; font-size: 18px; line-height: 24px; letter-spacing: -.01em; }
.vcard-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vcard-metrics .caption { margin-bottom: 2px; }

/* ── composition bar ─────────────────────────────── */
.comp-bar { display: flex; height: 8px; gap: 2px; }
.comp-bar span { display: block; height: 100%; }
.comp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; line-height: 18px; color: var(--text-mid); font-variant-numeric: tabular-nums; }
.comp-legend b { font-weight: 500; color: var(--text-hi); font-family: var(--font-mono); font-size: 12px; }
.comp-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: 0; }

/* ── principle columns ───────────────────────────── */
.split { display: grid; grid-template-columns: 300px 1fr; gap: 64px; }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.cell .title { margin-bottom: 8px; }
.cell p { color: var(--text-mid); }

/* ── table (no rules: faint banding + space) ─────── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { text-align: left; font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: .02em; color: var(--text-lo); padding: 0 16px 12px; white-space: nowrap; }
.table td { padding: 18px 16px; vertical-align: middle; }
.table tbody tr:nth-child(odd) td { background: color-mix(in srgb, var(--ink-800) 60%, transparent); }
.table tbody td:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.table tbody td:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
.table th.r, .table td.r { text-align: right; }
.table tr.link-row { cursor: pointer; }
.table tr.link-row:hover td { background: var(--ink-700); }
.table .sym { font-family: var(--font-mono); font-size: 13px; color: var(--text-mid); }

/* ── page header ─────────────────────────────────── */
.page-head { padding-top: 56px; padding-bottom: 48px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.page-head p { color: var(--text-mid); margin-top: 12px; max-width: 64ch; }
.facts { display: flex; gap: 40px; }
.fact .metric-md { font-size: 18px; margin-top: 2px; }

.filters { display: flex; gap: 2px; background: var(--ink-800); border-radius: var(--r-md); padding: 3px; width: max-content; }
.filters button { font-size: 13px; padding: 5px 11px; background: transparent; color: var(--text-mid); border: 0; border-radius: var(--r-sm); cursor: pointer; }
.filters button:hover { color: var(--text-hi); }
.filters button[aria-pressed="true"] { background: var(--ink-600); color: var(--text-hi); }

/* ── product list ─────────────────────────────────── */
.plist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-top: 24px; padding-bottom: var(--section); }
.pcard { background: var(--ink-800); border-radius: var(--r-md); display: flex; flex-direction: column; padding: 28px; gap: 20px; }
.pcard p { color: var(--text-mid); }
.pcard .fact-line { font-size: 14px; line-height: 22px; }
.pcard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: auto; padding-top: 8px; }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

/* ── vault detail ─────────────────────────────────── */
.crumb { padding-top: 32px; }
.crumb a { color: var(--text-mid); }
.crumb a:hover { color: var(--text-hi); }
.vhead { display: grid; grid-template-columns: 1fr auto; gap: 48px; padding-top: 20px; padding-bottom: 40px; align-items: end; }
.vhead h1 { margin-top: 10px; }
.vhead .tags { margin-top: 16px; }
.navbox { background: var(--ink-800); padding: 24px; min-width: 360px; border-radius: var(--r-md); }
.navbox .metric-xl { margin-top: 4px; }
.navbox .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.navbox .seal { margin-top: 12px; }
.navbox .actions { display: flex; gap: 8px; margin-top: 20px; }

.statrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding: 24px 0 8px; }
.statrow .metric-md { margin-top: 4px; }
.statrow .sub { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--text-lo); }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; padding-top: 40px; }
.detail-main { padding-bottom: var(--section); min-width: 0; }
.detail-side { padding-bottom: var(--section); display: flex; flex-direction: column; gap: 16px; }

.tabs { display: flex; gap: 4px; margin-bottom: 40px; position: sticky; top: 64px; background: color-mix(in srgb, var(--ink-900) 92%, transparent); backdrop-filter: blur(8px); z-index: 5; padding: 8px 0; }
.tabs button { background: none; border: 0; padding: 8px 14px; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--text-mid); cursor: pointer; border-radius: var(--r-sm); }
.tabs button:hover { color: var(--text-hi); }
.tabs button[aria-selected="true"] { color: var(--text-hi); background: var(--ink-700); }
.section + .section { margin-top: 64px; }
.section h2 { font-weight: 600; font-size: 20px; line-height: 28px; letter-spacing: -.01em; margin-bottom: 16px; }
.prose p + p { margin-top: 14px; }
.prose p { color: var(--text-mid); max-width: 70ch; }

/* chart */
.chart-card { background: var(--ink-800); border-radius: var(--r-md); }
.chart-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 24px 24px 0; flex-wrap: wrap; }
.chart-top .dir { font-size: 14px; }
.chart-box { position: relative; height: 340px; padding: 16px 12px 8px 8px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0 24px 8px; font-size: 13px; color: var(--text-mid); }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { width: 16px; height: 0; border-top: 2px solid; display: inline-block; }
.chart-foot { display: flex; justify-content: space-between; gap: 16px; padding: 12px 24px 20px; flex-wrap: wrap; }

.perf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.perf-grid > div { padding: 16px 20px; background: var(--ink-800); border-radius: var(--r-md); }
.perf-grid .metric-md { font-size: 17px; margin-top: 2px; }

.numbered { display: grid; gap: 28px; }
.numbered > div { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.numbered .n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--text-lo); padding-top: 3px; }
.numbered .t { font-weight: 600; font-size: 16px; line-height: 24px; }
.numbered p { color: var(--text-mid); margin-top: 4px; max-width: 70ch; }

.note { margin-top: 16px; font-size: 13px; line-height: 20px; color: var(--text-mid); background: var(--ink-800); border-radius: var(--r-md); padding: 14px 16px; }

/* side panels */
.panel { background: var(--ink-800); border-radius: var(--r-md); padding: 20px 22px; }
.panel .kicker { margin-bottom: 12px; display: block; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 14px; line-height: 20px; }
.kv span:first-child { color: var(--text-mid); }
.kv span:last-child { text-align: right; }
.kv span.mono { font-size: 13px; }
a.kv:hover span:first-child { color: var(--text-hi); }
.mint p { color: var(--text-mid); font-size: 14px; line-height: 22px; margin: 6px 0 16px; }
.mint .btn + .btn { margin-top: 8px; }
.mint .fine { color: var(--text-lo); font-size: 13px; line-height: 20px; margin: 16px 0 0; }

/* Paper surface — documents are rendered as documents */
.paper { background: var(--paper-00); color: var(--paper-ink); border-radius: var(--r-md); padding: 32px; }
.paper .kicker { color: var(--paper-mid); }
.paper h2 { color: var(--paper-ink); }
.doc-list { margin-top: 16px; display: grid; gap: 4px; }
.doc { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 12px 14px; margin: 0 -14px; border-radius: var(--r-sm); color: var(--paper-ink); }
.doc:hover { color: var(--paper-ink); background: rgba(0, 0, 0, .05); }
.doc .meta { font-size: 13px; color: var(--paper-mid); }
.doc .t { font-weight: 600; }
.paper .legal { margin-top: 24px; font-size: 13px; line-height: 20px; color: #4a4e47; }

/* ── access band + footer ────────────────────────── */
.band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; }
.band .ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.steps { display: grid; gap: 28px; }
.steps > div { display: grid; grid-template-columns: 48px 1fr; }
.steps p { color: var(--text-mid); font-size: 14px; line-height: 22px; margin-top: 2px; }

.site-footer { background: var(--ink-850); margin-top: 0; }
.footer { padding-top: 64px; padding-bottom: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-links { display: flex; gap: 56px; justify-content: flex-end; }
.footer-links div { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-links a { color: var(--text-mid); }
.footer-links a:hover { color: var(--text-hi); }
.status-strip { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 24px; flex-wrap: wrap; }
.legal-strip { padding-top: 8px; padding-bottom: 48px; color: var(--text-lo); font-size: 12px; line-height: 18px; }
.legal-strip p { max-width: 110ch; }
.legal-strip p + p { margin-top: 8px; }

.empty { padding: 64px var(--gutter); }
.empty .box { background: var(--ink-800); border-radius: var(--r-md); padding: 28px; max-width: 640px; }
.empty .box p { color: var(--text-mid); margin-top: 8px; }

/* ── responsive ──────────────────────────────────── */
@media (max-width: 1180px) {
  :root { --gutter: 32px; --section: 72px; }
  .hero, .band { grid-template-columns: 1fr; gap: 48px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .detail { grid-template-columns: 1fr; gap: 0; }
  .detail-side { display: grid; grid-template-columns: repeat(2, 1fr); }
  .plist { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; --section: 56px; }
  .display-1 { font-size: 34px; line-height: 38px; }
  .display-2 { font-size: 26px; line-height: 32px; }
  .metric-xl { font-size: 30px; line-height: 34px; }
  .hero { padding-top: 40px; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--ink-850); padding: 8px var(--gutter) 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-right .btn-soft { display: none; }
  .cells { grid-template-columns: 1fr; gap: 32px; }
  .vhead { grid-template-columns: 1fr; gap: 24px; }
  .navbox { min-width: 0; }
  .statrow { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .detail-side { grid-template-columns: 1fr; }
  .perf-grid { grid-template-columns: repeat(2, 1fr); }
  .pcard { padding: 20px; }
  .pcard-stats { grid-template-columns: repeat(2, 1fr); }
  .vcard-metrics { grid-template-columns: repeat(2, 1fr); }
  .facts { flex-wrap: wrap; gap: 20px 32px; }
  .chart-box { height: 260px; }
  .tabs { overflow-x: auto; }
  .footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .paper { padding: 20px; }
  .hide-sm { display: none; }
  .seal { flex-wrap: wrap; white-space: normal; row-gap: 2px; }
}
