/* ==========================================================================
   Giftly design system
   Monochrome ground, black pills, colour comes from the gift cards.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f6f4;
  --surface-3: #ebebe8;
  --ink: #0c0c0e;
  --ink-2: #0c0c0ea8;
  --muted: #0c0c0e8c;
  --line: #0c0c0e14;
  --line-2: #0c0c0e26;
  --accent: #0c0c0e;
  --accent-hover: #2a2a2e;
  --accent-ink: #ffffff;
  --accent-soft: #f6f6f4;
  --green: #08703e;
  --green-soft: #08703e1a;
  --amber: #a15300;
  --amber-soft: #a153001a;
  --blue: #0c0c0e;
  --blue-soft: #f6f6f4;
  --violet: #0c0c0e;
  --violet-soft: #f6f6f4;

  --font-sans: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-serif: var(--font-sans);
  --font-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px #0c0c0e0a;
  --shadow: 0 1px 2px #0c0c0e0a, 0 12px 32px -18px #0c0c0e2e;
  --shadow-lg: 0 2px 6px #0c0c0e0f, 0 28px 60px -24px #0c0c0e59;
  --container: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090a;
    --surface: #111113;
    --surface-2: #17171a;
    --surface-3: #1f1f23;
    --ink: #f4f4f2;
    --ink-2: #f4f4f2b3;
    --muted: #f4f4f28f;
    --line: #ffffff14;
    --line-2: #ffffff26;
    --accent: #f4f4f2;
    --accent-hover: #ffffff;
    --accent-ink: #0c0c0e;
    --accent-soft: #17171a;
    --green: #3ecf8e;
    --green-soft: #3ecf8e1f;
    --amber: #f5a524;
    --amber-soft: #f5a5241f;
    --blue: #f4f4f2;
    --blue-soft: #17171a;
    --violet: #f4f4f2;
    --violet-soft: #17171a;
    --shadow-sm: 0 1px 2px #0000004d;
    --shadow: 0 1px 2px #0000004d, 0 12px 32px -18px #000000b3;
    --shadow-lg: 0 2px 6px #00000066, 0 28px 60px -24px #000000e6;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #09090a;
  --surface: #111113;
  --surface-2: #17171a;
  --surface-3: #1f1f23;
  --ink: #f4f4f2;
  --ink-2: #f4f4f2b3;
  --muted: #f4f4f28f;
  --line: #ffffff14;
  --line-2: #ffffff26;
  --accent: #f4f4f2;
  --accent-hover: #ffffff;
  --accent-ink: #0c0c0e;
  --accent-soft: #17171a;
  --green: #3ecf8e;
  --green-soft: #3ecf8e1f;
  --amber: #f5a524;
  --amber-soft: #f5a5241f;
  --blue: #f4f4f2;
  --blue-soft: #17171a;
  --violet: #f4f4f2;
  --violet-soft: #17171a;
  --shadow-sm: 0 1px 2px #0000004d;
  --shadow: 0 1px 2px #0000004d, 0 12px 32px -18px #000000b3;
  --shadow-lg: 0 2px 6px #00000066, 0 28px 60px -24px #000000e6;
  color-scheme: dark;
}


/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
p { margin: 0; }

.serif, em { font-style: italic; font-weight: inherit; letter-spacing: -0.04em; }
.mono { font-family: var(--font-mono); font-size: .82em; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.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; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }

@media (max-width: 640px) { :root { --gutter: 16px; } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-2); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line-2); }
.btn-soft { background: var(--surface-2); color: var(--ink); }
.btn-soft:hover { background: var(--surface-3); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 999px;
  color: var(--ink-2);
  transition: background .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }

.link { color: var(--ink); border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.link:hover { border-color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; letter-spacing: -0.03em; }
.brand-mark { width: 30px; height: 30px; }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14.5px; color: var(--ink-2); font-weight: 450;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

.mobile-menu { display: none; }

@media (max-width: 920px) {
  .nav-links, .nav-actions .hide-mobile { display: none; }
  .nav-toggle { display: inline-grid; }
  .mobile-menu {
    display: block;
    position: fixed; inset: 68px 0 auto 0; z-index: 49;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu a:not(.btn) { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; }
  .mobile-menu .btn { margin-top: 16px; }
}

/* --------------------------------------------------------------------------
   Sections & typography
   -------------------------------------------------------------------------- */

