:root {
  --bg: #FFFFFF;
  --ink: #101012;
  --ink-2: #3C3C41;
  --muted: #7A7A82;
  --line: #ECECEF;
  --soft: #FAFAFB;
  --yellow: #FFD400;
  --yellow-soft: #FFF6C9;
  --green: #12A150;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; }
h1, h2 { margin: 0; letter-spacing: -0.02em; font-weight: 600; }
h2 { font-size: 17px; letter-spacing: -0.01em; }
em { font-style: normal; }
section { scroll-margin-top: 76px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.demo-bar {
  background: var(--yellow-soft);
  border-bottom: 1px solid #F2E5A0;
  color: #6B5400;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  padding: 7px 16px;
}

/* ── top bar ── */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.brand img { border-radius: 9px; }
.nav { display: flex; gap: 20px; margin-right: auto; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px 0 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--ink-2);
  font: 500 13px var(--font);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.chip:hover { border-color: #DDDDE2; }
.chip-key { background: var(--soft); border-radius: 6px; padding: 3px 7px; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }

.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px;
  color: var(--ink-2); text-decoration: none; flex: none;
}
.icon-link:hover { border-color: #DDDDE2; color: var(--ink); background: var(--soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: 600 14px var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn-buy { background: var(--yellow); color: #221B00; }
.btn-buy:hover { background: #F5CB00; }
.btn-quiet { background: var(--bg); border-color: var(--line); color: var(--ink); }
.btn-quiet:hover { background: var(--soft); }
.wide { width: 100%; margin-top: 14px; }
.btn:disabled { opacity: .55; pointer-events: none; }

/* ── hero ── */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center; padding: 72px 0 56px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.06; }
.hero-copy p { max-width: 46ch; margin: 18px 0 26px; color: var(--ink-2); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { height: 42px; padding: 0 20px; font-size: 15px; }

.hero-side { border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.side-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stack { display: flex; min-height: 44px; margin: 14px 0 18px; }
.stack img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; margin-left: -12px; background: var(--soft); }
.stack img:first-child { margin-left: 0; }
.side-note { margin: 0 0 16px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.fuel-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fuel-bar { height: 5px; margin-top: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.fuel-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--yellow); transition: width .7s ease; }

/* ── stats ── */
.statbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.statbar > div { padding: 18px 20px; border-left: 1px solid var(--line); }
.statbar > div:first-child { border-left: 0; }
.stat-label { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stat-value { display: block; margin-top: 3px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-note { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; min-height: 15px; }

/* ── panels ── */
.columns { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px; margin-top: 24px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
#callouts { position: sticky; top: 76px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--soft); }
.tab { border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 500 13px var(--font); padding: 6px 11px; cursor: pointer; }
.tab em { margin-left: 5px; color: #A8A8B0; font-size: 12px; font-variant-numeric: tabular-nums; }
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--bg); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.tab.is-active em { color: var(--muted); }

.holder-list { list-style: none; margin: 0; padding: 0; }
.holder-head,
.holder {
  display: grid;
  grid-template-columns: 26px 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 9px 6px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.holder-head {
  border-top: 0;
  border-bottom: 1px solid var(--line);
  padding-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.holder-head span:nth-child(1) { text-align: right; }
.holder-head span:nth-child(4) { text-align: right; }
.holder-head span:nth-child(5) { width: 62px; text-align: right; }
.holder:first-child { border-top: 0; }
.holder:hover { background: var(--soft); border-radius: 10px; }
.rank { color: #AFAFB6; font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: right; }
.pfp { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); object-fit: cover; }
.who { min-width: 0; display: flex; flex-direction: column; }
.who-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-name .tag { margin-left: 7px; padding: 1px 6px; border-radius: 5px; background: var(--yellow-soft); color: #6B5400; font-size: 10.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; vertical-align: 1px; }
.who-sub { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amount { font-size: 13.5px; font-variant-numeric: tabular-nums; text-align: right; }
.pct { width: 62px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.hint { margin: 12px 2px 0; color: var(--muted); font-size: 12px; }
.empty { padding: 26px 0; color: var(--muted); font-size: 13.5px; text-align: center; }

.live { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18, 161, 80, .45); } 70% { box-shadow: 0 0 0 7px rgba(18, 161, 80, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 161, 80, 0); } }

.feed { list-style: none; margin: 0; padding: 0; }
.post { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 11px 6px; border-top: 1px solid var(--line); animation: fade-in .4s ease; }
.post:first-child { border-top: 0; }
.post-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.post-name { color: var(--ink); font-size: 13px; font-weight: 600; }
.post-time { color: #AFAFB6; font-size: 12px; }
.post-buy { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.post-text { margin-top: 2px; font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.post-tx { color: var(--muted); font-size: 12px; text-decoration: none; }
.post-tx:hover { color: var(--ink); text-decoration: underline; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-6px); } }

/* ── how / ledger ── */
.how { margin-top: 56px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 18px 0 0; padding: 0; }
.steps li { border-top: 2px solid var(--yellow); padding-top: 12px; }
.step-n { display: block; color: var(--muted); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.steps b { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }

.ledger { margin-top: 56px; }
.ledger p { max-width: 70ch; margin: 10px 0 18px; color: var(--muted); font-size: 14px; }
.addr { margin: 0; border-top: 1px solid var(--line); }
.addr > div { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.addr dt { width: 124px; flex: none; color: var(--muted); font-size: 12.5px; }
.addr .pct { margin-left: 5px; padding: 1px 5px; border-radius: 5px; background: var(--soft); color: var(--ink-2); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.addr dd { margin: 0; min-width: 0; }
.addr a { font-family: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; }

footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }

footer a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
footer a:hover { color: var(--ink); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 40;
  transform: translate(-50%, 12px);
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 40px 0 36px; }
  .columns { grid-template-columns: minmax(0, 1fr); }
  #callouts { position: static; }
  .statbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statbar > div:nth-child(odd) { border-left: 0; }
  .statbar > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
}

@media (max-width: 560px) {
  .holder-head, .holder { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; }
  .holder-head span:nth-child(1), .holder-head span:nth-child(4), .rank, .amount { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .bar { gap: 12px; }
  .brand span { display: none; }
}

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