/* ==========================================================================
   ORV TOKENOMICS — orvtokens.top
   A data-report aesthetic: off-white paper, hairline rules, mint + ember.
   Sections are cardless and separated by 1px rules, with a muted dot grid.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #f3f5f1;
  --dark: #0d120f;
  --mint: #16e08a;
  --mint-ink: #0a6b41;
  --ember: #ff7a3d;
  --ember-ink: #a83a10;
  --ink: #17201a;
  --muted: #55605a;
  --line: #d8ded6;
  --line-strong: #b9c2b8;
  --panel: #e9ede6;
  --white: #ffffff;

  --font-ui: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1180px;
  --gap: 32px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(13, 18, 15, 0.075) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--ink);
  text-decoration-color: var(--mint-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--mint-ink); }

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--mint);
  color: var(--dark);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--dark);
  color: var(--paper);
  border-bottom: 1px solid #243029;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  flex-wrap: wrap;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand:hover { color: var(--mint); }
.brand__mark {
  width: 26px;
  height: 26px;
  border: 2px solid var(--mint);
  border-top-color: var(--ember);
  border-radius: 50%;
  flex: none;
}
.brand__sub { color: #8ea095; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a {
  color: #c9d3cc;
  text-decoration: none;
  padding: 7px 2px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--paper); border-bottom-color: var(--mint); }
.nav a[aria-current="page"] { color: var(--mint); border-bottom-color: var(--mint); }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 0;
  border-bottom: 1px solid var(--line);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mint-ink);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--ember);
}

.hero h1 {
  font-size: clamp(2.15rem, 5.4vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
  max-width: 17ch;
  text-wrap: balance;
}

.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: #3a453e;
  max-width: 62ch;
  margin: 0 0 30px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 46px;
  padding: 0;
  list-style: none;
}
.hero__meta li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.55);
  padding: 7px 12px;
  color: #2b352f;
}

/* ---------- Supply at a glance ---------- */
.glance {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 0;
}
.glance__item {
  padding: 26px 26px 30px;
  border-left: 1px solid var(--line);
}
.glance__item:first-child { border-left: 0; padding-left: 0; }
.glance__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.glance__value {
  font-family: var(--font-mono);
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}
.glance__value--mint { color: var(--mint-ink); }
.glance__value--ember { color: var(--ember-ink); }
.glance__note {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Sections ---------- */
.section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}
.section:first-of-type,
.hero + .section { border-top: 0; }

.section__head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 34px;
}
.section__index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ember-ink);
  letter-spacing: 0.1em;
  padding-top: 10px;
}
.section h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 26ch;
}

.section h3 {
  font-size: 1.16rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 34px 0 10px;
}

.prose { max-width: 72ch; }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  gap: 56px;
  align-items: start;
}

/* ---------- Figures ---------- */
.figure {
  margin: 34px 0 0;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px;
}
.figure img {
  width: 100%;
  height: auto;
  filter: saturate(0.8) contrast(1.02);
}
.figure figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 10px 2px 2px;
  text-transform: uppercase;
}
.split .figure { margin-top: 0; }

/* ---------- Data table ---------- */
.table-wrap {
  border-top: 2px solid var(--ink);
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 540px;
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-strong);
  font-weight: 500;
  background: rgba(233, 237, 230, 0.6);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}
.data-table th.num { text-align: right; }
.data-table tbody tr:hover { background: rgba(22, 224, 138, 0.07); }
.data-table .label { font-weight: 600; }
.data-table .note { color: var(--muted); font-size: 13.5px; }
.table-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 12px 0 0;
}

/* ---------- Callout ---------- */
.callout {
  border-left: 3px solid var(--ember);
  background: rgba(255, 122, 61, 0.07);
  padding: 18px 22px;
  margin: 28px 0 0;
  font-size: 15px;
  color: #3a453e;
}
.callout strong {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-ink);
  display: block;
  margin-bottom: 6px;
}
.callout p { margin: 0; }

