:root {
  --bg: #0a0a0b;
  --bg-elev: #111113;
  --panel: #151518;
  --border: #26262b;
  --fg: #ededef;
  --muted: #9a9aa3;
  --accent: #7c5cff;
  --accent-2: #2dd4bf;
  --success: #34d399;
  --danger: #f87171;
  --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--sans);
  background-image: radial-gradient(60rem 30rem at 50% -10rem, rgba(124, 92, 255, .18), transparent 70%);
  background-repeat: no-repeat;
}
a { color: var(--accent-2); }
code { font-family: var(--mono); font-size: .9em; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px);
  background: rgba(10, 10, 11, .7); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-weight: 600; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: .5rem; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.1rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--panel); color: var(--fg); font: inherit; font-weight: 500;
  text-decoration: none; cursor: pointer; transition: border-color .15s, transform .05s, background .15s; }
.btn:hover { border-color: #3a3a42; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--fg); color: #000; border-color: var(--fg); }
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn-small { padding: .4rem .75rem; font-size: .875rem; }
.btn-block { width: 100%; margin-top: .75rem; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: .875rem;
  cursor: pointer; margin-top: .75rem; text-decoration: underline; padding: 0; }

/* hero */
.hero { padding: 5rem 16px 3.5rem; text-align: center; }
.eyebrow { color: var(--accent-2); font-family: var(--mono); font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase; margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -.035em;
  margin: 0 0 1.25rem;
  background: linear-gradient(180deg, #fff 30%, #a8a8b3); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; margin: 0 auto 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; }
.cta-alt { color: var(--muted); font-size: .95rem; }
.disclosure-pill { display: inline-block; margin-top: 2rem; padding: .35rem .85rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--muted); font-size: .85rem; }

/* sections */
.section { padding: 3rem 16px; border-top: 1px solid var(--border); }
.section h2 { font-size: 1.6rem; letter-spacing: -.02em; margin: 0 0 .5rem; }
.section-lede { color: var(--muted); max-width: 44rem; margin: 0 0 2rem; }
.chapters { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.chapters li { display: flex; gap: 1.25rem; padding: 1.25rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-elev); }
.chapter-num { font-family: var(--mono); color: var(--accent); font-size: .9rem; padding-top: .2rem; }
.chapters h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.chapters p { margin: 0; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; }
.card { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
.card h2 { font-size: 1.2rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 1.6rem; position: relative; margin: .5rem 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--success); }
.steps { padding-left: 1.25rem; }
.steps li { margin: .5rem 0; }

.footer { border-top: 1px solid var(--border); padding: 2rem 0 3rem; color: var(--muted); font-size: .875rem; }

/* modal */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); }
.modal-panel { position: relative; width: 100%; max-width: 30rem; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 1.75rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal-panel h2 { margin: 0 0 1rem; font-size: 1.3rem; }
.modal-close { position: absolute; top: .75rem; right: .75rem; width: 2rem; height: 2rem; border-radius: 8px;
  border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.currency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.currency { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev);
  color: var(--fg); font: inherit; cursor: pointer; }
.currency:hover { border-color: var(--accent); }
.currency span { color: var(--muted); font-size: .85rem; }
.amount { color: var(--accent-2); }
.qr { display: flex; justify-content: center; margin: 1rem 0; }
.qr svg, .qr img { background: #fff; padding: 10px; border-radius: 10px; width: 200px; height: 200px; }
.address-row { display: flex; gap: .5rem; align-items: center; }
.address { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: .55rem .7rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg); font-size: .8rem; }
.label { display: block; margin: 1.25rem 0 .4rem; font-size: .875rem; color: var(--muted); }
.input { width: 100%; padding: .7rem .8rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--fg); font: .85rem var(--mono); }
.input:focus, .btn:focus-visible, .currency:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.downloads { display: flex; flex-wrap: wrap; gap: .5rem; }
.success { color: var(--success); font-weight: 600; }
.status { min-height: 1.5rem; margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }
.status.error { color: var(--danger); }
.status.ok { color: var(--success); }

@media (max-width: 480px) {
  .hero { padding-top: 3rem; }
  .currency-grid { grid-template-columns: 1fr; }
  .chapters li { flex-direction: column; gap: .5rem; }
}
