:root {
  /* softened palette — muted sky blue on warm off-white */
  --bg: #fbfcfe;
  --bg-soft: #f5f9fc;
  --ink: #20415c;
  --ink-soft: #5b7288;
  --blue: #5aacec;        /* sanctum.so light-blue accent, desaturated */
  --blue-deep: #3585c7;
  --blue-pale: #e4f1fa;
  --line: #e8f0f7;
  --green: #12a150;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  font-size: 17.5px;                 /* deliberately larger base (spec) */
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 252, 254, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em;
         display: flex; align-items: center; gap: 10px; }
.brand span { color: var(--blue); }
.brand-icon { width: 30px; height: 30px; border-radius: 50%; }

/* collapsible (Initial Tokenomics) */
.fold { margin-top: 2.2rem; }
.fold summary {
  display: inline-block; cursor: pointer; user-select: none;
  font-weight: 600; font-size: .95rem; color: var(--blue-deep);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 9px 18px; border-radius: 10px; list-style: none;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: " ▾"; color: var(--ink-soft); }
.fold[open] summary::after { content: " ▴"; }
.fold summary:hover { background: var(--blue-pale); }
.topnav { display: flex; align-items: center; gap: 14px; }
.icon-link { color: var(--ink-soft); display: flex; padding: 6px; border-radius: 8px; }
.icon-link:hover { color: var(--blue-deep); background: var(--blue-pale); }
.btn {
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 9px 16px; border-radius: 10px; white-space: nowrap;
}
.btn-ghost { color: var(--blue-deep); }
.btn-ghost:hover { background: var(--blue-pale); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }

/* ---- sections ---- */
section { padding: 3.2rem 0 1rem; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
h1 { font-size: 2.3rem; margin: 0; letter-spacing: -.02em; }
h2 { font-size: 1.7rem; margin: 0 0 1.2rem; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; margin: 0 0 .8rem; }
h2 .sub { font-size: 1rem; font-weight: 500; color: var(--ink-soft); margin-left: .6rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem; }
.controls { display: flex; gap: 12px; }

/* segmented toggles */
.seg { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink-soft);
  padding: 7px 16px; border-radius: 8px;
}
.seg button.on { background: #fff; color: var(--blue-deep); box-shadow: 0 1px 3px rgba(15, 60, 110, .14); }

/* metric cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 1.6rem; }
.cards.small { grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); }
.card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.card.hero { background: linear-gradient(135deg, var(--blue-pale), #eef7ff); }
.card-label { font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.card-label span { font-weight: 500; }
.card-value { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.card.hero .card-value { font-size: 2.3rem; color: var(--blue-deep); }
.card-foot { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }

/* charts */
.chart { width: 100%; min-height: 380px; }
.chart.tall { min-height: 460px; }
.chart-dark { background: #14263a; border-radius: var(--radius);
              padding: 14px 10px 6px; min-height: 420px; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tbody tr:hover { background: var(--bg-soft); }
.tbl .addr { font-size: .8rem; color: var(--ink-soft); font-family: ui-monospace, monospace; }
.tbl tr.total-row td { font-weight: 700; border-top: 2px solid #cfe0ee; background: var(--bg-soft); }

/* hover tooltips (ⓘ) */
.info { display: inline-block; margin-left: 5px; color: var(--blue-deep);
        cursor: help; position: relative; font-style: normal; }
.info::after {
  content: attr(data-tip);
  position: absolute; right: -10px; top: 145%; z-index: 30; width: 280px;
  background: #14263a; color: #e8f2fb;
  font-size: .82rem; font-weight: 400; line-height: 1.45;
  text-transform: none; letter-spacing: 0; text-align: left; white-space: normal;
  padding: 10px 13px; border-radius: 9px;
  box-shadow: 0 6px 20px rgba(15, 40, 70, .25);
  opacity: 0; visibility: hidden; transition: opacity .15s;
}
.info:hover::after { opacity: 1; visibility: visible; }

.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.note { font-size: .9rem; color: var(--ink-soft); }
.note a, .appendix-list a { color: var(--blue-deep); }

.appendix-list { padding-left: 1.2rem; }
.appendix-list li { margin-bottom: .7rem; font-size: .98rem; color: var(--ink-soft); }
.appendix-list strong { color: var(--ink); }

.foot { padding: 2.5rem 0 3rem; color: var(--ink-soft); font-size: .9rem; }
.foot a { color: var(--blue-deep); }
