/* Mecha ambient background — static layers only (no video) */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  z-index: 1000;
  box-shadow: 0 0 8px var(--cyan);
}

.mecha-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}

.mecha-bg__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 45%, rgba(245, 247, 250, 0.95) 100%),
    radial-gradient(ellipse at 75% 15%, rgba(253, 184, 19, 0.1), transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(0, 174, 239, 0.07), transparent 50%);
}

.mecha-bg__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(rgba(0, 114, 188, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 114, 188, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.mecha-bg__grid-perspective {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.05;
  background:
    linear-gradient(rgba(0, 174, 239, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 174, 239, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(60deg) scale(2);
  transform-origin: center 80%;
}

.mecha-bg__orbs {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
}

.mecha-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
  animation: shopOrbFloat 12s ease-in-out infinite;
}

.mecha-bg .orb-orange {
  width: 350px;
  height: 350px;
  background: var(--orange);
  top: 10%;
  left: -8%;
}

.mecha-bg .orb-cyan {
  width: 280px;
  height: 280px;
  background: var(--cyan);
  bottom: 15%;
  right: -5%;
  animation-delay: -6s;
}

.mecha-bg .orb-sm {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 40%;
  opacity: 0.1;
  animation-delay: -3s;
}

@keyframes shopOrbFloat {
  50% { transform: translate(30px, -20px) scale(1.05); }
}

.mecha-bg__horizon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 40%;
  background: linear-gradient(to top, rgba(253, 184, 19, 0.08), transparent);
}

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

.mecha-bg__scanlines {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0.02;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(11, 36, 59, 0.04) 2px,
    rgba(11, 36, 59, 0.04) 4px
  );
}

.mecha-bg__vignette {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(255, 255, 255, 0.45) 100%);
}

@media (max-width: 768px) {
  .mecha-bg .orb {
    animation: none;
    filter: blur(40px);
    opacity: 0.16;
  }

  .mecha-bg .orb-orange {
    width: 200px;
    height: 200px;
  }

  .mecha-bg .orb-cyan {
    width: 160px;
    height: 160px;
  }

  .mecha-bg .orb-sm {
    width: 80px;
    height: 80px;
  }

  .mecha-bg__grid-perspective {
    display: none;
  }
}
