/* ============================================================
   fomo agent — dark space theme (palette lifted from fomo.family
   design tokens), page structure modeled on joinpumpfun.com
   ============================================================ */
:root {
  /* fomo.family tokens */
  --bg: #060510;
  --bg-2: #12111a;
  --bg-3: #161522;
  --bg-glass: rgba(203, 208, 235, 0.10);
  --ink: #f7f7f7;
  --ink-2: #9899a3;
  --ink-3: #474b52;
  --accent: #516af6;
  --accent-soft: rgba(81, 106, 246, 0.16);
  --accent-deep: #221d4b;
  --green: #21c95e;
  --green-soft: rgba(33, 201, 94, 0.20);
  --yellow: #ffbf17;
  --red: #ff622e;
  --line: #1d1c2b;
  --line-2: #262538;

  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --track-tight: -0.045em;
}

/* fomo.family's own typeface (local copies in assets/) */
@font-face {
  font-family: 'Aeonik';
  src: url('/assets/Aeonik-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('/assets/Aeonik-Medium.woff2') format('woff2');
  font-weight: 500 800; font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Aeonik', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: var(--track-tight); font-weight: 800; }

/* ---------- starfield background ---------- */
.space-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 42% at 78% -6%, rgba(81,106,246,0.20), transparent 62%),
    radial-gradient(ellipse 50% 38% at 12% 4%, rgba(34,29,75,0.55), transparent 65%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(34,29,75,0.35), transparent 70%),
    var(--bg);
}
.stars, .stars2 { position: absolute; inset: -50%; background-repeat: repeat; }
.stars {
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, rgba(247,247,247,0.85), transparent 55%),
    radial-gradient(1px 1px at 130px 90px, rgba(247,247,247,0.6), transparent 55%),
    radial-gradient(1.4px 1.4px at 250px 40px, rgba(203,208,235,0.7), transparent 55%),
    radial-gradient(0.9px 0.9px at 310px 140px, rgba(247,247,247,0.5), transparent 55%),
    radial-gradient(1.1px 1.1px at 70px 180px, rgba(203,208,235,0.6), transparent 55%);
  background-size: 380px 220px;
  animation: starDrift 160s linear infinite;
}
.stars2 {
  background-image:
    radial-gradient(1px 1px at 60px 60px, rgba(129,146,255,0.7), transparent 55%),
    radial-gradient(1.3px 1.3px at 200px 150px, rgba(247,247,247,0.45), transparent 55%),
    radial-gradient(0.8px 0.8px at 300px 80px, rgba(203,208,235,0.5), transparent 55%);
  background-size: 460px 300px;
  animation: starDrift 240s linear infinite reverse;
}
@keyframes starDrift { to { transform: translate3d(200px, 120px, 0); } }

/* ---------- shell ---------- */
.wrap { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
main.wrap { padding-bottom: 40px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 5, 16, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 13px 22px;
  display: flex; align-items: center; gap: 8px; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: 18px; }
.logo img { width: 32px; height: 32px; border-radius: 9px; display: block; }
.logo-word { font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 11px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-2); transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-3); }
.nav-links a.active { color: var(--ink); text-decoration: underline;
  text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }

