body {
  background-color: #06080f;
  color: #f1f5f9;
  overflow-x: hidden;
}

.bg-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 60%, transparent 100%);
}

@keyframes floatOrb {
  0%, 100% {
    transform: translate(-50%, 0px) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate(-48%, 18px) scale(1.08);
    opacity: 0.65;
  }
}

.eclipse-orb {
  animation: floatOrb 9s ease-in-out infinite;
}

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

.release-card {
  opacity: 0;
  animation: cardReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.28s ease,
              box-shadow 0.28s ease;
  position: relative;
  overflow: hidden;
}

.release-card.no-anim {
  opacity: 1;
  animation: none;
}

.release-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(56, 189, 248, 0.38),
    transparent 60%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.release-card:hover::before {
  opacity: 1;
}

.release-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px -12px rgba(14, 165, 233, 0.22);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.btn-primary:hover::after {
  left: 150%;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -4px rgba(59, 130, 246, 0.55);
}

.btn-primary:active {
  transform: scale(0.97);
}

#tab-indicator {
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
              width 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast-enter {
  animation: toastIn 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .eclipse-orb,
  .release-card,
  .toast-enter,
  .animate-ping {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  #tab-indicator,
  .release-card,
  .btn-primary {
    transition: none !important;
  }
}