:root {
  /* ─── Mono dark base ─────────────────────────────────────────────── */
  --bg:       #000000;
  --bg-2:     #08080A;
  --panel:    #0C0C0F;
  --panel-2:  #131318;
  --border:   #1E1E24;
  --border-2: #2A2A33;
  --text:     #FFFFFF;
  --muted:    #8A8A92;
  --accent:   #FFFFFF;

  /* Podium tints — single colored splash for top 3, otherwise mono */
  --gold:   #F5C518;
  --silver: #C8C8D2;
  --bronze: #C97A3D;

  --good:   #34C75A;
  --danger: #FF4D5E;

  --radius: 14px;
  --shadow:      0 10px 30px rgba(0, 0, 0, 0.55);
  --shadow-lift: 0 16px 50px rgba(0, 0, 0, 0.75);
  --max: 1180px;

  /* Italic display face, used for the wordmark / huge rank numerals.
     Loaded from Google Fonts in index.html. */
  --display: "Saira", -apple-system, "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

/* ─── Access gate ──────────────────────────────────────────────────── */
body.gated > header,
body.gated > main,
body.gated > footer { display: none !important; }
html.ungated body.gated > header,
html.ungated body.gated > main,
html.ungated body.gated > footer { display: revert !important; }
html.ungated #gate { display: none !important; }

.gate {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  padding: 24px;
  background:
    radial-gradient(700px 360px at 80% -10%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(600px 360px at -10% 110%, rgba(255, 255, 255, 0.04), transparent 60%),
    var(--bg);
}
.gate-card {
  position: relative;
  width: 100%; max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.gate-brand { justify-content: center; margin-bottom: 18px; font-size: 22px; }
.gate-brand .brand-mark { width: 56px; height: 56px; border-radius: 14px; }
.gate-title {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.gate-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}
.gate-form { display: flex; flex-direction: column; gap: 10px; }
.gate-input {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gate-input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.10);
}
.gate-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 13px;
}
.gate.shake .gate-card { animation: gate-shake 0.35s ease; }
@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  75% { transform: translateX(-4px); }
}

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(255, 255, 255, 0.04), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--muted); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ─── Wordmark ─────────────────────────────────────────────────────── */
/* Bold italic display face — used for the brand and the giant rank
   numerals on the leaderboard. Echoes the wordmark in logo.jpg. */