/* ---------- payout strip (static) ---------- */
.feed-strip {
  border-bottom: 1px solid var(--line); overflow: hidden; position: relative; z-index: 5;
  background:
    radial-gradient(ellipse 55% 130% at 50% 0%, rgba(81,106,246,0.15), transparent 70%),
    var(--bg-2);
}
.feed-track { display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 12px 20px; }
.feed-item { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.02em; }
.feed-item::before { content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px rgba(81,106,246,0.9); }
.feed-item b { color: var(--ink); font-weight: 700; }
.feed-item .amt { color: var(--green); font-weight: 700; }
.feed-item .tag { color: var(--green); font-weight: 800; letter-spacing: 0.14em; font-size: 11px; }
.feed-sep { color: var(--line-2); padding: 0 18px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 30px; display: grid; gap: 22px; }
.chip {
  width: fit-content; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); background: var(--bg-glass);
  border-radius: 10px; padding: 6px 11px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.h-display {
  font-size: clamp(2.5rem, 5.4vw, 4.9rem); line-height: 0.99; max-width: 17ch;
  text-wrap: balance;
}
.h-display .grad {
  background: linear-gradient(95deg, #8fa1ff, var(--accent) 55%, #7d5bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { max-width: 54ch; font-size: 17px; color: var(--ink-2); line-height: 1.65; }
.link-arrow { width: fit-content; font-weight: 700; font-size: 15px; color: #8fa1ff;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px;
  transition: color 0.15s; }
.link-arrow:hover { color: #b3c0ff; }

/* ---------- split hero (headline left · offer panel right) ---------- */
.split-hero {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1.05fr;
  border-bottom: 1px solid var(--line);
  min-height: 560px;
}
.split-left {
  display: grid; gap: 22px; align-content: center;
  padding: clamp(40px, 6vw, 90px) clamp(24px, 5vw, 80px);
}
.split-right {
  position: relative; overflow: hidden;
  display: grid; gap: 20px; align-content: center;
  padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 64px);
  background:
    radial-gradient(ellipse 90% 80% at 80% 10%, rgba(255,255,255,0.10), transparent 55%),
    linear-gradient(150deg, #5c74ff, var(--accent) 55%, #3a4fd8);
  border-left: 1px solid var(--line);
}
.split-right .chip { background: rgba(6,5,16,0.35); border-color: rgba(255,255,255,0.25); color: #fff; }
.split-right .chip .dot { background: #fff; }
.split-right h2 {
  font-size: clamp(2.2rem, 4.4vw, 4.2rem); line-height: 1.0;
  max-width: 16ch; text-wrap: balance; color: #fff;
}
.split-right h2 .money { color: #aef6c7; }
.split-right p { max-width: 46ch; color: rgba(255,255,255,0.82); font-size: 16.5px; line-height: 1.65; }
.offer-ctas { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 10px; }
.cta-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  border: 1.5px solid rgba(255,255,255,0.85); border-radius: var(--radius);
  background: transparent; color: #fff; padding: 20px 20px 16px;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s;
}
.cta-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.10); }
.cta-card.primary { background: #0c0b18; border-color: #0c0b18; }
.cta-card.primary:hover { background: #151327; }
.cta-card.primary .arrow { color: #8fa1ff; }
.cta-card .t { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.cta-card .s { font-size: 13.5px; color: rgba(255,255,255,0.72); margin-top: 5px; }
.cta-card .arrow { align-self: flex-end; font-size: 22px; transition: transform 0.2s; }
.cta-card:hover .arrow { transform: translateX(4px); }

/* ---------- THE FLOW strip ---------- */
.flow-strip {
  position: relative; z-index: 2;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 17, 26, 0.65);
}
.flow-in {
  max-width: none; margin: 0 auto; padding: 16px clamp(24px, 4vw, 60px);
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
}
.flow-in .k { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: var(--ink-3); margin-right: 8px; }
.flow-in .n { color: var(--ink); }
.flow-in .sep { color: var(--ink-3); }
.flow-in .link-arrow { margin-left: auto; font-size: 14px; }

/* ---------- feature cards (home lower) ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 26px 0 80px; }
.feat {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  padding: 22px; display: grid; gap: 8px; align-content: start;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.feat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feat .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: #8fa1ff; font-size: 17px; }
.feat h3 { font-size: 16.5px; letter-spacing: -0.02em; }
.feat p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- page headers ---------- */
.page-head { padding: 72px 0 20px; display: grid; gap: 16px; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 0.98; }
.page-head p { max-width: 62ch; color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }

/* ---------- section blocks ---------- */
.section { margin: 44px 0 72px; display: grid; gap: 16px; }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.05; }
.section > p.sub { max-width: 54ch; color: var(--ink-2); font-size: 15px; }

/* ---------- big step list (how it works) ---------- */
.steps-list { display: grid; border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-2); }
.step-row { padding: clamp(26px, 4vw, 44px); border-bottom: 1px solid var(--line-2); display: grid; gap: 12px; }
.step-row:last-child { border-bottom: none; }
.step-row.alt { background: var(--bg-3); }
.step-k { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; color: #8fa1ff; }
.step-row h2 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); }
.step-row p { max-width: 60ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.step-row .aside { font-size: 13px; color: var(--ink-3); }
.taps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tap { border: 1px solid var(--line-2); background: var(--bg); border-radius: 10px;
  padding: 8px 13px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.tap b { color: var(--ink); }

/* copy-template box */
.template {
  border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--bg);
  padding: 16px 18px; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 13.5px; color: var(--ink); line-height: 1.7; max-width: 620px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; border-radius: 12px; font-family: inherit;
  font-weight: 700; font-size: 14.5px; padding: 12px 20px;
  transition: transform 0.15s var(--ease), filter 0.15s;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.12); transform: translateY(-2px); }
.btn-ghost { background: var(--bg-3); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

/* end-of-page CTA band */
.cta-band {
  margin: 60px 0 80px; border-radius: var(--radius-lg); padding: clamp(28px, 4.5vw, 48px);
  background: linear-gradient(120deg, #1a1740, #221d4b 55%, #171432);
  border: 1px solid #2c2760; display: grid; gap: 14px;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.cta-band p { color: var(--ink-2); font-size: 15px; max-width: 52ch; }
.cta-band .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* ---------- tables / ledgers ---------- */
.ledger { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.ledger-head, .ledger-row {
  display: grid; grid-template-columns: 1.1fr 1.4fr 0.7fr 0.9fr; gap: 12px;
  padding: 13px 18px; align-items: center;
}
.ledger-head { background: var(--bg-3); font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.ledger-row { border-top: 1px solid var(--line); font-size: 14px; }
.ledger-row .who { font-weight: 700; }
.ledger-row .addr { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--ink-2); }
.ledger-row .amt { color: var(--green); font-weight: 800; }
.ledger-row a.tx { color: #8fa1ff; font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.ledger-row a.tx:hover { color: #b3c0ff; }
.status-pill { width: fit-content; border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; }
.status-pill.paid { background: var(--green-soft); color: var(--green); }
.status-pill.ignored { background: rgba(255, 98, 46, 0.15); color: var(--red); }
.status-pill.pending { background: rgba(255, 191, 23, 0.15); color: var(--yellow); }

.empty {
  border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--bg-2);
  padding: 40px 24px; text-align: center; color: var(--ink-2); font-size: 14.5px;
  display: grid; gap: 8px; justify-items: center;
}
.empty .big { font-size: 26px; }
.empty b { color: var(--ink); }

/* ---------- stats page ---------- */
.stat-hero {
  position: relative; overflow: hidden;
  border: 1px solid #2c2760; border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  display: grid; gap: 10px; justify-items: center; text-align: center;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(81,106,246,0.22), transparent 65%),
    linear-gradient(160deg, #171432, #12111a 60%, #0d0c1c);
}
.stat-hero-mascot { position: absolute; right: 4%; bottom: -8%; width: clamp(90px, 12vw, 150px);
  opacity: 0.35; image-rendering: pixelated; transform: rotate(-6deg); }
.stat-hero-label { font-size: 12px; font-weight: 800; letter-spacing: 0.2em; color: #8fa1ff; }
.stat-hero-value {
  font-size: clamp(3.4rem, 9vw, 6.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(180deg, #ffffff, #b9f5cf 70%, var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-hero-sub { max-width: 54ch; font-size: 14px; color: var(--ink-2); line-height: 1.6; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.stat-card { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2);
  padding: 22px; display: grid; gap: 6px;
  transition: transform 0.2s var(--ease), border-color 0.2s; }
.stat-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.stat-card .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); font-size: 17px; margin-bottom: 6px; }
.stat-card .v { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
.stat-card .v.green { color: var(--green); }
.stat-card .l { font-size: 13px; color: var(--ink-2); font-weight: 600; }

/* ---------- QR card + step columns (how it works) ---------- */
.step-cols { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: start; }
.qr-card {
  display: grid; gap: 10px; justify-items: center;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #f4f4f8; padding: 16px 16px 14px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.qr-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -14px rgba(81,106,246,0.55); }
.qr-card img { width: 168px; height: 168px; display: block; image-rendering: pixelated; }
.qr-card span { font-size: 12.5px; font-weight: 700; color: #12111a; }
@media (max-width: 700px) {
  .step-cols { grid-template-columns: 1fr; }
  .qr-card { justify-self: start; }
}

/* ---------- referral bits ---------- */
.reward-chip { width: fit-content; border: 1px solid #2c8a52; background: var(--green-soft);
  color: var(--green); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 800; }
.ref-steps { display: grid; border-top: 1px solid var(--line-2); }
.ref-step { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 24px 4px;
  border-bottom: 1px solid var(--line-2); }
.ref-step .n { font-size: 26px; font-weight: 800; color: #8fa1ff; }
.ref-step h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 4px; }
.ref-step p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; max-width: 62ch; }
.qual-list { display: grid; gap: 10px; }
.qual-list li { list-style: none; display: flex; gap: 10px; align-items: flex-start;
  color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.qual-list li::before { content: "✓"; color: var(--green); font-weight: 800; margin-top: 1px; }
.qual-list li.no::before { content: "✕"; color: var(--red); }

/* ---------- notice ---------- */
.notice { border: 1px solid var(--line-2); border-left: 3px solid var(--yellow);
  background: var(--bg-2); border-radius: 12px; padding: 14px 18px;
  color: var(--ink-2); font-size: 13.5px; line-height: 1.6; max-width: 720px; }
.notice b { color: var(--ink); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); position: relative; z-index: 2; }
.footer-in { max-width: var(--maxw); margin: 0 auto; padding: 36px 22px 42px; display: grid; gap: 20px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.footer-fine { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; max-width: 78ch; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split-hero { grid-template-columns: 1fr; min-height: 0; }
  .split-right { border-left: none; border-top: 1px solid var(--line); }
  .flow-in .link-arrow { margin-left: 0; width: 100%; }
}
@media (max-width: 760px) {
  .nav-in { flex-wrap: wrap; }
  .nav-links { width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: 2px; }
  .hero { padding-top: 54px; }
  .ledger-head { display: none; }
  .ledger-row { grid-template-columns: 1fr; gap: 6px; }
}
