/* ==========================================================================
   AntiCash landing page styles
   Design tokens first, then base, layout, components, sections, motion.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #14171a;
  --ink-2: #5b636b;
  --ink-3: #8a9097;
  --line: #e3dfd6;
  --line-strong: #cfcabd;
  --green: #0f6b4f;
  --green-deep: #0b4f3b;
  --green-tint: #e7f1ec;
  --amber: #b7791f;
  --amber-tint: #f8efdc;
  --red: #b42318;
  --red-tint: #fbe9e7;

  --font-ui: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", "Segoe UI", Consolas, monospace;

  --radius-card: 12px;
  --radius-ctl: 8px;
  --wrap: 1120px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--green-tint); color: var(--green-deep); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* Auth state switching. The only thing the app needs to do is set
   <html data-auth="loading|out|in">. */
html:not([data-auth="out"]) [data-show="out"] { display: none !important; }
html:not([data-auth="in"]) [data-show="in"] { display: none !important; }
html:not([data-auth="loading"]) [data-show="loading"] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: var(--radius-ctl);
  font-weight: 700; font-size: 15px; letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg.arrow { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: var(--green-tint); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.g-badge { width: 24px; height: 24px; border-radius: 6px; background: #fff; display: grid; place-items: center; flex: none; }
.g-badge svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -22px rgba(20, 23, 26, 0.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.wordmark { font-weight: 800; font-size: 22px; letter-spacing: -0.04em; }
.wordmark span { color: var(--green); }
.nav { display: flex; gap: 6px; }
.nav a { position: relative; padding: 8px 14px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: color 0.18s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out); }
.nav a:hover, .nav a[aria-current="page"], .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after, .nav a.active::after { transform: scaleX(1); }
.header-right { display: flex; align-items: center; gap: 12px; }
.balance-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-ctl); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-2); }
.balance-chip b { font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--green); }
.avatar-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 8px 0 5px; border: 1px solid var(--line); border-radius: var(--radius-ctl); background: var(--surface); }
.avatar { width: 28px; height: 28px; border-radius: 6px; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.user-menu { position: relative; }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 20px 40px -24px rgba(20, 23, 26, 0.35); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.18s var(--ease), transform 0.18s var(--ease); }
.user-menu.open .menu { opacity: 1; transform: none; pointer-events: auto; }
.menu button, .menu a { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px; font-size: 14px; font-weight: 600; }
.menu button:hover, .menu a:hover { background: var(--bg); }
.skel-pill { width: 150px; height: 38px; border-radius: var(--radius-ctl); }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius-ctl); place-items: center; background: var(--surface); }
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; transition: background 0.2s var(--ease); }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease-out); }
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }
.drawer { display: none; }

