/* Same palette as the app (app/globals.css): dark by default, light when the device prefers it. */
:root {
  color-scheme: dark;
  --brand: #ff3b3b;
  --brand-rgb: 255, 59, 59;
  --on-brand: #0a0d0b;
  --success: #34d399;
  --violet: #a78bfa;
  --amber: #fbbf24;
  --bg: #080b0a;
  --surface: #0d120f;
  --surface-2: #111613;
  --surface-3: #182019;
  --line: #202621;
  --line-strong: #2a332c;
  --text-muted: #8a968e;
  --text-soft: #a8b1aa;
  --text: #dfe6e0;
  --text-strong: #f4f7f3;
  --shadow: 0 30px 80px rgba(0, 0, 0, .55);
  --glow: rgba(var(--brand-rgb), .16);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --brand: #e8262b;
    --brand-rgb: 232, 38, 43;
    --on-brand: #ffffff;
    --success: #059669;
    --violet: #7c3aed;
    --amber: #b45309;
    --bg: #eef1ef;
    --surface: #ffffff;
    --surface-2: #f6f8f7;
    --surface-3: #eef1ef;
    --line: #dde3df;
    --line-strong: #c9d1cc;
    --text-muted: #5f6b64;
    --text-soft: #46514a;
    --text: #1d2420;
    --text-strong: #0b0f0d;
    --shadow: 0 30px 70px rgba(15, 25, 20, .14);
    --glow: rgba(var(--brand-rgb), .10);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--text-strong); margin: 0; letter-spacing: -.035em; line-height: 1.08; }
p { margin: 0; }
em { font-style: normal; color: var(--brand); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 32px); }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 11px; font: 800 17px/1 ui-sans-serif, system-ui; letter-spacing: -.04em; color: var(--text-strong); }
.brand > span:last-child > span { color: var(--brand); }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; color: var(--on-brand); background: var(--brand); border-radius: 10px; transform: rotate(-4deg); }
.brand-mark svg { width: 19px; height: 19px; }
.brand-mark.tiny { width: 28px; height: 28px; border-radius: 8px; }
.brand-mark.tiny svg { width: 15px; height: 15px; }
.brand-mark.big { width: 60px; height: 60px; border-radius: 16px; }
.brand-mark.big svg { width: 30px; height: 30px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 22px; border-radius: 14px;
  background: var(--brand); color: var(--on-brand);
  font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 30px rgba(var(--brand-rgb), .28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(var(--brand-rgb), .36); }
.button svg { width: 18px; height: 18px; }
.button.ghost { background: transparent; color: var(--text-strong); border: 1px solid var(--line-strong); box-shadow: none; }
.button.ghost:hover { background: var(--surface); }
.button.small { min-height: 40px; padding: 0 16px; border-radius: 11px; font-size: 14px; box-shadow: none; }

/* Eyebrows */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 99px;
  background: rgba(var(--brand-rgb), .1); color: var(--brand);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.eyebrow.muted { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--line); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--text-soft); }
.nav-links a:hover { color: var(--text-strong); }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(circle, var(--glow), transparent 65%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin-top: 22px; font-size: clamp(44px, 6.4vw, 78px); font-weight: 800; letter-spacing: -.055em; line-height: .98; }
.lead { margin-top: 22px; font-size: 18px; color: var(--text-soft); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 40px 0 0; padding: 26px 0 0; list-style: none; border-top: 1px solid var(--line); }
.hero-facts li { display: grid; gap: 2px; }
.hero-facts strong { font-size: 24px; color: var(--text-strong); letter-spacing: -.03em; }
.hero-facts span { font-size: 13px; color: var(--text-muted); }

