body.home-page {
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, rgba(8, 11, 16, 0.98), rgba(14, 18, 26, 1) 54%, rgba(10, 14, 20, 1));
}

body.home-page::after {
  background:
    radial-gradient(circle at 50% 42%, rgba(20, 24, 34, 0.9) 0%, rgba(20, 24, 34, 0.64) 18%, rgba(20, 24, 34, 0.16) 44%, transparent 72%);
}

.home-page .grid {
  position: relative;
  z-index: 1;
}

.home-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1000px circle at 50% -8%, rgba(255, 255, 255, 0.035), transparent 58%),
    linear-gradient(180deg, rgba(8, 11, 16, 0.98), rgba(14, 18, 26, 1) 54%, rgba(10, 14, 20, 1));
}

.home-atmosphere::before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(920px circle at 12% 10%, rgba(255, 237, 0, 0.14), transparent 58%),
    radial-gradient(860px circle at 88% 8%, rgba(79, 141, 221, 0.12), transparent 48%),
    radial-gradient(760px circle at 48% 42%, rgba(255, 255, 255, 0.04), transparent 58%);
  opacity: 0.94;
  transform-origin: center;
  animation: homeAtmospherePan 24s ease-in-out infinite alternate;
}

.home-atmosphere::after {
  content: "";
  position: absolute;
  inset: -24%;
  background:
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.045) 50%, transparent 60%);
  opacity: 0.22;
  transform: translate3d(-6%, 0, 0);
  animation: homeAtmosphereSweep 30s linear infinite;
}

.home-atmosphere__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.88;
  will-change: transform, opacity;
}

.home-atmosphere__orb--gold {
  width: min(48vw, 40rem);
  aspect-ratio: 1;
  top: -8%;
  left: -10%;
  background: radial-gradient(circle, rgba(255, 237, 0, 0.18) 0%, rgba(255, 237, 0, 0.08) 32%, transparent 72%);
  animation: homeOrbDriftGold 22s ease-in-out infinite;
}

.home-atmosphere__orb--blue {
  width: min(44vw, 36rem);
  aspect-ratio: 1;
  top: -10%;
  right: -8%;
  background: radial-gradient(circle, rgba(84, 133, 255, 0.16) 0%, rgba(84, 133, 255, 0.07) 34%, transparent 72%);
  animation: homeOrbDriftBlue 27s ease-in-out infinite reverse;
}

.home-atmosphere__orb--core {
  width: min(68vw, 60rem);
  aspect-ratio: 1;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, rgba(78, 108, 204, 0.05) 22%, rgba(18, 22, 32, 0) 64%);
  filter: blur(8px);
  opacity: 0.62;
  animation: homeOrbPulse 18s ease-in-out infinite;
}

body:not(.dark-mode).home-page {
  background: linear-gradient(180deg, rgba(246, 246, 246, 0.98), rgba(234, 234, 234, 1) 56%, rgba(228, 228, 228, 1));
}

body:not(.dark-mode).home-page::after {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.68) 20%, rgba(255, 255, 255, 0.16) 44%, transparent 74%);
}

body:not(.dark-mode).home-page .home-atmosphere {
  background:
    radial-gradient(960px circle at 50% -8%, rgba(255, 255, 255, 0.28), transparent 58%),
    linear-gradient(180deg, rgba(246, 246, 246, 0.98), rgba(234, 234, 234, 1) 56%, rgba(228, 228, 228, 1));
}

body:not(.dark-mode).home-page .home-atmosphere::before {
  background:
    radial-gradient(860px circle at 12% 8%, rgba(255, 237, 0, 0.2), transparent 56%),
    radial-gradient(780px circle at 88% 10%, rgba(79, 141, 221, 0.11), transparent 48%),
    radial-gradient(720px circle at 48% 42%, rgba(255, 255, 255, 0.22), transparent 58%);
  opacity: 0.72;
}

body:not(.dark-mode).home-page .home-atmosphere::after {
  background:
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.34) 50%, transparent 60%);
  opacity: 0.14;
}

body:not(.dark-mode).home-page .home-atmosphere__orb--gold {
  background: radial-gradient(circle, rgba(214, 173, 0, 0.16) 0%, rgba(214, 173, 0, 0.07) 32%, transparent 72%);
  opacity: 0.68;
}

body:not(.dark-mode).home-page .home-atmosphere__orb--blue {
  background: radial-gradient(circle, rgba(83, 117, 196, 0.13) 0%, rgba(83, 117, 196, 0.05) 34%, transparent 72%);
  opacity: 0.62;
}

body:not(.dark-mode).home-page .home-atmosphere__orb--core {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, rgba(83, 117, 196, 0.08) 22%, rgba(255, 255, 255, 0) 64%);
  opacity: 0.45;
}

@keyframes homeAtmospherePan {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(1.5%, 1.2%, 0) scale(1.03);
  }
}

@keyframes homeAtmosphereSweep {
  0% {
    transform: translate3d(-10%, 0, 0);
  }
  100% {
    transform: translate3d(10%, 0, 0);
  }
}

@keyframes homeOrbDriftGold {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(3%, 5%, 0) scale(1.04);
  }
}

@keyframes homeOrbDriftBlue {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-4%, 4%, 0) scale(1.06);
  }
}

@keyframes homeOrbPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.98);
    opacity: 0.52;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.03);
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-atmosphere::before,
  .home-atmosphere::after,
  .home-atmosphere__orb {
    animation: none;
  }
}
