/* Software section — rete AI / tech (file dedicato, no minify WP Rocket) */

.software-band {
  background:
    radial-gradient(ellipse 55% 45% at 50% 38%, rgba(99, 102, 241, 0.08), transparent 62%),
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(44, 90, 160, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(30, 63, 115, 0.1), transparent 52%),
    linear-gradient(165deg, #e2e9f4 0%, #ecf0f8 50%, #f3f5f9 100%);
  background-size: 220% 220%;
  animation: software-bg-drift 20s ease-in-out infinite;
}

@keyframes software-bg-drift {
  0%, 100% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
}

.software-band-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.software-neural {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.software-neural-link {
  stroke: rgba(44, 90, 160, 0.22);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 6 14;
  animation: software-link-flow 2.8s linear infinite;
}

.software-neural-link--slow {
  animation-duration: 4.2s;
  stroke: rgba(99, 102, 241, 0.2);
}

.software-neural-link--fast {
  animation-duration: 1.8s;
  stroke-dasharray: 4 10;
}

.software-neural-link:nth-child(odd) {
  animation-direction: reverse;
}

.software-neural-node {
  fill: rgba(44, 90, 160, 0.45);
  animation: software-node-pulse 3s ease-in-out infinite;
}

.software-neural-hub {
  fill: rgba(61, 107, 179, 0.55);
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.35));
  animation: software-hub-pulse 2.2s ease-in-out infinite;
}

.software-neural-ring {
  fill: none;
  stroke: rgba(99, 102, 241, 0.25);
  stroke-width: 1;
  transform-origin: center;
  transform-box: fill-box;
  animation: software-ring-expand 3.5s ease-out infinite;
}

.software-neural-ring--2 {
  animation-delay: 1.1s;
}

.software-neural-ring--3 {
  animation-delay: 2.2s;
}

@keyframes software-link-flow {
  to { stroke-dashoffset: -40; }
}

@keyframes software-node-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes software-hub-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

@keyframes software-ring-expand {
  0% {
    opacity: 0.55;
    transform: scale(0.65);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

.software-data-stream {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.4rem;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  line-height: 1.35;
  letter-spacing: 0.08em;
  color: rgba(44, 90, 160, 0.18);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  user-select: none;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.software-data-stream--left {
  left: 1.5%;
}

.software-data-stream--right {
  right: 1.5%;
}

.software-data-stream-inner {
  display: inline-block;
  white-space: nowrap;
  animation: software-data-fall 18s linear infinite;
}

.software-data-stream--right .software-data-stream-inner {
  animation-duration: 22s;
  animation-direction: reverse;
}

@keyframes software-data-fall {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.software-tech-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.software-tech-marquee-track {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  width: max-content;
  padding: 0.35rem 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(30, 63, 115, 0.42);
  animation: software-marquee 38s linear infinite;
}

.software-tech-marquee-track span:nth-child(4n) {
  color: rgba(99, 102, 241, 0.55);
}

@keyframes software-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.software-ai-beam {
  position: absolute;
  top: 22%;
  left: 50%;
  width: min(420px, 70vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(99, 102, 241, 0.15) 20%,
    rgba(44, 90, 160, 0.45) 50%,
    rgba(99, 102, 241, 0.15) 80%,
    transparent
  );
  animation: software-beam-pulse 2.5s ease-in-out infinite;
}

.software-ai-beam::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(99, 102, 241, 0.65);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.5);
  animation: software-beam-dot 2.5s ease-in-out infinite;
}

@keyframes software-beam-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes software-beam-dot {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(0.85); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .software-band,
  .software-neural-link,
  .software-neural-node,
  .software-neural-hub,
  .software-neural-ring,
  .software-data-stream-inner,
  .software-tech-marquee-track,
  .software-ai-beam,
  .software-ai-beam::after {
    animation: none !important;
  }
}

@media (max-width: 980px) {
  .software-data-stream,
  .software-tech-marquee {
    display: none;
  }

  .software-neural {
    opacity: 0.65;
  }

  .software-ai-beam {
    top: 14%;
    width: min(280px, 85vw);
  }
}
