:root {
  --bg: #0b0b10;
  --surface: #15151d;
  --surface-2: #1e1e29;
  --border: #2a2a37;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --gold: #ffb020;
  --orange: #ff6a2b;
  --pink: #ff2e63;
  --primary: #ff5a36;
  --sunburst: linear-gradient(135deg, var(--gold) 0%, var(--orange) 50%, var(--pink) 100%);
  --radius: 20px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffc657; }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 11, 16, 0.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-header nav a:hover { color: var(--text); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 720px;
  background: radial-gradient(closest-side, rgba(255, 106, 43, 0.28), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-icon { width: 112px; height: 112px; margin: 0 auto 28px; border-radius: 26px; box-shadow: 0 20px 60px rgba(255, 90, 54, 0.35); }
.eyebrow { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 16px; }
h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 900; }
.gradient-text { background: var(--sunburst); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 640px; margin: 0 auto 36px; color: var(--muted); font-size: clamp(18px, 2.4vw, 21px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px;
  border-radius: 14px; font-weight: 700; font-size: 17px; text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sunburst); color: #fff; }
.btn-primary:hover { color: #fff; opacity: 0.95; }
.btn-ghost { border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.appstore-badge { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 14px; background: #fff; color: #000; text-decoration: none; font-weight: 700; }
.appstore-badge:hover { color: #000; }
.appstore-badge small { display: block; font-size: 11px; font-weight: 500; line-height: 1; }
.appstore-badge span { display: block; font-size: 20px; line-height: 1.1; letter-spacing: -0.02em; }
.appstore-badge svg { width: 26px; height: 26px; }

/* ── Features ───────────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-title { text-align: center; font-size: clamp(30px, 4.4vw, 44px); font-weight: 850; }
.section-sub { text-align: center; color: var(--muted); max-width: 600px; margin: 0 auto 48px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }
.card .icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 14px; background: var(--sunburst); }
.card .icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pill { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; vertical-align: middle; letter-spacing: 0; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg)); border: 1px solid var(--border); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 50%; background: var(--surface-2); color: var(--gold); font-weight: 800; }
.step h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

.banner { margin: 0 auto; max-width: 820px; padding: 48px 32px; text-align: center; border-radius: 28px; background: var(--sunburst); color: #fff; }
.banner h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.banner p { margin: 0 0 28px; font-size: 18px; opacity: 0.95; }
.banner .appstore-badge { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); }

/* ── Documents (privacy, terms…) ────────────────────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(34px, 6vw, 48px); font-weight: 900; margin-bottom: 8px; }
.doc .meta { color: var(--muted); margin-bottom: 40px; font-size: 15px; }
.doc h2 { font-size: 24px; font-weight: 800; margin: 44px 0 12px; }
.doc h3 { font-size: 19px; font-weight: 750; margin: 28px 0 8px; }
.doc p, .doc li { color: #d4d4d8; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.doc .callout { margin: 24px 0; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.doc .callout p:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.doc th { color: var(--text); font-weight: 700; background: var(--surface); }
.doc td { color: #d4d4d8; }
.toc { margin: 0 0 32px; padding: 18px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin: 4px 0; font-size: 15px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }

details { margin: 12px 0; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
details summary { cursor: pointer; font-weight: 700; color: var(--text); list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: #d4d4d8; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.disclaimer { width: 100%; font-size: 12px; color: #71717a; }

.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.center-page h1 { font-size: clamp(64px, 14vw, 120px); font-weight: 900; margin: 0; }

@media (max-width: 860px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}
@media (max-width: 520px) {
  .site-header nav { gap: 14px; }
  .site-header nav a:not(.keep) { display: none; }
  .hero { padding: 64px 0 48px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border-bottom: none; padding: 4px 0; }
  .doc tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .doc td:first-child { font-weight: 700; color: var(--text); }
}
