/* ===== PREMIUM SaaS 2025-26 BACKGROUND SYSTEM ===== */

/* Animated gradient orbs - THE signature SaaS 2025-26 look */
.bg-orbs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orb-drift 20s ease-in-out infinite;
}

.bg-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
  animation-duration: 25s;
}

.bg-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, transparent 70%);
  top: 30%;
  right: -150px;
  animation-delay: -8s;
  animation-duration: 30s;
  animation-direction: reverse;
}

.bg-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
  bottom: -100px;
  left: 30%;
  animation-delay: -15s;
  animation-duration: 22s;
}

.bg-orb-4 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
  top: 60%;
  left: 10%;
  animation-delay: -5s;
  animation-duration: 28s;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(40px, 20px) scale(1.02); }
}

/* Micro dots - refined density */
.tech-dots {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
}

/* Subtle grid */
.tech-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

/* Floating micro-particles */
.tech-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.tech-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.tech-particle:nth-child(1) { top: 5%; left: 8%; animation: float-v 8s ease-in-out infinite; }
.tech-particle:nth-child(2) { top: 15%; left: 25%; animation: float-v 12s ease-in-out infinite; }
.tech-particle:nth-child(3) { top: 25%; left: 42%; animation: float-v 6s ease-in-out infinite; }
.tech-particle:nth-child(4) { top: 35%; left: 60%; animation: float-v 10s ease-in-out infinite; }
.tech-particle:nth-child(5) { top: 45%; left: 78%; animation: float-v 14s ease-in-out infinite; }
.tech-particle:nth-child(6) { top: 55%; left: 12%; animation: float-v 9s ease-in-out infinite; }
.tech-particle:nth-child(7) { top: 65%; left: 35%; animation: float-v 7s ease-in-out infinite; }
.tech-particle:nth-child(8) { top: 75%; left: 52%; animation: float-v 11s ease-in-out infinite; }
.tech-particle:nth-child(9) { top: 85%; left: 68%; animation: float-v 8s ease-in-out infinite; }
.tech-particle:nth-child(10) { top: 95%; left: 85%; animation: float-v 13s ease-in-out infinite; }
.tech-particle:nth-child(11) { top: 12%; left: 92%; animation: float-v 15s ease-in-out infinite; }
.tech-particle:nth-child(12) { top: 38%; left: 5%; animation: float-v 10s ease-in-out infinite; }
.tech-particle:nth-child(13) { top: 62%; left: 88%; animation: float-v 9s ease-in-out infinite; }
.tech-particle:nth-child(14) { top: 82%; left: 22%; animation: float-v 12s ease-in-out infinite; }
.tech-particle:nth-child(15) { top: 22%; left: 72%; animation: float-v 7s ease-in-out infinite; }

@keyframes float-v {
  0%, 100% { transform: translateY(0); opacity: 0.25; }
  50% { transform: translateY(-20px); opacity: 0.5; }
}

/* Noise texture overlay */
.noise-bg {
  position: fixed;
  inset: 0;
  opacity: 0.015;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 1;
}

/* Scan line - very subtle */
.scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: scan 6s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  0% { top: -2px; }
  100% { top: 100%; }
}

/* Corner accents */
.corner-frame {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.06);
}

.corner-tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.corner-tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.corner-br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

/* Glowing data points */
.data-point {
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: pulse-data 2.5s ease-in-out infinite;
}

.data-point:nth-child(odd) { animation-delay: 0.6s; }

@keyframes pulse-data {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Gradient mesh background for hero */
.mesh-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Glow line - horizontal accent */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), rgba(168, 85, 247, 0.5), transparent);
  opacity: 0.6;
}
