/* ScrollMob landing — design notes
   The crowd is the brand: everything outside the dark "observation room" stage stays quiet.
   Ink #1C1D33 / paper #EDEFF6 / signal blue #3B5BFF (a click) / slate #A9AEC9 (a scroll-past)
   hot pink #FF3D7F only for the winner, mint #12B886 for positive lift.
   Type: Bricolage Grotesque (display) + Instrument Sans (UI). */

:root {
  --ink: #1c1d33;
  --ink-2: #4a4c66;
  --ink-3: #7c7f99;
  --paper: #edeff6;
  --card: #ffffff;
  --line: #d8dbe8;
  --signal: #3b5bff;
  --signal-soft: #e3e8ff;
  --pass: #a9aec9;
  --win: #ff3d7f;
  --up: #12b886;
  --down: #e8590c;
  --stage: #16172b;
  --stage-2: #222441;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --ui: 'Instrument Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--signal); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.hidden { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 24px; max-width: 1200px; margin: 0 auto;
}
.logo { font: 800 22px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-dots { display: inline-grid; grid-template-columns: repeat(3, 6px); gap: 3px; }
.logo-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--pass); }
.logo-dots i:nth-child(5), .logo-dots i:nth-child(3) { background: var(--signal); }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.wallet { display: flex; gap: 6px; }
.chip {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 6px 12px; font-size: 14px; white-space: nowrap; cursor: pointer;
}
.chip strong { font-weight: 700; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--line); object-fit: cover; }
.linkbtn { background: none; border: 0; color: var(--ink-2); cursor: pointer; padding: 6px 8px; font-size: 14px; }
.linkbtn:hover { color: var(--ink); }

