/* ============================================================
   SOLDEX — design system
   Warm editorial paper + ink, Solana gradient used sparingly.
   ============================================================ */

:root {
  /* tinted palette keyed to the SOLDEX mark (periwinkle → aqua), no plain white page */
  --paper: #edeffa;
  --paper-soft: #f4f5fd;
  --card: #ffffff;
  --ink: #141721;
  --ink-soft: #2a2e3a;
  --muted: #676e83;
  --subtle: #979eb4;
  --line: #dcdff0;
  --line-soft: #e5e8f5;
  --sol-a: #9d8cf2;
  --sol-b: #4fd9c7;
  --grad: linear-gradient(120deg, var(--sol-a), var(--sol-b));
  --rail: 1200px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 18px 50px rgba(30, 36, 58, 0.09);
  --shadow-sm: 0 6px 18px rgba(30, 36, 58, 0.05);
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", "Inter", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: linear-gradient(160deg, #efedfb 0%, #e9f1fa 48%, #e5f6f1 100%) fixed;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

::selection { background: #dcd6fb; }

/* ---------- rail & sections ---------- */

.rail { max-width: var(--rail); margin: 0 auto; padding: 0 24px; }

section.block { padding-top: 96px; }
section.block.tight { padding-top: 64px; }
section.block:last-of-type { padding-bottom: 96px; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
  margin-bottom: 40px;
}
.sec-head .kicker { display: flex; align-items: baseline; gap: 16px; }
.sec-no {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}
.sec-title { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.sec-note { font-size: 13px; color: var(--muted); max-width: 360px; text-align: right; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  max-width: var(--rail);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.06em; font-size: 15px; }
.brand .dot {
  width: 12px; height: 12px; border-radius: 4px;
  background: var(--grad);
  box-shadow: 0 0 0 3px rgba(153, 69, 255, 0.12);
}
.nav-links { display: flex; gap: 26px; margin-left: 16px; }
.nav-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom-color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.next-chip {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--card);
}
.next-chip .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sol-b);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.next-chip .num { color: var(--ink); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-radius: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); border-color: var(--ink); }
.btn-paper { background: #fff; color: var(--ink); }
.btn-paper:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.btn-glass { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.22); }
.btn-glass:hover { background: rgba(255,255,255,0.16); }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

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

