:root {
  color-scheme: dark;
  --bg: #060a18;
  --bg-2: #0a1128;
  --surface: #0f1834;
  --surface-2: #142047;
  --line: rgba(130, 170, 255, 0.16);
  --text: #eef3ff;
  --muted: #9aa8c7;
  --blue: #1e7bff;
  --blue-2: #0a5cf0;
  --cyan: #38c6ff;
  --silver: #cfd8e6;
  --gold: #f5c542;
  --radius: 22px;
  --font: "Bricolage Grotesque", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(30, 123, 255, 0.28), transparent 60%),
    radial-gradient(700px 500px at -10% 40%, rgba(56, 198, 255, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.05; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; }
h3 { font-size: 1.4rem; font-weight: 700; }
p { margin: 0 0 1em; }
.grad {
  background: linear-gradient(95deg, var(--cyan), var(--blue) 45%, var(--silver));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--blue); padding: 8px 14px; border-radius: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--blue) 55%, var(--blue-2)); color: #fff; box-shadow: 0 10px 30px -10px rgba(30, 123, 255, .8); }
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(56, 198, 255, .9); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(6, 10, 24, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px var(--blue); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .98rem; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 6px 0; transition: transform .2s; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  max-width: 1240px; margin: 0 auto; padding: clamp(40px, 8vw, 110px) clamp(16px, 4vw, 48px) 70px;
}
.eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; color: var(--cyan); margin-bottom: 18px; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--silver); margin-bottom: 30px; }
.ca-box { margin-top: 34px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(15, 24, 52, .7); max-width: 600px; }
.ca-label { display: block; font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--gold); margin-bottom: 8px; }
.ca-row { display: flex; align-items: center; gap: 12px; }
.ca { font-family: var(--mono); font-size: .9rem; color: var(--text); overflow-wrap: anywhere; flex: 1; min-width: 0; }
.btn-copy { background: var(--surface-2); border-color: var(--line); color: var(--text); flex-shrink: 0; }

