:root {
  --bg-1: #07111c;
  --bg-2: #102339;
  --bg-3: #03101b;
  --ink: #f2f6f9;
  --muted: rgba(218, 228, 237, 0.72);
  --accent: #63f5d0;
  --accent-soft: rgba(99, 245, 208, 0.14);
  --pointer-x: 50%;
  --pointer-y: 50%;
  --pointer-energy: 0.18;
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(99, 245, 208, 0.16), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(118, 185, 255, 0.18), transparent 24%),
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, calc(var(--pointer-energy) * 0.38)), transparent 26%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2) 52%, var(--bg-3));
  color: var(--ink);
  font-family: "Avenir Next Condensed", "Segoe UI Variable", "Trebuchet MS", sans-serif;
  touch-action: none;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
}

body::before {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 88px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(99, 245, 208, 0.03) 0,
      rgba(99, 245, 208, 0.03) 1px,
      transparent 1px,
      transparent 88px
    );
  transform: perspective(900px) rotateX(72deg) translateY(26vh);
  opacity: 0.5;
  animation: grid-drift 18s linear infinite;
}

body::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(99, 245, 208, 0.16), transparent 34%),
    conic-gradient(from 180deg at 50% 50%, rgba(99, 245, 208, 0.05), rgba(118, 185, 255, 0.05), rgba(99, 245, 208, 0.05));
  filter: blur(44px);
  opacity: 0.7;
  animation: halo-shift 14s ease-in-out infinite alternate;
}

#field,
.noise,
.hero {
  position: absolute;
  inset: 0;
}

#field {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.noise {
  z-index: 2;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px;
  mix-blend-mode: soft-light;
  animation: noise-pan 9s steps(8) infinite;
}

.hero {
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 10vh 7vw;
}

.hero > * {
  width: min(760px, 100%);
  margin: 0;
  text-align: center;
}

h1 {
  font-size: clamp(3.1rem, 11vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-indent: 0.18em;
  text-shadow:
    0 0 26px rgba(99, 245, 208, 0.16),
    0 0 72px rgba(118, 185, 255, 0.12);
}

h1::selection,
h1::selection {
  background: rgba(99, 245, 208, 0.24);
}

@keyframes grid-drift {
  from {
    transform: perspective(900px) rotateX(72deg) translateY(28vh) translateX(-1.5%);
  }
  to {
    transform: perspective(900px) rotateX(72deg) translateY(24vh) translateX(1.5%);
  }
}

@keyframes halo-shift {
  from {
    transform: rotate(0deg) scale(0.96);
  }
  to {
    transform: rotate(18deg) scale(1.04);
  }
}

@keyframes noise-pan {
  from {
    transform: translate3d(-1%, -1%, 0);
  }
  to {
    transform: translate3d(1%, 1%, 0);
  }
}

@media (max-width: 720px) {
  body::before {
    opacity: 0.34;
    transform: perspective(800px) rotateX(76deg) translateY(32vh);
  }

  .hero {
    padding: 8vh 8vw;
  }

  h1 {
    letter-spacing: 0.12em;
    text-indent: 0.12em;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .noise {
    animation: none;
  }
}
