:root {
  --bg: #f6f5fb;
  --surface: #ffffff;
  --text: #1c1838;
  --muted: #5f5a7a;
  --line: #e4e1f0;
  --grad-a: #2563eb;
  --grad-b: #7c3aed;
  --grad-c: #c026d3;
  --gold: #f5c542;
  --gold-text: #3a2a00;
  --code-bg: #efecf8;
  --p1: #2b6de0; --p2: #1f9d55; --p3: #d63a3a; --p4: #e07a1f;
  --p5: #7c3aed; --p6: #0e8f9a; --p7: #c0267d;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d1f;
    --surface: #1a1730;
    --text: #ece9fb;
    --muted: #a7a2c6;
    --line: #2d2950;
    --code-bg: #26224a;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { line-height: 1.2; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--code-bg); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }

/* header */
.top { background: #120f2b; color: #fff; }
.top-row { display: flex; justify-content: space-between; align-items: center; min-height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { letter-spacing: .06em; }
.brand small { color: #b9b3e6; font-size: 12px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe38a, var(--gold) 55%, #b8860b); color: var(--gold-text); font-weight: 800; }
.top-link { color: #d6d0ff; text-decoration: none; font-size: 15px; white-space: nowrap; }
.top-link:hover { text-decoration: underline; }

/* hero */
.hero { background: linear-gradient(120deg, var(--grad-a), var(--grad-b) 55%, var(--grad-c)); color: #fff; padding: 48px 0 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 14px; }
.eyebrow .ic { width: 18px; height: 18px; }
h1 { margin: 0 0 14px; font-size: clamp(32px, 7vw, 56px); font-weight: 800; letter-spacing: -.01em; }
.gold { color: var(--gold); }
.lede { margin: 0 0 24px; max-width: 640px; font-size: 18px; color: rgba(255,255,255,.88); }
.lede strong { color: #fff; }

.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 12px; background: var(--gold); color: var(--gold-text); font-weight: 700; font-size: 17px; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.cta:hover { filter: brightness(1.05); }
.cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cta-off { background: var(--code-bg); color: var(--muted); box-shadow: none; cursor: default; }

.stats { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stats li { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.stats .ic { width: 28px; height: 28px; margin-bottom: 6px; color: var(--gold); }
.stats b { font-size: 18px; }
.stats span { color: rgba(255,255,255,.8); font-size: 14px; }

/* sections */
.section { padding: 48px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 32px); }
.sub { margin: 0 0 24px; color: var(--muted); }

.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pillars li { position: relative; padding: 20px; border-radius: 14px; color: #fff; background: var(--c); }
.pillars li::after { content: "142,857 LEEA"; display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 13px; font-weight: 600; }
.pillars .ic { width: 34px; height: 34px; }
.pillars h3 { margin: 10px 0 6px; font-size: 19px; display: flex; gap: 8px; align-items: baseline; }
.pillars h3 span { opacity: .75; font-size: 15px; }
.pillars p { margin: 0; font-size: 15px; color: rgba(255,255,255,.9); }
.p1 { --c: var(--p1); } .p2 { --c: var(--p2); } .p3 { --c: var(--p3); } .p4 { --c: var(--p4); }
.p5 { --c: var(--p5); } .p6 { --c: var(--p6); } .p7 { --c: var(--p7); }

.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: none; }
.steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.steps .ic { width: 34px; height: 34px; color: var(--grad-b); }
.steps b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(120deg, var(--grad-a), var(--grad-b)); color: #fff; font-size: 14px; }
.steps span { font-size: 15px; }

.register { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border-radius: 16px; background: var(--surface); border: 2px solid var(--grad-b); }
.register > div { flex: 1 1 420px; }
.register p { margin: 0 0 12px; color: var(--muted); }
.ticks { margin: 0; padding-left: 20px; }
.ticks li { margin: 0 0 6px; }

.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.values li { display: flex; gap: 14px; }
.values .ic { width: 36px; height: 36px; color: var(--grad-b); }
.values h3 { margin: 0 0 4px; font-size: 17px; }
.values p { margin: 0; color: var(--muted); font-size: 15px; }

.facts { list-style: none; margin: 16px 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.facts li { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.facts li:first-child { border-top: 0; }
.facts li span:first-child { color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
.links a { color: var(--grad-b); }
@media (prefers-color-scheme: dark) { .links a, .steps .ic, .values .ic { color: #a78bfa; } }

.foot { padding: 28px 0 48px; color: var(--muted); font-size: 14px; }

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .cta { width: 100%; }
  .register { padding: 20px; }
}

/* register page */
.brand-link { color: inherit; text-decoration: none; }
.narrow { max-width: 720px; }
.page-title { color: var(--text); font-size: clamp(28px, 6vw, 40px); margin: 0 0 8px; }
.form fieldset { margin: 0 0 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.form legend { padding: 0 6px; font-weight: 700; }
.form label { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.form label.inline { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
.form input:not([type=checkbox]), .form select, .lookup input {
  font: inherit; font-weight: 400; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%;
}
.form input:focus, .form select:focus, .lookup input:focus { outline: 2px solid var(--grad-b); outline-offset: 1px; }
.form input[type=file] { padding: 8px; }
.form input[type=checkbox] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--grad-b); flex: none; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.checks label { flex-direction: row; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 500; }
.hint { margin: -6px 0 0; color: var(--muted); font-size: 14px; }
.privacy { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: var(--code-bg); font-size: 14px; }
.privacy p { margin: 0; }
.form-error { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #fde8e8; color: #9b1c1c; }
@media (prefers-color-scheme: dark) { .form-error { background: #3b1414; color: #fca5a5; } }
.cta:disabled { opacity: .6; cursor: progress; }
.done { padding: 24px; border-radius: 14px; background: var(--surface); border: 2px solid var(--grad-b); margin: 0 0 24px; }
.done h2 { margin-top: 0; }
.ref { font: 700 24px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--grad-b); }
.status-box { margin-top: 32px; }
.lookup { display: flex; gap: 10px; flex-wrap: wrap; }
.lookup input { flex: 1 1 220px; width: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cta-small { min-height: 44px; padding: 0 20px; font-size: 16px; }
@media (max-width: 560px) { .cta-small { width: auto; } }
