:root {
  --bg-deep: #020d21;
  --bg-mid: #020d21;
  --rosa: #e94d82;
  --cyan: #26c6da;
  --amber: #f5a623;
  --logo-max: min(72vw, 520px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--bg-deep);
  color: #fff;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--bg-deep);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  will-change: transform, opacity;
}

.glow-a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(233, 77, 130, 0.28), transparent 68%);
  animation: drift-a 14s ease-in-out infinite;
}

.glow-b {
  width: min(36vw, 300px);
  height: min(36vw, 300px);
  left: 58%;
  top: 38%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(38, 198, 218, 0.16), transparent 70%);
  animation: drift-b 18s ease-in-out infinite;
}

.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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

.stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100%;
  min-height: 100dvh;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.logo {
  width: var(--logo-max);
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  animation:
    rise-in 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards,
    breath 8s ease-in-out 1.7s infinite;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes breath {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  }
  50% {
    transform: translateY(-4px) scale(1.008);
    filter: drop-shadow(0 26px 48px rgba(233, 77, 130, 0.12));
  }
}

@keyframes drift-a {
  0%,
  100% {
    transform: translate(-52%, -48%) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(-46%, -54%) scale(1.08);
    opacity: 0.55;
  }
}

@keyframes drift-b {
  0%,
  100% {
    transform: translate(-48%, -52%) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translate(-56%, -46%) scale(1.12);
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow,
  .logo {
    animation: none;
  }

  .logo {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  :root {
    --logo-max: min(88vw, 420px);
  }
}