/* ---------- Donut ---------- */
.donut-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: center;
}
.donut figure { margin: 0; }
.donut svg { width: 100%; max-width: 340px; height: auto; display: block; margin-inline: auto; }
.donut__center {
  font-family: var(--font-mono);
  fill: var(--ink);
  text-anchor: middle;
}
.donut__center--label { font-size: 7px; letter-spacing: 1.6px; fill: #55605a; text-transform: uppercase; }
.donut__center--value { font-size: 17px; font-weight: 600; letter-spacing: -0.5px; }
.donut__center--sub { font-size: 6.6px; letter-spacing: 1.2px; fill: #55605a; }

.legend { list-style: none; margin: 0; padding: 0; }
.legend li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.legend li:first-child { border-top: 1px solid var(--line); }
.legend .swatch {
  width: 11px;
  height: 11px;
  align-self: center;
  background: var(--mint);
}
.legend .swatch--ember { background: var(--ember); }
.legend .swatch--dark { background: #17201a; }
.legend .swatch--mint { background: #16e08a; }
.legend .swatch--teal { background: #0b7a4a; }
.legend .swatch--sand { background: #c9b48a; }
.legend .swatch--blue { background: #5b8cff; }
.legend .swatch--grey { background: #dfe4dc; box-shadow: inset 0 0 0 1px #b9c2b8; }
.legend .pct {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.legend .pct strong { color: var(--ink); font-weight: 600; }
.legend .amt {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- Vesting bars ---------- */
.vesting-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 8px;
  margin-bottom: 26px;
}
.vest {
  margin: 0 0 26px;
}
.vest__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 8px;
}
.vest__name { font-weight: 600; font-size: 15px; }
.vest__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.vest__track {
  display: flex;
  height: 18px;
  background: #e2e7df;
  border: 1px solid #cfd6cc;
}
.vest__seg { height: 100%; }
.vest__seg--lock { background: #3c4a41; }
.vest__seg--release { background: var(--mint); }
.vest__seg--tge { background: var(--ember); }
.vest__seg--phased { background: repeating-linear-gradient(135deg, #9fb8aa 0 4px, #c8d5cc 4px 8px); }
.vest__seg--ongoing { background: repeating-linear-gradient(135deg, #16e08a 0 5px, #b6f2d4 5px 10px); }
.vest__seg--ops { background: #c9b48a; }
.vest__key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.vest__key span {
  display: inline-block;
  width: 12px;
  height: 10px;
  margin-right: 7px;
  vertical-align: -1px;
}

/* ---------- Link list ---------- */
.next {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.next li { border-bottom: 1px solid var(--line); }
.next a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 18px 2px;
  text-decoration: none;
  font-weight: 600;
}
.next a:hover { color: var(--mint-ink); }
.next .arrow {
  font-family: var(--font-mono);
  color: var(--ember-ink);
  font-size: 13px;
  white-space: nowrap;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-weight: 600;
  font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--ember-ink);
  font-size: 18px;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; color: #3a453e; max-width: 76ch; }

/* ---------- Ecosystem block ---------- */
.ecosystem {
  background: var(--dark);
  color: var(--paper);
  padding: 58px 0;
  border-top: 1px solid #243029;
}
.ecosystem__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 30px;
  border-bottom: 1px solid #2c3830;
  padding-bottom: 18px;
  margin-bottom: 4px;
}
.ecosystem h2 {
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: -0.01em;
}
.ecosystem__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}
.ecosystem__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.ecosystem__grid a {
  display: block;
  color: var(--paper);
  text-decoration: none;
  padding: 22px 24px 22px 0;
  border-right: 1px solid #2c3830;
  margin-right: 8px;
}
.ecosystem__grid a:last-child { border-right: 0; margin-right: 0; }
.ecosystem__grid a:hover { color: var(--mint); }
.ecosystem__grid .eco-domain {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mint);
  margin-bottom: 8px;
}
.ecosystem__grid .eco-desc {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: #b9c6be;
}
.ecosystem__grid a:hover .eco-desc { color: var(--paper); }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: #aab7af;
  border-top: 1px solid #243029;
  padding: 34px 0 44px;
  font-size: 13px;
  line-height: 1.65;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 40px;
}
.footer p { margin: 0 0 10px; }
.footer a { color: #d6dfd8; text-decoration-color: #3f6b55; }
.footer a:hover { color: var(--mint); }
.footer__brand {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
}
.footer__legal { font-size: 11.5px; color: #8d9c93; }

/* ---------- Utility ---------- */
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
  .donut-layout { grid-template-columns: 1fr; gap: 30px; }
  .ecosystem__grid { grid-template-columns: repeat(2, 1fr); }
  .ecosystem__grid a { border-right: 0; border-bottom: 1px solid #2c3830; margin-right: 0; }
  .ecosystem__grid a:nth-child(3),
  .ecosystem__grid a:last-child { border-bottom: 0; }
  .glance { grid-template-columns: repeat(2, 1fr); }
  .glance__item:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .glance__item:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 34px, var(--wrap)); }
  .topbar__inner { min-height: 0; padding-block: 14px; }
  .nav {
    width: 100%;
    gap: 2px 14px;
    font-size: 11px;
    border-top: 1px solid #243029;
    padding-top: 10px;
  }
  .hero { padding-top: 46px; }
  .hero__meta { margin-bottom: 34px; }
  .glance__item { padding: 20px 18px 24px; }
  .glance__value { font-size: 1.7rem; }
  .section { padding: 48px 0; }
  .section__head { grid-template-columns: 1fr; gap: 6px; margin-bottom: 24px; }
  .section__index { padding-top: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 22px; }
  .ecosystem { padding: 44px 0; }
  .vest__head { flex-direction: column; gap: 2px; }
}

@media (max-width: 480px) {
  .glance { grid-template-columns: 1fr; }
  .glance__item,
  .glance__item:nth-child(3),
  .glance__item:nth-child(4) {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-block: 18px 20px;
  }
  .glance__item:first-child { border-top: 0; }
  .ecosystem__grid { grid-template-columns: 1fr; }
  .ecosystem__grid a:nth-child(3) { border-bottom: 1px solid #2c3830; }
  .ecosystem__grid a:last-child { border-bottom: 0; }
  .next a { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
