html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #040e12;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 10px 34px rgba(64, 220, 200, 0.45); }
  50% { box-shadow: 0 14px 44px rgba(64, 220, 200, 0.7); }
}

.bg-root {
  position: fixed;
  inset: 0;
  background: #040e12;
  cursor: grab;
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  user-select: none;
  touch-action: none;
}

.bg-root.dragging {
  cursor: grabbing;
}

.layer {
  position: absolute;
  inset: -512px;
  background-repeat: repeat;
  background-size: 512px 512px;
  will-change: background-position;
}

.galaxy-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.vignette-radial {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, transparent 38%, rgba(4, 8, 14, 0.72) 100%);
}

.vignette-linear {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(4, 12, 16, 0.5) 0%, transparent 22%, transparent 72%, rgba(4, 10, 14, 0.78) 100%);
}

/* ── Nav ── */

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px;
  pointer-events: none;
  animation: fadein 0.7s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  pointer-events: auto;
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: oklch(0.78 0.13 195);
  box-shadow: 0 0 14px oklch(0.78 0.13 195), 0 0 4px oklch(0.85 0.13 195);
}

.brand-name {
  font: 600 16px/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.14em;
  color: #eafaf6;
  text-transform: uppercase;
}

.status-pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(220, 240, 238, 0.06);
  border: 1px solid rgba(180, 230, 224, 0.22);
  color: #eafaf6;
  font: 600 13px/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}

/* ── Hero ── */

.hero {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}

.kicker {
  font: 500 12px/1 ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: 0.34em;
  color: oklch(0.82 0.1 195);
  text-transform: uppercase;
  margin-bottom: 26px;
  animation: fadein 0.7s ease 0.05s both;
}

.headline {
  margin: 0;
  max-width: 16ch;
  font: 600 clamp(44px, 7.4vw, 104px)/0.98 'Space Grotesk', sans-serif;
  letter-spacing: -0.025em;
  color: #f3fffb;
  text-shadow: 0 4px 60px oklch(0.7 0.13 195 / 0.45);
  text-wrap: balance;
  animation: fadein 0.8s ease 0.12s both;
}

.subhead {
  margin: 26px 0 0;
  max-width: 56ch;
  font: 400 clamp(16px, 1.5vw, 20px)/1.55 'Space Grotesk', sans-serif;
  color: rgba(214, 238, 234, 0.72);
  text-wrap: pretty;
  animation: fadein 0.8s ease 0.2s both;
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 38px;
  pointer-events: auto;
  animation: fadein 0.8s ease 0.28s both;
}

.cta-pill {
  padding: 15px 34px;
  border-radius: 999px;
  background: oklch(0.74 0.14 195);
  color: #021014;
  font: 600 16px/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: glow 2.6s ease-in-out infinite;
}

.drag-hint {
  position: absolute;
  bottom: 108px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  color: rgba(200, 234, 228, 0.7);
  animation: pulse 2.6s ease-in-out infinite;
}

.drag-hint span {
  font: 500 12px/1 ui-monospace, monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── Footer stats ── */

.site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadein 0.9s ease 0.4s both;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  padding: 26px 40px 14px;
  pointer-events: none;
}

.stat {
  text-align: center;
}

.stat-value {
  font: 600 22px/1 'Space Grotesk', sans-serif;
  color: #eafaf6;
}

.stat-label {
  font: 500 11px/1 ui-monospace, monospace;
  letter-spacing: 0.16em;
  color: rgba(200, 234, 228, 0.5);
  text-transform: uppercase;
  margin-top: 7px;
}

.stat-divider {
  width: 1px;
  background: rgba(180, 230, 224, 0.14);
}

@media (max-width: 640px) {
  .stats {
    gap: 28px;
  }
}

/* ── Footer legal ── */

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  padding: 0 24px 18px;
  pointer-events: auto;
  font: 500 11px/1.6 ui-monospace, monospace;
  letter-spacing: 0.04em;
  color: rgba(200, 234, 228, 0.45);
  text-align: center;
}

.legal-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.legal a {
  color: rgba(214, 238, 234, 0.65);
  text-decoration: none;
}

.legal a:hover {
  color: #eafaf6;
  text-decoration: underline;
}

.legal .dot {
  color: rgba(200, 234, 228, 0.3);
}

/* ── Legal pages (privacy/support) ── */

.legal-page {
  position: static;
  overflow: auto;
  height: auto;
  min-height: 100%;
}

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  color: rgba(220, 240, 238, 0.85);
  font: 400 16px/1.65 'Space Grotesk', sans-serif;
  animation: fadein 0.7s ease both;
}

.doc h1 {
  margin: 0 0 8px;
  font: 600 clamp(30px, 5vw, 44px)/1.05 'Space Grotesk', sans-serif;
  color: #f3fffb;
  letter-spacing: -0.02em;
}

.doc .updated {
  margin: 0 0 40px;
  font: 500 12px/1 ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 234, 228, 0.5);
}

.doc h2 {
  margin: 36px 0 12px;
  font: 600 20px/1.3 'Space Grotesk', sans-serif;
  color: #eafaf6;
}

.doc p, .doc li {
  color: rgba(214, 238, 234, 0.78);
}

.doc a {
  color: oklch(0.78 0.13 195);
}

.doc ul {
  padding-left: 22px;
}

.back-link {
  position: absolute;
  top: 26px;
  left: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13px/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(214, 238, 234, 0.7);
  text-decoration: none;
}

.back-link:hover {
  color: #eafaf6;
}

.legal-page .site-footer {
  position: static;
  margin-top: 40px;
}