.hero-wrap { padding: 16px; }
.hero {
  position: relative;
  background: #101014;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  min-height: 680px;
  display: flex;
  flex-direction: column;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(153, 69, 255, 0.22), transparent 60%),
    radial-gradient(800px 420px at 0% 110%, rgba(20, 241, 149, 0.13), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(900px 600px at 50% 20%, black, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: var(--rail);
  width: 100%;
  margin: 0 auto;
  padding: 96px 48px 56px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: center;
}
.hero .eyebrow { color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 10px; }
.hero .eyebrow .tick { width: 20px; height: 1px; background: var(--grad); }
.hero h1 {
  margin: 22px 0 24px;
  font-size: clamp(48px, 6.2vw, 78px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.hero h1 .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.hero .sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin-bottom: 36px;
}
.hero .sub strong { color: #fff; font-weight: 600; }
.hero-ctas { display: flex; gap: 14px; align-items: center; }

.hero-stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stats .row {
  max-width: var(--rail);
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hero-stats .cell {
  padding: 24px 0;
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 28px;
}
.hero-stats .cell:first-child { border-left: none; padding-left: 0; }
.hero-stats .label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-stats .value { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }

/* latest distribution card in hero */
.dist-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  padding: 24px;
}
.dist-card .head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.dist-card .head .t { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.dist-card .head .live {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; color: var(--sol-b);
}
.dist-card .head .live .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--sol-b); animation: pulse 2s ease infinite; }
.dist-card .stock-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.dist-card .stock-row:first-of-type { border-top: none; }
.dist-card .badge {
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em;
}
.dist-card .stock-row .sym { font-size: 13px; font-weight: 600; }
.dist-card .stock-row .name { font-size: 11px; color: rgba(255,255,255,0.45); }
.dist-card .stock-row .amt { margin-left: auto; text-align: right; font-size: 13px; font-weight: 500; color: var(--sol-b); }
.dist-card .stock-row .usd { font-size: 11px; color: rgba(255,255,255,0.45); }
.dist-card .foot {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.08em; color: rgba(255,255,255,0.45);
}

/* ---------- ticker ---------- */

.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.ticker .lane {
  display: inline-flex;
  gap: 48px;
  padding: 13px 0;
  animation: marquee 55s linear infinite;
  will-change: transform;
}
.ticker:hover .lane { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tick-item { display: inline-flex; align-items: baseline; gap: 10px; font-size: 12.5px; }
.tick-item .sym { font-weight: 700; letter-spacing: 0.04em; }
.tick-item .px { color: var(--muted); }
.tick-item .chg.up { color: #0d9e6e; }
.tick-item .chg.down { color: #c4453d; }

/* ---------- metric cards ---------- */

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.metric::after {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.metric:hover::after { opacity: 1; }
.metric .label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.metric .value { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.metric .hint { font-size: 12px; color: var(--subtle); margin-top: 10px; }

/* ---------- how it works ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.step .no {
  font-size: 12px; color: var(--subtle);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 44px;
}
.step .no::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.step p strong { color: var(--ink); font-weight: 600; }

/* ---------- stocks grid ---------- */

.stocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stock-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stock-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stock-card .badge {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em;
  flex-shrink: 0;
}
.stock-card .meta { min-width: 0; }
.stock-card .sym { font-size: 14.5px; font-weight: 600; }
.stock-card .name { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-card .px { margin-left: auto; text-align: right; flex-shrink: 0; }
.stock-card .px .v { font-size: 15px; font-weight: 500; }
.stock-card .px .l { font-size: 10px; letter-spacing: 0.12em; color: var(--subtle); text-transform: uppercase; }
.stocks-note {
  margin-top: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- distributions table ---------- */

.table-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
table.dist { width: 100%; border-collapse: collapse; }
table.dist th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--subtle);
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-soft);
}
table.dist td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
  vertical-align: middle;
}
table.dist tr:last-child td { border-bottom: none; }
table.dist tr:hover td { background: var(--paper-soft); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  margin: 2px 3px 2px 0;
}
.pill .q { color: var(--muted); font-weight: 500; }
.pill.more { color: var(--muted); }
td .time-main { font-weight: 500; }
td .time-sub { font-size: 11.5px; color: var(--subtle); }
.tx-link { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.tx-link:hover { color: var(--ink); }

/* ---------- eligibility band ---------- */

.band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 320px at 100% 0%, rgba(153,69,255,0.25), transparent 65%);
  pointer-events: none;
}
.band .big {
  position: relative;
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.band .big .serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.band .copy { position: relative; }
.band .copy p { color: rgba(255,255,255,0.7); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.band .copy p strong { color: #fff; }

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

footer.site {
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
}
.foot-inner {
  max-width: var(--rail);
  margin: 0 auto;
  padding: 56px 24px 40px;
}
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { font-size: 13px; color: var(--muted); max-width: 300px; }
.foot-cols { display: flex; gap: 72px; }
.foot-col .t { font-size: 10.5px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--subtle); margin-bottom: 14px; }
.foot-col a { display: block; font-size: 13.5px; color: var(--muted); padding: 4px 0; }
.foot-col a:hover { color: var(--ink); }
.disclaimer {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--subtle);
}

/* ---------- page hero (inner pages) ---------- */

.page-head { padding-top: 72px; }
.page-head h1 { font-size: clamp(34px, 4vw, 48px); font-weight: 500; letter-spacing: -0.03em; margin: 14px 0 10px; }
.page-head .lede { font-size: 16px; color: var(--muted); max-width: 560px; }

/* ---------- swap ---------- */

.swap-grid { display: grid; grid-template-columns: 420px 1fr; gap: 12px; align-items: start; }
.swap-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.swap-card .field {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
  background: var(--paper-soft);
}
.swap-card .field .l { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); margin-bottom: 8px; display: flex; justify-content: space-between; }
.swap-card .field .row { display: flex; align-items: center; gap: 12px; }
.swap-card .field input {
  border: none; background: none; outline: none;
  font-family: inherit;
  font-size: 26px; font-weight: 500; letter-spacing: -0.02em;
  width: 100%;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.swap-card .asset {
  display: flex; align-items: center; gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px 7px 8px;
  font-size: 13px; font-weight: 600;
  flex-shrink: 0;
}
.swap-card .asset .dot { width: 20px; height: 20px; border-radius: 50%; }
.swap-arrow {
  display: flex; justify-content: center;
  margin: -4px 0 6px;
  color: var(--subtle);
  font-size: 18px;
}
.swap-meta { font-size: 12px; color: var(--subtle); display: flex; justify-content: space-between; padding: 10px 4px 16px; }
.info-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.info-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.info-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.kv { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 500; }
.addr {
  font-size: 12px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 8px;
  word-break: break-all;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- portfolio ---------- */

.folio-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.connect-hero {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 72px 32px;
  text-align: center;
}
.connect-hero h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.connect-hero p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.holdings-list .row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.holdings-list .row:first-child { border-top: none; }
.holdings-list .amt { margin-left: auto; font-weight: 500; }

/* ---------- docs ---------- */

.docs-grid { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.docs-nav { position: sticky; top: 96px; }
.docs-nav a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  padding: 7px 0 7px 16px;
  border-left: 1.5px solid var(--line);
}
.docs-nav a:hover, .docs-nav a.active { color: var(--ink); border-left-color: var(--ink); }
.docs-body h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 48px 0 14px; }
.docs-body h2:first-child { margin-top: 0; }
.docs-body p { font-size: 15px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 14px; max-width: 680px; }
.docs-body p strong { font-weight: 600; }
.docs-body ul { margin: 0 0 14px 20px; }
.docs-body li { font-size: 15px; color: var(--ink-soft); line-height: 1.75; }
.docs-body code {
  font-size: 13px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  padding: 1px 7px;
  border-radius: 6px;
}

/* ---------- states / misc ---------- */

.demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--sol-a);
  background: rgba(153, 69, 255, 0.07);
  border: 1px solid rgba(153, 69, 255, 0.25);
  border-radius: 999px;
  padding: 5px 12px;
  text-transform: uppercase;
}
.center-cta { text-align: center; padding: 32px 0 0; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

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

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; padding: 72px 32px 48px; gap: 40px; }
  .hero-stats .row { padding: 0 32px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .stocks { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: 1fr; padding: 48px 32px; }
  .swap-grid { grid-template-columns: 1fr; }
  .folio-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .docs-nav a { border-left: none; padding-left: 0; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .metrics { grid-template-columns: 1fr; }
  .stocks { grid-template-columns: 1fr; }
  .hero-stats .row { grid-template-columns: 1fr; }
  .hero-stats .cell { border-left: none; padding-left: 0; padding: 14px 0; }
  .sec-head { flex-direction: column; gap: 8px; }
  .sec-note { text-align: left; }
}

/* ============================================================
   SOLDEX brand theme — the mark drives the voice.
   Space Grotesk display, pill buttons, token icons, pastel glow.
   ============================================================ */

h1, .sec-title, .metric .value, .hero-stats .value, .band .big,
.step h3, .brand, .btn, .next-chip, .docs-body h2, .page-head h1 {
  font-family: var(--display);
}

.btn { border-radius: 999px; }

/* the logo mark in nav + footer */
.brand .mark {
  width: 28px; height: 28px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(157, 140, 242, 0.35);
}

/* hero: purple → blue gradient canvas, content floats directly on it */
.hero {
  background: linear-gradient(140deg, #7d95f3 0%, #5d6ceb 48%, #855ff0 100%);
}
.hero::before {
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(760px 400px at 0% 112%, rgba(79, 217, 199, 0.18), transparent 60%);
}
.hero::after { display: none; } /* clean backdrop — no grid texture */

/* the distribution card: dimensional glass — lit top edge, layered depth */
.dist-card {
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 55%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.45);
  border-bottom-color: rgba(16, 12, 54, 0.25);
  border-radius: 20px;
  padding: 24px 26px;
  backdrop-filter: blur(16px);
  box-shadow:
    0 28px 56px -14px rgba(18, 14, 62, 0.5),
    0 4px 12px rgba(18, 14, 62, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.dist-card .stock-row { border-top-color: rgba(255, 255, 255, 0.16); }
.dist-card .badge { background: rgba(255, 255, 255, 0.18); border: none; }
.dist-card .head .t,
.dist-card .stock-row .name,
.dist-card .stock-row .usd,
.dist-card .foot { color: rgba(255, 255, 255, 0.62); }
.dist-card .foot { border-top-color: rgba(255, 255, 255, 0.16); }
.dist-card .head .live,
.dist-card .stock-row .amt { color: #a8ffe3; }
.dist-card .head .live .pulse { background: #a8ffe3; }
.hero-stats { border-top-color: rgba(255, 255, 255, 0.2); }
.hero-stats .cell { border-left-color: rgba(255, 255, 255, 0.2); }
.hero-stats .label { color: rgba(255, 255, 255, 0.6); }
.hero .eyebrow { color: rgba(255, 255, 255, 0.72); }
.hero .sub { color: rgba(255, 255, 255, 0.82); }
.hero .sub strong { color: #fff; }
.hero .btn-glass { border-color: rgba(255, 255, 255, 0.35); }
.hero-logo {
  width: 52px; height: 52px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 26px;
  box-shadow: 0 8px 28px rgba(157, 140, 242, 0.45);
}

/* token icon badges — real stock icons with letter fallback */
.badge { position: relative; overflow: hidden; }
.badge img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #fff;
}
.stock-card .badge { border-radius: 50%; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.dist-card .badge { border-radius: 50%; }

/* ticker gets icons too */
.tick-item img {
  width: 17px; height: 17px;
  border-radius: 50%;
  object-fit: cover;
  align-self: center;
  background: #fff;
}
.tick-item { align-items: center; }

/* gradient section numbers — small brand signature */
.sec-no {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* band matches the hero gradient */
.band { background: linear-gradient(140deg, #7d95f3 0%, #5d6ceb 48%, #855ff0 100%); }
.band::before {
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(255, 255, 255, 0.14), transparent 65%),
    radial-gradient(500px 260px at 0% 100%, rgba(79, 217, 199, 0.16), transparent 60%);
}
.band .copy p { color: rgba(255, 255, 255, 0.82); }

/* the CA strip in the hero — placeholder until launch, click-to-copy after */
.hero-ca {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 13px 20px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  max-width: 100%;
}
.hero-ca.copyable { cursor: pointer; }
.hero-ca.copyable:hover { background: rgba(255, 255, 255, 0.14); }
.hero-ca .l {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #a8ffe3;
}
.hero-ca .v {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-all;
}
.hero-ca .copied {
  display: none;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a8ffe3;
  white-space: nowrap;
}
.hero-ca.flash .copied { display: inline; }

/* icon button (X / socials) in the nav */
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:active { transform: translateY(1px); }
.icon-btn svg { width: 15px; height: 15px; fill: currentColor; }

/* header hairline: gradient whisper under the nav */
header.site { border-bottom: none; }
header.site::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157,140,242,.45), rgba(79,217,199,.45), transparent);
}
