/* ============================================================
   Sourceless B2B — Background Particles & Subtle Patterns
   Dezentes Eyecandy (sehr subtil — weniger ist mehr)
   ============================================================ */

/* ===== Layer 1: subtle tech grid (body::after, frei) ===== */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(124, 255, 106, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 255, 106, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  animation: slBgGridDrift 60s linear infinite;
}
@keyframes slBgGridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 64px 64px; }
}

/* ===== Layer 2: floating particles (separates Wrapper) ===== */
.sl-bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.sl-bg-particles .sl-bg-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(124, 255, 106, 0.55);
  box-shadow:
    0 0 6px rgba(124, 255, 106, 0.4),
    0 0 14px rgba(124, 255, 106, 0.18);
  opacity: 0;
  animation: slBgDotFloat 14s ease-in-out infinite;
}
.sl-bg-particles .sl-bg-dot:nth-child(1)  { left: 6%;  top: 12%; animation-delay: 0s;    animation-duration: 13s; }
.sl-bg-particles .sl-bg-dot:nth-child(2)  { left: 18%; top: 76%; animation-delay: 2s;    animation-duration: 16s; transform: scale(0.7); }
.sl-bg-particles .sl-bg-dot:nth-child(3)  { left: 28%; top: 38%; animation-delay: 4s;    animation-duration: 12s; transform: scale(0.6); }
.sl-bg-particles .sl-bg-dot:nth-child(4)  { left: 42%; top: 88%; animation-delay: 1s;    animation-duration: 15s; transform: scale(0.5); }
.sl-bg-particles .sl-bg-dot:nth-child(5)  { left: 56%; top: 22%; animation-delay: 5s;    animation-duration: 14s; transform: scale(0.8); }
.sl-bg-particles .sl-bg-dot:nth-child(6)  { left: 64%; top: 64%; animation-delay: 3s;    animation-duration: 13s; transform: scale(0.6); }
.sl-bg-particles .sl-bg-dot:nth-child(7)  { left: 72%; top: 14%; animation-delay: 6s;    animation-duration: 17s; transform: scale(0.7); }
.sl-bg-particles .sl-bg-dot:nth-child(8)  { left: 84%; top: 48%; animation-delay: 1.5s;  animation-duration: 14s; transform: scale(0.5); }
.sl-bg-particles .sl-bg-dot:nth-child(9)  { left: 92%; top: 80%; animation-delay: 7s;    animation-duration: 16s; transform: scale(0.6); }
.sl-bg-particles .sl-bg-dot:nth-child(10) { left: 12%; top: 50%; animation-delay: 8s;    animation-duration: 15s; transform: scale(0.55); }
.sl-bg-particles .sl-bg-dot:nth-child(11) { left: 36%; top: 18%; animation-delay: 2.5s;  animation-duration: 13s; transform: scale(0.65);
  background: rgba(99, 243, 255, 0.45); box-shadow: 0 0 6px rgba(99, 243, 255, 0.32), 0 0 14px rgba(99, 243, 255, 0.16); }
.sl-bg-particles .sl-bg-dot:nth-child(12) { left: 50%; top: 56%; animation-delay: 4.5s;  animation-duration: 18s; transform: scale(0.5);
  background: rgba(99, 243, 255, 0.45); box-shadow: 0 0 6px rgba(99, 243, 255, 0.32), 0 0 14px rgba(99, 243, 255, 0.16); }
.sl-bg-particles .sl-bg-dot:nth-child(13) { left: 78%; top: 32%; animation-delay: 6.5s;  animation-duration: 16s; transform: scale(0.7);
  background: rgba(99, 243, 255, 0.45); box-shadow: 0 0 6px rgba(99, 243, 255, 0.32), 0 0 14px rgba(99, 243, 255, 0.16); }
.sl-bg-particles .sl-bg-dot:nth-child(14) { left: 4%;  top: 88%; animation-delay: 9s;    animation-duration: 14s; transform: scale(0.6);
  background: rgba(142, 125, 255, 0.35); box-shadow: 0 0 6px rgba(142, 125, 255, 0.28), 0 0 14px rgba(142, 125, 255, 0.14); }
.sl-bg-particles .sl-bg-dot:nth-child(15) { left: 96%; top: 6%;  animation-delay: 3.5s;  animation-duration: 17s; transform: scale(0.55);
  background: rgba(142, 125, 255, 0.35); box-shadow: 0 0 6px rgba(142, 125, 255, 0.28), 0 0 14px rgba(142, 125, 255, 0.14); }
.sl-bg-particles .sl-bg-dot:nth-child(16) { left: 22%; top: 28%; animation-delay: 10s;   animation-duration: 13s; transform: scale(0.45); }
.sl-bg-particles .sl-bg-dot:nth-child(17) { left: 60%; top: 78%; animation-delay: 5.5s;  animation-duration: 15s; transform: scale(0.6); }
.sl-bg-particles .sl-bg-dot:nth-child(18) { left: 88%; top: 22%; animation-delay: 7.5s;  animation-duration: 14s; transform: scale(0.5); }
.sl-bg-particles .sl-bg-dot:nth-child(19) { left: 32%; top: 60%; animation-delay: 8.5s;  animation-duration: 16s; transform: scale(0.55); }
.sl-bg-particles .sl-bg-dot:nth-child(20) { left: 68%; top: 38%; animation-delay: 11s;   animation-duration: 14s; transform: scale(0.7); }

@keyframes slBgDotFloat {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) scale(var(--s, 0.6)); }
  20%  { opacity: 0.7; }
  50%  { opacity: 0.9; transform: translate3d(0, -16px, 0) scale(var(--s, 0.6)); }
  80%  { opacity: 0.7; }
  100% { opacity: 0; transform: translate3d(0, -32px, 0) scale(var(--s, 0.6)); }
}

/* ===== Layer 3: subtle scan line — moves down very slowly ===== */
.sl-bg-particles::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(124, 255, 106, 0.022) 45%,
    rgba(124, 255, 106, 0.04) 50%,
    rgba(124, 255, 106, 0.022) 55%,
    transparent 100%);
  animation: slBgScanLine 24s linear infinite;
  pointer-events: none;
}
@keyframes slBgScanLine {
  0%   { transform: translateY(-200px); }
  100% { transform: translateY(110vh); }
}

/* ===== Layer 4: corner glow accents ===== */
.sl-bg-particles::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 400px at 8% 92%, rgba(124, 255, 106, 0.05), transparent 60%),
    radial-gradient(circle 360px at 92% 8%, rgba(99, 243, 255, 0.04), transparent 60%);
  pointer-events: none;
  animation: slBgCornerPulse 18s ease-in-out infinite alternate;
}
@keyframes slBgCornerPulse {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  body::after,
  .sl-bg-particles .sl-bg-dot,
  .sl-bg-particles::before,
  .sl-bg-particles::after {
    animation: none !important;
  }
  .sl-bg-particles .sl-bg-dot { opacity: 0.5; }
}

/* ===== Mobile: less dense ===== */
@media (max-width: 720px) {
  body::after { background-size: 48px 48px; }
  .sl-bg-particles .sl-bg-dot:nth-child(n+12) { display: none; }
}