/* Phone mock */
.hero-art { position: relative; display: grid; place-items: center; }
.phone {
  width: min(340px, 100%); padding: 18px; display: grid; gap: 14px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 34px;
  box-shadow: var(--shadow); transform: rotate(2deg);
}
.phone-top { display: flex; justify-content: space-between; align-items: center; }
.pill { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); }
.mock-balance { padding: 16px; border-radius: 18px; background: linear-gradient(140deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #000)); color: #fff; }
.mock-balance small { opacity: .8; font-size: 12px; }
.mock-balance strong { display: block; font-size: 28px; letter-spacing: -.04em; }
.mock-balance strong span { font-size: 16px; opacity: .7; }
.mock-card { padding: 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 12px; }
.mock-card h3 { font-size: 17px; }
.mock-card.faded { opacity: .55; }
.mock-row { display: flex; justify-content: space-between; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }
.tag svg { width: 14px; height: 14px; }
.tag.violet { color: var(--violet); }
.mock-time { font-size: 12px; color: var(--text-muted); }
.sides { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.side { padding: 10px; border-radius: 12px; background: var(--surface-3); display: grid; gap: 2px; }
.side.mine { box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .5); }
.side small, .mock-foot small { font-size: 11px; color: var(--text-muted); }
.side b { font-size: 13px; color: var(--text-strong); }
.vs { font-size: 11px; font-weight: 800; color: var(--text-muted); }
.mock-foot { display: flex; justify-content: space-between; }
.mock-foot span { display: grid; }
.mock-foot b { color: var(--text-strong); }
.mock-foot b.win { color: var(--success); }
.mock-btn { text-align: center; padding: 11px; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 14px; }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 700; color: var(--text-strong);
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.float-chip svg { width: 16px; height: 16px; color: var(--brand); }
.chip-a { top: 24%; left: -4%; transform: rotate(-5deg); }
.chip-b { bottom: 12%; right: -4%; transform: rotate(4deg); }
.chip-b svg { color: var(--success); }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; justify-items: start; gap: 16px; margin-bottom: 44px; }
.section h2 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 800; max-width: 720px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { position: relative; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.step-icon, .kind-icon, .f-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--brand); background: rgba(var(--brand-rgb), .1); }
.step-n { position: absolute; top: 24px; right: 24px; font-size: 13px; font-weight: 800; color: var(--text-muted); }
.steps h3, .kind h3, .features h3 { margin-top: 20px; font-size: 19px; }
.steps p, .kind p, .features p { margin-top: 8px; color: var(--text-soft); font-size: 15px; }

.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kind { padding: 30px; border-radius: 24px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; }
.kind-icon.violet { color: var(--violet); background: color-mix(in srgb, var(--violet) 14%, transparent); }
.kind-icon.amber { color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.kind-note { margin-top: auto; padding-top: 22px; font-size: 13px; font-weight: 600; color: var(--text-muted); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split h2 { margin-top: 16px; }
.payout { padding: 10px 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.payout-row { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.payout-row:last-child { border-bottom: 0; }
.payout-row span { color: var(--text-soft); }
.payout-row b { color: var(--text-strong); }
.payout-row.total b { font-size: 18px; }
.payout-row.muted b, .payout-row.muted span { color: var(--text-muted); }
.payout-row.win span { color: var(--text-strong); font-weight: 600; }
.payout-row.win b { color: var(--success); font-size: 24px; letter-spacing: -.03em; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.features article { padding: 26px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); }

.care { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.care h2 { margin-top: 16px; }
.care p { margin-top: 14px; color: var(--text-soft); }
.care-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.care-list li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); color: var(--text-soft); }
.care-list svg { color: var(--success); }
.care-list b { color: var(--text-strong); }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; color: var(--text-strong); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--text-muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--text-soft); }

.final-cta { display: grid; justify-items: center; text-align: center; gap: 18px; padding: 64px 24px; border-radius: 32px; background: radial-gradient(circle at 50% 0%, rgba(var(--brand-rgb), .18), transparent 70%), var(--surface); border: 1px solid var(--line); }
.final-cta p { color: var(--text-soft); max-width: 440px; }
.final-cta .button { margin-top: 8px; }

.footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 12px; justify-items: start; }
.footer p { font-size: 14px; color: var(--text-muted); }
.footer-small { font-size: 13px; }

/* Tablet */
@media (max-width: 980px) {
  .hero-inner, .split, .care { grid-template-columns: 1fr; }
  .hero-art { margin-top: 12px; }
  .steps, .features { grid-template-columns: repeat(2, 1fr); }
  .kinds { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner { height: 62px; }
  .hero { padding: 44px 0 64px; }
  .lead { font-size: 17px; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; }
  .hero-facts strong { font-size: 20px; }
  .hero-facts span { font-size: 12px; line-height: 1.35; }
  .hero-art { padding-top: 14px; }
  .chip-a { top: 0; left: auto; right: 4px; }
  .chip-b { right: 0; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 30px; }
  .steps, .features { grid-template-columns: 1fr; }
  .care { padding: 28px 22px; gap: 28px; }
  .payout { padding: 6px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .button { transition: none; }
}