.wordmark {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--text);
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 22px;
  text-transform: lowercase;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--border-2);
}
.brand-text .dollar { opacity: 0.6; font-weight: 700; margin-right: 1px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); font-weight: 500; font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; }
.nav a:hover { color: var(--text); }
.nav .cta {
  background: var(--text); color: #000;
  padding: 9px 16px; border-radius: 999px; font-weight: 800;
  font-size: 13px; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav .cta:hover { background: var(--muted); color: #000; }

/* ─── Hero ─────────────────────────────────────────────────────────── */
.hero { padding: 64px 24px 32px; text-align: center; }
.hero-logo {
  width: 220px; height: 220px;
  margin: 0 auto 28px;
  display: block;
  border-radius: 50%;
  background: transparent;
  object-fit: cover;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 0.95;
  margin: 0 0 18px;
  letter-spacing: -0.035em;
  text-transform: lowercase;
}
.hero h1 .dollar { opacity: 0.55; font-weight: 700; }
.hero .lede {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 12px;
}
.hero .lede:last-of-type { margin-bottom: 26px; }
.hero-actions {
  display: inline-flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 22px;
}
.btn-x { display: inline-flex; align-items: center; gap: 8px; }
.btn-x svg { width: 16px; height: 16px; }
.gate-x { margin-top: 14px; width: 100%; justify-content: center; }
.hero-meta {
  color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* ─── Marquee (KOL avatars under hero) ─────────────────────────────── */
.marquee {
  position: relative;
  margin: 36px auto 0;
  max-width: 100vw;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 22px;
  width: max-content;
  animation: marquee 70s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.marquee-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border-2);
  object-fit: cover;
  display: grid; place-items: center;
  font-weight: 800; color: var(--text);
  font-size: 13px;
  overflow: hidden;
}
.marquee-name {
  font-size: 10px; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--muted);
}

/* ─── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 999px;
  font-weight: 700; cursor: pointer; border: 1px solid transparent;
  font-size: 14px; letter-spacing: 0.02em;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn.small { padding: 8px 14px; font-size: 12px; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--text); color: #000;
}
.btn.primary:hover { background: var(--muted); color: #000; }
.btn.ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-2);
}
.btn.ghost:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

/* ─── Hub card ─────────────────────────────────────────────────────── */
.hub { padding: 30px 24px 20px; }
.hub-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}
.hub-card::before {
  /* Subtle vertical accent stripe — the only color in the hub card */
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--text);
}
.hub-avatar {
  width: 116px; height: 116px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  border: 2px solid var(--border-2);
  flex-shrink: 0;
}
.hub-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hub-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hub-symbol {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
.hub-symbol .dollar { opacity: 0.55; font-weight: 700; }
.hub-tag {
  display: inline-block; padding: 4px 10px;
  border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase;
}
.hub-tag.live    { background: rgba(52, 199, 90, 0.16);  color: var(--good); }
.hub-tag.pending { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.hub-blurb { margin: 0; color: var(--muted); max-width: 640px; }
.hub-blurb strong { color: var(--text); }
.hub-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.stat {
  padding: 14px 0;
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat:first-child { padding-left: 0; }
.stat .k { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; padding-left: 14px; }
.stat:first-child .k { padding-left: 0; }
.stat .v { color: var(--text); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; padding-left: 14px; }
.stat:first-child .v { padding-left: 0; }
.hub-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Leaderboard ──────────────────────────────────────────────────── */
.products { padding: 56px 24px 20px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 22px; gap: 12px; flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: 40px; margin: 0;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
.head-actions { display: inline-flex; align-items: center; gap: 12px; }
.head-actions .muted {
  font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase;
}

/* Header strip that labels the columns. Only visible on wider screens. */
.lb-head {
  display: grid;
  grid-template-columns: 56px 60px 1.6fr 1fr 1.2fr 1fr 1fr;
  align-items: center;
  gap: 14px;
  padding: 0 18px 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.lb-head > div:nth-child(4),
.lb-head > div:nth-child(5),
.lb-head > div:nth-child(6),
.lb-head > div:nth-child(7) { text-align: right; }
.lb-head > div:nth-child(7) { text-align: left; }

/* List wraps the rows */
.grid {
  display: flex; flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

/* ─── Row ──────────────────────────────────────────────────────────── */
.row {
  position: relative;
  display: grid;
  grid-template-columns: 56px 60px 1.6fr 1fr 1.2fr 1fr 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}
.row:hover {
  background: var(--panel-2);
  border-color: var(--border-2);
  transform: translateY(-1px);
}
.row:active { transform: translateY(0); }

.row-rank {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: 32px;
  color: var(--muted);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.row-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  font-weight: 800; font-size: 12px;
  color: var(--text);
  flex-shrink: 0;
}
.row-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.row-id { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.row-ticker {
  font-weight: 800; font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row-name {
  font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.row-cell {
  display: flex; flex-direction: column; gap: 2px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.row-cell .k {
  display: none;  /* only shown on mobile column view */
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.row-cell .v { color: var(--text); font-size: 15px; font-weight: 600; }
.row-cell.row-chg .v.chg-up   { color: var(--good); }
.row-cell.row-chg .v.chg-down { color: var(--danger); }

.row-foot {
  display: inline-flex; gap: 6px; justify-content: flex-start;
}
.row-foot a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.row-foot a:hover {
  background: var(--text);
  color: #000;
  border-color: var(--text);
}

/* ─── Top 3 podium accent ──────────────────────────────────────────── */
.row.top-1, .row.top-2, .row.top-3 {
  padding: 18px 20px;
  background: var(--panel-2);
  border-color: var(--border-2);
}
.row.top-1 { border-color: rgba(245, 197, 24, 0.45); }
.row.top-2 { border-color: rgba(200, 200, 210, 0.35); }
.row.top-3 { border-color: rgba(201, 122, 61, 0.40); }

.row.top-1 .row-rank { color: var(--gold); }
.row.top-2 .row-rank { color: var(--silver); }
.row.top-3 .row-rank { color: var(--bronze); }

.row.top-1 .row-rank,
.row.top-2 .row-rank,
.row.top-3 .row-rank {
  font-size: 40px;
}
.row.top-1 .row-avatar,
.row.top-2 .row-avatar,
.row.top-3 .row-avatar {
  width: 56px; height: 56px;
}
.row.top-1 .row-avatar { box-shadow: 0 0 0 1px var(--gold) inset, 0 0 24px rgba(245, 197, 24, 0.25); }
.row.top-2 .row-avatar { box-shadow: 0 0 0 1px var(--silver) inset, 0 0 22px rgba(200, 200, 210, 0.20); }
.row.top-3 .row-avatar { box-shadow: 0 0 0 1px var(--bronze) inset, 0 0 22px rgba(201, 122, 61, 0.22); }

/* Pending (mint not pasted yet) */
.card-pending,
.row.row-pending {
  opacity: 0.78;
  border-style: dashed;
  cursor: default;
}
.row.row-pending:hover { transform: none; background: var(--panel); }
.row.row-pending .row-cell .v { color: var(--muted); }
.card-state { display: none; }  /* deprecated chip from $COLORS era */

/* ─── How / footer ─────────────────────────────────────────────────── */
.cap-note {
  margin: 28px auto 0;
  padding: 14px 18px;
  max-width: 720px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: 1px dashed var(--border-2);
  border-radius: 999px;
}
.cap-note strong { color: var(--text); font-weight: 700; }

.how { padding: 60px 24px; }
.how h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: 40px; margin: 0 0 20px;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.steps li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  color: var(--muted);
  position: relative;
  counter-increment: step;
}
.steps {
  counter-reset: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: 28px;
  color: var(--text);
  display: block; margin-bottom: 8px;
  letter-spacing: -0.04em;
}
.steps li strong { color: var(--text); display: block; margin-bottom: 4px; }

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  padding: 36px 0 24px;
  background: var(--bg);
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 32px; padding-bottom: 20px;
}
.foot-grid h4 {
  margin: 0 0 8px; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.foot-grid .links { list-style: none; padding: 0; margin: 0; }
.foot-grid .links li { padding: 4px 0; }
.foot-grid .links a { color: var(--muted); }
.foot-grid .links a:hover { color: var(--text); }
.foot-bottom {
  padding-top: 18px; border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase;
}

@media (max-width: 760px) {
  .hub-card { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .hub-avatar { width: 84px; height: 84px; }
  .hub-stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 20px; }
  .nav a:not(.cta) { display: none; }

  .steps { grid-template-columns: 1fr; }

  /* Leaderboard collapses on phones: drop the column grid for a vertical
     flex stack with rank + avatar + identity on the first line, then each
     stat as a labeled row underneath. */
  .lb-head { display: none; }
  .row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
  }
  .row .row-rank,
  .row .row-avatar,
  .row .row-id { display: inline-flex; }
  .row .row-rank { font-size: 30px; align-self: flex-start; }
  .row .row-avatar { width: 44px; height: 44px; }
  .row .row-cell {
    display: flex; flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    text-align: left;
    padding: 8px 0;
    border-top: 1px solid var(--border);
  }
  .row .row-cell .k { display: inline; }
  .row .row-cell .v { font-size: 14px; }
  .row .row-foot { display: flex; gap: 8px; }
  .row .row-foot a { flex: 1; text-align: center; }

  /* Lay the first three children out side-by-side via order + a wrapping
     flex row at the top of the card. Simpler than nested DOM. */
  .row { position: relative; }
  .row .row-rank { position: absolute; top: 14px; right: 16px; }
  .row .row-avatar { order: -2; }
  .row .row-id    { order: -1; align-self: center; }

  .row.top-1 .row-rank,
  .row.top-2 .row-rank,
  .row.top-3 .row-rank { font-size: 34px; }
  .row.top-1 .row-avatar,
  .row.top-2 .row-avatar,
  .row.top-3 .row-avatar { width: 48px; height: 48px; }
}
