:root {
  --bg:      #08090A;
  --bg-2:    #0C0D0F;
  --bg-3:    #101113;
  --surface: rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.055);
  --line:    rgba(255,255,255,.09);
  --line-2:  rgba(255,255,255,.055);
  --fg:      #F3F4F5;
  --fg-2:    rgba(243,244,245,.62);
  --fg-3:    rgba(243,244,245,.36);

  --display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --gut:  clamp(20px, 4.5vw, 56px);
  --maxw: 1240px;
  --pad:  clamp(64px, 8vw, 112px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r:    16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 15.5px; line-height: 1.6;
  font-feature-settings: "cv05" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--fg); color: var(--bg); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 600; line-height: 1.08; }
h1 { font-size: clamp(32px, 3.5vw, 46px); letter-spacing: -.045em; }
h2 { font-size: clamp(27px, 3.1vw, 40px); letter-spacing: -.042em; }
h3 { font-size: 16px; letter-spacing: -.02em; line-height: 1.35; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--fg-2); }
p:last-child { margin-bottom: 0; }
a  { color: inherit; text-decoration: none; }
em { font-style: italic; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3);
  margin: 0 0 16px;
}

/* ── nav ──────────────────────────────────────────────── */
header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: rgba(8,9,10,.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut);
  height: 62px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--fg); }
.brand .mk { width: 19px; height: 19px; display: block; flex: 0 0 auto; }
.brand span { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.nav .brand { margin-right: 22px; }
.navlinks { display: flex; gap: 24px; margin-right: auto; }
.navlinks a { color: var(--fg-3); font-size: 13.5px; transition: color .16s ease; }
.navlinks a:hover { color: var(--fg); }
.btn-solid {
  background: var(--fg); color: var(--bg); border: 1px solid var(--fg);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 500;
  white-space: nowrap; transition: opacity .16s ease;
}
.btn-solid:hover { opacity: .85; }
.btn-quiet {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  font-size: 13.5px; color: var(--fg); white-space: nowrap;
  background: var(--surface); transition: background .16s ease, border-color .16s ease;
}
.btn-quiet:hover { background: var(--surface-2); border-color: rgba(255,255,255,.18); }
@media (max-width: 880px) { .navlinks { display: none; } .nav .brand { margin-right: auto; } }

.progress { position: absolute; left: 0; bottom: 0; height: 1px; background: var(--fg); width: 0%; }

/* ── panels ───────────────────────────────────────────── */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.panel-hd {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
}
.panel-hd .t {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fg-3);
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 4px 10px; color: var(--fg-2); white-space: nowrap;
}
.pill.on { color: var(--fg); }
.pill .led { width: 6px; height: 6px; border-radius: 50%; background: var(--fg);
             box-shadow: 0 0 8px rgba(255,255,255,.7); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }

/* key/value rows */
.kvs { padding: 4px 18px 12px; }
.kvs .r {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px;
}
.kvs .r:last-child { border-bottom: 0; }
.kvs .r span { color: var(--fg-2); }
.kvs .r b { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.kvs .r b.faint { color: var(--fg-3); font-weight: 400; }
.kvs .addr {
  font-family: var(--mono); font-size: 11.5px; color: var(--fg-3);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 9px 12px; margin-top: 10px; display: flex; justify-content: space-between; gap: 12px;
}
.kvs .addr b { color: var(--fg-2); font-weight: 400; }

/* spec strip */
.spec {
  display: grid; gap: 1px; background: var(--line-2);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.spec > div { background: var(--bg-2); padding: 16px 20px; }
.spec .k { font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
           text-transform: uppercase; color: var(--fg-3); }
.spec .v { margin-top: 7px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; }

/* ── section heads ────────────────────────────────────── */
section { padding-block: var(--pad); }
.head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.head .lhs { max-width: 620px; }
.head p { margin-top: 14px; font-size: 15px; }
.head .rhs { margin-left: auto; }

/* ── data table ───────────────────────────────────────── */
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--r);
            background: var(--surface); overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%; min-width: 760px; }
