:root {
  --bg: #f2f1ec;
  --bg-2: #eae8e1;
  --card: #fbfaf7;
  --card-solid: #fbfaf7;
  --raise: #ecebe5;
  --line: #e3e1d9;
  --line-2: #d6d3c9;
  --line-3: #b9b6aa;
  --text: #0a1733;
  --ink: #0a1733;
  --muted: #4f5a72;
  --dim: #858c9b;
  --grey: #8a919e;
  --white: #0a1733;
  --navy: #0f2150;
  --navy-2: #1a3270;
  --up: #12895a;
  --down: #c8323f;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #fff; color: #02040b; }
img, svg { display: block; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(1, 2, 7, .92);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 2px; }
.nav a {
  padding: 7px 12px; border-radius: 999px; color: var(--muted); font-size: 14px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); background: var(--raise); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sol-pill {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2);
  border-radius: 999px; font: 12.5px var(--mono); color: var(--muted); white-space: nowrap;
}
.sol-pill b { color: var(--text); font-weight: 500; }
.top .menu-btn { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-3);
  background: transparent; font-size: 14.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { border-color: var(--grey); }
.btn:active { transform: scale(.98); }
.btn.solid { background: var(--white); color: #02040b; border-color: var(--white); }
.btn.solid:hover { background: #dfe5ee; border-color: #dfe5ee; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font: 12.5px var(--mono); color: var(--muted);
  letter-spacing: .02em;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(62, 207, 142, .15); }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; font-weight: 600; }