.hero-art { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-art img { position: relative; border-radius: 36px; width: 100%; height: auto; box-shadow: 0 30px 80px -20px rgba(30, 123, 255, .7), 0 0 0 1px rgba(255,255,255,.08); animation: float 6s ease-in-out infinite; }
.halo { position: absolute; inset: -12%; background: radial-gradient(circle, rgba(30,123,255,.55), transparent 65%); filter: blur(20px); }
.chip {
  position: absolute; z-index: 2; padding: 9px 16px; border-radius: 999px;
  font: 600 .9rem var(--mono); background: rgba(6,10,24,.85); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.chip-a { top: 8%; left: -6%; color: var(--cyan); animation: float 5s ease-in-out infinite reverse; }
.chip-b { bottom: 10%; right: -4%; color: var(--gold); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(90deg, var(--blue-2), var(--blue), var(--cyan)); }
.marquee-track { display: flex; width: max-content; gap: 32px; padding: 14px 0; animation: scroll 30s linear infinite; font-weight: 800; letter-spacing: .06em; color: #fff; }
.marquee-track span { white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { max-width: 1240px; margin: 0 auto; padding: clamp(70px, 10vw, 120px) clamp(16px, 4vw, 48px); }
.sub { color: var(--muted); max-width: 640px; margin-bottom: 32px; }

.story-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.story-intro p { color: var(--silver); max-width: 600px; }
.story-art { position: relative; }
.story-art::before { content: ""; position: absolute; inset: 10% 15%; background: radial-gradient(circle, rgba(30,123,255,.45), transparent 70%); filter: blur(30px); }
.story-art img { position: relative; width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse 58% 60% at 50% 50%, #000 50%, transparent 100%); mask-image: radial-gradient(ellipse 58% 60% at 50% 50%, #000 50%, transparent 100%); }
.tagline { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--gold) !important; font-size: .9rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative; padding: 30px 26px 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: border-color .2s, transform .2s;
}
.step:hover { border-color: rgba(56,198,255,.5); transform: translateY(-4px); }
.step-num { font: 600 .9rem var(--mono); color: var(--cyan); margin-bottom: 18px; }
.step p { color: var(--muted); flex: 1; }
.step-foot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px dashed var(--line); }
.step-foot span { font: .74rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.step-foot strong { font-family: var(--mono); color: var(--text); }

/* Tracker */
.panel {
  padding: clamp(28px, 5vw, 56px); border-radius: 32px; border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(30,123,255,.25), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
}
.panel-head p { color: var(--silver); max-width: 620px; }
.tracker { display: flex; gap: 12px; margin-top: 26px; }
.tracker input {
  flex: 1; min-width: 0; padding: 15px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(6,10,24,.8); color: var(--text); font: 1rem var(--mono);
}
.tracker input::placeholder { color: #6a7896; }
.fine { color: var(--muted); font-size: .88rem; margin-top: 12px; font-family: var(--mono); }
.status { margin: 14px 0 0; color: var(--silver); font-family: var(--mono); font-size: .9rem; min-height: 1.4em; }
.status.error { color: #ff8a9a; }
.results { margin-top: 30px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { padding: 18px 20px; border-radius: 18px; background: rgba(6,10,24,.6); border: 1px solid var(--line); }
.stat span { display: block; font: .74rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.stat strong { display: block; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; overflow-wrap: anywhere; }
.stat em { font-style: normal; color: var(--cyan); font-family: var(--mono); font-size: .85rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 22px; }
table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .88rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; background: rgba(6,10,24,.5); }
tbody tr:last-child td { border-bottom: 0; }
td a { color: var(--cyan); }

/* History */
.history-list { display: grid; gap: 10px; }
.history-item {
  display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center;
  padding: 16px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  font-family: var(--mono); font-size: .9rem; text-decoration: none;
}
.history-item:hover { border-color: rgba(56,198,255,.5); }
.history-item .amt { color: var(--gold); font-weight: 600; }
.history-item .tx { color: var(--cyan); }

/* Community */
.community-card {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; overflow: hidden;
  padding: clamp(28px, 5vw, 60px); border-radius: 32px;
  background: linear-gradient(130deg, var(--blue-2), var(--blue) 50%, #2a9dff);
  box-shadow: 0 40px 90px -40px rgba(30,123,255,.9);
}
.community-copy p { color: #e5eeff; max-width: 520px; }
.community-copy .grad { background: none; color: #0a1128; -webkit-text-fill-color: #0a1128; }
.community-card .btn-primary { background: #060a18; box-shadow: none; }
.community-card .btn-ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); }
.community-art img { width: 100%; height: auto; border-radius: 24px; transform: rotate(1.5deg); box-shadow: 0 24px 60px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.15); }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 880px; margin-top: 28px; }
details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .2s; }
details[open] { border-color: rgba(56,198,255,.45); }
summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 1.12rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font: 400 1.6rem var(--mono); color: var(--cyan); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 24px 22px; margin: 0; color: var(--silver); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px clamp(16px, 4vw, 48px) 40px; max-width: 1240px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 36px; }
.footer-brand { font-size: 2rem; font-weight: 800; margin: 0; }
.footer-tag { color: var(--muted); margin: 0; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--silver); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { color: var(--muted); font-size: .85rem; font-family: var(--mono); }
.footer-bottom a { color: var(--cyan); }
.disclaimer { max-width: 760px; }
.back-top { text-decoration: none; }

/* Toast + dialog */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--cyan); font-family: var(--mono); font-size: .9rem; transition: all .25s; z-index: 200; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
dialog { border: 1px solid var(--line); border-radius: 24px; background: var(--bg-2); color: var(--text); padding: 20px; max-width: min(92vw, 900px); }
dialog::backdrop { background: rgba(3,6,16,.8); backdrop-filter: blur(4px); }
dialog canvas { width: 100%; height: auto; border-radius: 14px; margin-bottom: 16px; display: block; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; gap: 40px; }
  .hero-art { order: -1; width: min(72%, 320px); }
  .story-intro { grid-template-columns: 1fr; gap: 32px; }
  .community-card { grid-template-columns: 1fr; gap: 32px; }
  .community-art { order: -1; }
  .story-art { max-width: 560px; }
  .steps { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(6,10,24,.97); border-bottom: 1px solid var(--line); padding: 8px 16px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .tracker { flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
  .ca-row { flex-direction: column; align-items: stretch; }
  .chip-a { left: -2%; } .chip-b { right: -2%; }
  .history-item { grid-template-columns: 1fr auto; }
  .history-item .tx { grid-column: 1 / -1; }
  .cta-row .btn { flex: 1 1 auto; }
}
