/* POOL ZERO — ivory, ink, vermillion */
:root {
  --bone: #F3EEE3;
  --paper: #FBF8F1;
  --ink: #141210;
  --ink-2: #3B3631;
  --muted: #6E665C;
  --line: #DCD3C3;
  --line-2: #C9BEAA;
  --fire: #E8401C;
  --fire-ink: #B42C0E;      /* fire text on light bg (AA) */
  --fire-soft: #FBE3DA;
  --ok: #2F6B3C;
  --ok-soft: #DDEBDD;
  --warn: #8A5A00;
  --warn-soft: #F5E8C8;

  --font-display: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Satoshi', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --text-hero: clamp(2.6rem, 1.4rem + 5vw, 5.4rem);

  --r: 6px;
  --r-lg: 12px;
  --gutter: clamp(1.1rem, 0.6rem + 2.4vw, 2.5rem);
  --maxw: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: -0.01em; }
.small { font-size: var(--text-sm); color: var(--muted); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--fire); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: .5rem .8rem; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: var(--r); padding: .55rem 1rem; font-size: var(--text-sm); font-weight: 700;
  letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), transform .12s var(--ease), border-color .18s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }
.btn--fire { background: var(--fire); border-color: var(--fire); color: #fff; }
.btn--fire:hover:not([disabled]) { background: var(--fire-ink); border-color: var(--fire-ink); }
.btn--ghost:hover:not([disabled]) { background: var(--ink); color: var(--paper); }
.btn--lg { padding: .85rem 1.4rem; font-size: var(--text-base); }
.btn--tiny { padding: .25rem .6rem; font-size: var(--text-xs); border-width: 1px; }
.btn--block { width: 100%; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 28px; height: 28px; }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .14em; }
.brand--sm .brand__mark { width: 22px; height: 22px; }
.brand--sm .brand__word { font-size: 1.05rem; }
.nav { display: flex; gap: 1.4rem; margin-left: .5rem; }
.nav a { text-decoration: none; font-size: var(--text-sm); font-weight: 500; color: var(--ink-2); }
.nav a:hover { color: var(--fire-ink); }
.top__right { margin-left: auto; display: flex; align-items: center; gap: .75rem; }

