:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

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

main {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.025), transparent 28%),
    linear-gradient(180deg, #010102 0%, #030409 68%, #070914 100%);
}

main::before {
  position: absolute;
  z-index: -2;
  bottom: -52vh;
  left: 50%;
  width: min(1100px, 145vw);
  height: 92vh;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(220, 229, 255, 0.42) 0%,
    rgba(102, 130, 220, 0.22) 26%,
    rgba(40, 53, 112, 0.1) 48%,
    transparent 72%
  );
  content: "";
  filter: blur(12px);
  transform: translateX(-50%);
  animation: glow 7s ease-in-out infinite alternate;
}

main::after {
  position: absolute;
  z-index: -1;
  right: 8%;
  bottom: -1px;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 232, 255, 0.58), transparent);
  box-shadow: 0 -8px 34px rgba(128, 158, 255, 0.28);
  content: "";
}

h1 {
  margin: 0;
  color: #f8f9ff;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.9;
  animation: emerge 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes emerge {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes glow {
  from {
    opacity: 0.72;
    transform: translateX(-50%) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  main::before,
  h1 {
    animation: none;
  }
}
