/* ============================================================
   Telepaid — black & white
   ============================================================ */

:root {
  --bg: #050505;
  --bg-2: #0b0b0b;
  --fg: #f4f4f2;
  --muted: #9a9a95;
  --dim: #62625e;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .2);
  --lift: rgba(255, 255, 255, .3);
  --paper: #f4f4f2;
  --ink: #0a0a0a;

  --display: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 24px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ton-inner: #050505;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.55 var(--display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: var(--fg); color: var(--bg); }

img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
section[id] { scroll-margin-top: 72px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.mono { font-family: var(--mono); }

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

/* ---------- shared bits ---------- */

.ton-ico { width: 18px; height: 18px; flex: none; color: var(--fg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  font: 600 15px/1 var(--display);
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 0 var(--lift); }
.btn-primary:active { transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent); }
.btn-ghost:disabled { opacity: .4; cursor: not-allowed; }
.btn-lg { height: 56px; padding: 0 26px; font-size: 16px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-sm svg { width: 16px; height: 16px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font: 500 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.kicker.live::before { display: none; }

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--fg) 60%, transparent);
  animation: pulse 2s infinite;
}

h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
h2 em, .hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.015em;
  font-size: 1.07em;
}

.section-sub {
  margin: 20px 0 0;
  max-width: 36em;
  font-size: 18px;
  color: var(--muted);
  text-wrap: pretty;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: border-color .2s, gap .25s var(--ease);
  white-space: nowrap;
}
.link-arrow svg { width: 18px; height: 18px; }
.link-arrow:hover { border-color: var(--fg); gap: 14px; }

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, .74);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 36px; height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.035em;
  text-decoration: none;
  color: var(--fg);
}
.brand-mark { width: 30px; height: 30px; color: var(--fg); --logo-stroke: 80; }

.nav-links { display: flex; gap: 2px; margin-right: auto; }
.nav-links a {
  position: relative;
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  color: var(--fg);
  transition: border-color .2s, background-color .2s;
}
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { border-color: var(--fg); background: rgba(255, 255, 255, .05); }

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--fg);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.nav.open .menu-btn span:first-child { top: 19px; transform: rotate(45deg); }
.nav.open .menu-btn span:last-child { top: 19px; transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 104px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 65% 70% at 22% 35%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 65% 70% at 22% 35%, #000 10%, transparent 72%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 48px;
  align-items: center;
}

.ton-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font: 500 13px/1 var(--display);
  color: var(--fg);
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.ton-pill:hover { border-color: var(--fg); background: rgba(255, 255, 255, .06); }
.ton-pill .ton-ico { width: 24px; height: 24px; }
.ton-pill .sep { width: 1px; height: 14px; background: var(--line-2); }
.ton-pill .muted { color: var(--muted); }
.ton-pill.small { padding: 4px 14px 4px 4px; font-size: 12.5px; }
.ton-pill.small .ton-ico { width: 20px; height: 20px; }

.hero-title {
  margin: 30px 0 26px;
  font-weight: 800;
  font-size: clamp(44px, 7.1vw, 100px);
  line-height: .93;
  letter-spacing: -.045em;
  word-spacing: .03em;
}
.hero-title .line { display: block; white-space: nowrap; }
.hero-title em { line-height: .8; }

.handle {
  display: inline-block;
  padding: 0 .1em .02em;
  margin-left: .04em;
  background: var(--fg);
  color: var(--bg);
  letter-spacing: -.045em;
}
.caret {
  display: inline-block;
  width: .07em;
  height: .78em;
  margin-left: .06em;
  background: var(--fg);
  vertical-align: -.02em;
  animation: blink 1.05s steps(1) infinite;
}

