:root {
  --bg: #050806;
  --bg-deep: #020403;
  --text: #f2fff6;
  --accent: #39ff14;
  --accent-soft: rgba(57, 255, 20, 0.16);
  --accent-glow: rgba(57, 255, 20, 0.32);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Poiret One", system-ui, sans-serif;
  background: var(--bg-deep);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-deep);
}

.wash {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(55% 50% at 30% 20%, rgba(18, 42, 28, 0.95) 0%, transparent 60%),
    radial-gradient(50% 45% at 78% 70%, rgba(10, 28, 18, 0.9) 0%, transparent 55%),
    radial-gradient(70% 60% at 50% 100%, rgba(6, 18, 12, 0.85) 0%, transparent 50%),
    linear-gradient(165deg, #0a1610 0%, var(--bg) 42%, var(--bg-deep) 100%);
  animation: washDrift 48s ease-in-out infinite;
  will-change: transform;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform, opacity;
}

.glow-a {
  width: min(70vw, 620px);
  height: min(70vw, 620px);
  left: 50%;
  top: 32%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.55;
  animation: glowA 42s ease-in-out infinite;
}

.glow-b {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  right: 4%;
  bottom: 6%;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.18) 0%, transparent 72%);
  opacity: 0.4;
  animation: glowB 56s ease-in-out infinite;
}

.glow-c {
  width: min(48vw, 400px);
  height: min(48vw, 400px);
  left: 2%;
  bottom: 22%;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.12) 0%, transparent 70%);
  opacity: 0.35;
  animation: glowC 64s ease-in-out infinite;
}

.veil {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(120% 80% at 50% 40%, transparent 30%, rgba(2, 4, 3, 0.35) 100%),
    conic-gradient(
      from 0deg at 50% 45%,
      rgba(57, 255, 20, 0.03),
      transparent 20%,
      rgba(57, 255, 20, 0.05),
      transparent 55%,
      rgba(57, 255, 20, 0.03),
      transparent 80%,
      rgba(57, 255, 20, 0.04)
    );
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: veilSpin 90s linear infinite;
  will-change: transform;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
  animation: grainShift 36s steps(8) infinite;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: 2rem;
}

.mark {
  width: min(82vw, 72vh, 1080px);
  height: min(82vw, 72vh, 1080px);
  filter: drop-shadow(0 0 72px var(--accent-soft));
  animation: markIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.soon {
  margin: 0;
  font-size: clamp(0.95rem, 2.8vw, 1.2rem);
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--accent);
  animation: copyIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

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

@keyframes markIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes washDrift {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(2.5%, -1.5%) scale(1.04) rotate(1.2deg);
  }
  66% {
    transform: translate(-2%, 2%) scale(1.03) rotate(-1deg);
  }
}

@keyframes glowA {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate(calc(-50% + 4%), calc(-50% - 5%)) scale(1.12);
    opacity: 0.7;
  }
}

@keyframes glowB {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.32;
  }
  50% {
    transform: translate(-6%, -4%) scale(1.15);
    opacity: 0.55;
  }
}

@keyframes glowC {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.28;
  }
  50% {
    transform: translate(5%, 3%) scale(1.18);
    opacity: 0.5;
  }
}

@keyframes veilSpin {
  from {
    transform: rotate(0deg) scale(1.05);
  }
  to {
    transform: rotate(360deg) scale(1.05);
  }
}

@keyframes grainShift {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-1%, 1%);
  }
  50% {
    transform: translate(1%, -1%);
  }
  75% {
    transform: translate(-1%, -1%);
  }
  100% {
    transform: translate(0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wash,
  .glow,
  .veil,
  .grain,
  .mark,
  .soon {
    animation: none !important;
  }

  .soon,
  .mark {
    opacity: 1;
    transform: none;
  }

  .glow-a {
    transform: translate(-50%, -50%);
    opacity: 0.5;
  }
}
