@keyframes scan-line-sweep {
  0% {
    transform: translateX(-102%);
    opacity: 0;
  }
  8% {
    opacity: 0.95;
  }
  60% {
    opacity: 0.95;
  }
  100% {
    transform: translateX(102%);
    opacity: 0;
  }
}

@keyframes indicator-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
}

@keyframes typing-cursor-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes data-packet-move {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes counter-tick {
  0% {
    filter: brightness(1);
    transform: translateY(0);
  }
  50% {
    filter: brightness(1.4);
    transform: translateY(-1px);
  }
  100% {
    filter: brightness(1);
    transform: translateY(0);
  }
}

.transition-fast {
  transition: all 0.2s ease;
}

.transition-base {
  transition: all 0.3s ease;
}

.transition-slow {
  transition: all 0.5s ease;
}

.transition-color {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.transition-transform {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.motion-safe-scan {
  animation: scan-line-sweep 1.5s linear infinite;
}

.motion-safe-pulse {
  animation: indicator-pulse 1.4s ease-in-out infinite;
}

.motion-safe-cursor {
  animation: typing-cursor-blink 0.9s steps(1, end) infinite;
}

.motion-safe-packet {
  animation: data-packet-move 1.25s linear infinite;
}

.motion-safe-counter {
  animation: counter-tick 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
  .transition-fast,
  .transition-base,
  .transition-slow,
  .transition-color,
  .transition-transform {
    transition: none;
  }

  .motion-safe-scan,
  .motion-safe-pulse,
  .motion-safe-cursor,
  .motion-safe-packet,
  .motion-safe-counter {
    animation: none;
  }
}