.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--line); }
@media (max-width: 720px) { .section { padding: 80px 0; } .section-sm { padding: 56px 0; } }

.kicker { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); }
.section-head p { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 600px; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.display { font-size: clamp(48px, 8vw, 112px); letter-spacing: -0.055em; line-height: .93; font-weight: 600; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); line-height: 1.55; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { position: relative; padding: 72px 0 100px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 28px; }
.hero-copy .lead { margin-top: 24px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 16px; height: 16px; color: var(--green); }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero { padding: 48px 0 80px; }
}

/* Hero visual */
.stage { position: relative; height: 540px; }
.stage > * { position: absolute; }

.gift-card {
  width: 340px; aspect-ratio: 1.586;
  border-radius: 20px; padding: 22px;
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}
.gift-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.22), transparent 55%);
}
.gift-card .gc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.gift-card .gc-brand { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.gift-card .gc-chip { width: 36px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.18)); }
.gift-card .gc-amount { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.gift-card .gc-meta { display: flex; justify-content: space-between; align-items: flex-end; font-size: 12.5px; opacity: .85; }
.gift-card .gc-code { font-family: var(--font-mono); letter-spacing: .08em; }

.gc-amazon { background: linear-gradient(140deg, #232f3e, #0f161f); }
.gc-amazon .gc-brand::after { content: ""; display: block; width: 58px; height: 6px; margin-top: 2px; border-bottom: 3px solid #ff9900; border-radius: 0 0 40px 40px; }
.gc-steam { background: linear-gradient(140deg, #1b2838, #2a475e); }
.gc-uber { background: linear-gradient(140deg, #111, #2b2b2b); }

.stage .card-back { top: 70px; right: -10px; transform: rotate(9deg); width: 320px; opacity: .9; }
.stage .card-mid { top: 110px; right: 20px; transform: rotate(3deg); width: 330px; }
.stage .card-front { top: 160px; right: 48px; transform: rotate(-3deg); }

.float {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 16px 18px; z-index: 2;
}
.stage .balance-widget { left: 0; top: 20px; width: 260px; }
.stage .tx-widget { left: 24px; bottom: 10px; width: 300px; }

.widget-label { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.widget-amount { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.widget-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.widget-foot { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.delta { color: var(--green); font-weight: 600; font-size: 13px; }

.tx-list { display: grid; gap: 10px; margin-top: 12px; }
.tx { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; font-size: 13.5px; }
.tx-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.tx-icon svg { width: 14px; height: 14px; }
.tx-title { font-weight: 500; }
.tx-sub { font-size: 12px; color: var(--muted); }
.tx-amt { font-weight: 600; font-variant-numeric: tabular-nums; }

.tx.is-new { animation: slideIn .6s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .stage { height: 520px; max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 560px) {
  .stage { height: auto; display: grid; gap: 14px; }
  .stage > * { position: relative; inset: auto !important; transform: none !important; width: 100% !important; }
  .stage .card-back, .stage .card-mid { display: none; }
  .gift-card { width: 100%; }
}

/* --------------------------------------------------------------------------
   Platform strip
   -------------------------------------------------------------------------- */

.strip { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.strip-label { font-size: 14px; color: var(--muted); }
.strip-list { display: flex; flex-wrap: wrap; gap: 12px 36px; align-items: center; }
.strip-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; color: var(--ink-2); }

.pf {
  display: inline-grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 8px;
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: -0.02em;
}
.pf svg { width: 15px; height: 15px; }
.pf-xs { width: 20px; height: 20px; border-radius: 6px; }
.pf-xs svg { width: 11px; height: 11px; }
.pf-sm { width: 22px; height: 22px; border-radius: 6px; }
.pf-sm svg { width: 12px; height: 12px; }
.pf-lg { width: 44px; height: 44px; border-radius: 12px; }
.pf-lg svg { width: 22px; height: 22px; }
.pf-x { background: #0e0e10; }
:root[data-theme="dark"] .pf-x { background: #2a2a30; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pf-x { background: #2a2a30; } }
.pf-discord { background: #5865f2; }
.pf-telegram { background: #229ed9; }
.pf-tiktok { background: #000; }
.pf-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.card-sm { padding: 22px; border-radius: var(--radius); }
.card-flat { background: var(--surface-2); border-color: transparent; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.feature h3 { font-size: 20px; margin-top: 22px; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon.green { background: var(--green-soft); color: var(--green); }
.feature-icon.blue { background: var(--blue-soft); color: var(--blue); }
.feature-icon.violet { background: var(--violet-soft); color: var(--violet); }
.feature-icon.amber { background: var(--amber-soft); color: var(--amber); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; display: flex; flex-direction: column; min-height: 100%; }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.step h3 { font-size: 24px; margin-top: 14px; }
.step p { color: var(--muted); margin-top: 10px; }
.step-visual {
  margin-top: 28px; padding: 18px; flex: 1;
  background: var(--surface-2); border-radius: var(--radius);
  display: grid; align-content: center; gap: 10px;
}

.mini-field {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; font-size: 14px;
}
.mini-field .muted { font-size: 12.5px; margin-left: auto; }
.mini-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }

.brand-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.brand-tile {
  aspect-ratio: 1.5; border-radius: 10px; color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px; letter-spacing: -0.02em;
}

/* Flow timeline */
.flow { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; gap: 32px; } }
.flow-aside { position: sticky; top: 100px; }
.flow-aside h2 { font-size: clamp(32px, 4vw, 44px); }
.flow-aside p { color: var(--muted); margin-top: 16px; }
@media (max-width: 900px) { .flow-aside { position: static; } }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li {
  display: grid; grid-template-columns: 48px 1fr; gap: 20px;
  padding: 0 0 36px; position: relative;
}
.timeline li::before {
  content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 1px;
  background: var(--line-2);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.tl-num {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-2);
  font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums;
}
.timeline li.is-accent .tl-num { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tl-body { padding-top: 10px; }
.tl-body h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-body p { color: var(--muted); margin-top: 6px; max-width: 620px; }

/* Tags / badges */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: 0;
  background: var(--surface-2); color: var(--ink-2);
  white-space: nowrap;
}
.tag-accent { background: var(--accent-soft); color: var(--accent); }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-amber { background: var(--amber-soft); color: var(--amber); }
.tag-blue { background: var(--blue-soft); color: var(--blue); }
.tag-violet { background: var(--violet-soft); color: var(--violet); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag svg { width: 12px; height: 12px; }

/* Split / audience */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.audience { padding: 40px; display: flex; flex-direction: column; }
.audience.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.audience.dark .muted, .audience.dark .check-list li { color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.audience h3 { font-size: clamp(26px, 3vw, 34px); margin-top: 18px; }
.audience > p { margin-top: 12px; }
.audience .btn { margin-top: auto; align-self: flex-start; }
.audience.dark .btn-primary { background: var(--bg); color: var(--ink); }

.check-list { list-style: none; margin: 28px 0 36px; padding: 0; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); }
.check-list svg { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrap {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12.5px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
td .cell-title { display: flex; align-items: center; gap: 12px; font-weight: 600; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; }
.compare td:first-child { color: var(--ink-2); font-weight: 500; }
.compare .col-gifted { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.compare th.col-gifted { background: var(--accent-soft); color: var(--accent); }
.yes, .no, .partial { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.yes { background: var(--green-soft); color: var(--green); }
.no { background: var(--surface-2); color: var(--muted); }
.partial { background: var(--amber-soft); color: var(--amber); }
.yes svg, .no svg, .partial svg { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   Code / ledger visuals
   -------------------------------------------------------------------------- */

.code {
  background: #0f0f12; color: #e8e6e1;
  border-radius: var(--radius); padding: 22px 24px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.75;
  overflow-x: auto; border: 1px solid #222228;
}
.code .c { color: #6f6e76; }
.code .k { color: #ff8a65; }
.code .s { color: #9be3b4; }
.code .n { color: #9fb6ff; }

.ledger-feed { display: grid; gap: 0; }
.feed-row {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.feed-row:last-child { border-bottom: 0; }
.feed-row .mono { color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) { .feed-row { grid-template-columns: 1fr auto; } .feed-row .feed-when { display: none; } }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.stat { padding: 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 14px; margin-top: 6px; }
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; font-size: 18px; font-weight: 550; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; transition: transform .3s var(--ease), background .2s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 2px; }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] summary .plus { background: var(--ink); border-color: var(--ink); }
.faq details[open] summary .plus::before, .faq details[open] summary .plus::after { background: var(--bg); }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq .answer { padding: 0 56px 26px 0; color: var(--muted); font-size: 16px; max-width: 720px; }
.faq .answer p + p { margin-top: 12px; }

/* --------------------------------------------------------------------------
   CTA & footer
   -------------------------------------------------------------------------- */

.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--bg);
  border-radius: 32px; padding: 88px 48px; text-align: center;
}
.cta h2 { font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -0.04em; max-width: 820px; margin: 0 auto; }
.cta p { margin: 20px auto 0; max-width: 520px; color: color-mix(in srgb, var(--bg) 72%, var(--ink)); font-size: 18px; }
.cta .hero-cta { justify-content: center; }
.cta .btn-ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 30%, transparent); }
.cta .btn-ghost:hover { background: color-mix(in srgb, var(--bg) 10%, transparent); }
.cta .btn-primary { background: var(--bg); color: var(--ink); }
@media (max-width: 640px) { .cta { padding: 64px 24px; border-radius: 24px; } }

.site-footer { padding: 72px 0 40px; border-top: 1px solid var(--line); margin-top: 120px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-grid a { color: var(--ink-2); transition: color .2s; }
.footer-grid a:hover { color: var(--ink); }
.footer-about p { color: var(--muted); margin-top: 16px; max-width: 320px; font-size: 15px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field { display: grid; gap: 8px; }
.field + .field { margin-top: 20px; }
.label { font-size: 14px; font-weight: 550; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label .muted { font-weight: 400; font-size: 13px; }
.hint { font-size: 13px; color: var(--muted); }
.error-text { font-size: 13px; color: #d93a1a; display: none; }
.field.has-error .error-text { display: block; }
.field.has-error .input { border-color: #d93a1a; }

.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
  font-size: 15px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 104px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2375747a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 8%, transparent); }

.input-group { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); transition: border-color .2s, box-shadow .2s; overflow: hidden; }
.input-group:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 8%, transparent); }
.input-group .addon { display: grid; place-items: center; padding: 0 4px 0 16px; color: var(--muted); font-weight: 500; }
.input-group .input { border: 0; box-shadow: none !important; padding-left: 4px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field + .field { margin-top: 0; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.dropzone {
  display: flex; align-items: center; gap: 16px;
  border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 16px;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.dropzone:hover { border-color: var(--ink); background: var(--surface-2); }
.dropzone-thumb { width: 64px; height: 64px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--muted); }
.dropzone-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dropzone-thumb svg { width: 22px; height: 22px; }

/* Segmented / choice cards */
.seg { display: inline-flex; padding: 4px; background: var(--surface-2); border-radius: 999px; gap: 2px; }
.seg button { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.choice-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: repeat(3, 1fr); } }
.choice {
  display: grid; justify-items: center; gap: 10px;
  padding: 16px 8px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 13.5px; font-weight: 500;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.choice:hover { border-color: var(--ink-2); }
.choice[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: all .2s;
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.switch { position: relative; display: inline-flex; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(18px); }

/* --------------------------------------------------------------------------
   App shell (launch / claim / ledger)
   -------------------------------------------------------------------------- */

.page-head { padding: 64px 0 40px; }
.page-head h1 { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.055em; line-height: .95; }
.page-head p { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 620px; }
.page-head .seg { margin-top: 28px; }

.app-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.app-grid > * { min-width: 0; }
.app-grid-wide { grid-template-columns: 1fr 440px; }
@media (max-width: 1000px) { .app-grid, .app-grid-wide { grid-template-columns: 1fr; } }
.sticky-col { position: sticky; top: 92px; }
@media (max-width: 1000px) { .sticky-col { position: static; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel-head { padding: 24px 28px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-head h2, .panel-head h3 { font-size: 18px; letter-spacing: -0.02em; }
.panel-body { padding: 28px; }
.panel-foot { padding: 20px 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
@media (max-width: 560px) { .panel-head, .panel-body, .panel-foot { padding-left: 20px; padding-right: 20px; } }

.stepper { display: flex; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
.stepper li { flex: 1; }
.stepper .bar { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.stepper .bar::after { content: ""; display: block; height: 100%; width: 0; background: var(--ink); transition: width .4s var(--ease); }
.stepper li.is-done .bar::after, .stepper li.is-active .bar::after { width: 100%; }
.stepper .txt { margin-top: 10px; font-size: 13px; color: var(--muted); font-weight: 500; }
.stepper li.is-active .txt, .stepper li.is-done .txt { color: var(--ink); }

.wizard-step { display: none; }
.wizard-step.is-active { display: block; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.summary-list { list-style: none; margin: 0; padding: 0; display: grid; }
.summary-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.summary-list li:last-child { border-bottom: 0; }
.summary-list .k { color: var(--muted); }
.summary-list .v { font-weight: 500; text-align: right; overflow-wrap: anywhere; }

.coin-preview { display: flex; gap: 16px; align-items: center; }
.coin-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--bg); font-weight: 700; font-size: 18px;
}
.coin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.coin-preview .name { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.coin-preview .ticker { color: var(--muted); font-size: 14px; }

.route {
  display: grid; gap: 0; margin-top: 8px;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.route-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; font-size: 14px; }
.route-row + .route-row { border-top: 1px solid var(--line); }
.route-row .ri { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); }
.route-row .ri svg { width: 16px; height: 16px; }
.route-row .rt { font-weight: 550; }
.route-row .rs { font-size: 12.5px; color: var(--muted); }

.notice {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--surface-2); font-size: 14px; color: var(--ink-2);
}
.notice svg { width: 18px; height: 18px; margin-top: 1px; color: var(--muted); }
.notice.amber { background: var(--amber-soft); }
.notice.amber svg { color: var(--amber); }
.notice.green { background: var(--green-soft); }
.notice.green svg { color: var(--green); }

/* Sign-in */
.auth-wrap { max-width: 460px; margin: 0 auto; padding: 72px 0 40px; }
.auth-wrap h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.04em; text-align: center; }
.auth-wrap > p { text-align: center; color: var(--muted); margin-top: 14px; font-size: 17px; }
.auth-list { display: grid; gap: 10px; margin-top: 36px; }
.auth-btn {
  display: grid; grid-template-columns: 28px 1fr 16px; align-items: center; gap: 14px;
  height: 56px; padding: 0 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-weight: 550; font-size: 15.5px; text-align: left;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.auth-btn:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.auth-btn > svg { width: 16px; height: 16px; color: var(--muted); }
.auth-btn.is-loading { pointer-events: none; opacity: .7; }
.divider { display: flex; align-items: center; gap: 14px; margin: 28px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fine { font-size: 13px; color: var(--muted); text-align: center; margin-top: 28px; }

/* Dashboard */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 56px 0 32px; }
.dash-head h1 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.04em; }
.dash-head p { color: var(--muted); margin-top: 8px; }

.balance-hero {
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--ink); color: var(--bg); position: relative; overflow: hidden; isolation: isolate;
}
.balance-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 100% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); }
.balance-hero .widget-label { color: color-mix(in srgb, var(--bg) 60%, var(--ink)); }
.balance-hero .big { font-size: clamp(44px, 6vw, 64px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin-top: 12px; font-variant-numeric: tabular-nums; }
.balance-hero .sub { margin-top: 12px; color: color-mix(in srgb, var(--bg) 65%, var(--ink)); font-size: 14px; }
.balance-hero .btn { margin-top: 28px; }
.balance-hero .btn-primary { background: var(--bg); color: var(--ink); }

.account-list { display: grid; }
.account {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.account:last-child { border-bottom: 0; }
.account .handle { font-weight: 600; }
.account .meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.account .amt { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.account .amt small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.account.is-empty .pf { opacity: .35; filter: grayscale(1); }

.coin-row { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.coin-row:last-child { border-bottom: 0; }
.coin-row .coin-avatar { width: 40px; height: 40px; font-size: 13px; }
.coin-row .ct { font-weight: 600; }
.coin-row .cs { font-size: 13px; color: var(--muted); }
.coin-row.is-off { opacity: .55; }
@media (max-width: 560px) { .coin-row { grid-template-columns: 40px 1fr auto; } .coin-row .coin-earned { display: none; } }

/* Redeem */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 640px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
.brand-option {
  position: relative; aspect-ratio: 1.45; border-radius: 14px; color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: -0.02em;
  line-height: 1.15; text-align: center; padding: 0 8px 14px;
  transition: transform .2s var(--ease), box-shadow .2s;
  outline-offset: 3px;
}
.brand-option:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.brand-option[aria-checked="true"] { outline: 2px solid var(--ink); }
.brand-option[aria-checked="true"]::after {
  content: ""; position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e0e10' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.brand-option small { position: absolute; bottom: 8px; left: 10px; font-size: 10.5px; font-weight: 500; opacity: .8; }

.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search .input { padding-left: 40px; }

.code-reveal {
  margin-top: 16px; padding: 20px; border-radius: 16px;
  background: var(--surface-2); border: 1px dashed var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.code-reveal .mono { font-size: 20px; font-weight: 600; letter-spacing: .12em; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 12, .5); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-card {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(.98); opacity: 0; transition: transform .3s var(--ease), opacity .25s;
}
.modal.is-open .modal-card { transform: none; opacity: 1; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal-body { padding: 36px 32px 32px; }
.modal-body h2 { font-size: 26px; letter-spacing: -0.03em; }
.modal-body > p { color: var(--muted); margin-top: 10px; }
.success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 20px; }
.success-icon svg { width: 26px; height: 26px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  transition: opacity .25s, transform .25s var(--ease);
  display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; color: var(--green); }

/* Ledger */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.toolbar .search { width: min(360px, 100%); }
.toolbar .search .input { height: 40px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chips .chip { height: 34px; padding: 0 14px; font-size: 13.5px; }
.ev { display: inline-flex; align-items: center; gap: 8px; font-weight: 550; white-space: nowrap; }
.ev-dot { width: 8px; height: 8px; border-radius: 50%; }
.addr { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.addr a:hover { color: var(--ink); text-decoration: underline; }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); position: relative; display: inline-block; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Utilities */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.stack-16 > * + * { margin-top: 16px; }
.stack-20 > * + * { margin-top: 20px; }

/* ==========================================================================
   Art direction: gift cards, card wall, illustrations
   ========================================================================== */

/* Gift card */
.gcard {
  --gc-bg: #111; --gc-fg: #fff;
  position: relative; flex: none;
  width: 250px; aspect-ratio: 1.586;
  border-radius: 16px; padding: 18px 20px;
  background: var(--gc-bg); color: var(--gc-fg);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: inset 0 0 0 1px #0c0c0e14, 0 1px 2px #0c0c0e14, 0 18px 40px -22px #0c0c0e66;
  overflow: hidden; isolation: isolate;
}
.gcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(155deg, #ffffff1f 0%, transparent 42%);
}
.gcard-top { display: flex; align-items: center; gap: 10px; }
.gcard-logo svg { width: 28px; height: 28px; }
.gcard-logo.is-word svg { width: var(--ws, 58px); height: var(--ws, 58px); margin: calc(var(--ws, 58px) * -.3) 0; }
.gcard-name { font-weight: 600; font-size: 18px; letter-spacing: -0.03em; }
.gcard-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.gcard-amt { font-size: 26px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.gcard-tag { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; opacity: .7; }
.gcard-sm { width: 150px; border-radius: 11px; padding: 11px 12px; }
.gcard-sm .gcard-logo svg { width: 18px; height: 18px; }
.gcard-sm .gcard-logo.is-word svg { width: calc(var(--ws, 58px) * .62); height: calc(var(--ws, 58px) * .62); margin: calc(var(--ws, 58px) * -.19) 0; }
.gcard-sm .gcard-name { font-size: 12.5px; }
.gcard-sm .gcard-amt { font-size: 16px; }
.gcard-sm .gcard-tag { display: none; }

/* Hero */
.hero-c { padding: 88px 0 0; text-align: center; overflow: hidden; }
.hero-c .display { max-width: 1000px; margin: 0 auto; }
.hero-c .lead { max-width: 520px; margin: 28px auto 0; }
.hero-c .hero-cta { justify-content: center; }

/* Card wall */
.wall { position: relative; margin-top: 88px; display: grid; gap: 18px; padding-bottom: 96px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.wall-row { display: flex; gap: 18px; width: max-content; animation: marquee 60s linear infinite; }
.wall-row:nth-child(2) { animation-direction: reverse; animation-duration: 70s; }
.wall-row:nth-child(3) { animation-duration: 80s; }
.wall:hover .wall-row { animation-play-state: paused; }
.wall .gcard { transition: transform .4s var(--ease); }
.wall .gcard:hover { transform: translateY(-6px) rotate(-1.5deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Section heads (new) */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.head h2 { font-size: clamp(38px, 5.6vw, 72px); letter-spacing: -0.05em; line-height: .95; max-width: 760px; }
.head p { color: var(--muted); max-width: 340px; font-size: 16px; }

/* How it works bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } }
.tile { background: var(--surface-2); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.tile-art { height: 300px; position: relative; display: grid; place-items: center; overflow: hidden; }
.tile-copy { padding: 0 28px 28px; }
.tile-copy .mono { color: var(--muted); font-size: 11px; }
.tile-copy h3 { font-size: 26px; margin-top: 8px; letter-spacing: -0.04em; }
.tile-copy p { color: var(--muted); margin-top: 6px; font-size: 15px; }

/* Illustration 1: mini launch form */
.mini-form { width: 260px; background: var(--surface); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-lg); display: grid; gap: 12px; }
.mini-pfs { display: flex; gap: 6px; }
.mini-pfs .pf { width: 34px; height: 34px; border-radius: 10px; opacity: .35; }
.mini-pfs .pf svg { width: 16px; height: 16px; }
.mini-pfs .pf.on { opacity: 1; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.mini-input { height: 42px; border-radius: 12px; border: 1px solid var(--line-2); display: flex; align-items: center; padding: 0 14px; font-weight: 500; }
.mini-input .caret { width: 1.5px; height: 18px; background: var(--ink); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mini-btn { height: 40px; border-radius: 999px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 500; font-size: 14px; }

/* Illustration 2: fees into vault */
.flow-art { width: 100%; height: 100%; }
.coin-chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-family: var(--font-mono); font-size: 10.5px; white-space: nowrap; }
.coin-chip i { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; color: var(--bg); }
.coin-chip i svg { width: 11px; height: 11px; }
.vault { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); width: 200px; padding: 16px 18px; border-radius: 18px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); }
.vault .mono { opacity: .6; font-size: 10px; text-transform: uppercase; }
.vault strong { display: block; font-size: 30px; letter-spacing: -0.045em; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.drop { animation: drop 3.2s var(--ease) infinite; }
.drop:nth-child(2) { animation-delay: 1.05s; }
.drop:nth-child(3) { animation-delay: 2.1s; }
@keyframes drop { 0% { transform: translateY(-14px); opacity: 0; } 15% { opacity: 1; transform: none; } 70% { opacity: 1; transform: translateY(40px); } 100% { opacity: 0; transform: translateY(60px) scale(.9); } }

/* Illustration 3: fanned cards */
.fan { position: relative; width: 260px; height: 190px; }
.fan .gcard { position: absolute; left: 50%; top: 50%; width: 210px; }
.fan .gcard:nth-child(1) { transform: translate(-50%, -50%) translate(-44px, -6px) rotate(-12deg); }
.fan .gcard:nth-child(2) { transform: translate(-50%, -50%) translate(40px, -10px) rotate(10deg); }
.fan .gcard:nth-child(3) { transform: translate(-50%, -50%) translate(0, 14px) rotate(-1deg); }
.tile:hover .fan .gcard:nth-child(1) { transform: translate(-50%, -50%) translate(-64px, -10px) rotate(-16deg); }
.tile:hover .fan .gcard:nth-child(2) { transform: translate(-50%, -50%) translate(60px, -14px) rotate(14deg); }
.fan .gcard { transition: transform .6s var(--ease); }

/* Platforms */
.pf-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 900px) { .pf-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .pf-row { grid-template-columns: repeat(2, 1fr); } }
.pf-card { border-radius: 24px; background: var(--surface-2); padding: 22px; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; transition: transform .4s var(--ease); }
.pf-card:hover { transform: translateY(-4px); }
.pf-card .pf { width: 56px; height: 56px; border-radius: 16px; }
.pf-card .pf svg { width: 28px; height: 28px; }
.pf-card strong { font-size: 20px; letter-spacing: -0.03em; font-weight: 600; display: block; }
.pf-card .mono { color: var(--muted); font-size: 11px; }

/* Phone mockup */
.claim-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .claim-split { grid-template-columns: 1fr; gap: 48px; } }
.claim-split h2 { font-size: clamp(38px, 5.6vw, 72px); letter-spacing: -0.05em; line-height: .95; }
.claim-split p { color: var(--muted); margin-top: 20px; max-width: 380px; font-size: 17px; }
.phone-stage { background: var(--surface-2); border-radius: 32px; padding: 56px 24px 0; display: flex; justify-content: center; overflow: hidden; min-height: 560px; }
.phone { width: 300px; background: var(--surface); border-radius: 40px 40px 0 0; padding: 14px 14px 0; box-shadow: var(--shadow-lg); border: 1px solid var(--line); border-bottom: 0; }
.phone-notch { width: 90px; height: 24px; border-radius: 99px; background: var(--ink); margin: 0 auto 18px; }
.phone-in { padding: 0 8px; display: grid; gap: 14px; }
.phone-bal { background: var(--ink); color: var(--bg); border-radius: 20px; padding: 16px; }
.phone-bal .mono { font-size: 9.5px; opacity: .6; text-transform: uppercase; }
.phone-bal strong { display: block; font-size: 32px; font-weight: 600; letter-spacing: -0.05em; margin-top: 2px; }
.phone-bal .who { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; opacity: .85; }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone-grid .gcard { width: 100%; }
.phone-grid .gcard.sel { outline: 2px solid var(--ink); outline-offset: 2px; }
.phone-chips { display: flex; gap: 6px; }
.phone-chips span { flex: 1; height: 32px; border-radius: 99px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12.5px; font-weight: 500; }
.phone-chips span.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.phone-cta { height: 46px; border-radius: 99px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 500; font-size: 14.5px; margin-bottom: 18px; }

/* Route diagram */
.route-art { background: var(--ink); color: var(--bg); border-radius: 32px; padding: 64px 48px; overflow: hidden; }
@media (max-width: 640px) { .route-art { padding: 40px 20px; border-radius: 24px; } }
.route-art h2 { font-size: clamp(38px, 5.6vw, 72px); letter-spacing: -0.05em; line-height: .95; max-width: 720px; }
.nodes { display: flex; align-items: center; margin-top: 56px; }
.node { flex: none; display: grid; justify-items: center; gap: 12px; text-align: center; }
.node-box { width: 88px; height: 88px; border-radius: 24px; display: grid; place-items: center; background: #ffffff12; border: 1px solid #ffffff1f; }
:root[data-theme="dark"] .node-box { background: #0c0c0e12; border-color: #0c0c0e1f; }
.node-box svg { width: 34px; height: 34px; }
.node .mono { font-size: 10.5px; opacity: .65; }
.wire { flex: 1; height: 1px; min-width: 24px; margin: 0 12px 30px; background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 12px); opacity: .35; position: relative; background-size: 24px 1px; animation: wire 1s linear infinite; }
@keyframes wire { to { background-position: 24px 0; } }
@media (max-width: 720px) { .nodes { flex-direction: column; align-items: flex-start; } .wire { width: 1px; height: 28px; flex: none; margin: 8px 0 8px 44px; background: repeating-linear-gradient(180deg, currentColor 0 6px, transparent 6px 12px); } .node { grid-template-columns: 88px auto; align-items: center; justify-items: start; text-align: left; gap: 16px; } }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid #ffffff1f; }
:root[data-theme="dark"] .facts { border-color: #0c0c0e1f; }
.facts div { padding: 22px 20px 0 0; }
.facts strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }
.facts span { font-family: var(--font-mono); font-size: 10.5px; opacity: .6; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr 1fr; row-gap: 12px; } }

/* CTA with cards */
.cta2 { position: relative; overflow: hidden; border-radius: 32px; background: var(--surface-2); padding: 72px 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; min-height: 420px; }
.cta2 h2 { font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.055em; line-height: .93; }
.cta2 .fan { width: 100%; height: 300px; }
.cta2 .fan .gcard { width: 260px; }
@media (max-width: 900px) { .cta2 { grid-template-columns: 1fr; padding: 48px 24px; } }

@media (prefers-reduced-motion: reduce) { .wall-row, .drop, .wire, .caret { animation: none !important; } }

/* Brand picker (claim) */
.brand-grid { grid-template-columns: repeat(3, 1fr); }
.brand-pick { display: block; border-radius: 13px; outline-offset: 2px; transition: transform .25s var(--ease); }
.brand-pick .gcard { width: 100%; }
.brand-pick:hover { transform: translateY(-2px); }
.brand-pick[aria-checked="true"] { outline: 2px solid var(--ink); }
.brand-pick[aria-checked="false"] .gcard { opacity: .92; }

@media (max-width: 640px) { .wall .gcard { width: 200px; } .wall .gcard-amt { font-size: 22px; } .wall { margin-top: 56px; gap: 12px; } .wall-row { gap: 12px; } }
