:root {
  --bg: #07060d;
  --bg-2: #0d0b18;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #ece9f7;
  --muted: #a39fba;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --gold: #f5b942;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Cinzel", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: #67e8f9; }
strong { color: #fff; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
}
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0 0 1rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ambient background */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.backdrop .art {
  position: absolute; inset: 0;
  background: url("/images/dragon.jpg") center / cover no-repeat;
  opacity: 0.16;
  filter: saturate(1.2) blur(1px);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.35; animation: drift 24s ease-in-out infinite alternate; }
.blob.a { width: 520px; height: 520px; background: #6d28d9; top: -140px; left: -120px; }
.blob.b { width: 460px; height: 460px; background: #0891b2; top: 30%; right: -160px; animation-delay: -8s; opacity: 0.22; }
.blob.c { width: 420px; height: 420px; background: #be185d; bottom: -180px; left: 30%; animation-delay: -15s; opacity: 0.18; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }

/* top nav */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 6, 13, 0.62);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.04em; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand .logo { width: 28px; height: 28px; border-radius: 8px; background: conic-gradient(from 200deg, var(--accent), var(--accent-2), #ec4899, var(--accent)); box-shadow: 0 0 18px rgba(139, 92, 246, 0.6); }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a {
  color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 0.92rem; font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: #fff; background: var(--surface-2); }
.nav a.active { color: #fff; background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; background: var(--surface-2); color: #fff; border: 1px solid var(--border); border-radius: 10px; width: 42px; height: 42px; font-size: 1.2rem; cursor: pointer; margin-left: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-2); color: #fff; font-family: inherit;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.btn.primary { background: linear-gradient(135deg, #7c3aed, #6366f1); border-color: transparent; box-shadow: 0 8px 28px -8px rgba(124, 58, 237, 0.8); }
.btn.primary:hover { box-shadow: 0 12px 34px -6px rgba(124, 58, 237, 0.95); }
.btn.gold { background: linear-gradient(135deg, #f5b942, #f59e0b); color: #1b1203; border-color: transparent; }
.btn.gold:hover { color: #1b1203; box-shadow: 0 10px 30px -8px rgba(245, 185, 66, 0.8); }
.btn.discord { background: #5865f2; border-color: transparent; }
.btn.lg { padding: 14px 26px; font-size: 1.05rem; border-radius: 14px; }
.btn.sm { padding: 7px 12px; font-size: 0.85rem; border-radius: 10px; }

/* layout */
main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 20px 80px; }
.page-head { margin-bottom: 32px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem; color: var(--accent-2); font-weight: 600; margin-bottom: 8px; }
.page-head h1 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 62ch; }
.grad { background: linear-gradient(120deg, #c4b5fd, #67e8f9 55%, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.card.hover:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.5); background: var(--surface-2); }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* hero */
.hero { text-align: center; padding: 56px 0 40px; position: relative; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; font-size: 0.82rem; color: var(--muted); text-decoration: none; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
.hero h1 { font-family: var(--display); font-size: clamp(2.6rem, 8vw, 5.5rem); font-weight: 800; margin: 22px 0 18px; letter-spacing: 0.01em; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 60ch; margin: 0 auto 28px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.connect {
  margin: 36px auto 0; max-width: 560px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: 14px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--border); text-align: left;
}
.connect .lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.connect .val { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--accent-2); font-size: 1rem; word-break: break-all; }

.features { margin-top: 48px; }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(34, 211, 238, 0.2)); border: 1px solid var(--border); }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 56px 0 18px; }
.section-title h2 { font-family: var(--display); font-size: 1.6rem; }

/* tags */
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 10px; border-radius: 999px; border: 1px solid; }
.tag.added   { color: var(--good); background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.35); }
.tag.fixed   { color: var(--bad);  background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.35); }
.tag.changed { color: var(--warn); background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.35); }
.tag.event   { color: #c4b5fd;     background: rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.4); }
.tag.recommended { color: #fff; background: var(--accent); border-color: transparent; }

/* news timeline */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { cursor: pointer; font-family: inherit; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 7px 14px; border-radius: 999px; font-size: 0.88rem; font-weight: 500; transition: all 0.15s; }
.chip:hover { color: #fff; }
.chip.on { color: #fff; background: var(--accent); border-color: transparent; }
.timeline { position: relative; display: grid; gap: 18px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), transparent); }
.timeline .post { position: relative; }
.timeline .post::before { content: ""; position: absolute; left: -26px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.post .meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; color: var(--muted); font-size: 0.85rem; }
.post h3 { font-size: 1.25rem; }
.post ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.post li { margin: 4px 0; }

/* roadmap */
.board { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: start; }
.col h2 { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--muted); }
.col h2 .count { background: var(--surface-2); border-radius: 999px; padding: 1px 9px; font-size: 0.78rem; }
.col h2 i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.col.planned i { background: var(--warn); } .col.progress i { background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); } .col.shipped i { background: var(--good); }
.col .stack { display: grid; gap: 12px; }
.col .item { padding: 16px; }
.col .item h3 { font-size: 1rem; margin-bottom: 6px; }
.col .item p { font-size: 0.9rem; color: var(--muted); }
.feedback { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(139, 92, 246, 0.12)); }

/* coins */
.coin { text-align: center; position: relative; }
.coin .amt { font-family: var(--display); font-size: 2.4rem; font-weight: 800; color: var(--gold); text-shadow: 0 0 30px rgba(245, 185, 66, 0.35); }
.coin .price { font-size: 1.1rem; margin: 4px 0 18px; color: var(--muted); }
.coin .ribbon { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--accent); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 12px; border-radius: 999px; }
.coin:has(.ribbon) { border-color: rgba(139, 92, 246, 0.5); }

/* guides */
.guide-link { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--text); }
.guide-link:hover { color: #fff; }
.guide-link .arrow { margin-left: auto; color: var(--accent-2); font-size: 1.4rem; transition: transform 0.2s; }
.guide-link:hover .arrow { transform: translateX(5px); }

/* download / steps */
.tabs { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-top: 20px; }
.tabs a { padding: 8px 20px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 600; transition: all 0.15s; }
.tabs a.on { background: var(--accent); color: #fff; }
.steps { display: grid; gap: 18px; max-width: 880px; counter-reset: step; }
.step { position: relative; padding-left: 70px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--accent), #6366f1); }
.step h2 { font-size: 1.3rem; margin-bottom: 10px; }
.step ul, .step ol, .prose ul { color: var(--muted); padding-left: 20px; }
.step li, .prose li { margin: 6px 0; }
.step p { color: var(--muted); }
pre.code {
  position: relative; background: rgba(0, 0, 0, 0.55); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 10px 0;
  overflow-x: auto; color: #86efac; font-size: 0.85rem; line-height: 1.55;
}
pre.code code { background: none; padding: 0; color: inherit; font-size: inherit; }
.client { border: 1px solid var(--border); }
.client.rec { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 40px -18px rgba(139, 92, 246, 0.7); }
.callout { border-left: 3px solid var(--warn); }
.prose { max-width: 760px; }

/* footer */
footer { border-top: 1px solid var(--border); background: rgba(0, 0, 0, 0.35); }
.foot { max-width: 1200px; margin: 0 auto; padding: 28px 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.88rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: #fff; }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: #111827; border: 1px solid var(--border); padding: 10px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: all 0.25s; z-index: 200; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* page transition + scroll reveal */
.view { animation: rise 0.45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-cta { display: none; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 12px 20px 20px; background: rgba(7, 6, 13, 0.97); border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .only-mobile { display: block; }
}
.nav .only-mobile { display: none; }
@media (max-width: 560px) {
  .step { padding-left: 18px; padding-top: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
