:root {
  --bg: #0b1020;
  --panel: #121a2e;
  --line: #22304d;
  --text: #e5e9f2;
  --muted: #94a3b8;
  --violet: #8b5cf6;
  --violet-soft: #c4b5fd;
  --red: #f87171;
  --green: #34d399;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--violet-soft); }
a:hover { color: #fff; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Header / footer */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

/* Notice (e.g. checkout cancelled) */
.notice { margin: 24px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--muted); }
.notice[hidden] { display: none; }

/* Hero */
.hero { padding-top: 88px; padding-bottom: 56px; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 18px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--violet-soft); font-size: 13px; letter-spacing: .02em; }
h1 { margin: 0 auto 18px; max-width: 800px; font-size: clamp(34px, 5.5vw, 56px); line-height: 1.08; letter-spacing: -.02em; }
.lede { margin: 0 auto 32px; max-width: 640px; color: var(--muted); font-size: 19px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: #7c3aed; color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); color: #fff; }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; }
.small { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Mock order ticket */
.ticket { position: relative; margin: 56px auto 0; max-width: 420px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-align: left; }
.ticket .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--muted); }
.ticket .row b { color: var(--text); font-weight: 600; }
.ticket .neg { color: var(--red); }
.ticket .buttons { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ticket .buttons span { padding: 11px; border-radius: 8px; text-align: center; font-weight: 700; color: #fff; }
.ticket .buy { background: #2563eb; }
.ticket .sell { background: #dc2626; }
.ticket .lock { position: absolute; inset: -4px; padding: 0 10px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; background: rgba(15, 23, 42, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border: 1px solid rgba(248, 113, 113, .5); font-size: 14px; font-weight: 600; }

/* Sections */
section { padding: 56px 0; }
h2 { margin: 0 0 12px; font-size: clamp(26px, 3.5vw, 34px); letter-spacing: -.01em; }
.section-lede { margin: 0 0 32px; color: var(--muted); max-width: 640px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.sites { display: flex; flex-wrap: wrap; gap: 10px; }
.sites span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 15px; }

/* Pricing */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plan { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.plan.pro { border-color: var(--violet); }
.plan h3 { margin: 0; font-size: 18px; }
.price { margin: 8px 0 4px; font-size: 38px; font-weight: 700; }
.price small { font-size: 16px; font-weight: 400; color: var(--muted); }
.plan .note { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Legal pages */
.doc { padding: 56px 0 0; }
.doc h1 { font-size: 38px; text-align: left; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: #cbd5e1; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--panel); }

/* Welcome page */
.center { text-align: center; padding: 96px 0 0; }
.center .icon { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 20px; }
.steps { text-align: left; max-width: 520px; margin: 32px auto 0; padding-left: 22px; color: #cbd5e1; }
.steps li { margin: 8px 0; }

@media (max-width: 640px) {
  .top nav a.hide-sm { display: none; }
  .hero { padding-top: 56px; }
}
