:root {
  --bg: #ffffff;
  --bg-soft: #f4f5f8;
  --text: #0b0d12;
  --muted: #5d6370;
  --line: #e3e5ea;
  --accent: #2457f5;
  --accent-soft: #e8eeff;
  --gold: #c98a00;
  --card: #ffffff;
  --shadow: 0 1px 2px rgb(10 20 40 / 0.04), 0 8px 24px rgb(10 20 40 / 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07080b;
    --bg-soft: #111318;
    --text: #f3f4f7;
    --muted: #a3a9b5;
    --line: #23262d;
    --accent: #5b8cff;
    --accent-soft: #15203d;
    --gold: #ffc53d;
    --card: #14161c;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; }
nav.site { display: flex; gap: 22px; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--bg-soft); color: var(--text); }

/* Hero */
.hero { padding: 88px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; margin: 18px 0 18px; font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 750; }
h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -0.01em; }
.lede { font-size: 20px; color: var(--muted); max-width: 34ch; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 14px; color: var(--muted); }

/* Phone mock */
.phone {
  justify-self: center; width: 300px; max-width: 100%;
  border-radius: 44px; padding: 12px; background: #0b0d12;
  box-shadow: 0 30px 60px rgb(10 20 60 / 0.25);
}
.screen { border-radius: 34px; background: #000; color: #fff; padding: 46px 16px 20px; min-height: 540px; }
.screen .t { font-size: 13px; color: #9aa0ab; margin-bottom: 2px; }
.screen .h { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.screen .sub { font-size: 13px; color: #9aa0ab; margin-bottom: 16px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #1a1c21; margin-bottom: 8px; }
.rank { width: 24px; font-weight: 800; color: #9aa0ab; text-align: center; }
.row.first .rank { color: #ffc53d; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; }
.who { flex: 1; min-width: 0; }
.who b { display: block; font-size: 15px; }
.who span { font-size: 12px; color: #9aa0ab; }
.pts { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 3px; background: #2a2d34; margin: 14px 0 6px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 62%; background: #5b8cff; border-radius: 3px; }

/* Devices strip */
.devices { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.devices .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; font-size: 15px; }
.devices .label { font-weight: 500; }

/* Sections */
section.block { padding: 88px 0; }
section.soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.num { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; margin-bottom: 16px; }

/* Formula */
.formula { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 18px; }
.term { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.term .big { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.term .small { color: var(--muted); font-size: 15px; }

/* Organizers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
ul.checks li { display: flex; gap: 12px; }
ul.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }

/* CTA band */
.band { text-align: center; }
.band p { color: var(--muted); font-size: 19px; max-width: 52ch; margin: 0 auto 28px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }

/* Long-form (legal) */
.doc { padding: 64px 0 88px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--text); }
.doc .meta { color: var(--muted); margin-top: -6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }

/* Join page */
.join { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.code { font: 700 34px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.18em; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 16px; padding: 20px 24px; margin: 22px auto; display: inline-block; }

@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .grid3, .formula { grid-template-columns: 1fr; }
  section.block { padding: 64px 0; }
  nav.site { gap: 16px; }
  nav.site .hide-sm { display: none; }
}