h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: .98; }
h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.04; }
h3 { font-size: 19px; letter-spacing: -.02em; line-height: 1.3; }
h1 .soft, h2 .soft { color: var(--grey); }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 540px; }
.section { padding: 120px 0 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.section-head p { margin: 0; color: var(--muted); font-size: 16.5px; max-width: 480px; justify-self: end; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 24px; }
.hero .cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero .facts { display: flex; gap: 32px; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero .facts div { font-size: 13px; color: var(--dim); }
.hero .facts b { display: block; font: 500 22px var(--sans); color: var(--text); letter-spacing: -.02em; }

/* ticket */
.ticket {
  position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 22px; box-shadow: 0 40px 120px -40px rgba(19, 37, 74, .9), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.ticket-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.ticket-head .t { font: 12.5px var(--mono); color: var(--muted); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; gap: 2px; }
.seg button {
  border: 0; background: none; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; color: var(--muted); cursor: pointer;
  transition: background .2s, color .2s;
}
.seg button.on { background: var(--white); color: #02040b; }
.amount {
  display: flex; align-items: baseline; gap: 10px; padding: 18px 18px 14px; border: 1px solid var(--line-2);
  border-radius: var(--r); background: rgba(2, 4, 11, .6);
}
.amount input {
  width: 100%; background: none; border: 0; outline: 0; font: 500 40px var(--sans); letter-spacing: -.03em; min-width: 0;
}
.amount .unit { font: 14px var(--mono); color: var(--muted); }
.amount-sub { display: flex; justify-content: space-between; font: 12px var(--mono); color: var(--dim); padding: 8px 4px 0; }
.range { width: 100%; margin: 16px 0 6px; accent-color: #fff; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 20px; background: none; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--p, 30%), var(--line-2) var(--p, 30%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; margin-top: -7px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .12); cursor: grab; }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: #fff; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; }

.split { margin-top: 14px; }
.split-bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; background: var(--line); gap: 2px; }
.split-bar i { display: block; height: 100%; transition: flex-grow .5s var(--ease); }
.split-bar .a { background: #fff; }
.split-bar .b { background: #5d6a82; }
.split-bar .c { background: var(--line-2); }
.rows { margin-top: 14px; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 9px 2px; font-size: 14px; border-bottom: 1px dashed var(--line); }
.row:last-child { border-bottom: 0; }
.row .k { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.row .k i { width: 8px; height: 8px; border-radius: 2px; }
.row .v { font-family: var(--mono); font-size: 13.5px; }
.row .v small { color: var(--dim); margin-left: 8px; }
.buys {
  margin-top: 14px; padding: 16px 18px; border-radius: var(--r); background: linear-gradient(180deg, var(--navy) 0%, #0c1834 100%);
  border: 1px solid var(--navy-2);
}
.buys .lbl { font: 12px var(--mono); color: #aab6cc; }
.buys .big { font-size: 26px; font-weight: 600; letter-spacing: -.03em; margin-top: 2px; }
.buys .big .serif { font-size: 28px; color: #c9d3e4; }
.buys .note { font-size: 12.5px; color: #8a97b0; margin-top: 4px; }

/* ---------- marquee of models ---------- */
.strip { margin-top: 96px; border-block: 1px solid var(--line); overflow: hidden; position: relative; }
.strip::before, .strip::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; }
.strip::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.strip::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.strip-track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-item { display: flex; align-items: center; gap: 12px; padding: 18px 30px; border-right: 1px solid var(--line); white-space: nowrap; font-size: 14px; }
.strip-item .fam { font: 11px var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--raise); color: var(--muted); }
.strip-item .px { font: 12.5px var(--mono); color: var(--dim); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- flow ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.step { padding: 28px 26px 30px; border-right: 1px solid var(--line); position: relative; min-height: 340px; display: flex; flex-direction: column; }
.step:last-child { border-right: 0; }
.step .vis { height: 132px; margin-bottom: 26px; display: flex; align-items: center; }
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.step .tag { margin-top: auto; padding-top: 20px; font: 12px var(--mono); color: var(--dim); }

.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 100%; width: 100%; }
.mini-bars i { flex: 1; background: var(--line-2); border-radius: 3px 3px 0 0; transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease); }
.mini-bars i.hi { background: #fff; }
.in .mini-bars i { transform: scaleY(1); }

.coin-stack { position: relative; width: 100%; height: 100%; }
.coin-stack span {
  position: absolute; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #fff 0%, #c7cfdc 45%, #8a95a8 100%);
  box-shadow: 0 6px 0 #4b566b, 0 10px 20px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(-30px); transition: opacity .5s, transform .7s var(--ease);
}
.in .coin-stack span { opacity: 1; transform: none; }

.ring-vis { width: 132px; height: 132px; }
.ring-vis circle.p { stroke-dasharray: 0 400; transition: stroke-dasharray 1.4s var(--ease); }
.in .ring-vis circle.p { stroke-dasharray: var(--d) 400; }

.term-mini { width: 100%; font: 12px/1.7 var(--mono); color: var(--muted); background: rgba(2, 4, 11, .7); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.term-mini .ok { color: var(--up); }
.term-mini b { color: var(--text); font-weight: 500; }

/* ---------- families ---------- */
.fams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fam-card {
  position: relative; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--card);
  overflow: hidden; transition: border-color .3s, transform .4s var(--ease);
}
.fam-card:hover { border-color: var(--line-3); transform: translateY(-3px); }
.fam-card .glyph { width: 52px; height: 52px; margin-bottom: 40px; }
.fam-card .tick { font: 500 13px var(--mono); color: var(--muted); }
.fam-card h3 { font-size: 24px; margin: 4px 0 18px; }
.fam-card dl { margin: 0; display: grid; gap: 8px; }
.fam-card dl div { display: flex; justify-content: space-between; font-size: 13px; }
.fam-card dt { color: var(--dim); }
.fam-card dd { margin: 0; font-family: var(--mono); font-size: 12.5px; text-align: right; }
.fam-card .count { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }

/* ---------- dev ---------- */
.dev { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.dev ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.dev li { display: flex; gap: 14px; font-size: 15px; color: var(--muted); }
.dev li b { color: var(--text); font-weight: 500; }
.dev li svg { flex: none; margin-top: 4px; }
.code {
  border: 1px solid var(--line-2); border-radius: var(--r-lg); background: #01030a; overflow: hidden;
  box-shadow: 0 40px 120px -50px rgba(19, 37, 74, .9);
}
.code-tabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line); align-items: center; }
.code-tabs button { border: 0; background: none; color: var(--dim); padding: 6px 12px; border-radius: 8px; font: 12.5px var(--mono); cursor: pointer; }
.code-tabs button.on { color: var(--text); background: var(--raise); }
.code-tabs .copy { margin-left: auto; }
.code pre { margin: 0; padding: 22px 24px; font: 13px/1.75 var(--mono); color: #c8d0dd; overflow-x: auto; min-height: 250px; }
.code .c1 { color: var(--dim); }
.code .s { color: #fff; }
.code .k { color: #8f9bb3; }

/* ---------- board ---------- */
.board { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.board-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.board-head .seg { margin-right: auto; }
.search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; min-width: 240px; color: var(--dim); }
.search input { background: none; border: 0; outline: 0; width: 100%; font-size: 13.5px; color: var(--text); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 500 12px var(--mono); color: var(--dim); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.empty { padding: 72px 24px; text-align: center; }
.empty .ring { width: 64px; height: 64px; margin: 0 auto 20px; opacity: .9; }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--muted); margin: 0 auto 22px; max-width: 420px; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
details { border-bottom: 1px solid var(--line-2); }
details summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: 17px; font-weight: 500; display: flex; justify-content: space-between; gap: 20px; letter-spacing: -.01em; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font: 300 22px var(--sans); color: var(--muted); transition: transform .3s var(--ease); line-height: 1; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: -6px 0 22px; color: var(--muted); max-width: 620px; }

/* ---------- closing ---------- */
.closer {
  margin-top: 120px; padding: 72px 56px; border-radius: 32px; border: 1px solid var(--navy-2);
  background: radial-gradient(120% 140% at 85% 0%, #1b3062 0%, #0d1a38 40%, #050b1a 100%);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; position: relative; overflow: hidden;
}
.closer h2 { font-size: clamp(34px, 4.6vw, 60px); }
.closer p { color: #a8b4ca; margin: 18px 0 0; max-width: 520px; }
.closer .cta { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.closer img { position: absolute; right: -60px; top: -80px; width: 340px; opacity: .14; pointer-events: none; }

/* ---------- footer ---------- */
footer { margin-top: 100px; border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--dim); font-size: 13.5px; }
footer .wrap { display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* ---------- inner pages ---------- */
.page-head { padding: 72px 0 40px; }
.page-head h1 { font-size: clamp(38px, 5vw, 64px); margin: 16px 0 16px; }
.page-head p { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0; }
.card { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--card); padding: 26px; }
.grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; }
.field label span { color: var(--dim); font-family: var(--mono); font-size: 12px; }
.input {
  height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(2, 4, 11, .6);
  outline: 0; transition: border-color .2s; width: 100%;
}
textarea.input { height: 96px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--grey); }
.pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pick button {
  display: grid; justify-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(2, 4, 11, .5); cursor: pointer; font-size: 13px; color: var(--muted); transition: border-color .2s, background .2s, color .2s;
}
.pick button svg { width: 34px; height: 34px; }
.pick button.on { border-color: #fff; color: var(--text); background: var(--raise); }
.drop {
  display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px dashed var(--line-3); border-radius: 14px; cursor: pointer;
}
.drop .ph { width: 64px; height: 64px; border-radius: 14px; background: var(--raise); display: grid; place-items: center; overflow: hidden; flex: none; }
.drop .ph img { width: 100%; height: 100%; object-fit: cover; }
.preview-coin { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.preview-coin .ph { width: 56px; height: 56px; border-radius: 14px; background: var(--raise); overflow: hidden; display: grid; place-items: center; font-weight: 600; font-size: 20px; }
.preview-coin .ph img { width: 100%; height: 100%; object-fit: cover; }
.note-line { font-size: 13px; color: var(--dim); margin-top: 14px; text-align: center; }
.kv { display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv div:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-family: var(--mono); font-size: 13px; }

.docs { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 96px; display: grid; gap: 2px; font-size: 14px; }
.toc a { color: var(--dim); padding: 6px 0; border-left: 1px solid var(--line-2); padding-left: 14px; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.on { color: var(--text); border-color: #fff; }
.prose { max-width: 760px; }
.prose h2 { font-size: 30px; margin: 64px 0 14px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; }
.prose li { margin-bottom: 6px; }
.prose code { font: 13px var(--mono); background: var(--raise); padding: 2px 6px; border-radius: 6px; color: var(--text); }
.prose .code { margin: 18px 0; }
.prose .code pre { min-height: 0; }

.hero-grid > *, .dev > *, .faq > *, .grid-2 > *, .docs > * { min-width: 0; }
.prose code { overflow-wrap: anywhere; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 99;
  padding: 12px 18px; border-radius: 999px; background: #fff; color: #02040b; font-size: 14px; font-weight: 500;
  transition: opacity .3s, transform .3s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .dev, .faq, .grid-2, .docs { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .fams { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head p { justify-self: start; }
  .closer { grid-template-columns: 1fr; padding: 48px 28px; }
  .closer .cta { justify-content: flex-start; }
  .toc { display: none; }
}
@media (max-width: 760px) {
  .nav, .sol-pill { display: none; }
  .top .menu-btn { display: inline-flex; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #01020a; padding: 12px 16px 18px; border-bottom: 1px solid var(--line); }
  .hero { padding-top: 48px; }
  .flow, .fams, .pick { grid-template-columns: 1fr 1fr; }
  .step { border-right: 0 !important; border-bottom: 1px solid var(--line); min-height: 0; }
  .step:last-child { border-bottom: 0; }
  .flow { grid-template-columns: 1fr; }
  .section { padding-top: 88px; }
  .search { min-width: 0; flex: 1; }
  .tbl .hide-s { display: none; }
  .hero .facts { gap: 22px; }
  .ticket { padding: 16px; }
  .ticket-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .row:has(#share-seg) { flex-wrap: wrap; gap: 8px; }
  .row .v small { display: block; text-align: right; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ================= paper & ink ================= */
::selection { background: var(--ink); color: #fff; }
body { background: var(--bg); }
.top { background: rgba(242, 241, 236, .94); border-bottom-color: var(--line-2); }
.nav a.on { background: var(--ink); color: #fff; }
.sol-pill { background: var(--card); }
.btn.solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.solid:hover { background: #1a2b55; border-color: #1a2b55; }
.btn:hover { border-color: var(--ink); }
.seg { background: var(--card); }
.seg button.on { background: var(--ink); color: #fff; }
.amount, .input, .pick button { background: #fff; }
.pick button.on { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }
input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--ink) var(--p, 30%), var(--line-2) var(--p, 30%)); }
input[type=range]::-webkit-slider-thumb { background: var(--ink); box-shadow: 0 0 0 5px rgba(10, 23, 51, .12); }
input[type=range]::-moz-range-progress { background: var(--ink); }
input[type=range]::-moz-range-thumb { background: var(--ink); }
.range { accent-color: var(--ink); }
.split-bar .a { background: var(--ink); }
.split-bar .b { background: #8a93a6; }
.toc a:hover, .toc a.on { border-color: var(--ink); }
.toast { background: var(--ink); color: #fff; }
.card, .board, .fam-card, .flow { box-shadow: 0 1px 0 rgba(10, 23, 51, .03); }
.fam-card:hover { box-shadow: 0 18px 40px -24px rgba(10, 23, 51, .35); }
.board-head, .tbl th { background: #f6f5f1; }
.empty .ring { opacity: 1; }

/* the receipt: the trade calculator printed on paper */
.ticket {
  background: #fff; border: 0; border-radius: 6px 6px 0 0; padding: 26px 26px 34px;
  box-shadow: 0 30px 60px -30px rgba(10, 23, 51, .35), 0 2px 6px rgba(10, 23, 51, .06);
  font-family: var(--mono);
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, #0000 98%, #000) 50% 100% / 18px 100% repeat-x;
          mask: radial-gradient(circle 7px at 50% 100%, #0000 98%, #000) 50% 100% / 18px 100% repeat-x;
  transform: rotate(1.2deg);
}
.ticket::before {
  content: 'CREDITPAD  /  TRADE RECEIPT'; display: block; text-align: center; font: 500 11.5px var(--mono);
  letter-spacing: .28em; color: var(--dim); padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px dashed var(--line-2);
}
.ticket .amount { border-style: dashed; background: #fbfaf7; }
.ticket .amount input { font-family: var(--sans); }
.ticket .row { border-bottom-style: dashed; }
.buys { background: var(--ink); border: 0; border-radius: 10px; }
.buys .big .serif { color: #c9d3e4; }

/* flow visuals in ink */
.mini-bars i { background: var(--line-2); }
.mini-bars i.hi { background: var(--ink); }
.term-mini { background: var(--ink); border-color: var(--ink); color: #9fabc4; }
.term-mini b { color: #fff; }
.term-mini .ok { color: #5fd3a0; }

/* dark code blocks stay ink */
.code { background: var(--ink); border-color: var(--ink); box-shadow: 0 30px 60px -30px rgba(10, 23, 51, .45); }
.code-tabs { border-bottom-color: rgba(255, 255, 255, .08); }
.code-tabs button { color: #7f8aa3; }
.code-tabs button.on { color: #fff; background: rgba(255, 255, 255, .1); }
.code-tabs .copy { color: #fff; border-color: rgba(255, 255, 255, .2); }
.code .c1 { color: #6d7894; }
.code .k { color: #9fb0d6; }

/* closing panel: solid ink */
.closer { background: var(--ink); border: 0; color: #fff; }
.closer p { color: #a8b4ca; }
.closer .btn { color: #fff; border-color: rgba(255, 255, 255, .3); }
.closer .btn.solid { background: #fff; color: var(--ink); border-color: #fff; }
.closer img { opacity: .2; }

/* strip of models */
.strip { background: var(--card); }
.strip::before { background: linear-gradient(90deg, var(--card), transparent); }
.strip::after { background: linear-gradient(-90deg, var(--card), transparent); }

/* tokenizer band */
.tokens { padding: 40px 0 0; }
.tok-wrap { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--card); padding: 34px 36px; display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: center; }
.tok-text { font-size: clamp(20px, 2.3vw, 28px); line-height: 1.75; letter-spacing: -.015em; }
.tok-text span { padding: 2px 1px; border-radius: 5px; transition: background .25s, color .25s; color: #b9bdc7; }
.tok-text span.on { color: var(--ink); background: #e6e4dc; }
.tok-text span.on:nth-child(odd) { background: #d8d5ca; }
.tok-meter .lbl { font: 12px var(--mono); color: var(--dim); }
.tok-meter .val { font: 600 34px var(--sans); letter-spacing: -.03em; margin: 2px 0 14px; }
.tok-meter .val small { font-size: 15px; color: var(--dim); font-weight: 400; }
.tok-meter .kv div { font-size: 13px; }

@media (max-width: 1020px) { .tok-wrap { grid-template-columns: 1fr; } .ticket { transform: none; } }
@media (max-width: 760px) {
  .nav.open { background: var(--bg); }
  .nav.open a.on { color: #fff; }
  .tok-wrap { padding: 22px; }
}
.buys, .buys .big { color: #fff; }
.ticket .row .k, .ticket .ticket-head .t { font-family: var(--sans); }
.ticket .row:has(#share-seg) { flex-wrap: wrap; row-gap: 8px; }
.ticket .row .v small { display: block; text-align: right; margin: 0; }
.tok-wrap > * { min-width: 0; }
.tok-text span { white-space: pre-wrap; }
.coins { width: 100%; height: 100%; overflow: visible; }
.coins .c { opacity: 0; transform: translateY(-26px); transition: opacity .45s, transform .7s cubic-bezier(.3, 1.4, .5, 1); transition-delay: calc(var(--i) * .12s); }
.in .coins .c { opacity: 1; transform: none; }

/* wallet picker */
.wallet-pick { position: fixed; inset: 0; z-index: 200; background: rgba(10, 23, 51, .35); display: grid; place-items: center; padding: 16px; }
.wallet-pick-card { width: min(340px, 100%); background: #fff; border-radius: 18px; padding: 18px; display: grid; gap: 8px; box-shadow: 0 30px 80px -20px rgba(10, 23, 51, .5); }
.wallet-pick-card b { font-size: 16px; margin: 2px 4px 8px; }
.wallet-pick-card button { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-weight: 500; }
.wallet-pick-card button:hover { border-color: var(--ink); }
.wallet-pick-card button img, .wallet-pick-card button i { width: 24px; height: 24px; border-radius: 6px; background: var(--raise); }
.wallet-pick-card button.quiet { border: 0; justify-content: center; color: var(--muted); }

/* coin page */
.coin-head { display: flex; gap: 20px; align-items: center; padding: 56px 0 18px; }
.coin-pic { width: 84px; height: 84px; border-radius: 22px; background: var(--raise); overflow: hidden; display: grid; place-items: center; font-size: 30px; font-weight: 600; flex: none; }
.coin-pic img { width: 100%; height: 100%; object-fit: cover; }
.coin-head h1 { font-size: clamp(32px, 4.4vw, 52px); }
.coin-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.tag-pill { font: 12.5px var(--mono); padding: 4px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); color: var(--muted); }
.copy-pill { cursor: pointer; }
.copy-pill:hover { border-color: var(--ink); color: var(--ink); }
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.stat { padding: 16px 20px; border-right: 1px solid var(--line); display: grid; gap: 2px; }
.stat:last-child { border-right: 0; }
.stat span { font-size: 12.5px; color: var(--dim); }
.stat b { font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.quick { display: flex; gap: 6px; margin-top: 8px; }
.quick button { flex: 1; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font: 12px var(--mono); cursor: pointer; }
.quick button:hover { border-color: var(--ink); }
.coin-cell { display: flex; align-items: center; gap: 12px; }
.coin-cell .pic { width: 38px; height: 38px; border-radius: 10px; background: var(--raise); overflow: hidden; display: grid; place-items: center; font-weight: 600; flex: none; }
.coin-cell .pic img { width: 100%; height: 100%; object-fit: cover; }
.tbl tbody tr { cursor: pointer; transition: background .15s; }
.tbl tbody tr:hover { background: #f6f5f1; }
.fam-chip { font: 12px var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--raise); }
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } .stat { border-bottom: 1px solid var(--line); } }

/* credits page */
.gate { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.linkish { border: 0; background: none; padding: 0; font: 12px var(--mono); color: var(--dim); cursor: pointer; text-decoration: underline; }
.key-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.key-form .input { height: 40px; }
.key-form #k-name, .key-form button { grid-column: span 2; }
.key-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.newkey { background: var(--ink); color: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.newkey .dim { color: #9fabc4; }
.newkey .btn.solid { background: #fff; color: var(--ink); border-color: #fff; }

/* cleaner pass */
.ticket { transform: none; }
.section { padding-top: 140px; }
.section-head { margin-bottom: 56px; }
.flow, .fam-card, .board, .card, .stat-row { border-color: var(--line); }
.step { min-height: 0; padding: 32px 28px 34px; }
.fam-card .glyph { margin-bottom: 28px; }
.hero .facts { border-top-color: var(--line); }

/* ---------- hero: the brand mark as the scene ---------- */
.hero { position: relative; overflow: hidden; padding-bottom: 90px; }
.hero-grid { position: relative; z-index: 1; }
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.hero-deco img { position: absolute; width: 520px; opacity: .9; }
.hero-deco .ring-a { left: -170px; top: -150px; transform: rotate(180deg); animation: drift-a 22s ease-in-out infinite; }
.hero-deco .ring-b { right: -150px; bottom: -190px; animation: drift-b 26s ease-in-out infinite; }
.ticket-stage { position: relative; padding-top: 70px; }
.hero-logo {
  position: absolute; right: -54px; top: -40px; width: 230px; z-index: 0;
  filter: drop-shadow(0 26px 30px rgba(10, 23, 51, .22));
  animation: float 7s ease-in-out infinite;
}
.ticket-stage .ticket { position: relative; z-index: 1; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(-1deg); } }
@keyframes drift-a { 0%, 100% { transform: rotate(180deg) translate(0, 0); } 50% { transform: rotate(176deg) translate(14px, -10px); } }
@keyframes drift-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: rotate(-4deg) translate(-14px, 10px); } }

/* page heads on inner pages */
.page-head { position: relative; }
.page-head > :not(.head-deco) { position: relative; z-index: 1; }
.head-deco { position: absolute; right: -40px; top: 10px; width: 420px; height: 100%; pointer-events: none; }
.head-deco .hd-rings { position: absolute; right: -60px; top: -40px; width: 360px; opacity: .85; animation: drift-b 26s ease-in-out infinite; }
.head-deco .hd-logo { position: absolute; right: 90px; top: 70px; width: 170px; filter: drop-shadow(0 22px 26px rgba(10, 23, 51, .2)); animation: float 7s ease-in-out infinite; }

@media (max-width: 1020px) {
  .hero-logo { width: 170px; right: -10px; top: -20px; }
  .head-deco { opacity: .5; }
  .head-deco .hd-logo { display: none; }
}
@media (max-width: 760px) {
  .hero-deco img { width: 320px; }
  .ticket-stage { padding-top: 50px; }
  .hero-logo { width: 130px; right: 0; top: -10px; }
  .head-deco { display: none; }
}
.ticket-stage { padding-top: 150px; margin-top: -60px; }
.hero-logo { width: 300px; right: -60px; top: -16px; }

/* ---------- breathing room below the page heads ---------- */
.page-head { padding-bottom: 64px; }
.head-deco { top: 0; height: 100%; overflow: hidden; } /* the rings never spill onto what follows */
.board-stats { margin-bottom: 20px; grid-template-columns: repeat(4, 1fr); }
.board-stats .stat { padding: 20px 24px; }
.board-stats .stat b { font-size: 22px; }
.board { border-radius: 26px; }
.board-head { padding: 18px 22px; gap: 14px; }
.tbl th { padding: 14px 22px; }
.tbl td { padding: 16px 22px; }
.empty { padding: 88px 24px 96px; }
.empty-logo { width: 112px; height: 112px; margin: 0 auto 26px; display: block; filter: drop-shadow(0 18px 22px rgba(10, 23, 51, .18)); animation: float 7s ease-in-out infinite; }
.empty h3 { font-size: 22px; margin-bottom: 10px; }
.empty p { font-size: 15.5px; margin-bottom: 28px; }
.empty-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 900px) { .board-stats { grid-template-columns: 1fr 1fr; } }

/* ---------- centred page heads, no grey ---------- */
.page-head { text-align: center; }
.page-head h1 { margin-left: auto; margin-right: auto; }
.page-head h1 .soft { color: #2f4fc2; }
.page-head p { margin: 0 auto; max-width: 620px; color: #1f2b52; }
.page-head .eyebrow { color: #1f2b52; }
.head-deco { left: -40px; right: -40px; width: auto; }
.head-deco .hd-rings-l { position: absolute; left: -70px; top: -30px; width: 330px; opacity: .85; transform: rotate(180deg); animation: drift-a 22s ease-in-out infinite; }
.head-deco .hd-logo { right: 70px; }
.empty p { color: #1f2b52; }
@media (max-width: 1100px) { .head-deco .hd-logo { width: 130px; right: 20px; top: 40px; } }
@media (max-width: 1020px) { .head-deco .hd-rings-l { display: none; } }

/* pale pearl logo: a soft navy shadow keeps it standing off the paper */
.hero-logo, .head-deco .hd-logo, .empty-logo { filter: drop-shadow(0 18px 28px rgba(10, 23, 51, .16)) drop-shadow(0 2px 4px rgba(10, 23, 51, .08)); }

/* ================= Creditpad: colours taken from the Mist logo ================= */
:root {
  --bg: #f5f7fd;
  --bg-2: #edf1fb;
  --card: #ffffff;
  --card-solid: #ffffff;
  --raise: #eef2fc;
  --line: #e4e9f6;
  --line-2: #d6def3;
  --line-3: #b4c4f3;
  --text: #1b2550;
  --ink: #5e7acf;
  --muted: #4c5985;
  --dim: #8794bd;
  --grey: #8098dd;
  --white: #5e7acf;
  --navy: #5e7acf;
  --navy-2: #728ad5;
}
body { background: var(--bg); }
::selection { background: #8ba3ec; color: #fff; }
.top { background: rgba(245, 247, 253, .92); border-bottom-color: var(--line); }
.btn.solid, .nav a.on, .seg button.on { background: linear-gradient(160deg, #8ba3ec 0%, #5e7acf 100%); border-color: #6f86d9; color: #fff; }
.btn.solid:hover { background: linear-gradient(160deg, #7d94dc 0%, #4f6bc4 100%); border-color: #5e7acf; }
.btn:hover { border-color: #8ba3ec; }
h1 .soft, h2 .soft, .page-head h1 .soft { color: #7d94dc; }
.serif { color: #5e7acf; }
.ticket { box-shadow: 0 30px 60px -30px rgba(94, 122, 207, .45), 0 2px 6px rgba(94, 122, 207, .08); }
.ticket .amount { background: #f7f9fe; }
.buys { background: linear-gradient(160deg, #8ba3ec 0%, #5e7acf 100%); }
.buys .lbl, .buys .note { color: #eef2fc; }
.buys .big .serif { color: #ffffff; }
.split-bar .a { background: #5e7acf; }
.split-bar .b { background: #b4c4f3; }
.mini-bars i { background: var(--line-2); }
.mini-bars i.hi { background: linear-gradient(180deg, #8ba3ec, #5e7acf); }
.term-mini, .code { background: #1f2c62; border-color: #1f2c62; }
.closer { background: linear-gradient(150deg, #8ba3ec 0%, #5e7acf 55%, #4a64bd 100%); }
.closer p { color: #eef2fc; }
.closer .btn.solid { background: #fff; color: #4a64bd; border-color: #fff; }
.fam-card:hover { box-shadow: 0 18px 40px -24px rgba(94, 122, 207, .45); }
.board-head, .tbl th { background: #f8faff; }
.tbl tbody tr:hover { background: #f4f7ff; }
.newkey { background: #1f2c62; }
.toast { background: #5e7acf; }
input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(90deg, #5e7acf var(--p, 30%), var(--line-2) var(--p, 30%)); }
input[type=range]::-webkit-slider-thumb { background: #5e7acf; box-shadow: 0 0 0 5px rgba(94, 122, 207, .18); }
input[type=range]::-moz-range-progress, input[type=range]::-moz-range-thumb { background: #5e7acf; }
.eyebrow .dot { background: #5e7acf; box-shadow: 0 0 0 3px rgba(94, 122, 207, .18); }
.pick button.on { border-color: #5e7acf; box-shadow: 0 0 0 1px #5e7acf; }

/* scattered logos (hero + page heads) */
.scatter { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.scatter img { position: absolute; transform: rotate(var(--r)); animation: drift-logo ease-in-out infinite; }
@keyframes drift-logo { 0%, 100% { transform: rotate(var(--r)) translateY(0); } 50% { transform: rotate(calc(var(--r) + 3deg)) translateY(-10px); } }
.head-deco.scatter { left: -60px; right: -60px; top: -20px; bottom: 0; width: auto; height: auto; opacity: 1; }
@media (max-width: 760px) { .scatter img:nth-child(n+5) { display: none; } .head-deco.scatter { display: block; opacity: .6; } }

/* chart + message box in the logo's blues */
.mini-bars i { background: linear-gradient(180deg, #dee5fa 0%, #c4d0f5 100%); }
.mini-bars i.hi { background: linear-gradient(180deg, #9cb1ef 0%, #5e7acf 100%); }
.term-mini { background: linear-gradient(160deg, #9cb1ef 0%, #6f86d9 60%, #5e7acf 100%); border: 0; color: #eef2fc; box-shadow: 0 14px 30px -16px rgba(94, 122, 207, .6); }
.term-mini b { color: #ffffff; }
.term-mini .ok { color: #ffffff; }
.term-mini .dim { color: #dfe6fb; }
.step { background: #ffffff; }

/* a few logos in the lower sections */
section.section { position: relative; }
section.section > .wrap { position: relative; z-index: 1; }
.sec-scatter { top: 40px; }
@media (max-width: 1100px) { .sec-scatter img:nth-child(n+3) { display: none; } }
@media (max-width: 760px) { .sec-scatter { display: none; } }
.empty { padding: 72px 24px 80px; }

/* code boxes + the new-key box in the logo's blues (were dark navy) */
.code { background: linear-gradient(160deg, #8ba3ec 0%, #6f86d9 50%, #5e7acf 100%); border: 0; box-shadow: 0 30px 60px -30px rgba(94, 122, 207, .55); }
.code pre { color: #ffffff; }
.code .c1 { color: #dfe6fb; }
.code .k { color: #e9eeff; font-weight: 600; }
.code .s { color: #ffffff; }
.code-tabs { border-bottom-color: rgba(255, 255, 255, .22); }
.code-tabs button { color: #e3e9fb; }
.code-tabs button.on { color: #ffffff; background: rgba(255, 255, 255, .2); }
.code-tabs .copy { color: #ffffff; border-color: rgba(255, 255, 255, .4); }
.newkey { background: linear-gradient(160deg, #8ba3ec 0%, #5e7acf 100%); }
.newkey .dim { color: #eef2fc; }
.newkey .btn.solid { background: #fff; color: #4a64bd; border-color: #fff; }
