@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #070b14;
  --bg-2: #0b1220;
  --surface: #101a2c;
  --surface-2: #16223a;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.3);
  --text: #eef2f8;
  --muted: #93a1b8;
  --accent: #6cb6ff;
  --accent-ink: #06121f;
  --warm: #ffb057;
  --yes: #34d399;
  --no: #f87171;
  --neutral: #fbbf24;
  --radius: 18px;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
body::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, #ff9933 0 33.3%, #f4f6fa 33.3% 66.6%, #1fa34a 66.6%); opacity: .85; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.93rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="true"] { color: var(--text); }
.nav-links a.nav-cta { color: var(--accent-ink); }
@media (max-width: 560px) { .nav-links { gap: 18px; } .brand span { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: transform .15s, background .15s, border-color .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #8ac5ff; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 0.88rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 150px; text-align: center; }
.stars, .stars::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 64%, #cfe3ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 61% 41%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 77% 19%, #cfe3ff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 57%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 78%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 72%, #cfe3ff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 36%, #fff 50%, transparent 51%);
  opacity: .55;
}
.stars::after { transform: scale(1.6) rotate(18deg); opacity: .5; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .2; } to { opacity: .7; } }
.planet {
  position: absolute; left: 50%; bottom: -1020px; width: 1800px; height: 1200px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, #17325a 0%, #0c1830 38%, var(--bg) 70%);
  box-shadow: 0 -1px 0 rgba(108, 182, 255, .55), 0 -24px 80px rgba(108, 182, 255, .22);
  pointer-events: none;
}
.orbits { position: absolute; left: 50%; bottom: -40px; width: 1200px; max-width: none; transform: translateX(-50%); pointer-events: none; opacity: .9; }
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; text-align: left; line-height: 1.35;
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(16, 26, 44, .6); color: var(--muted); font-size: 0.82rem; font-weight: 500;
}
.eyebrow i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 10px var(--warm); }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); font-weight: 700; margin: 24px auto 20px; max-width: 14ch; }
.hero h1 span { background: linear-gradient(100deg, var(--accent), #d7ebff 55%, var(--warm)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.2rem); max-width: 56ch; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .btn { padding: 14px 26px; font-size: 1rem; }
.hero .btn-primary { box-shadow: 0 8px 30px rgba(108, 182, 255, .3); }
.hero-stats {
  display: inline-grid; grid-template-columns: repeat(3, auto); margin-top: 64px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: rgba(11, 18, 32, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hero-stats div { padding: 18px 34px; }
.hero-stats div + div { border-left: 1px solid var(--line); }
.hero-stats b { display: block; font-family: var(--display); font-size: 1.7rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.hero-stats span { color: var(--muted); font-size: 0.82rem; }
@media (max-width: 520px) { .hero-stats div { padding: 14px 18px; } .hero-stats b { font-size: 1.35rem; } }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
#support { background: radial-gradient(900px 420px at 50% 0%, rgba(108, 182, 255, .09), transparent 70%); }
@media (max-width: 720px) { section { padding: 60px 0; } }
.section-head { max-width: 640px; margin-bottom: 40px; }
.kicker { color: var(--accent); font-size: 0.8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fine { color: var(--muted); font-size: 0.84rem; }

/* ---------- Vote ---------- */
.vote-card { padding: 28px; }
.vote-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.vote-opt {
  --c: var(--accent);
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px;
  text-align: left; padding: 18px 20px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color .15s, transform .15s, opacity .15s;
}
.vote-opt::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pct, 0%);
  background: color-mix(in srgb, var(--c) 17%, transparent); transition: width .9s cubic-bezier(.2,.8,.2,1);
}
.vote-opt > * { position: relative; }
.vote-opt:not(:disabled):hover { border-color: var(--c); transform: translateY(-2px); }
.vote-opt:not(:disabled):hover .mark { background: color-mix(in srgb, var(--c) 25%, transparent); }
.vote-opt:disabled { cursor: default; }
.vote-card.off .vote-opt { opacity: .5; }
.vote-opt[aria-pressed="true"] { border-color: var(--c); }
.mark { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--c); display: grid; place-items: center; transition: background .15s; }
.vote-opt[aria-pressed="true"] .mark { background: var(--c); }
.vote-opt[aria-pressed="true"] .mark::after { content: ""; width: 10px; height: 5px; margin-top: -2px; border-left: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink); transform: rotate(-45deg); }
.vote-opt .txt { flex: 1; min-width: 0; }
.vote-opt strong { display: block; font-family: var(--display); font-size: 1.08rem; }
.vote-opt small { color: var(--muted); font-size: 0.86rem; line-height: 1.4; display: block; }
.vote-opt .pct { font-family: var(--display); font-weight: 600; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.vote-opt.yes { --c: var(--yes); } .vote-opt.no { --c: var(--no); } .vote-opt.neutral { --c: var(--neutral); }
.vote-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; }
.vote-foot .fine.err { color: var(--no); }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share span { color: var(--muted); font-size: 0.86rem; margin-right: 4px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.stat { padding: 22px 24px; }
.stat b { display: block; font-family: var(--display); font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.88rem; }
.panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.panel { padding: 24px; }
.panel h3 { font-size: 0.8rem; font-family: var(--body); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.rows { display: grid; gap: 14px; }
.row-top { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; margin-bottom: 6px; }
.row-top span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.empty { color: var(--muted); font-size: 0.9rem; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.spark i { flex: 1; min-height: 3px; border-radius: 4px 4px 0 0; background: var(--accent); opacity: .85; }
.spark i.zero { background: var(--surface-2); }
.spark-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.78rem; margin-top: 8px; }
@media (max-width: 720px) { .vote-options, .panels { grid-template-columns: 1fr; } .vote-card { padding: 16px; } .stat { padding: 16px; } .stat b { font-size: 1.5rem; } }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: why; }
.why { padding: 26px 24px 28px; position: relative; counter-increment: why; transition: transform .2s, border-color .2s; }
.why:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.why::after { content: "0" counter(why); position: absolute; top: 24px; right: 24px; font-family: var(--display); font-size: 0.85rem; color: #4a5b78; }
.why .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(108, 182, 255, .1); color: var(--accent); margin-bottom: 22px; }
.why .ico svg { width: 24px; height: 24px; }
.why h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why p { color: var(--muted); font-size: 0.93rem; line-height: 1.55; }
@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Donate ---------- */
.donate { display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; }
.donate-main { padding: 32px; }
.donate-side > .label { margin: 0; }
.donate-side { padding: 32px; background: var(--surface-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.label { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.label b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(108, 182, 255, .14); color: var(--accent); font-size: 0.74rem; letter-spacing: 0; }
.assets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.asset {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
  font-weight: 600; font-size: 0.9rem; transition: border-color .15s, background .15s, transform .15s;
}
.asset:hover { transform: translateY(-2px); }
.asset:hover { border-color: var(--line-strong); }
.asset[aria-selected="true"] { border-color: var(--accent); background: rgba(108, 182, 255, .1); }
.coin { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.15rem; font-family: var(--display); }
.coin svg { width: 22px; height: 22px; fill: #fff; }
.coin.usdt { background: #26a17b; } .coin.btc { background: #f7931a; } .coin.eth { background: #627eea; } .coin.sol { background: linear-gradient(135deg, #9945ff, #14f195); }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 24px; }
.segmented button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.segmented button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.amount-box { display: flex; align-items: center; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-strong); padding: 0 18px; transition: border-color .15s; }
.amount-box:focus-within { border-color: var(--accent); }
.amount-box input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font-family: var(--display); font-size: 1.7rem; font-weight: 600; padding: 14px 0; }
.amount-box input::placeholder { color: #44536b; }
.amount-box span { color: var(--muted); font-weight: 600; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 24px; }
.presets button { padding: 6px 14px; border-radius: 999px; background: transparent; border: 1px solid var(--line-strong); font-size: 0.86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.presets button:hover { color: var(--text); border-color: var(--text); }
.send { width: 100%; padding: 16px 22px; font-size: 1rem; box-shadow: 0 8px 30px rgba(108, 182, 255, .22); }
.send[disabled] { box-shadow: none; }
.status { margin-top: 14px; font-size: 0.9rem; min-height: 1.5em; color: var(--muted); overflow-wrap: anywhere; }
.status.ok { color: var(--yes); } .status.err { color: var(--no); }
.net-note { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 176, 87, .08); border: 1px solid rgba(255, 176, 87, .25); color: #ffd3a1; font-size: 0.85rem; }
.qr { width: 200px; height: 200px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: 0 16px 50px rgba(0, 0, 0, .35); display: grid; place-items: center; color: #334155; font-size: 0.8rem; }
.qr svg { width: 100%; height: 100%; display: block; }
.addr-box { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); text-align: left; }
.addr { flex: 1; min-width: 0; font-family: var(--mono); font-size: 0.78rem; line-height: 1.5; word-break: break-all; color: var(--text); }
.addr-box .btn { flex: none; }
.side-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.donate-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.donate-foot .fine { max-width: 62ch; }
.coffee { background: #ffdd00; color: #1a1400; }
@media (max-width: 860px) {
  .donate { grid-template-columns: 1fr; }
  .donate-side { border-left: 0; border-top: 1px solid var(--line); }
  .donate-main, .donate-side { padding: 22px; }
}

/* ---------- Footer / toast ---------- */
footer { padding: 48px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
footer .brand { margin-bottom: 10px; }
footer p { max-width: 46ch; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.foot-links a:hover { color: var(--text); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 50;
  background: var(--text); color: var(--bg); padding: 11px 20px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
footer .privacy { margin-top: 12px; font-size: 0.8rem; }
