:root {
  --ink: #07131a;
  --foam: #e8f1f4;
  --glow-a: rgba(42, 166, 161, 0.28);
  --glow-b: rgba(120, 160, 190, 0.18);
  --font-display: "Syne", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--foam);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 10% 0%, #123041 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 100%, #0a2428 0%, transparent 50%),
    linear-gradient(160deg, #07131a 0%, #0b1c24 45%, #102830 100%);
}

.atmosphere__wash {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 40%, var(--glow-a), transparent 42%),
    radial-gradient(circle at 78% 28%, var(--glow-b), transparent 38%);
  animation: drift 18s ease-in-out infinite alternate;
  will-change: transform;
}

.atmosphere__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}

.atmosphere__orb--a {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  right: -8%;
  top: 18%;
  background: radial-gradient(circle, rgba(42, 166, 161, 0.45), transparent 70%);
  animation: float-a 14s ease-in-out infinite alternate;
}

.atmosphere__orb--b {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  left: -6%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(180, 210, 230, 0.22), transparent 70%);
  animation: float-b 16s ease-in-out infinite alternate;
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 241, 244, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 241, 244, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
  opacity: 0.5;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
}

.hero__headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--foam);
  text-align: center;
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

html.is-ready .hero__headline {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(3%, -2%, 0) scale(1.05);
  }
}

@keyframes float-a {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-4%, 6%, 0);
  }
}

@keyframes float-b {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(5%, -4%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere__wash,
  .atmosphere__orb--a,
  .atmosphere__orb--b {
    animation: none;
  }

  .hero__headline {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
