:root {
  color-scheme: dark;
  --ink: #05070a;
  --paper: #f7fbff;
  --cyan: #57e1ff;
  --coral: #ff7d5f;
  --mint: #84ffd2;
  --gold: #ffce6f;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.stage {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(28px, 5vw, 72px);
}

.hero-image {
  position: absolute;
  inset: -6%;
  z-index: -4;
  width: 112%;
  height: 112%;
  object-fit: cover;
  opacity: 0.78;
  filter: saturate(1.12) contrast(1.08);
  transform: scale(1.04);
  animation: imageDrift 18s ease-in-out infinite alternate;
}

.stage::before,
.stage::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.stage::before {
  z-index: -3;
  background:
    radial-gradient(circle at 18% 20%, rgb(87 225 255 / 0.32), transparent 29%),
    radial-gradient(circle at 80% 30%, rgb(255 125 95 / 0.25), transparent 25%),
    radial-gradient(circle at 50% 92%, rgb(132 255 210 / 0.18), transparent 26%),
    linear-gradient(135deg, rgb(5 7 10 / 0.5), rgb(5 7 10 / 0.84));
  mix-blend-mode: screen;
  opacity: 0.8;
  animation: colorRoll 7s ease-in-out infinite alternate;
}

.stage::after {
  z-index: 2;
  background:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.026) 1px, transparent 1px),
    radial-gradient(circle at center, transparent 32%, rgb(0 0 0 / 0.66) 100%);
  background-size: 92px 92px, 92px 92px, 100% 100%;
  opacity: 0.42;
  animation: gridSlide 5.5s linear infinite;
}

.motion-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.brand {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  width: min(100%, 1120px);
  text-align: center;
  text-shadow: 0 16px 52px rgb(0 0 0 / 0.64);
}

.brand::before {
  position: absolute;
  z-index: -1;
  width: min(72vw, 760px);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent 0 18%, rgb(87 225 255 / 0.38), transparent 32% 58%, rgb(255 125 95 / 0.36), transparent 72% 100%),
    radial-gradient(circle, rgb(255 255 255 / 0.12), transparent 58%);
  filter: blur(0.2px);
  opacity: 0.72;
  transform: translateY(-4%) rotate(0deg);
  animation: orbitGlow 10s linear infinite;
}

.animated-title {
  position: relative;
  display: block;
  max-width: 100%;
  margin: 0;
}

.wordmark {
  display: block;
  width: min(72vw, 840px);
  height: auto;
  filter:
    drop-shadow(0 0 9px rgb(255 255 255 / 0.66))
    drop-shadow(0 0 22px rgb(99 215 255 / 0.34))
    drop-shadow(0 18px 44px rgb(0 0 0 / 0.42));
  opacity: 1;
  animation-name: wordmarkOpacity;
  animation-duration: 2.2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: opacity;
}

.pulse-line {
  width: min(72vw, 680px);
  height: 2px;
  margin-top: clamp(22px, 4vw, 42px);
  overflow: hidden;
  border-radius: 999px;
  background: rgb(247 251 255 / 0.16);
  box-shadow: 0 0 28px rgb(87 225 255 / 0.28);
  animation: lineGlow 1.9s ease-in-out infinite alternate;
}

.pulse-line::before {
  display: block;
  width: 38%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, transparent, var(--mint), var(--gold), transparent);
  animation: scan 1.35s ease-in-out infinite;
}

@keyframes imageDrift {
  from {
    transform: scale(1.04) translate3d(-1.2%, -0.8%, 0);
  }

  to {
    transform: scale(1.1) translate3d(1.2%, 0.8%, 0);
  }
}

@keyframes colorRoll {
  from {
    filter: hue-rotate(0deg) saturate(1);
  }

  to {
    filter: hue-rotate(18deg) saturate(1.18);
  }
}

@keyframes gridSlide {
  from {
    background-position: 0 0, 0 0, center;
  }

  to {
    background-position: 92px 92px, -92px 92px, center;
  }
}

@keyframes orbitGlow {
  from {
    transform: translateY(-4%) rotate(0deg) scale(0.96);
  }

  50% {
    opacity: 0.92;
  }

  to {
    transform: translateY(-4%) rotate(360deg) scale(1.02);
  }
}

@keyframes wordmarkOpacity {
  0%,
  100% {
    opacity: 0.08;
  }

  48%,
  58% {
    opacity: 1;
  }

  74% {
    opacity: 0.22;
  }
}

@keyframes lineGlow {
  from {
    box-shadow: 0 0 18px rgb(87 225 255 / 0.34), 0 0 34px rgb(255 125 95 / 0.18);
  }

  to {
    box-shadow: 0 0 34px rgb(132 255 210 / 0.62), 0 0 70px rgb(255 206 111 / 0.26);
  }
}

@keyframes scan {
  from {
    transform: translateX(-105%);
  }

  to {
    transform: translateX(275%);
  }
}

@media (max-width: 620px) {
  .stage {
    padding: 24px;
  }

  .animated-title {
    line-height: 0.95;
  }

  .wordmark {
    width: min(88vw, 520px);
  }

  .brand::before {
    width: 128vw;
  }

  .pulse-line {
    width: min(86vw, 480px);
  }
}
