:root {
  color-scheme: dark;
  --background: #03070c;
  --text: #f7fbff;
  --accent: #42e8e0;
  --accent-blue: #3478ff;
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--background);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.background,
.background::before,
.background::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.background {
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(11, 32, 61, 0.76), transparent 42%),
    linear-gradient(145deg, #020509 0%, #07101a 50%, #02060b 100%);
}

.background::before {
  background: radial-gradient(
    ellipse at center,
    transparent 25%,
    rgba(1, 4, 8, 0.2) 58%,
    rgba(1, 3, 7, 0.86) 100%
  );
  content: "";
}

.background::after {
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  content: "";
  mix-blend-mode: soft-light;
}

.grid {
  position: absolute;
  inset: -80px;
  background-image:
    linear-gradient(rgba(100, 190, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 190, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
  animation: grid-drift 22s linear infinite;
}

.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(75px);
  will-change: transform;
}

.orb-one {
  top: -26%;
  left: 5%;
  width: min(58vw, 780px);
  aspect-ratio: 1;
  background: rgba(24, 104, 255, 0.15);
  animation: float-one 16s ease-in-out infinite alternate;
}

.orb-two {
  right: 0;
  bottom: -38%;
  width: min(62vw, 860px);
  aspect-ratio: 1;
  background: rgba(48, 235, 216, 0.12);
  animation: float-two 19s ease-in-out infinite alternate;
}

.orb-three {
  top: 26%;
  left: 38%;
  width: min(30vw, 430px);
  aspect-ratio: 1;
  background: rgba(80, 88, 255, 0.1);
  animation: pulse 8s ease-in-out infinite;
}

.beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(76vw, 980px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(66, 232, 224, 0.08),
    rgba(207, 248, 255, 0.5),
    rgba(52, 120, 255, 0.08),
    transparent
  );
  box-shadow: 0 0 38px rgba(66, 232, 224, 0.16);
  opacity: 0.7;
  transform: translate(-50%, clamp(100px, 12vw, 154px));
}

main {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: 100svh;
  padding: 24px;
  place-items: center;
  isolation: isolate;
}

.content {
  display: flex;
  align-items: center;
  flex-direction: column;
  transform: translateY(-1.5vh);
}

.logo {
  display: block;
  width: clamp(120px, 15vw, 210px);
  height: auto;
  margin: 0 0 clamp(28px, 4vw, 52px);
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(66, 232, 224, 0.18))
    drop-shadow(0 12px 36px rgba(0, 0, 0, 0.42));
  animation: logo-breathe 5s ease-in-out infinite;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.4rem, 7vw, 6.8rem);
  font-weight: 600;
  letter-spacing: clamp(0.14em, 1.65vw, 0.27em);
  line-height: 1;
  text-align: center;
  text-indent: clamp(0.14em, 1.65vw, 0.27em);
  text-shadow:
    0 0 28px rgba(66, 232, 224, 0.12),
    0 0 72px rgba(52, 120, 255, 0.16);
}

h1::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(46vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(66, 232, 224, 0.09),
    rgba(52, 120, 255, 0.04) 38%,
    transparent 68%
  );
  content: "";
  filter: blur(30px);
  transform: translate(-50%, -50%);
}

@keyframes grid-drift {
  to {
    transform: translate3d(72px, 72px, 0);
  }
}

@keyframes float-one {
  from {
    transform: translate3d(-6%, -3%, 0) scale(0.92);
  }

  to {
    transform: translate3d(24%, 18%, 0) scale(1.12);
  }
}

@keyframes float-two {
  from {
    transform: translate3d(8%, 7%, 0) scale(1);
  }

  to {
    transform: translate3d(-26%, -20%, 0) scale(1.16);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.86);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.18);
  }
}

@keyframes logo-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-6px) scale(1.015);
  }
}

@media (max-width: 520px) {
  .grid {
    background-size: 52px 52px;
    animation-name: grid-drift-mobile;
  }

  .orb {
    filter: blur(52px);
  }

  .beam {
    width: 86vw;
    transform: translate(-50%, 103px);
  }

  .logo {
    width: clamp(112px, 33vw, 150px);
    margin-bottom: 30px;
  }

  h1 {
    font-size: clamp(2.1rem, 11vw, 3.6rem);
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    white-space: nowrap;
  }
}

@keyframes grid-drift-mobile {
  to {
    transform: translate3d(52px, 52px, 0);
  }
}

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