:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080a14;
  color: #f4f5ff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  position: relative;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(58, 76, 139, 0.19), transparent 42%),
    radial-gradient(ellipse at 82% 78%, rgba(87, 55, 133, 0.17), transparent 44%),
    linear-gradient(135deg, #080a14 0%, #0b1020 48%, #090a17 100%);
}

body::before,
body::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(72vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.27;
  pointer-events: none;
  will-change: transform;
}

body::before {
  top: -34%;
  left: -20%;
  background: radial-gradient(circle, rgba(91, 116, 205, 0.55) 0%, rgba(91, 116, 205, 0) 68%);
  animation: ambient-one 24s ease-in-out infinite alternate;
}

body::after {
  right: -24%;
  bottom: -42%;
  background: radial-gradient(circle, rgba(128, 85, 179, 0.48) 0%, rgba(128, 85, 179, 0) 70%);
  animation: ambient-two 29s ease-in-out infinite alternate;
}

.welcome {
  width: 100%;
  padding: 2rem;
  display: grid;
  place-items: center;
}

h1 {
  margin: 0;
  color: #f3f5ff;
  font-size: clamp(2.25rem, 7.2vw, 5.8rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.065em;
  text-align: center;
  text-wrap: balance;
  opacity: 0;
  filter: blur(9px);
  transform: translateY(12px);
  animation: welcome-in 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s forwards;
}

h1 span {
  color: #cbd5ff;
  background: linear-gradient(105deg, #e2e8ff 0%, #c9d5ff 48%, #d9c8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes welcome-in {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes ambient-one {
  from { transform: translate3d(0, 0, 0) scale(0.92); }
  to { transform: translate3d(16vw, 12vh, 0) scale(1.13); }
}

@keyframes ambient-two {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to { transform: translate3d(-14vw, -11vh, 0) scale(0.9); }
}

@media (max-width: 520px) {
  .welcome {
    padding: 1.25rem;
  }

  body::before,
  body::after {
    filter: blur(66px);
  }
}

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

  h1 {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
