:root {
  --bg-deep: #0b1520;
  --bg-mid: #122433;
  --glow-a: #1a4a5c;
  --glow-b: #0f3d52;
}

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

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

body {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #1a3348 0%, transparent 55%),
    linear-gradient(165deg, var(--bg-mid) 0%, var(--bg-deep) 55%, #071018 100%);
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-a {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  top: 8%;
  right: 8%;
  background: var(--glow-a);
}

.orb-b {
  width: min(60vw, 520px);
  height: min(60vw, 520px);
  bottom: -8%;
  left: -6%;
  background: var(--glow-b);
  animation-duration: 24s;
  animation-delay: -6s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 42rem);
  text-align: center;
  padding: 2rem 0;
}

.brand-logo {
  display: block;
  width: min(100%, 18rem);
  height: auto;
  margin: 0 auto;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-4%, 6%) scale(1.08);
  }
}

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