@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Lilita+One&family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ─── TOKENS ─── */
:root {
  --bg: #0e0f13;
  --bg-2: #15171d;
  --bg-3: #1a1d26;
  --ink: #ffffff;
  --ink-muted: rgba(255,255,255,0.62);
  --ink-dim: rgba(255,255,255,0.38);
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --card: rgba(255,255,255,0.04);
  --card-strong: rgba(255,255,255,0.06);
  --indigo: #5865f2;
  --pink: #eb459e;
  --gold: #FFD700;
  --orange: #ff9f43;
  --green: #3ee08f;
  --blue: #00d4ff;
  --grad: linear-gradient(135deg, #5865f2 0%, #eb459e 100%);
  --grad-warm: linear-gradient(135deg, #ff5fb0 0%, #ffd166 100%);
  --grad-soft: linear-gradient(135deg, rgba(88,101,242,0.22) 0%, rgba(235,69,158,0.22) 100%);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── BACKGROUND FX ─── */
.bg-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.bg-fx .orb {
  position: absolute; width: 720px; height: 720px; border-radius: 50%;
  filter: blur(120px); opacity: 0.4;
}
.bg-fx .orb-1 { background: var(--indigo); top: -260px; left: -240px; }
.bg-fx .orb-2 { background: var(--pink); top: 18%; right: -300px; opacity: 0.35; }
.bg-fx .orb-3 { background: #7c3aed; top: 110%; left: 20%; opacity: 0.25; width: 900px; height: 900px; }
.bg-fx .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}
.bg-fx .noise {
  position: absolute; inset: 0; opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ─── PAGE SHELL ─── */
.page { position: relative; z-index: 1; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* ─── NAV ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(14,15,19,0.7);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .brand-mark { width: 32px; height: 32px; flex: none; }
.brand .brand-word {
  font-family: 'Fredoka', sans-serif; font-weight: 700;
  font-size: 22px; letter-spacing: -0.6px; line-height: 1;
}
.brand .brand-word .meld {
  background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; padding: 14px 22px; border-radius: 14px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.1px;
  color: #fff; background: var(--grad);
  box-shadow:
    0 12px 30px -10px rgba(88,101,242,0.6),
    0 6px 18px -6px rgba(235,69,158,0.5),
    inset 0 1px 0 rgba(255,255,255,0.25);
  position: relative; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  line-height: 1; cursor: pointer;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), transparent 50%);
  pointer-events: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px -10px rgba(88,101,242,0.75),
    0 10px 24px -6px rgba(235,69,158,0.6),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn .discord-glyph { width: 20px; height: 20px; }
.btn.lg { padding: 18px 28px; font-size: 17px; border-radius: 16px; }
.btn.ghost {
  background: transparent; color: var(--ink); box-shadow: none;
  border: 1px solid var(--line-strong);
}
.btn.ghost:hover { background: var(--card-strong); }
.btn.ghost::after { display: none; }
.btn.nav-btn { padding: 10px 16px; font-size: 13.5px; border-radius: 12px; }

/* ─── SECTION SHARED ─── */
section { position: relative; padding: 96px 0; }
.section-head { text-align: center; margin: 0 auto 56px; max-width: 720px; }
.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: 2.2px;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Fredoka', sans-serif; font-weight: 700;
  font-size: clamp(36px,6vw,60px); letter-spacing: -1.5px;
  line-height: 1.02; margin: 0 0 16px; text-wrap: balance;
}
.section-sub {
  font-size: 17px; color: var(--ink-muted);
  text-wrap: pretty; line-height: 1.55;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  margin-top: 40px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-meta { font-size: 13px; color: var(--ink-dim); }
.footer-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 13.5px; color: var(--ink-muted);
  flex-wrap: wrap;
}
.footer-links a { transition: color 0.15s; }
.footer-links a:hover { color: var(--ink); }
.footer-disclaimer {
  text-align: center; margin-top: 22px;
  font-size: 11.5px; color: var(--ink-dim);
}

/* ─── REVEAL ANIMATION ─── */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].in { opacity: 1; transform: none; }

/* ─── LEGAL PAGES ─── */
.legal-page {
  padding: 56px 0 96px;
  min-height: calc(100vh - 200px);
}
.legal-content {
  max-width: 740px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 56px 64px;
}
@media (max-width: 800px) { .legal-content { padding: 40px 32px; } }
@media (max-width: 480px) { .legal-content { padding: 32px 20px; } }

.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-muted);
  margin-bottom: 40px;
  transition: color 0.15s;
}
.legal-back:hover { color: var(--ink); }
.legal-back svg { width: 16px; height: 16px; flex: none; }

.legal-title {
  font-family: 'Fredoka', sans-serif; font-weight: 700;
  font-size: clamp(30px,5vw,44px); letter-spacing: -1px;
  line-height: 1.05; margin: 0 0 8px;
}
.legal-date {
  font-size: 13px; color: var(--ink-dim); margin: 0 0 48px;
}
.legal-divider {
  border: none; border-top: 1px solid var(--line);
  margin: 36px 0;
}
.legal-section { margin: 0 0 36px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 {
  font-family: 'Fredoka', sans-serif; font-weight: 600;
  font-size: 20px; letter-spacing: -0.3px;
  margin: 0 0 12px;
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.legal-section h2 .h2-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--grad);
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 800;
  color: #fff; flex: none;
}
.legal-section p {
  font-size: 15px; color: var(--ink-muted); line-height: 1.72;
  margin: 0 0 12px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  list-style: none; padding: 0; margin: 0 0 12px;
  display: grid; gap: 8px;
}
.legal-section ul li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--ink-muted); line-height: 1.6;
}
.legal-section ul li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #5865f2, #eb459e);
  margin-top: 9px;
}
.legal-section ul.no-collect li::before {
  background: rgba(255,255,255,0.2);
}
.legal-section a {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-weight: 500;
}

.legal-contact {
  margin-top: 40px;
  background: var(--grad-soft);
  border: 1px solid rgba(235,69,158,0.2);
  border-radius: 14px;
  padding: 20px 24px;
  font-size: 14px; color: var(--ink-muted);
  line-height: 1.6;
}
.legal-contact strong { color: var(--ink); }

.legal-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid rgba(88,101,242,0.3);
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}
