:root {
  --bg: #0B0E14;
  --surface: #151A24;
  --surface-alt: #1D2431;
  --border: #2A3142;
  --primary: #6C5CE7;
  --primary-soft: #8E7CFF;
  --gold: #E2B04A;
  --gold-light: #FBE7A1;
  --text: #F2F4F8;
  --muted: #8892A6;
  --success: #3DDC97;
  --radius: 22px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.2px; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #7B6CF0; }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.nav .btn { padding: 9px 18px; font-size: 0.9rem; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 720px;
  background: radial-gradient(closest-side, rgba(142,124,255,0.28), rgba(142,124,255,0) 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; color: var(--gold-light); background: rgba(226,176,74,0.12); border: 1px solid rgba(226,176,74,0.3); padding: 5px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); line-height: 1.08; margin: 0 0 20px; font-weight: 800; letter-spacing: -1px; }
h1 .gold { background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, #C48A2C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 32px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(360px, 80vw); height: auto; aspect-ratio: 1; border-radius: 64px; box-shadow: 0 30px 80px rgba(108,92,231,0.35), 0 0 0 1px rgba(255,255,255,0.06); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.15; margin: 0 0 14px; font-weight: 800; letter-spacing: -0.5px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.alt { background: linear-gradient(180deg, rgba(21,26,36,0) 0%, rgba(21,26,36,0.7) 18%, rgba(21,26,36,0.7) 82%, rgba(21,26,36,0) 100%); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 14px 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(108,92,231,0.16); color: var(--primary-soft); }
.icon.gold { background: rgba(226,176,74,0.14); color: var(--gold); }
.icon.green { background: rgba(61,220,151,0.13); color: var(--success); }
.icon svg { width: 24px; height: 24px; }

/* Steps */
.steps { display: grid; gap: 16px; max-width: 820px; margin: 0 auto; counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem; color: #1A1407;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.step h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }
.step p + p { margin-top: 8px; }
.path { color: var(--text); font-weight: 600; white-space: nowrap; }

/* Safety */
.safety { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.safety .card { display: flex; gap: 18px; align-items: flex-start; }
.safety .card h3 { margin-top: 0; }
.note { margin: 28px auto 0; max-width: 820px; text-align: center; color: var(--muted); font-size: 0.95rem; }

/* Download */
.download { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 32px; padding: 56px 28px; position: relative; overflow: hidden; }
.download::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 420px; background: radial-gradient(closest-side, rgba(226,176,74,0.16), transparent 70%); pointer-events: none; }
.download > * { position: relative; }
.download p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; font-size: 1.08rem; }
.stores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); color: var(--text); min-width: 210px; text-align: left; }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; color: var(--muted); font-size: 0.75rem; line-height: 1.2; }
.store strong { display: block; font-size: 1.05rem; line-height: 1.3; }
.store[aria-disabled="true"] { opacity: 0.6; cursor: default; }
.store[aria-disabled="true"]:hover { text-decoration: none; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--primary-soft); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 0; }

footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: 0.9rem; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { width: 180px; border-radius: 40px; }
  .cards { grid-template-columns: 1fr; }
  .safety { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  section { padding: 56px 0; }
  .step { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
}

/* Mobile link row under the header */
.subnav { display: none; }
@media (max-width: 860px) {
  .subnav { display: flex; gap: 22px; overflow-x: auto; padding: 0 20px 12px; scrollbar-width: none; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { color: var(--muted); font-weight: 500; font-size: 0.92rem; white-space: nowrap; }
}
.nav-links a[aria-current="page"], .subnav a[aria-current="page"] { color: var(--text); }

/* Inner pages */
.page-head { padding: 64px 0 32px; position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 520px;
  background: radial-gradient(closest-side, rgba(142,124,255,0.22), rgba(142,124,255,0) 70%);
  pointer-events: none;
}
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 14px; }
.page-head .lead { margin-bottom: 0; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.page-body { padding: 24px 0 80px; }
h2.group { font-size: 1.4rem; margin: 40px 0 16px; letter-spacing: 0; }
h2.group:first-child { margin-top: 0; }

a.card { display: block; color: var(--text); transition: border-color .15s ease, transform .15s ease; }
a.card:hover { text-decoration: none; border-color: var(--primary); transform: translateY(-2px); }
.card .more { display: inline-block; margin-top: 12px; color: var(--primary-soft); font-weight: 600; font-size: 0.95rem; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--gold-light); background: rgba(226,176,74,0.12); border: 1px solid rgba(226,176,74,0.28); padding: 2px 10px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.emoji { font-size: 1.6rem; line-height: 1; margin-right: 6px; }

/* A guide */
.article { max-width: 760px; margin: 0 auto; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; margin-bottom: 28px; }
.tabs button { font: inherit; font-weight: 600; font-size: 0.92rem; color: var(--muted); background: none; border: 0; padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--primary); color: #fff; }
.level { padding: 0; }
.level h2 { font-size: 1.1rem; color: var(--muted); margin: 0 0 12px; }
.js .level h2 { display: none; }
.level + .level { margin-top: 40px; }
.level p, .level li { color: #C9CFDB; font-size: 1.05rem; }
.level h3 { font-size: 1.2rem; margin: 28px 0 8px; color: var(--text); }
.level ul { padding-left: 22px; }
.level li + li { margin-top: 6px; }
.level pre { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; overflow-x: auto; color: var(--gold-light); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.pager a { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; color: var(--text); }
.pager a:hover { border-color: var(--primary); text-decoration: none; }
.pager small { display: block; color: var(--muted); }
.pager .next { text-align: right; grid-column: 2; }

/* Coins */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: baseline; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; }
.chip b { font-weight: 700; }
.chip span { color: var(--muted); font-size: 0.85rem; }
.feature-list { display: grid; gap: 14px; }
.feature-list .card h3 { margin-top: 0; }

/* An account type */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: #C9CFDB; font-size: 1.05rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; color: #0B0E14; background: var(--success); }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }

@media (max-width: 860px) {
  .cards.two { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .page-head { padding: 40px 0 20px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}

/* Data pictures */
.figure { margin: 0; }
.figure img { width: 100%; height: auto; }
.wheel-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.wheel-wrap img { max-width: 620px; margin: 0 auto; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 20px 0 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.95rem; }
.legend i { width: 22px; height: 4px; border-radius: 2px; display: inline-block; }
.roads { margin-top: 72px; }
.roads .figure { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; overflow-x: auto; }
.roads .figure img { min-width: 680px; }
.text-block h2 { text-align: left; }
.text-block p { color: var(--muted); font-size: 1.08rem; }
.big-num { font-size: 3rem; font-weight: 800; color: var(--gold-light); line-height: 1; }

/* Phone screenshots */
.phones { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px; scrollbar-width: thin; }
.phone { flex: none; width: 230px; margin: 0; scroll-snap-align: start; text-align: center; }
.phone img { width: 100%; height: auto; border-radius: 28px; border: 6px solid #1D2431; box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06); background: #000; }
.phone figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 12px; }
.phones.center { justify-content: center; }

@media (max-width: 860px) {
  .wheel-wrap { grid-template-columns: 1fr; gap: 24px; }
  .phone { width: 200px; }
}