/* ---------- Skeleton ---------- */
.skeleton { position: relative; overflow: hidden; background: #ebe7de; border-radius: 6px; color: transparent !important; user-select: none; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Typography helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.eyebrow .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.eyebrow .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--green); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.7; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; max-width: 18ch; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.section { padding: 104px 0; }
.section-head { display: grid; gap: 16px; margin-bottom: 56px; }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 96px; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 72px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; margin: 22px 0 24px; max-width: 12ch; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .wi { display: inline-block; transform: translateY(110%); animation: wordUp 0.9s var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes wordUp { to { transform: none; } }
.hero h1 .mark { position: relative; display: inline-block; white-space: nowrap; }
.hero h1 .mark svg { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.3em; overflow: visible; }
.hero h1 .mark path { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1s 1s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .sub { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; opacity: 0; transform: translateY(12px); animation: fadeUp 0.9s 0.55s var(--ease-out) forwards; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; opacity: 0; transform: translateY(12px); animation: fadeUp 0.9s 0.7s var(--ease-out) forwards; }
.hero .micro { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); font-weight: 600; opacity: 0; animation: fadeUp 0.9s 0.85s var(--ease-out) forwards; }
.hero .eyebrow { opacity: 0; animation: fadeUp 0.8s 0s var(--ease-out) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.stage { position: relative; padding: 28px 0 28px 28px; opacity: 0; animation: fadeUp 1s 0.45s var(--ease-out) forwards; transform: translateY(18px); }
.stage::before { content: ""; position: absolute; inset: 0 -24px 0 8px; background-image: radial-gradient(var(--line-strong) 1.2px, transparent 1.2px); background-size: 20px 20px; opacity: 0.7; border-radius: 20px; -webkit-mask-image: radial-gradient(ellipse at 60% 50%, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse at 60% 50%, #000 30%, transparent 78%); }
.wallet { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 40px 60px -40px rgba(20, 23, 26, 0.35), 0 2px 0 rgba(20, 23, 26, 0.02); transition: transform 0.4s var(--ease-out); will-change: transform; }
.wallet-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.wallet-title { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.tag-sample { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); background: var(--amber-tint); border-radius: 999px; padding: 4px 10px; }
.big-fig { font-family: var(--font-mono); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.fig-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.fig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.mini-fig { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.mini-fig .mono { font-size: 18px; font-weight: 500; }
.bar { height: 8px; background: #ece8df; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 99px; transition: width 1.1s var(--ease-out); }
.bar-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.tx-list { margin-top: 20px; border-top: 1px solid var(--line); }
.tx { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; animation: txIn 0.7s var(--ease-out); }
.tx:last-child { border-bottom: 0; padding-bottom: 0; }
.tx .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx .amt { font-family: var(--font-mono); font-size: 14px; text-align: right; min-width: 74px; }
@keyframes txIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; transition: background-color 0.4s var(--ease), color 0.4s var(--ease); white-space: nowrap; }
.badge.pending { background: var(--amber-tint); color: var(--amber); }
.badge.confirmed { background: var(--green-tint); color: var(--green); }
.badge.reversed { background: var(--red-tint); color: var(--red); }
.badge.requested { background: #e9edf3; color: #3b4a5e; }
.toast { position: absolute; left: -4px; bottom: -4px; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px 12px 12px; font-size: 13.5px; font-weight: 600; box-shadow: 0 24px 40px -20px rgba(20, 23, 26, 0.6); opacity: 0; transform: translateY(16px) scale(0.97); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease-out); z-index: 2; max-width: 300px; }
.toast.show { opacity: 1; transform: none; }
.toast .ti { width: 28px; height: 28px; border-radius: 8px; background: var(--green); display: grid; place-items: center; flex: none; }
.toast .ti svg { width: 15px; height: 15px; }
.toast small { display: block; color: #b8bec4; font-weight: 500; font-size: 12px; }

/* Signed-in hero */
.hero-in .actions { opacity: 1; transform: none; animation: none; margin-top: 0; }
.hero-in { padding: 56px 0 72px; }
.hero-in h1 { max-width: none; font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.hero-in .sub { opacity: 1; transform: none; animation: none; }
.stat-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-card); margin-top: 8px; }
.stat-trio > div { padding: 22px 24px; }
.stat-trio > div + div { border-left: 1px solid var(--line); }
.stat-trio .mono { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.stat-trio .skeleton.mono { display: inline-block; min-width: 120px; height: 34px; }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: scrollX 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 28px; padding: 20px 14px 20px 0; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.marquee-item::after { content: ""; width: 7px; height: 7px; background: var(--green); transform: rotate(45deg); flex: none; margin-right: 14px; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-card); overflow: hidden; margin-top: -1px; }
.fact { padding: 32px 28px; transition: background-color 0.25s var(--ease); }
.fact:hover { background: #fcfbf8; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact .v { font-family: var(--font-mono); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.fact .l { margin-top: 12px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.facts-wrap { padding: 56px 0 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Ways to earn (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; transition: border-color 0.25s var(--ease), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
.card:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 28px 40px -30px rgba(20, 23, 26, 0.45); }
.bento .c1 { grid-column: span 7; }
.bento .c2 { grid-column: span 5; }
.bento .c3 { grid-column: span 5; }
.bento .c4 { grid-column: span 7; }
.ill { height: 168px; background: var(--bg); border-radius: 10px; margin-bottom: 22px; padding: 22px; position: relative; overflow: hidden; }
.card h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.card h3 svg { width: 20px; height: 20px; color: var(--green); }
.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; max-width: 52ch; }
.note { margin-top: 28px; font-size: 14.5px; color: var(--ink-2); max-width: 70ch; }

/* illustration: survey */
.ill-survey { display: grid; gap: 14px; align-content: center; }
.q { display: flex; align-items: center; gap: 12px; }
.q .cb { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: #fff; position: relative; flex: none; }
.q .cb::after { content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 0.2s; }
.q .ln { height: 8px; border-radius: 4px; background: #e3dfd6; flex: 1; max-width: 70%; }
.q:nth-child(2) .ln { max-width: 54%; }
.q:nth-child(3) .ln { max-width: 62%; }
.card.in .q .cb { animation: tick 6s infinite; }
.card.in .q:nth-child(2) .cb { animation-delay: 0.9s; }
.card.in .q:nth-child(3) .cb { animation-delay: 1.8s; }
.card.in .q .cb::after { animation: tickMark 6s infinite; animation-delay: inherit; }
.card.in .q:nth-child(2) .cb::after { animation-delay: 0.9s; }
.card.in .q:nth-child(3) .cb::after { animation-delay: 1.8s; }
@keyframes tick { 0%, 6% { background: #fff; border-color: var(--line-strong); } 10%, 82% { background: var(--green); border-color: var(--green); } 92%, 100% { background: #fff; border-color: var(--line-strong); } }
@keyframes tickMark { 0%, 6% { transform: rotate(45deg) scale(0); } 12%, 82% { transform: rotate(45deg) scale(1); } 92%, 100% { transform: rotate(45deg) scale(0); } }

/* illustration: app steps */
.ill-app { display: grid; gap: 12px; align-content: center; }
.step-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.step-row .d { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; margin-left: 4px; transition: all 0.3s; }
.step-row .t { display: block; }
.step-row .s { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); font-weight: 400; }
.card.in .step-row .d { animation: dotOn 6.5s infinite; }
.card.in .step-row:nth-child(2) .d { animation-delay: 1.1s; }
.card.in .step-row:nth-child(3) .d { animation-delay: 2.2s; }
@keyframes dotOn { 0%, 4% { background: #fff; border-color: var(--line-strong); } 10%, 84% { background: var(--green); border-color: var(--green); } 94%, 100% { background: #fff; border-color: var(--line-strong); } }

/* illustration: game level */
.ill-game { display: grid; align-content: center; gap: 16px; }
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.levels i { height: 38px; border-radius: 8px; background: #e3dfd6; display: block; }
.card.in .levels i { animation: lvl 7s infinite; }
.card.in .levels i:nth-child(2) { animation-delay: 0.7s; }
.card.in .levels i:nth-child(3) { animation-delay: 1.4s; }
.card.in .levels i:nth-child(4) { animation-delay: 2.1s; }
.card.in .levels i:nth-child(5) { animation-delay: 2.8s; }
@keyframes lvl { 0%, 4% { background: #e3dfd6; transform: none; } 9% { transform: translateY(-4px); } 14%, 84% { background: var(--green); transform: none; } 94%, 100% { background: #e3dfd6; } }
.ill-game .cap { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); display: flex; justify-content: space-between; }

/* illustration: video */
.ill-video { display: grid; place-items: center; }
.player { width: 100%; max-width: 360px; height: 100%; background: var(--ink); border-radius: 10px; position: relative; display: grid; place-items: center; }
.player::before { content: ""; width: 0; height: 0; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.player .pb { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 4px; background: rgba(255, 255, 255, 0.22); border-radius: 4px; overflow: hidden; }
.player .pb i { display: block; height: 100%; width: 0; background: #fff; }
.card.in .player .pb i { animation: play 6s linear infinite; }
@keyframes play { 0% { width: 0; } 85%, 100% { width: 100%; } }

/* ---------- How it works (timeline) ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
.how-side { position: sticky; top: 112px; display: grid; gap: 22px; }
.legend { display: grid; gap: 10px; margin-top: 8px; }
.legend div { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.timeline { position: relative; display: grid; gap: 0; padding-left: 0; }
.tl-track { position: absolute; left: 27px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.tl-fill { position: absolute; left: 0; top: 0; width: 2px; height: 0; background: var(--green); transition: height 0.15s linear; }
.tl-item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 8px 0 52px; opacity: 0.45; transition: opacity 0.5s var(--ease); }
.tl-item:last-child { padding-bottom: 8px; }
.tl-item.active { opacity: 1; }
.tl-num { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-mono); font-size: 16px; font-weight: 500; color: var(--ink-3); transition: all 0.4s var(--ease); }
.tl-item.active .tl-num { background: var(--green); border-color: var(--green); color: #fff; transform: scale(1.04); }
.tl-item h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 8px; }
.tl-item p { color: var(--ink-2); font-size: 16px; max-width: 54ch; }
.tl-item .chip { margin-top: 14px; }

/* ---------- Minimum explainer ---------- */
.min-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.demo-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; gap: 12px; }
.demo input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: #ece8df; outline-offset: 6px; margin: 26px 0 8px; --p: 0%; background: linear-gradient(90deg, var(--green) var(--p), #ece8df var(--p)); }
.demo input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--green); box-shadow: 0 4px 10px -2px rgba(20, 23, 26, 0.3); cursor: grab; transition: transform 0.15s var(--ease); }
.demo input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
.demo input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--green); cursor: grab; }
.scale { position: relative; height: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.scale span { position: absolute; transform: translateX(-50%); }
.scale .s0 { left: 0; transform: none; }
.scale .s600 { right: 0; left: auto; transform: none; }
.scale .s300 { left: 50%; color: var(--green); font-weight: 500; }
.verdict { margin: 18px 0 22px; padding: 14px 16px; border-radius: 10px; background: var(--amber-tint); color: #7a5112; font-size: 15px; font-weight: 700; transition: background-color 0.35s var(--ease), color 0.35s var(--ease); display: flex; gap: 10px; align-items: center; }
.verdict.ok { background: var(--green-tint); color: var(--green-deep); }
.demo .caption { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }

/* ---------- Payout table ---------- */
.table { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-card); overflow: hidden; }
.row { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 22px 28px; transition: background-color 0.2s var(--ease); }
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: #fcfbf8; }
.row dt { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.row dd { color: var(--ink-2); font-size: 15.5px; }
.row dd .mono { color: var(--ink); font-weight: 500; }
.disclaimer { margin-top: 24px; font-size: 14.5px; color: var(--ink-2); max-width: 78ch; padding-left: 16px; border-left: 3px solid var(--green); }

/* ---------- Safety (dark band) ---------- */
.dark { background: var(--ink); color: #fff; border-top: 0 !important; }
.dark .eyebrow { color: #7fd1b0; }
.dark .eyebrow .dot, .dark .eyebrow .dot::after { background: #7fd1b0; border-color: #7fd1b0; }
.dark .h2 { color: #fff; }
.never { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid #2a3035; }
.never li { display: flex; gap: 18px; align-items: flex-start; padding: 28px 24px 28px 0; border-bottom: 1px solid #2a3035; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.4; }
.never li:nth-child(odd) { padding-right: 40px; }
.never li:nth-child(even) { padding-left: 40px; border-left: 1px solid #2a3035; }
.never .x { flex: none; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #4a2a27; background: #2a1715; color: #ff8d82; display: grid; place-items: center; transition: transform 0.4s var(--ease-out); }
.never li:hover .x { transform: rotate(90deg); }
.never .x svg { width: 14px; height: 14px; }
.dark .report { margin-top: 32px; color: #b8bec4; font-size: 15.5px; max-width: 70ch; }
.dark .report a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 80px; align-items: start; }
.faq-side { position: sticky; top: 112px; display: grid; gap: 18px; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; text-align: left; font-size: 18px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.35; transition: color 0.2s var(--ease); }
.faq-q:hover { color: var(--green); }
.pm { position: relative; width: 22px; height: 22px; flex: none; }
.pm::before, .pm::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 2px; margin-top: -1px; background: currentColor; border-radius: 2px; transition: transform 0.35s var(--ease-out), opacity 0.35s; }
.pm::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .pm::after { transform: rotate(0); opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease-out); }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 48px 26px 0; color: var(--ink-2); font-size: 16px; max-width: 62ch; }

/* ---------- CTA band ---------- */
.cta { background: var(--green); color: #fff; padding: 96px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; }
.cta::after { content: ""; position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; }
.cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; max-width: 14ch; }
.cta p { margin-top: 18px; color: #cfe6dc; font-size: 18px; max-width: 46ch; }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { margin: 0 0 16px; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; }
.foot-grid li + li { margin-top: 10px; }
.foot-grid a { font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color 0.18s var(--ease); }
.foot-grid a:hover { color: var(--ink); }
.foot-about { color: var(--ink-2); font-size: 15px; max-width: 34ch; margin-top: 14px; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; font-size: 13.5px; color: var(--ink-3); font-weight: 600; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .how-grid, .min-grid, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .how-side, .faq-side { position: static; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .bento .c1, .bento .c2, .bento .c3, .bento .c4 { grid-column: span 12; }
  .section { padding: 72px 0; }
  .cta-inner { grid-template-columns: 1fr; align-items: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .never { grid-template-columns: 1fr; }
  .never li:nth-child(even) { padding-left: 0; border-left: 0; }
  .never li:nth-child(odd) { padding-right: 0; }
  .row { grid-template-columns: 1fr; gap: 6px; padding: 20px; }
}
@media (max-width: 820px) {
  .nav, .header-right .hide-sm { display: none; }
  .menu-toggle { display: grid; }
  .drawer { display: block; position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 24px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform 0.35s var(--ease-out), opacity 0.25s var(--ease); z-index: 40; }
  .drawer.open { transform: none; opacity: 1; pointer-events: auto; }
  .drawer a.dl { display: block; padding: 16px 0; font-size: 18px; font-weight: 700; border-bottom: 1px solid var(--line); }
  .drawer .btn { width: 100%; margin-top: 20px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 40px 0 64px; }
  .hero .actions .btn { width: 100%; }
  .hero .sub { font-size: 17.5px; }
  .stage { padding: 20px 0 36px 0; }
  .stage::before { inset: 0 -12px; }
  .toast { left: 8px; right: 8px; max-width: none; bottom: 0; }
  .wallet { padding: 18px; }
  .fig-row { margin: 18px 0; }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .fact:nth-child(3) { border-top: 1px solid var(--line); }
  .stat-trio { grid-template-columns: 1fr; }
  .stat-trio > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .tl-item { grid-template-columns: 44px 1fr; gap: 16px; }
  .tl-num { width: 44px; height: 44px; border-radius: 12px; }
  .tl-track { left: 21px; }
  .section-head { margin-bottom: 36px; }
  .demo { padding: 20px; }
  .faq-q { font-size: 16.5px; padding: 20px 0; }
  .faq-a p { padding-right: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .balance-chip { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, .hero .sub, .hero .actions, .hero .micro, .hero .eyebrow, .stage { opacity: 1 !important; transform: none !important; }
  .hero h1 .wi { transform: none !important; }
  .hero h1 .mark path { stroke-dashoffset: 0 !important; }
  .marquee-track { animation: none !important; }
}
