/* Slim scrollbar */
::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(201, 0, 2, 0.55);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 0, 2, 0.85);
}

/* Analytical scan-line overlay */
.analytical-overlay::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 3px,
    rgba(201, 0, 2, 0.022) 3px,
    rgba(201, 0, 2, 0.022) 4px
  );
  z-index: 9999;
}

/* Nav underline slide */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 1px;
  width: 0;
  background: #c90002;
  transition: width 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after {
  width: 100%;
}

/* Live pulse */
@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(201, 0, 2, 0.5);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(201, 0, 2, 0);
  }
}
.live-dot {
  animation: live-pulse 2s ease-in-out infinite;
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 40%, rgba(201, 0, 2, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animated gradient for tagline */
.text-gradient-animated {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    rgba(201, 0, 2, 0.9) 25%,
    #ffffff 50%,
    rgba(201, 0, 2, 0.9) 75%,
    #ffffff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation:
    shimmer 3s linear infinite,
    subtlePulse 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes subtlePulse {
  0%,
  100% {
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}
