/* ─── Brand tokens (mirrors frontend/theme.js) ─────────────────────────────── */
:root {
  --bg: rgb(5, 3, 9);
  --purple: #492c8c;
  --purple-light: #a594d8;
  --text: #ffffff;
  --text-muted: #9a93a8;
  --hairline: rgba(255, 255, 255, 0.08);
  --font-body: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: "Satoshi", "General Sans", -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* dark base so rubber-band overscroll (top or bottom) only ever shows dark */
  background-color: var(--bg);
  overscroll-behavior: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  position: relative;   /* containing block for the full-page aurora */
  /* base wash so non-landing pages still have a hint of color */
  background-image: radial-gradient(100% 55% at 50% -10%, rgba(73, 44, 140, 0.3), transparent 60%);
  background-repeat: no-repeat;
}

a { color: inherit; text-decoration: none; }

/* ─── Aurora background (drifting colored glows + scroll parallax) ──────────── */
.aurora {
  position: absolute;       /* spans the whole document and scrolls WITH the page */
  inset: 0;                 /* top:0 → bottom:0 = full page height */
  z-index: -1;
  overflow: hidden;         /* clip glows to the page edges (keeps overscroll dark) */
  pointer-events: none;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  mix-blend-mode: screen;
}
/* Glows distributed top→bottom (positions are % of full page height), so new
   color comes into view as you scroll. Alternating sides for visual rhythm. */
.aurora .b1 {
  width: 60vw; height: 60vw; min-width: 360px; min-height: 360px;
  top: -3%; left: -10%;
  background: radial-gradient(circle, #8765ee, transparent 70%);
  opacity: 0.8;
  animation: drift1 26s ease-in-out infinite alternate;
}
.aurora .b2 {
  width: 50vw; height: 50vw; min-width: 320px; min-height: 320px;
  top: 7%; right: -12%;
  background: radial-gradient(circle, #cf5fbb, transparent 70%);
  opacity: 0.6;
  animation: drift2 32s ease-in-out infinite alternate;
}
.aurora .b3 {
  width: 56vw; height: 56vw; min-width: 340px; min-height: 340px;
  top: 33%; left: -12%;
  background: radial-gradient(circle, #5a44c0, transparent 72%);
  opacity: 0.62;
  animation: drift3 30s ease-in-out infinite alternate;
}
.aurora .b4 {
  width: 54vw; height: 54vw; min-width: 320px; min-height: 320px;
  top: 56%; right: -12%;
  background: radial-gradient(circle, #a24fd6, transparent 72%);
  opacity: 0.58;
  animation: drift1 34s ease-in-out infinite alternate;
}
.aurora .b5 {
  width: 62vw; height: 62vw; min-width: 360px; min-height: 360px;
  bottom: -6%; left: 6%;
  background: radial-gradient(circle, #4a36a8, transparent 72%);
  opacity: 0.55;
  animation: drift2 38s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vw, 4vh) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1.05); } to { transform: translate(-6vw, 3vh) scale(0.92); } }
@keyframes drift3 { from { transform: translate(0, 0) scale(1); } to { transform: translate(5vw, -3vh) scale(1.1); } }

@media (prefers-reduced-motion: reduce) {
  .aurora span { animation: none !important; }
}

/* ─── Header (full bleed) ──────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 48px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 3, 9, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.logo { font-family: var(--font-head); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.logo span { color: var(--purple-light); }
.site-header nav a { color: var(--text-muted); font-size: 15px; margin-left: 28px; transition: color 0.15s ease; }
.site-header nav a:hover { color: var(--text); }

/* ─── Hero (fills the first screen) ────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 67px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(44px, 8vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  max-width: 12ch;
}
.hero p {
  font-size: clamp(17px, 2.4vw, 19px);
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 38px;
}
.btn {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 32px;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(73, 44, 140, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(73, 44, 140, 0.6); }

.scroll-hint {
  margin-top: 64px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── About (second screen) ────────────────────────────────────────────────── */
.about {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.about-inner { max-width: 600px; }
.about .kicker {
  display: inline-block;
  color: var(--purple-light);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.about h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.about p {
  font-size: clamp(16px, 2.2vw, 18px);
  color: var(--text-muted);
  margin-bottom: 16px;
}
.about p:last-of-type { margin-bottom: 0; }

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 34px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.site-footer a { margin: 0 14px; transition: color 0.15s ease; }
.site-footer a:hover { color: var(--text); }
.site-footer .copy { margin-top: 16px; color: rgba(255, 255, 255, 0.3); }

/* ─── Legal pages ──────────────────────────────────────────────────────────── */
.legal { max-width: 680px; margin: 0 auto; padding: 48px 24px 90px; }
.legal h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 5vw, 40px); letter-spacing: -0.02em; margin-bottom: 6px; }
.legal .updated { color: rgba(255, 255, 255, 0.3); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-family: var(--font-head); font-weight: 700; font-size: 21px; margin: 34px 0 10px; }
.legal p, .legal li { color: #c9c4d2; font-size: 16px; margin-bottom: 13px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--purple-light); text-decoration: underline; text-underline-offset: 2px; }
.legal .back { display: inline-block; margin-top: 44px; color: var(--text-muted); font-size: 15px; }
.legal .back:hover { color: var(--text); }

/* ─── Scroll reveal (fails open: visible even if JS doesn't run) ────────────── */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .site-header { padding: 18px 22px; }
  .hero { padding: 40px 22px; }
}