table.data th {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 400; text-align: right; padding: 14px 18px;
  border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
table.data th:first-child { text-align: left; }
table.data td { padding: 15px 18px; text-align: right; border-bottom: 1px solid var(--line-2);
                font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data td:first-child { text-align: left; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .15s ease; }
table.data tbody tr:hover { background: rgba(255,255,255,.025); }
.mkt { display: flex; align-items: center; gap: 12px; }
.mkt .badge {
  width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto;
  background: var(--surface-2); border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; color: var(--fg-2);
}
.mkt .nm { font-weight: 500; letter-spacing: -.01em; }
.mkt .sub { font-family: var(--mono); font-size: 11px; color: var(--fg-3); margin-top: 2px; }
.tag { display: inline-block; font-size: 12px; color: var(--fg-2);
       border: 1px solid var(--line-2); background: var(--surface);
       border-radius: 7px; padding: 4px 9px; }
.null { font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
.tbl-empty { padding: 56px 20px; text-align: center; }
.tbl-empty h3 { font-size: 17px; margin-bottom: 8px; }
.tbl-empty p { font-size: 14px; max-width: 42ch; margin-inline: auto; }

/* ── step cards ───────────────────────────────────────── */
.steps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.step { background: var(--surface); border: 1px solid var(--line);
        border-radius: 14px; padding: 20px; }
.step .n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line);
           display: grid; place-items: center; font-family: var(--mono); font-size: 11px;
           color: var(--fg-2); margin-bottom: 16px; }
.step h3 { margin-bottom: 7px; }
.step p { font-size: 13.5px; margin: 0; line-height: 1.55; }

/* ── generic cards ────────────────────────────────────── */
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line);
        border-radius: 14px; padding: 22px; }
.card .big { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.045em;
             margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 13.5px; margin: 0; line-height: 1.55; }

/* ── two column prose ─────────────────────────────────── */
.duo { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.duo h3 { margin-bottom: 8px; }
.duo p { font-size: 14.5px; }
.duo > div + div { margin-top: 0; }
.blk + .blk { margin-top: 28px; }

/* ── range ────────────────────────────────────────────── */
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 3px; margin: 0;
  border-radius: 3px; background: rgba(255,255,255,.16); outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: var(--fg); cursor: pointer; box-shadow: 0 0 0 4px rgba(255,255,255,.1);
}
input[type=range]::-moz-range-thumb {
  width: 15px; height: 15px; border: 0; border-radius: 50%;
  background: var(--fg); cursor: pointer; box-shadow: 0 0 0 4px rgba(255,255,255,.1);
}
input[type=range]::-moz-range-track { background: rgba(255,255,255,.16); height: 3px; border-radius: 3px; }
input[type=range]:focus-visible { outline: 2px solid var(--fg); outline-offset: 6px; }

code { font-family: var(--mono); font-size: .88em; background: var(--surface-2);
       padding: 2px 6px; border-radius: 5px; color: var(--fg); }

/* ── footer ───────────────────────────────────────────── */
footer { border-top: 1px solid var(--line-2); padding-block: 40px 64px; }
.foot { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.foot p { font-size: 12.5px; color: var(--fg-3); max-width: 56ch; margin: 0; }
.foot .links { display: flex; gap: 20px; font-size: 13px; color: var(--fg-2); }
.foot .links a:hover { color: var(--fg); }

/* ── motion ───────────────────────────────────────────── */
.js .rise { opacity: 0; transform: translateY(14px);
            transition: opacity .7s var(--ease), transform .7s var(--ease);
            transition-delay: var(--d, 0s); }
.js .rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pill .led { animation: none; }
}

/* contract address ─────────────────────────────────────────────────────── */
.ca {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 12px; padding: 11px 12px 11px 14px;
}
.ca .tick { flex: 0 0 auto; font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; }
.ca .lbl {
  flex: 0 0 auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fg-3);
}
.ca .val {
  min-width: 0; font-family: var(--mono); font-size: 12px; color: var(--fg-2);
  overflow-wrap: anywhere; transition: color .16s ease;
}
.ca .val:hover { color: var(--fg); }
.ca-copy {
  margin-left: auto; flex: 0 0 auto; appearance: none; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--fg-2);
  border-radius: 7px; padding: 5px 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  transition: color .16s ease, border-color .16s ease;
}
.ca-copy:hover { color: var(--fg); border-color: rgba(255,255,255,.28); }
.ca-hero { margin-top: 26px; max-width: 520px; }
.ca-foot { margin-top: 40px; }
@media (max-width: 560px) { .ca-copy { margin-left: 0; } }