.lede {
  max-width: 33em;
  margin: 0 0 34px;
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.lede strong { color: var(--fg); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.social-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; }
.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.social-row a svg { width: 15px; height: 15px; }
.social-row a .out { width: 13px; height: 13px; opacity: .6; transition: transform .25s var(--ease); }
.social-row a:hover { color: var(--fg); }
.social-row a:hover .out { transform: translate(2px, -2px); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid var(--line);
}
.stats > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stats dt {
  font: 500 11px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--dim);
}
.stats dd {
  margin: 0;
  font: 700 32px/1 var(--display);
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

/* --- hero visual --- */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 460px; height: 460px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .11), transparent 65%);
  pointer-events: none;
}
.ring {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
}
.ring-1 { width: 680px; height: 680px; border: 1px solid var(--line); }
.ring-2 {
  width: 580px; height: 580px;
  background: repeating-conic-gradient(rgba(255, 255, 255, .3) 0 .5deg, transparent .5deg 4deg);
  -webkit-mask: radial-gradient(circle, transparent 68.6%, #000 69%, #000 71.5%, transparent 72%);
  mask: radial-gradient(circle, transparent 68.6%, #000 69%, #000 71.5%, transparent 72%);
  animation: spin 90s linear infinite;
}
.ring-3 {
  width: 470px; height: 470px;
  border: 1px dashed rgba(255, 255, 255, .14);
  animation: spin 140s linear infinite reverse;
}

.float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(15, 15, 15, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  font: 500 12.5px/1 var(--mono);
  color: var(--muted);
  box-shadow: 0 24px 50px -24px #000;
  animation: bob 7s ease-in-out infinite;
  white-space: nowrap;
}
.float b { color: var(--fg); font-weight: 600; }
.float .ton-ico { width: 18px; height: 18px; }
.float .sq { width: 8px; height: 8px; background: var(--fg); }
.float-1 { right: calc(50% - 330px); top: 9%; }
.float-2 { left: calc(50% - 412px); bottom: 17%; animation-delay: -3.5s; }

/* --- chat mockup --- */

.chat {
  position: relative;
  z-index: 2;
  width: min(100%, 392px);
  border: 1px solid var(--line-2);
  border-radius: 26px;
  background: #0a0a0a;
  overflow: hidden;
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, .025),
    0 50px 120px -40px rgba(255, 255, 255, .16),
    0 30px 60px -30px #000;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
}
.chat-av {
  width: 38px; height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #000;
  border: 1px solid var(--line-2);
}
.chat-av svg { width: 22px; height: 22px; color: #fff; --logo-stroke: 90; translate: -1px 1px; }
.chat-title { display: flex; flex-direction: column; gap: 2px; margin-right: auto; line-height: 1.1; }
.chat-title b { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.chat-title span { font: 400 11.5px/1 var(--mono); color: var(--dim); }

/* launch form mock */
.lm-body {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px 20px;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px);
  background-size: 18px 18px;
  transition: opacity .5s var(--ease);
}
.lm-body.fade { opacity: 0; }
.lm-row { display: flex; gap: 12px; }
.lm-col { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lm-img {
  width: 104px; height: 104px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-2);
  background: rgba(255, 255, 255, .02);
  font: 700 22px/1 var(--mono);
  color: #fff;
  transition: background .35s var(--ease), border-color .35s;
}
.lm-img span { opacity: 0; transform: scale(.7); transition: opacity .35s, transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.lm-img.on { border-style: solid; border-color: var(--line-2); background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .2) 0 1px, #111 1px 7px); }
.lm-img.on span { opacity: 1; transform: none; }
.lm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 9px 12px 10px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .02);
  transition: border-color .2s, background-color .3s;
}
.lm-field > span { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.lm-field b { min-height: 19px; font: 600 15.5px/1.2 var(--display); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#lmAddr { font: 500 13px/1.45 var(--mono); letter-spacing: 0; }
.lm-field.focus { border-color: var(--fg); }
.lm-field.focus b::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; background: var(--fg); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.lm-field.pasted { background: rgba(255, 255, 255, .09); }
.lm-split { display: flex; justify-content: space-between; gap: 10px; padding: 0 2px; font: 500 11px/1.3 var(--mono); color: var(--muted); }
.lm-btn {
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .06);
  color: var(--dim);
  font: 700 15px/1 var(--display);
  letter-spacing: -.01em;
  transition: background-color .25s, color .25s, border-color .25s, transform .14s;
}
.lm-btn.ready { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.lm-btn.press { transform: scale(.97); }
.lm-btn.live { background: transparent; color: var(--fg); border-color: var(--fg); }
.lm-out { display: flex; justify-content: center; padding-top: 4px; }
.lm-out .receipt { width: 100%; animation: pop .45s cubic-bezier(.2, .9, .3, 1.15) both; }

/* receipt */
.receipt {
  --tooth: 7px;
  position: relative;
  width: 262px;
  padding: 14px 15px calc(18px + var(--tooth));
  background: var(--paper);
  color: #141414;
  font: 500 11.5px/1.6 var(--mono);
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat,
    conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat,
    conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
}
.r-head { display: flex; justify-content: space-between; font-weight: 700; letter-spacing: .08em; font-size: 10.5px; }
.r-rule { height: 0; border-top: 1px dashed #9a9a95; margin: 9px 0; }
.r-row { display: flex; align-items: baseline; gap: 6px; }
.r-row i { flex: 1; border-bottom: 1px dotted #b0b0aa; transform: translateY(-3px); }
.r-row span:first-child { color: #666661; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.r-total span:last-child { font-size: 12px; letter-spacing: 0; }
.r-total b { font-size: 21px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.r-foot { margin-top: 8px; font-size: 10.5px; color: #666661; }
.r-stamp {
  position: absolute;
  top: 40px; left: 110px;
  padding: 3px 9px 2px;
  border: 2px solid #111;
  border-radius: 4px;
  font: 800 20px/1 var(--display);
  letter-spacing: .08em;
  color: #111;
  opacity: 0;
  transform: rotate(-14deg);
  mix-blend-mode: multiply;
}
.receipt.stamped .r-stamp { animation: stamp .5s cubic-bezier(.3, 1.4, .5, 1) forwards; }

/* ============================================================
   CONTRACT
   ============================================================ */

.contract { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.contract-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.contract-label { display: flex; flex-direction: column; gap: 3px; font-weight: 700; letter-spacing: -.01em; }
.contract-label small { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.contract-addr {
  padding: 12px 16px;
  border: 1px dashed var(--line-2);
  font: 500 14px/1.4 var(--mono);
  color: var(--fg);
  text-align: center;
  overflow-wrap: anywhere;
}
.contract-addr.empty { color: var(--muted); }
.contract-actions { display: flex; gap: 10px; }

/* ============================================================
   SECTIONS
   ============================================================ */

.section { position: relative; padding: 128px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head.row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

/* --- steps --- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.step {
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  border-left: 1px solid var(--line);
  transition: background-color .3s;
}
.step:first-child { border-left: 0; padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-num {
  display: block;
  margin-bottom: 36px;
  font: 800 104px/.8 var(--display);
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .38);
  transition: color .4s var(--ease), -webkit-text-stroke-color .4s;
}
.step:hover .step-num { color: var(--fg); -webkit-text-stroke-color: var(--fg); }
.step h3 { margin: 0 0 12px; font-size: 25px; font-weight: 700; letter-spacing: -.03em; }
.step p { margin: 0; color: var(--muted); font-size: 16px; text-wrap: pretty; }
.step-ui {
  margin-top: auto;
  translate: 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .02);
  font: 500 13px/1.3 var(--mono);
  color: var(--muted);
}
.step p + .step-ui { margin-top: 32px; }
.step-ui b { color: var(--fg); font-weight: 600; }
.step-ui time { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }

/* --- live feed --- */

.feed { border-top: 1px solid var(--line-2); }
.feed-head, .feed-row {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, .9fr) 128px 104px;
  align-items: center;
  gap: 20px;
}
.feed-head {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--dim);
}
.feed-head .r { text-align: right; }
.feed-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .3s;
}
.feed-row:hover { background: rgba(255, 255, 255, .025); }
.feed-row.flash { animation: flash 1.4s var(--ease); }

.tok { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tok-av {
  width: 44px; height: 44px;
  flex: none;
  display: grid; place-items: center;
  font: 700 13px/1 var(--mono);
  border: 1px solid var(--line-2);
}
.av-0 { background: linear-gradient(135deg, #2c2c2c, #0d0d0d); color: #fff; }
.av-1 { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.av-2 { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 1px, #0d0d0d 1px 6px); color: #fff; }
.av-3 { background: radial-gradient(rgba(255, 255, 255, .28) 1px, #0d0d0d 1.3px) 0 0 / 6px 6px; color: #fff; }
.tok-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tok-name { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok-tick { font: 500 12px/1 var(--mono); color: var(--muted); }

.to { font: 500 13.5px/1.2 var(--mono); color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.to small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--dim); }

.num { font: 500 14.5px/1 var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.cell-spark { display: flex; justify-content: flex-end; }
.spark { width: 128px; height: 34px; overflow: visible; }
.spark-line { fill: none; stroke: var(--fg); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.spark-area { fill: url(#sparkFill); }
.down-row .spark-line { stroke: var(--dim); }
.cell-chg { text-align: right; }
.chg {
  display: inline-block;
  min-width: 84px;
  padding: 6px 8px;
  font: 600 12.5px/1 var(--mono);
  text-align: center;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line-2);
}
.chg.up { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chg.down { color: var(--muted); }

/* ============================================================
   INVERTED (white) SECTIONS
   ============================================================ */

.invert {
  --bg: #f4f4f2;
  --fg: #0a0a0a;
  --muted: #55554f;
  --dim: #8b8b85;
  --line: rgba(0, 0, 0, .12);
  --line-2: rgba(0, 0, 0, .28);
  --lift: rgba(0, 0, 0, .28);
  background: var(--bg);
  color: var(--fg);
  border-bottom-color: #000;
}
.invert .btn-ghost:hover { background: rgba(0, 0, 0, .05); }

/* --- split --- */

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 88px;
}
.bar { display: flex; height: 120px; border: 2px solid var(--fg); }
.bar-a {
  display: flex;
  align-items: flex-end;
  width: 80%;
  padding: 14px 18px;
  background: var(--fg);
  color: var(--bg);
  font: 800 44px/1 var(--display);
  letter-spacing: -.05em;
  overflow: hidden;
  transition: width 1.6s var(--ease) .25s;
}
.js .split-viz:not(.in) .bar-a { width: 0; }
.bar-b {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 12px;
  background: repeating-linear-gradient(-45deg, var(--fg) 0 1px, transparent 1px 8px);
}
.bar-b span { padding: 5px 8px 4px; background: var(--bg); font: 700 17px/1 var(--mono); }
.bar-legend { display: grid; grid-template-columns: 4fr 1.6fr; gap: 20px; margin-top: 18px; }
.bar-legend div { display: flex; flex-direction: column; gap: 4px; }
.bar-legend b { font: 800 26px/1 var(--display); letter-spacing: -.04em; }
.bar-legend span { font-weight: 600; }
.bar-legend small { font: 500 12px/1.3 var(--mono); color: var(--muted); }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--fg);
}
.feature { padding: 30px 32px 0; border-left: 1px solid var(--line); }
.feature:first-child { border-left: 0; padding-left: 0; }
.feature:last-child { padding-right: 0; }
.feature-idx {
  display: block;
  margin-bottom: 44px;
  font: 500 11.5px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--dim);
}
.feature h3 { margin: 0 0 10px; font-size: 23px; font-weight: 700; letter-spacing: -.03em; }
.feature p { margin: 0; color: var(--muted); text-wrap: pretty; }

/* --- TON --- */

.ton { text-align: center; overflow: hidden; }
.ton::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 900px; height: 700px;
  translate: -50% -35%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .09), transparent);
  pointer-events: none;
}
.ton-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.ton-inner h2 { max-width: 16ch; }
.ton .section-sub { margin-left: auto; margin-right: auto; }
.kicker.center::after { content: ""; width: 28px; height: 1px; background: currentColor; }

.ton-orb {
  position: relative;
  width: 124px; height: 124px;
  margin: 40px 0 92px;
  display: grid;
  place-items: center;
}
.ton-orb svg {
  width: 100%; height: 100%;
  color: var(--fg);
  filter: drop-shadow(0 0 48px rgba(255, 255, 255, .28));
}
.ton-orb-ring {
  position: absolute;
  inset: -46px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 255, 255, .35) 0 .6deg, transparent .6deg 5deg);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 66.5%, #000 71%, transparent 71.5%);
  mask: radial-gradient(circle, transparent 66%, #000 66.5%, #000 71%, transparent 71.5%);
  animation: spin 60s linear infinite;
}
.ton-orb-ring::after {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.ton-cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin-top: 72px;
  border: 1px solid var(--line-2);
  text-align: left;
  background: rgba(255, 255, 255, .015);
}
.ton-cells > div { padding: 30px 30px 32px; border-left: 1px solid var(--line); }
.ton-cells > div:first-child { border-left: 0; }
.ton-cells .feature-idx { margin-bottom: 32px; }
.ton-cells h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.ton-cells p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* --- FAQ --- */

.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 72px; align-items: start; }
.faq-side { position: sticky; top: 112px; }
.faq-side h2 { margin-bottom: 32px; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  list-style: none;
  cursor: pointer;
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: #fff; }
.plus {
  position: relative;
  flex: none;
  width: 30px; height: 30px;
  border: 1px solid var(--line-2);
  transition: background-color .25s, color .25s, border-color .25s;
}
.plus::before, .plus::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 1.5px;
  translate: -50% -50%;
  background: currentColor;
  transition: rotate .3s var(--ease);
}
.plus::after { rotate: 90deg; }
details[open] .plus { background: var(--fg); color: var(--bg); border-color: var(--fg); }
details[open] .plus::after { rotate: 0deg; }
.faq-list details p {
  margin: -6px 0 26px;
  max-width: 40em;
  padding-right: 54px;
  color: var(--muted);
  font-size: 16.5px;
  text-wrap: pretty;
}
details[open] p { animation: pop .35s var(--ease) both; }

/* --- CTA --- */

.cta { padding: 150px 0 140px; overflow: hidden; border-bottom: 0; }
.cta h2 {
  position: relative;
  max-width: 11.5ch;
  font-size: clamp(46px, 8.4vw, 132px);
  line-height: .9;
  letter-spacing: -.058em;
}
.cta .section-sub { position: relative; margin-top: 28px; }
.cta .cta-row { position: relative; margin-top: 40px; }
.cta-plane {
  position: absolute;
  right: -6vw;
  top: 50%;
  width: clamp(360px, 52vw, 780px);
  height: clamp(360px, 52vw, 780px);
  translate: 0 -50%;
  color: rgba(0, 0, 0, .06);
  --logo-stroke: 40;
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer { padding-top: 80px; overflow: hidden; background: var(--bg); border-top: 1px solid #000; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 64px;
}
.footer-blurb { max-width: 24em; margin: 16px 0 22px; color: var(--muted); }
.footer h4 {
  margin: 8px 0 18px;
  font: 500 11.5px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--dim);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { text-decoration: none; color: var(--fg); opacity: .82; transition: opacity .2s; }
.footer ul a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.wordmark {
  font: 800 clamp(80px, 21vw, 330px)/.8 var(--display);
  letter-spacing: -.055em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  padding-bottom: .045em;
  user-select: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .16), rgba(255, 255, 255, .015) 88%);
  -webkit-background-clip: text;
  background-clip: text;
}

.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px 40px;
  padding-top: 22px;
  padding-bottom: 30px;
  border-top: 1px solid var(--line);
  font: 500 12px/1.6 var(--mono);
  color: var(--dim);
}
.footer-bottom span:last-child { max-width: 62em; text-align: right; }

/* ============================================================
   KEYFRAMES
   ============================================================ */

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes flash { from { background-color: rgba(255, 255, 255, .13); } to { background-color: transparent; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--fg) 55%, transparent); }
  80%, 100% { box-shadow: 0 0 0 10px transparent; }
}
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-14deg) scale(1.9); }
  60% { opacity: .9; transform: rotate(-14deg) scale(.94); }
  100% { opacity: .85; transform: rotate(-14deg) scale(1); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1360px) {
  .float { display: none; }
}

@media (max-width: 1024px) {
  .hero { padding: 56px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { min-height: 0; padding: 40px 0; }
  .ring-1 { width: 600px; height: 600px; }
  .ring-2 { width: 520px; height: 520px; }
  .ring-3 { width: 420px; height: 420px; }
  .split-grid { grid-template-columns: 1fr; gap: 48px; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-side { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-inner { gap: 16px; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: #050505;
    border-bottom: 1px solid var(--line-2);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 16px 0; font-size: 18px; color: var(--fg); border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-cta { margin-left: auto; }
  .menu-btn { display: block; }

  .section { padding: 96px 0; }
  .section-head { margin-bottom: 44px; }
  .section-head.row { flex-direction: column; align-items: flex-start; }

  .steps { grid-template-columns: 1fr; }
  .step, .step:first-child, .step:last-child { padding: 32px 0; border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .step-num { font-size: 80px; margin-bottom: 24px; }

  .features { grid-template-columns: 1fr; }
  .feature, .feature:first-child, .feature:last-child { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .feature:first-child { border-top: 0; }
  .feature-idx { margin-bottom: 20px; }

  .ton-cells { grid-template-columns: 1fr; }
  .ton-cells > div { border-left: 0; border-top: 1px solid var(--line); }
  .ton-cells > div:first-child { border-top: 0; }

  .contract-inner { grid-template-columns: 1fr; gap: 14px; }
  .contract-actions .btn { flex: 1; }

  .feed-head { display: none; }
  .feed-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "tok chg" "to mcap";
    row-gap: 12px;
    column-gap: 16px;
  }
  .cell-tok { grid-area: tok; }
  .cell-to { grid-area: to; padding-left: 58px; }
  .cell-mcap { grid-area: mcap; }
  .cell-chg { grid-area: chg; }
  .cell-vol, .cell-spark { display: none; }
  .to small { display: inline; margin: 0 0 0 6px; }

  .footer-bottom { flex-direction: column; }
  .footer-bottom span:last-child { text-align: left; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero-title { font-size: clamp(40px, 13.2vw, 64px); }
  .lede { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats > div { padding-right: 12px; margin-right: 12px; }
  .stats dd { font-size: 23px; }
  .stats dt { font-size: 9.5px; letter-spacing: .06em; }
  .ring-1 { width: 480px; height: 480px; }
  .ring-2 { width: 420px; height: 420px; }
  .ring-3 { width: 340px; height: 340px; }
  .hero-visual::before { width: 340px; height: 340px; }
  .icon-btn { display: none; }
  .ton-pill .sep, .ton-pill .muted { display: none; }
  .section { padding: 80px 0; }
  .split-grid { margin-bottom: 56px; }
  .bar { height: 96px; }
  .bar-a { font-size: 34px; }
  .bar-legend { grid-template-columns: 1fr 1fr; }
  .faq-list summary { font-size: 17px; padding: 20px 0; }
  .faq-list details p { padding-right: 0; }
  .cta { padding: 104px 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .nav-cta .btn span { display: none; }
  .nav-cta .btn { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .caret { display: none; }
}
