:root {
  --line: rgba(148, 163, 184, 0.09);
}

body {
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Signal-grid backdrop */
.sig-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 35%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 35%, transparent 75%);
}

.lift {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lift:hover {
  transform: translateY(-4px);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
  border-radius: 6px;
}

.pulse-dot {
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 1px solid currentColor;
  opacity: 0.45;
  animation: ringpulse 2.4s ease-out infinite;
}

@keyframes ringpulse {
  0% {
    transform: scale(0.7);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.eq i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #3b82f6;
  animation: eqbar 1.1s ease-in-out infinite;
}

.eq i:nth-child(1) {
  height: 6px;
  animation-delay: 0s;
}

.eq i:nth-child(2) {
  height: 14px;
  animation-delay: 0.15s;
}

.eq i:nth-child(3) {
  height: 9px;
  animation-delay: 0.3s;
}

@keyframes eqbar {
  0%, 100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

.thin-scroll::-webkit-scrollbar {
  width: 6px;
}

.thin-scroll::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 99px;
}

.typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 1px;
  border-radius: 99px;
  background: #94a3b8;
  animation: blink 1.2s infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%, 60%, 100% {
    opacity: 0.25;
  }
  30% {
    opacity: 1;
  }
}