:root {
  --bg: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #3a3a3a;
  --muted: #6e6e6e;
  --faint: #a1a1a1;
  --line: #ececeb;
  --line-2: #e0e0de;
  --soft: #f7f7f6;
  --accent: #ff4f00;
  --accent-track: #ffe3d6;
  --accent-soft: #fff4ee;
  --up: #0a7d3b;
  --down: #c62a1d;
  --blue: #1d9bf0;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.tick { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.kicker { font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
[hidden] { display: none !important; }

/* ——— header ——— */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand img { border-radius: 7px; }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color 0.15s; }
.nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ca-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; cursor: pointer; font-size: 13px; transition: border-color 0.15s; position: relative; }
.ca-chip:hover { border-color: var(--ink); }
.ca-label { font: 500 10px/1 var(--mono); color: var(--muted); letter-spacing: 0.06em; }
.ca-copied { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); font-size: 12px; background: var(--ink); color: #fff; padding: 4px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.ca-copied.show { opacity: 1; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); transition: border-color 0.15s; }
.icon-btn:hover { border-color: var(--ink); }

/* ——— buttons ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 500; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, background 0.15s, border-color 0.15s; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262626; }
.btn-line { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }

/* ——— hero ——— */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
.overline { display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.live-dot.on { background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 79, 0, 0.45); } 70% { box-shadow: 0 0 0 8px rgba(255, 79, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 79, 0, 0); } }
h1 { font: 400 clamp(56px, 9vw, 112px)/0.92 var(--serif); letter-spacing: -0.02em; }
.tagline { margin-top: 20px; font: italic 400 clamp(22px, 2.4vw, 28px)/1.25 var(--serif); color: var(--muted); letter-spacing: -0.005em; }
.lead { margin-top: 24px; max-width: 540px; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.lead b { font-weight: 600; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* next pack card */
.next { border: 1px solid var(--line-2); border-radius: 20px; background: #fff; box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.18); overflow: hidden; }
.next-main { padding: 26px 28px 24px; }
.next-head { display: flex; justify-content: space-between; align-items: center; }
.next-id { font-size: 13px; color: var(--muted); }
.next-figure { display: flex; align-items: baseline; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.next-figure > span:first-child { font: 600 56px/1 var(--sans); letter-spacing: -0.035em; }
.next-of { font-size: 15px; color: var(--muted); }
.meter { height: 8px; border-radius: 999px; background: var(--accent-track); margin-top: 20px; overflow: hidden; }
.meter > span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.next-to { margin-top: 20px; min-height: 58px; }
.next-to .kicker { display: block; margin-bottom: 10px; }
.next-to .person { flex-wrap: wrap; row-gap: 2px; }
.next-to .person .meta { flex-basis: 100%; padding-left: 38px; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-to .note { font-size: 14px; color: var(--muted); }
.next-foot { display: grid; grid-template-columns: 0.8fr 0.9fr 1.4fr; gap: 12px; margin: 0; padding: 18px 28px 22px; border-top: 1px solid var(--line); background: var(--soft); }
.next-foot dt { font: 500 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.next-foot dd { margin: 8px 0 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-foot dd .ago { font-weight: 400; color: var(--muted); }

/* ——— numbers ——— */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 24px 26px; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-value { margin-top: 10px; font: 600 38px/1 var(--sans); letter-spacing: -0.03em; }
.stat-sub { margin-top: 10px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.delta-up { color: var(--up); }
.delta-down { color: var(--down); }

/* ——— sections ——— */
.section { padding-top: 104px; }
.section-head { margin-bottom: 32px; max-width: 680px; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; gap: 24px; }
h2 { font: 400 clamp(38px, 5vw, 56px)/1 var(--serif); letter-spacing: -0.015em; }
.section-sub { margin-top: 12px; color: var(--muted); font-size: 16px; }
.live-tag { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ——— how it works ——— */
.steps4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps4 li { border-top: 1px solid var(--ink); padding-top: 18px; }
.step-n { font-size: 12px; color: var(--muted); }
.steps4 h3 { margin-top: 10px; font: 600 20px/1.2 var(--sans); letter-spacing: -0.02em; }
.steps4 p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* ——— tables ——— */
.table { border-top: 1px solid var(--ink); }
.t-row { display: grid; gap: 16px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.t-head { padding: 12px 0; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.queue .t-row { grid-template-columns: 40px minmax(200px, 1.6fr) 100px minmax(140px, 1fr) 110px 90px; }
.sent .t-row { grid-template-columns: 76px 70px minmax(190px, 1.3fr) minmax(200px, 1.6fr) 84px 96px; }
.holders .t-row { grid-template-columns: 56px 1fr 180px 100px; }
#sent-rows .t-row { cursor: pointer; transition: background 0.15s; }
#sent-rows .t-row:hover { background: var(--soft); }
#sent-rows .t-row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.cell-muted { color: var(--muted); font-size: 14px; }
.cell-mono { font: 400 14px/1 var(--mono); }
.rank { font: 400 13px/1 var(--mono); color: var(--muted); }
.t-row.first .rank { color: var(--accent); font-weight: 500; }
.t-row.first { background: linear-gradient(90deg, var(--accent-soft), transparent 60%); }
.link { color: var(--muted); font-size: 14px; text-decoration: none; white-space: nowrap; }
.link:hover { color: var(--ink); text-decoration: underline; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; object-fit: cover; background: var(--soft); display: grid; place-items: center; font: 600 12px/1 var(--sans); color: var(--ink-2); border: 1px solid var(--line); overflow: hidden; }
.verified { flex: none; color: var(--blue); }
.value { font-weight: 500; text-align: right; }
.coins { display: flex; flex-wrap: wrap; gap: 6px; }
.coin { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 4px; border-radius: 999px; background: var(--soft); font: 500 12px/1 var(--mono); white-space: nowrap; }
.coin-dot { width: 18px; height: 18px; border-radius: 50%; flex: none; position: relative; overflow: hidden; display: grid; place-items: center; background: var(--line-2); font: 700 9px/1 var(--sans); color: var(--ink-2); }
.coin-dot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.coin.own { background: var(--accent-soft); }
.coin.own .coin-dot, .bar-row.own .coin-dot, .dc-row.own .coin-dot { background: var(--accent); color: #fff; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.status.sending { color: var(--accent); }
.status.sending i { background: var(--accent); animation: blink 1.1s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.t-row.fresh { animation: arrive 1.6s ease-out; }
@keyframes arrive { 0% { background: var(--accent-soft); transform: translateY(-6px); opacity: 0; } 15% { opacity: 1; transform: none; } 100% { background: transparent; } }
.empty { padding: 44px 0; text-align: center; color: var(--muted); border-bottom: 1px solid var(--line); }
.more { margin-top: 20px; }
.more-note { margin-top: 16px; color: var(--muted); font-size: 14px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font: 500 11px/1 var(--mono); background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.tag.onboarded { background: var(--accent-soft); color: #b83900; }
.h-wallet { display: flex; align-items: center; gap: 10px; min-width: 0; }
.h-wallet a { font: 400 14px/1 var(--mono); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-wallet a:hover { text-decoration: underline; }
.meta-line { display: none; }

/* ——— coins sent (bar list, value at the tip) ——— */
.bars { border-top: 1px solid var(--line); }
.bar-row { display: grid; grid-template-columns: 150px 1fr 92px 96px; gap: 20px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.bar-coin { display: flex; align-items: center; gap: 10px; font: 500 13px/1 var(--mono); }
.bar-coin .coin-dot { width: 22px; height: 22px; font-size: 10px; }
.bar-track { height: 8px; position: relative; }
.bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); border-radius: 0 4px 4px 0; min-width: 2px; transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bar-row.own .bar { background: var(--accent); }
.bar-usd { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.bar-packs { color: var(--muted); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.basket { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }

/* ——— fees ——— */
.ledger { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ledger > div { padding: 24px 24px 24px 0; }
.ledger > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.ledger dt { font-size: 13px; color: var(--muted); }
.ledger dd { margin: 10px 0 0; font: 600 28px/1 var(--sans); letter-spacing: -0.025em; }
.ledger dd a { text-decoration: none; }
.ledger dd a:hover { text-decoration: underline; }
.addresses { margin-top: 24px; display: grid; gap: 10px; }
.addresses p { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.addresses .kicker { width: 76px; }
.addresses a { font-size: 13px; text-decoration: none; word-break: break-all; }
.addresses a:hover { text-decoration: underline; }

/* ——— footer ——— */
.foot { margin-top: 128px; border-top: 1px solid var(--line); }
.foot-in { padding-top: 56px; padding-bottom: 64px; }
.foot-mark { font: 400 clamp(64px, 12vw, 168px)/0.9 var(--serif); letter-spacing: -0.03em; }
.foot-line { margin-top: 18px; color: var(--ink-2); }
.foot-legal { margin-top: 28px; max-width: 680px; font-size: 13px; color: var(--muted); }

/* ——— pack details ——— */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.modal-bg { position: absolute; inset: 0; background: rgba(11, 11, 11, 0.42); backdrop-filter: blur(4px); animation: fade 0.2s; }
.modal-box { position: relative; width: min(600px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: 20px; animation: rise 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.modal-x { position: absolute; top: 14px; right: 16px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--soft); font-size: 20px; line-height: 1; cursor: pointer; }
.modal-x:hover { background: var(--line-2); }
.detail { padding: 28px 30px 26px; }
.detail h3 { font: 400 40px/1 var(--serif); letter-spacing: -0.01em; display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.detail-to { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.detail-to .avatar { width: 44px; height: 44px; font-size: 16px; }
.detail-to .who { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.detail-to .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.detail-comment { margin-top: 16px; padding: 12px 14px; background: var(--soft); border-radius: 12px; font-size: 14px; color: var(--ink-2); word-break: break-word; }
.detail-comment .kicker { display: block; margin-bottom: 6px; }
.detail-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.detail-fields dt { font: 500 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.detail-fields dd { margin: 8px 0 0; font: 400 14px/1.3 var(--mono); word-break: break-all; }
.detail-coins { margin-top: 22px; }
.dc-row { display: grid; grid-template-columns: 1fr auto 76px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dc-row .bar-coin { font-size: 14px; }
.dc-ca { font-size: 11px; color: var(--faint); text-decoration: none; }
.dc-ca:hover { color: var(--ink); }
.dc-amount { font: 400 13px/1 var(--mono); color: var(--muted); text-align: right; }
.dc-usd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.dc-total { display: flex; justify-content: space-between; padding-top: 14px; font-weight: 600; }
.detail-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.detail-links a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; font-size: 14px; text-decoration: none; border-radius: 999px; border: 1px solid var(--line-2); }
.detail-links a:hover { border-color: var(--ink); }

/* ——— toast ——— */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.35); animation: toast 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); cursor: pointer; max-width: calc(100vw - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ——— responsive ——— */
@media (max-width: 1020px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 48px; }
  .next { max-width: 520px; }
  .steps4 { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .queue .t-row { grid-template-columns: 32px minmax(160px, 1.4fr) 84px minmax(120px, 1fr) 90px 80px; gap: 12px; }
  .sent .t-row { grid-template-columns: 64px 60px minmax(150px, 1fr) minmax(170px, 1.3fr) 70px 90px; gap: 12px; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top-in { gap: 10px; height: 58px; }
  .ca-chip { display: none !important; }
  .btn-sm .tick { display: none; }
  .lead { font-size: 17px; }
  .next-main { padding: 22px 20px 20px; }
  .next-figure > span:first-child { font-size: 46px; }
  .next-foot { padding: 16px 20px 18px; grid-template-columns: 1fr 1fr; }
  .next-foot > div:last-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 0 20px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat-value { font-size: 30px; }
  .section { padding-top: 80px; }
  .steps4 { grid-template-columns: 1fr; row-gap: 24px; }
  .section-head.row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .t-head { display: none !important; }
  /* phones: rows become two-line cards */
  .queue .t-row { grid-template-columns: 26px 1fr auto; grid-template-areas: 'rank who fol' 'rank wallet link'; gap: 6px 10px; padding: 14px 0; }
  .queue .rank { grid-area: rank; align-self: start; padding-top: 8px; }
  .queue .person { grid-area: who; }
  .queue .fol { grid-area: fol; }
  .queue .wallet { grid-area: wallet; padding-left: 38px; }
  .queue .found { display: none; }
  .queue .link { grid-area: link; text-align: right; }
  .sent .t-row { grid-template-columns: 1fr auto; grid-template-areas: 'who status' 'coins coins' 'meta value'; gap: 10px 12px; padding: 16px 0; }
  .sent .person { grid-area: who; }
  .sent .status { grid-area: status; }
  .sent .coins { grid-area: coins; }
  .sent .value { grid-area: value; }
  .sent .meta-line { grid-area: meta; display: block; font: 400 12px/1 var(--mono); color: var(--muted); }
  .sent .time, .sent .pack-id { display: none; }
  .bar-row { grid-template-columns: 110px 1fr 70px; gap: 12px; }
  .bar-packs { display: none; }
  .holders .t-row { grid-template-columns: 36px 1fr 110px; }
  .holders .t-row > :nth-child(4) { display: none; }
  .ledger { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .ledger > div { padding: 20px 0; }
  .ledger > div + div { padding-left: 0; border-left: 0; }
  .ledger > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .ledger > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ledger dd { font-size: 22px; }
  .modal { padding: 10px; align-items: end; }
  .modal-box { max-height: calc(100vh - 20px); }
  .detail { padding: 24px 20px 22px; }
  .detail h3 { font-size: 34px; }
  .foot { margin-top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