main { max-width: 1200px; margin: 0 auto; padding: 8px 24px 80px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--r-md); padding: 14px 22px; cursor: pointer;
  font-weight: 700; font-size: 16px; background: var(--ink); color: #fff;
}
.btn:hover { background: #2c2e4d; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--signal); }
.btn.primary:hover { background: #2a48e8; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.big { padding: 18px 28px; font-size: 18px; }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; padding: 40px 0 24px; }
.hero h1 {
  font: 800 clamp(40px, 6vw, 72px)/0.98 var(--display); letter-spacing: -0.035em; margin: 0 0 20px;
}
.hero p { font-size: 19px; color: var(--ink-2); max-width: 30em; margin: 0 0 28px; }
.signin { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.fineprint { font-size: 14px; color: var(--ink-3); }
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; border-top: 1px solid var(--line); padding-top: 28px; }
.uses h3 { font: 700 18px/1.2 var(--display); margin: 0 0 6px; }
.uses p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- the stage (simulation) ---------- */
.stage {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: radial-gradient(120% 90% at 0% 0%, #23264a 0%, var(--stage) 55%);
  color: #fff; padding: 22px 22px 26px; min-height: 420px; isolation: isolate;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.stage-head { position: relative; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.stage-count { font: 800 clamp(30px, 4.4vw, 52px)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stage-count small { font: 500 15px/1 var(--ui); color: #b9bdd9; letter-spacing: 0; margin-left: 6px; }
.stage-phase { color: #c7cbe6; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.stage-phase .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(59,91,255,.7); animation: pulse 1.4s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(59,91,255,0); } }
.stage-bar { position: relative; z-index: 3; height: 3px; background: rgba(255,255,255,.12); border-radius: 3px; margin-bottom: 22px; overflow: hidden; }
.stage-bar i { display: block; height: 100%; width: 0; background: var(--signal); transition: width .6s ease; }

.feed { position: relative; z-index: 1; display: grid; gap: 16px; margin-left: 9%; }
.feed.cols-1 { grid-template-columns: minmax(0, 360px); }
.feed.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feed.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feed.cols-4, .feed.cols-5 { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.fcard { background: var(--stage-2); border-radius: var(--r-md); overflow: hidden; transition: transform .15s ease, box-shadow .3s ease; }
.fcard.hit { transform: scale(1.025); box-shadow: 0 0 0 2px var(--signal), 0 0 28px rgba(59,91,255,.45); }
.fcard.winner { box-shadow: 0 0 0 3px var(--win), 0 0 40px rgba(255,61,127,.35); }
.fmedia { aspect-ratio: 16/9; background: #2d3058; position: relative; }
.feed.vertical .fmedia { aspect-ratio: 9/16; max-height: 360px; margin: 0 auto; }
.feed.shop .fmedia { aspect-ratio: 1/1; background: #fff; }
.fmedia img, .fmedia video { width: 100%; height: 100%; object-fit: cover; }
.feed.shop .fmedia img { object-fit: contain; }
.fmeta { padding: 10px 12px 12px; }
.flabel { font: 700 13px/1 var(--ui); color: #9fa4c8; }
.ftitle { font-size: 14px; line-height: 1.35; margin: 4px 0 8px; color: #eef0ff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 1.35em; }
.fprice { font-weight: 700; color: #fff; }
.fstats { display: flex; justify-content: space-between; align-items: baseline; font-variant-numeric: tabular-nums; }
.fclicks { font: 800 22px/1 var(--display); }
.fclicks small { font: 500 12px var(--ui); color: #9fa4c8; margin-left: 4px; }
.frate { font-size: 13px; color: #c7cbe6; }

.bubbles { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.bubble {
  position: absolute; max-width: 240px; background: #fff; color: var(--ink); border-radius: 14px 14px 14px 4px;
  padding: 8px 12px; font-size: 13px; line-height: 1.35; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  animation: bubble 3.2s ease forwards;
}
.bubble b { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }
.bubble.skip { background: #2f3256; color: #dfe2f7; }
.bubble.skip b { color: #9fa4c8; }
@keyframes bubble { 0% { opacity: 0; transform: translateY(8px) scale(.96); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
.legend { position: relative; z-index: 3; display: flex; gap: 18px; margin-top: 18px; font-size: 13px; color: #b9bdd9; }
.legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--pass); }
.legend .l-click::before { background: var(--signal); }


/* ---------- landing page ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.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; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.topnav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.topnav a:hover { color: var(--ink); }
.topnav .btn { color: #fff; }
.btn.small { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
a.btn { text-decoration: none; }

.hero h1 { text-wrap: balance; }
.hero .lede { font-size: 19px; color: var(--ink-2); max-width: 30em; margin: 0 0 26px; }
.join { display: grid; grid-template-columns: 1fr auto; gap: 10px; max-width: 520px; }
.join input[type=email], .join select {
  border: 1px solid var(--line); background: var(--card); border-radius: var(--r-md);
  padding: 14px 16px; font-size: 16px; color: var(--ink); min-width: 0;
}
.join select { grid-column: 1; color: var(--ink-2); }
.join .btn { grid-column: 2; grid-row: 1 / span 2; }
.join .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.join .form-note { grid-column: 1 / -1; margin: 2px 0 0; font-size: 14px; color: var(--ink-3); }
.join .form-note.ok { color: var(--up); font-weight: 600; }
.join .form-note.err { color: var(--down); }

.uses { margin-top: 64px; }
.uses article h3 { font: 700 18px/1.2 var(--display); margin: 0 0 6px; }
.uses article p { margin: 0; color: var(--ink-2); font-size: 15px; }

.how { margin-top: 88px; }
.how h2, .faq h2, .sample h2 { font: 800 clamp(30px, 4vw, 44px)/1.05 var(--display); letter-spacing: -0.03em; margin: 0 0 24px; text-wrap: balance; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: step; background: var(--card); border-radius: var(--r-lg); padding: 24px; }
.steps li::before { content: counter(step); display: block; font: 800 15px/1 var(--display); color: var(--signal); margin-bottom: 14px; }
.steps h3 { font: 700 20px/1.2 var(--display); margin: 0 0 8px; }
.steps p { margin: 0; color: var(--ink-2); }

.sample {
  margin-top: 88px; display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center;
  background: var(--stage); color: #fff; border-radius: var(--r-lg); padding: 40px;
}
.sample p { color: #c7cbe6; font-size: 17px; margin: 0; max-width: 28em; }
.sample .quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sample .quotes li { background: #fff; color: var(--ink); border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 15px; max-width: 420px; }
.sample .quotes li:nth-child(even) { margin-left: 40px; background: #2f3256; color: #dfe2f7; }
.sample .quotes b { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
.sample .quotes li:nth-child(even) b { color: #9fa4c8; }

.faq { margin-top: 88px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--signal); font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--ink-2); margin: 10px 0 0; max-width: 62ch; }

.cta { margin: 88px 0 24px; text-align: center; }
.cta h2 { font: 800 clamp(30px, 4.5vw, 52px)/1.05 var(--display); letter-spacing: -0.03em; margin: 0 0 24px; text-wrap: balance; }
.footer { max-width: 1200px; margin: 0 auto; padding: 24px; display: flex; gap: 20px; color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--line); }
.footer a { color: var(--ink-3); }

.legal { max-width: 720px; }
.legal h1 { font: 800 40px/1.05 var(--display); letter-spacing: -0.03em; margin: 24px 0 16px; }
.legal h2 { font: 700 20px/1.2 var(--display); margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .uses { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .sample { grid-template-columns: 1fr; padding: 28px; }
  .feed { margin-left: 0; }
  .topnav a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  main, .topbar, .footer { padding-left: 16px; padding-right: 16px; }
  .uses { grid-template-columns: 1fr; }
  .join { grid-template-columns: 1fr; }
  .join .btn { grid-column: 1; grid-row: auto; }
  .stage { padding: 16px; }
  .feed.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fmeta { padding: 6px 8px 8px; }
  .ftitle { display: none; }
  .fclicks { font-size: 17px; }
  .sample .quotes li:nth-child(even) { margin-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bubble { animation-duration: 4s; }
  .stage-phase .pulse { animation: none; }
}
