.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #3B82F6, #06B6D4);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-overlay {
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.65) 65%, rgba(0,0,0,0.9) 100%);
}

.cta-overlay {
  background: linear-gradient(135deg, rgba(0,0,0,0.92) 0%, rgba(59,130,246,0.15) 100%);
}

.final-cta-spotlight {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

#spline-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-gradient {
  background: linear-gradient(135deg, #3B82F6, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.glass:hover {
  background: rgba(255,255,255,0.07);
}

.hero-image-blend {
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.hero-image-blend-right {
  mask-image: linear-gradient(to right, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 70%, transparent 100%);
}

.card-glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card-glass:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

.card-glow-hover:hover {
  box-shadow: 0 4px 30px rgba(59,130,246,0.1), 0 1px 3px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .animate-on-scroll {
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
}

.history-carousel-wrapper {
  overflow: hidden;
  mask: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}

.history-carousel-track {
  animation: history-scroll 40s linear infinite;
}

.history-carousel-track:hover {
  animation-play-state: paused;
}

@keyframes history-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (min-width: 768px) {
  .workflow-steps-container {
    position: relative;
  }
  .workflow-steps-container::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, #3B82F6, rgba(59,130,246,0.15));
    z-index: 0;
  }
}

@keyframes text-glow-pulse {
  0%, 100% { text-shadow: 0 0 8px rgba(59,130,246,0.4), 0 0 20px rgba(59,130,246,0.2); }
  30% { text-shadow: 0 0 18px rgba(59,130,246,0.9), 0 0 40px rgba(59,130,246,0.6), 0 0 70px rgba(59,130,246,0.3); }
  60% { text-shadow: 0 0 12px rgba(59,130,246,0.5), 0 0 30px rgba(59,130,246,0.3); }
}

.text-glow-interval {
  animation: text-glow-pulse 3s ease-in-out infinite;
}
