@font-face {
  font-family: "asp";
  src: url("../webfonts/asp.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: #06040b;
  --text: #f4efff;
  --muted: rgba(232, 226, 246, 0.6);
  --pink: #ff1fbe;
  --violet: #a64bff;
  --uv: #7b2cff;
  --plasma: #c026ff;
  --blue: #2f6bff;
  --red: #ff2d55;
  --orange: #ff7a1a;
  --pointer-x: 50%;
  --pointer-y: 40%;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 14%, rgba(47, 107, 255, 0.28), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(255, 31, 190, 0.3), transparent 22%),
    radial-gradient(circle at 70% 76%, rgba(123, 44, 255, 0.2), transparent 24%),
    radial-gradient(circle at 36% 90%, rgba(255, 45, 85, 0.16), transparent 18%),
    linear-gradient(140deg, #030209 0%, #090311 42%, #140a20 100%);
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle 16rem at var(--pointer-x) var(--pointer-y), rgba(47, 107, 255, 0.22), transparent 42%),
    radial-gradient(circle 26rem at var(--pointer-x) var(--pointer-y), rgba(255, 31, 190, 0.18), transparent 56%),
    radial-gradient(circle 38rem at var(--pointer-x) var(--pointer-y), rgba(166, 75, 255, 0.16), transparent 70%);
}

body::after {
  background:
    linear-gradient(rgba(123, 44, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 31, 190, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.6), transparent 78%);
  opacity: 0.18;
}

.bg-music {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.scene-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: saturate(1.35) contrast(1.08);
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0.5px, transparent 0.9px),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.12) 0.55px, transparent 0.95px),
    radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.14) 0.55px, transparent 0.95px);
  background-size: 160px 160px, 180px 180px, 220px 220px;
  mix-blend-mode: screen;
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9rem, 2.4vw, 1.7rem);
  padding: 1.5rem;
  text-align: center;
}

.wordmark {
  position: relative;
  margin: 0;
  font-family: "asp", "Unbounded", sans-serif;
  font-weight: 900;
  font-size: clamp(3.4rem, 18vw, 19rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: transparent;
  -webkit-text-stroke: clamp(2px, 0.32vw, 5px) rgba(125, 95, 255, 0.85);
  text-shadow:
    0 0 26px rgba(255, 31, 190, 0.34),
    0 0 60px rgba(47, 107, 255, 0.24);
  animation: wordmark-in 1200ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.wordmark::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  background: linear-gradient(
    110deg,
    var(--blue),
    var(--violet),
    var(--plasma),
    var(--pink),
    var(--red),
    var(--orange),
    var(--red),
    var(--pink),
    var(--plasma),
    var(--violet),
    var(--blue)
  );
  background-size: 300% 100%;
  background-repeat: repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0;
  opacity: 0.68;
  mix-blend-mode: screen;
  animation: hue-pan 9s linear infinite;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: clamp(0.34em, 1.1vw, 0.66em);
  text-transform: uppercase;
  padding-left: 0.66em;
  text-shadow:
    0 0 14px rgba(255, 31, 190, 0.2),
    0 0 22px rgba(47, 107, 255, 0.16);
  animation: tagline-in 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) 360ms both;
}

@keyframes wordmark-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes tagline-in {
  from {
    opacity: 0;
    transform: translateY(14px);
    letter-spacing: 0.16em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hue-pan {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 300% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
