:root {
  --bg: #07030f;
  --violet: #7c3aed;
  --violet-soft: #a78bfa;
  --magenta: #c026d3;
  --indigo: #4f46e5;
  --text: #f4f0ff;
  --muted: #b9acd9;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Soft coloured light drifting behind everything. */
.aurora {
  position: fixed;
  inset: 0;
  filter: blur(90px) saturate(130%);
  opacity: 1;
}
.orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.orb-a {
  width: 52vmax;
  height: 52vmax;
  left: -14vmax;
  top: -18vmax;
  background: radial-gradient(circle, var(--violet), transparent 65%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.orb-b {
  width: 46vmax;
  height: 46vmax;
  right: -16vmax;
  bottom: -20vmax;
  background: radial-gradient(circle, var(--magenta), transparent 65%);
  opacity: 0.7;
  animation: drift-b 31s ease-in-out infinite alternate;
}
.orb-c {
  width: 34vmax;
  height: 34vmax;
  left: 38%;
  top: 46%;
  background: radial-gradient(circle, var(--indigo), transparent 65%);
  opacity: 0.6;
  animation: drift-c 22s ease-in-out infinite alternate;
}
@keyframes drift-a {
  to {
    transform: translate(10vmax, 8vmax) scale(1.12);
  }
}
@keyframes drift-b {
  to {
    transform: translate(-9vmax, -7vmax) scale(1.1);
  }
}
@keyframes drift-c {
  to {
    transform: translate(-12vmax, -9vmax) scale(0.9);
  }
}

/* A fine dotted grid that fades towards the edges. */
.grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    rgba(196, 181, 253, 0.42) 1px,
    transparent 1.4px
  );
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 48%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 48%, #000 15%, transparent 78%);
}

#dots {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(4, 1, 10, 0.78) 100%);
}

main {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
}

.halo {
  position: absolute;
  width: min(60rem, 120vw);
  height: min(30rem, 70vw);
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.32), transparent 68%);
  filter: blur(30px);
  z-index: -1;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  50% {
    opacity: 0.55;
    transform: scale(1.06);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-soft);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  box-shadow:
    0 0 24px rgba(124, 58, 237, 0.35),
    inset 0 0 14px rgba(124, 58, 237, 0.15);
  backdrop-filter: blur(6px);
}
.pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--violet-soft);
  box-shadow: 0 0 10px 2px var(--violet-soft);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
    transform: scale(0.7);
  }
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 10vw, 7rem);
  line-height: 1.15;
  padding-bottom: 0.08em;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 10%, #cdb8ff 55%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(139, 92, 246, 0.55));
}

.lead {
  max-width: 34rem;
  margin: 1.75rem 0 0;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
}

.hint {
  margin: 2.5rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: rgba(185, 172, 217, 0.55);
}

footer {
  position: fixed;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(185, 172, 217, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .halo,
  .pulse {
    animation: none;
  }
}