.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem; border-radius: 999px; font-size: var(--text-xs); font-weight: 700; border: 1px solid var(--line-2); background: var(--bone); white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pill[data-state="live"] { background: var(--ok-soft); border-color: #B7D3B9; color: var(--ok); }
.pill[data-state="live"] i { background: var(--ok); }
.pill[data-state="pending"] { background: var(--warn-soft); border-color: #E3CF9D; color: var(--warn); }
.pill[data-state="pending"] i { background: var(--fire); animation: pulse 1.6s infinite; }
.pill[data-state="error"] i { background: var(--fire); }
@keyframes pulse { 50% { opacity: .25; } }

/* hero */
.hero { padding: clamp(3rem, 6vw, 6rem) 0 clamp(2.5rem, 5vw, 4.5rem); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.eyebrow { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 1rem; }
.eyebrow--fire { color: var(--fire); }
.hero__title { font-family: var(--font-display); font-size: var(--text-hero); line-height: .98; letter-spacing: -0.025em; font-weight: 500; }
.hero__title em { font-style: italic; color: var(--fire-ink); }
.hero__lede { margin-top: 1.5rem; font-size: var(--text-lg); color: var(--ink-2); max-width: 36rem; }
.hero__cta { display: flex; gap: .8rem; margin-top: 2rem; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(4, auto); gap: 1.6rem; margin: 2.6rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); justify-content: start; }
.facts dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.facts dd { margin: .25rem 0 0; font-weight: 700; font-size: var(--text-sm); }

.range { margin: 0; background: var(--bone); border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: 1rem 1rem 1.2rem; box-shadow: 8px 8px 0 var(--ink); }
.range__head { font-size: var(--text-xs); color: var(--muted); padding-bottom: .6rem; border-bottom: 1px dashed var(--line-2); overflow-wrap: anywhere; }
.range__svg { width: 100%; height: auto; margin-top: .4rem; }
.svgt { font-family: var(--font-mono); font-size: 13px; fill: var(--ink); font-weight: 500; }
.svgt--m { fill: var(--muted); font-size: 12px; font-weight: 400; }
.svgt--f { fill: var(--fire-ink); font-weight: 500; }
.arc { animation: dash 2.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -36; } }
.range__cap { font-size: var(--text-sm); color: var(--ink-2); margin-top: .4rem; }

/* strip */
.strip { background: var(--ink); color: var(--paper); }
.strip__in { display: flex; align-items: center; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }
.strip__label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .16em; color: #B8AE9F; font-weight: 700; }
.strip__addr { font-size: clamp(.78rem, .6rem + .6vw, 1.05rem); color: #fff; overflow-wrap: anywhere; }
.strip .btn--tiny { border-color: #6B635A; color: var(--paper); }
.strip .btn--tiny:hover { background: var(--paper); color: var(--ink); }
.strip__chains { margin-left: auto; font-size: var(--text-sm); color: #B8AE9F; }
.strip__chains b { color: var(--fire); }

/* sections */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section--bone { background: var(--bone); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .eyebrow { color: #B8AE9F; }
.section--ink .eyebrow--fire { color: var(--fire); }
.section--ink .sec-lede { color: #CFC6B8; }
.sec-head { max-width: 46rem; margin-bottom: 2.4rem; }
.sec-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.sec-head h2 { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.05; letter-spacing: -0.02em; }
.sec-lede { margin-top: 1rem; color: var(--ink-2); font-size: var(--text-lg); }
.note { margin-top: 1.2rem; font-size: var(--text-sm); color: var(--muted); max-width: 52rem; }

/* status */
.status { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.st { background: var(--paper); padding: 1.2rem; display: flex; flex-direction: column; gap: .55rem; min-height: 190px; }
.st__name { font-weight: 700; }
.st__addr { font-size: var(--text-xs); color: var(--muted); overflow-wrap: anywhere; }
.st__state { font-size: var(--text-sm); font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.st__state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.st__state[data-s="live"] { color: var(--ok); }
.st__state[data-s="live"]::before { background: var(--ok); }
.st__state[data-s="missing"] { color: var(--fire-ink); }
.st__state[data-s="missing"]::before { background: var(--fire); }
.st__state[data-s="bad"] { color: var(--fire-ink); }
.st__desc { font-size: var(--text-sm); color: var(--ink-2); flex: 1; }
.st .btn { align-self: flex-start; }
.skel { background: linear-gradient(90deg, var(--bone), #ECE5D7, var(--bone)); background-size: 200% 100%; animation: sh 1.3s infinite; border-radius: 4px; height: .9rem; }
@keyframes sh { to { background-position: -200% 0; } }

/* cards / forms */
.card { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: clamp(1.1rem, 2vw, 1.6rem); }
.launch__grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 1.5rem; align-items: start; }
.form { display: flex; flex-direction: column; gap: 1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field > span { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.field small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r);
  padding: .65rem .75rem; font-size: var(--text-base); transition: border-color .15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: none; }
.field--inline { flex-direction: row; align-items: center; justify-content: space-between; }
.field--inline select { width: auto; }
.out { display: flex; align-items: center; min-height: 46px; padding: .65rem .75rem; border: 1.5px dashed var(--line-2); border-radius: var(--r); font-family: var(--font-mono); font-size: var(--text-sm); overflow-wrap: anywhere; }
.form__msg { font-size: var(--text-sm); min-height: 1.3em; color: var(--ink-2); overflow-wrap: anywhere; }
.form__msg[data-t="err"] { color: var(--fire-ink); }
.form__msg[data-t="ok"] { color: var(--ok); }
.form__msg a { font-weight: 700; }

.preview { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.preview__top { display: flex; gap: .9rem; align-items: center; padding-bottom: 1.1rem; border-bottom: 1px solid #3A352F; }
.preview__name { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; overflow-wrap: anywhere; }
.preview__sym { color: var(--fire); font-size: var(--text-sm); margin-top: .2rem; }
.ticks { list-style: none; margin: 1rem 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.ticks li { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--text-sm); }
.ticks span { color: #B8AE9F; }
.ticks b { font-weight: 500; text-align: right; }
.preview__foot { font-size: var(--text-xs); color: #B8AE9F; border-top: 1px solid #3A352F; padding-top: .9rem; }
.avatar { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; background: var(--fire); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; overflow: hidden; border: 2px solid var(--ink); }
.avatar { position: relative; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.avatar img.is-ok { opacity: 1; }
.avatar--lg { width: 64px; height: 64px; flex-basis: 64px; }

/* market */
.market { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tk { text-align: left; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: 1.1rem; cursor: pointer; display: flex; flex-direction: column; gap: .9rem; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.tk:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.tk__top { display: flex; gap: .8rem; align-items: center; min-width: 0; }
.tk__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk__sym { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--fire-ink); }
.tk__desc { font-size: var(--text-sm); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.tk__stats { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--muted); border-top: 1px solid var(--line); padding-top: .7rem; gap: .5rem; }
.tk__stats b { color: var(--ink); font-family: var(--font-mono); font-weight: 500; }
.empty { grid-column: 1 / -1; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: 3rem 1.5rem; text-align: center; color: var(--ink-2); }
.empty h3 { font-family: var(--font-display); font-size: var(--text-xl); margin-bottom: .5rem; color: var(--ink); }

/* proof */
.table-wrap { overflow-x: auto; border: 1px solid #3A352F; border-radius: var(--r-lg); }
.proof { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 560px; }
.proof th, .proof td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid #2C2824; }
.proof th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: #B8AE9F; font-weight: 700; }
.proof tr:last-child td { border-bottom: 0; }
.proof__us td { background: #1F1B18; }
.proof__us td:first-child { color: var(--fire); font-weight: 700; }
.canons { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem 2rem; }
.canons li { border-top: 1.5px solid #4A443D; padding-top: 1.1rem; }
.canons .num { font-family: var(--font-display); color: var(--fire); font-size: 1.6rem; font-style: italic; }
.canons h3 { font-size: var(--text-lg); font-weight: 700; margin: .3rem 0 .4rem; }
.canons p { color: #CFC6B8; font-size: var(--text-sm); }

/* docs */
.docs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.docs h3, .disclaimer h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: 1rem; }
.kv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.kv li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: var(--text-sm); }
.kv li:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.kv--addr li { flex-direction: column; gap: .15rem; }
.kv--addr b { text-align: left; }
.disclaimer { margin-top: 1.2rem; background: var(--bone); border-color: var(--line-2); }
.disclaimer p { font-size: var(--text-sm); color: var(--ink-2); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 1.6rem 0 2.2rem; font-size: var(--text-sm); color: var(--muted); }
.foot__in { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.foot__in .mono { margin-left: auto; }

/* dialog */
.dlg { width: min(520px, calc(100vw - 1.5rem)); max-height: calc(100vh - 2rem); border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: 1.4rem; background: var(--paper); color: var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.dlg::backdrop { background: rgba(20, 18, 16, .55); }
.dlg__close { position: absolute; right: 1rem; top: 1rem; }
.dlg__head { display: flex; gap: .9rem; align-items: center; padding-right: 4rem; }
.dlg__head h3 { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; overflow-wrap: anywhere; }
.dlg .field, .dlg .btn--block, .dlg .tabs { margin-top: .9rem; }
.td__desc { margin-top: .9rem; font-size: var(--text-sm); color: var(--ink-2); overflow-wrap: anywhere; }
.td__desc:empty { display: none; }
.td__links { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.td__links:empty { display: none; }
.td__links a { font-size: var(--text-xs); font-weight: 700; border: 1px solid var(--line-2); border-radius: 999px; padding: .2rem .65rem; text-decoration: none; }
.dlg .kv { margin-top: .8rem; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.tab { border: 0; background: transparent; padding: .6rem; font-weight: 700; cursor: pointer; }
.tab.is-on { background: var(--ink); color: var(--paper); }
.td__row { display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; }

.toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 140%); background: var(--ink); color: var(--paper); padding: .7rem 1.1rem; border-radius: var(--r); font-size: var(--text-sm); transition: transform .25s var(--ease); z-index: 60; max-width: calc(100vw - 2rem); }
.toast:empty { visibility: hidden; }
.toast.is-on { transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 1000px) {
  .hero__grid, .launch__grid, .docs__grid { grid-template-columns: 1fr; }
  .status { grid-template-columns: 1fr 1fr; }
  .market, .canons { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .top__in { gap: .75rem; }
  .pill span { display: none; }
  .pill { padding: .45rem; }
  .strip__chains { margin-left: 0; }
  .status, .market, .canons, .row2, .row3 { grid-template-columns: 1fr; }
  .sec-head--row { flex-direction: column; align-items: start; }
  .range { box-shadow: 5px 5px 0 var(--ink); }
  .foot__in .mono { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.dlg__head > div { min-width: 0; }
#tdAddr { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .dlg { box-shadow: 5px 5px 0 var(--ink); padding: 1.1rem; }
  .dlg__head h3 { font-size: 1.3rem; }
  .kv li { flex-wrap: wrap; }
}
