/* ══ RESET ══════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ══ TOKENS ═════════════════════════════════ */
:root {
  --bg:      #080810;
  --surf:    #0e0e20;
  --border:  #1e1e3c;
  --purple:  #b040ff;
  --ps:      rgba(176,64,255,.1);
  --text:    #dddaf0;
  --muted:   #6c6890;
  --online:  #50e080;
  --offline: #f06060;
  --fd: 'Rajdhani', sans-serif;
  --fb: 'Heebo', system-ui, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:      #f2f1fb;
    --surf:    #ffffff;
    --border:  #dddaf0;
    --purple:  #7c20e0;
    --ps:      rgba(124,32,224,.07);
    --text:    #18162e;
    --muted:   #6b6888;
    --online:  #18a050;
    --offline: #d04040;
  }
}
:root[data-theme="light"] {
  --bg:      #f2f1fb;
  --surf:    #ffffff;
  --border:  #dddaf0;
  --purple:  #7c20e0;
  --ps:      rgba(124,32,224,.07);
  --text:    #18162e;
  --muted:   #6b6888;
  --online:  #18a050;
  --offline: #d04040;
}

/* ══ BASE ═══════════════════════════════════ */
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ══ NAV ════════════════════════════════════ */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(8,8,16,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) nav { background: rgba(242,241,251,.94); }
}
:root[data-theme="light"] nav { background: rgba(242,241,251,.94); }

.logo {
  font-family: var(--fd);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  direction: ltr;
  flex-shrink: 0;
}
.logo em { color: var(--purple); font-style: normal; }

.nav-end {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-lnk {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .18s;
  white-space: nowrap;
}
.nav-lnk:hover,
.nav-lnk.cur { color: var(--text); }

/* Discord pill in nav */
.btn-dc {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .38rem .9rem;
  border-radius: 6px;
  background: #5865F2;
  color: #fff !important;
  font-family: var(--fb);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .18s;
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-dc:hover { opacity: .82; }

/* ══ LAYOUT ═════════════════════════════════ */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
}
.wrap-n { max-width: 780px; }

.stripe {
  background: var(--surf);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* inner-page top */
.ptop {
  padding: 8rem 2.5rem 3.5rem;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

.ptop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(176,64,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176,64,255,.03) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

.psup {
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: .9rem;
  position: relative;
}

.ph {
  font-family: var(--fd);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: -.025em;
  margin-bottom: 1.2rem;
  position: relative;
  text-wrap: balance;
}
.ph em { color: var(--purple); font-style: normal; }

.plead {
  color: var(--muted);
  font-size: 1rem;
  max-width: 480px;
  line-height: 1.65;
  position: relative;
}

/* ══ COMMON HEADINGS ════════════════════════ */
.sh {
  font-family: var(--fd);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 2rem;
  text-wrap: balance;
}
.sh em { color: var(--purple); font-style: normal; }

/* ══ BUTTONS ════════════════════════════════ */
.btn-main {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.7rem;
  border-radius: 6px;
  background: #5865F2;
  color: #fff;
  font-family: var(--fb);
  font-size: .97rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .18s, transform .15s;
}
.btn-main:hover { opacity: .85; transform: translateY(-1px); }

.btn-purple {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.7rem;
  border-radius: 6px;
  background: var(--purple);
  color: #fff;
  font-family: var(--fb);
  font-size: .97rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .18s, transform .15s;
}
.btn-purple:hover { opacity: .85; transform: translateY(-1px); }

/* ══ FOOTER ═════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .78rem;
  color: var(--muted);
  direction: ltr;
}

.foot-logo {
  font-family: var(--fd);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
}
.foot-logo em { color: var(--purple); font-style: normal; }

/* ══ REVEAL ═════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .48s ease, transform .48s ease;
  }
  .reveal.on { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .08s; }
  .reveal.d2 { transition-delay: .16s; }
  .reveal.d3 { transition-delay: .24s; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
}

/* ══ RESPONSIVE ═════════════════════════════ */
@media (max-width: 660px) {
  nav { padding: 0 1.25rem; }
  .nav-lnk:not(.btn-dc) { display: none; }
  .wrap, .ptop { padding-inline: 1.25rem; }
  .wrap { padding-block: 3.5rem; }
  footer { justify-content: center; text-align: center; }
}
