html[data-i18n-state="pending"] body[data-i18n-pending] {
  opacity: 0;
}

body[data-i18n-pending] {
  transition: opacity 0.12s linear;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.1) 3px,
      rgba(0, 0, 0, 0.1) 4px);
  pointer-events: none;
  z-index: 9998;
}

body::after {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  top: -120px;
  height: 120px;
  background: linear-gradient(to bottom,
      transparent,
      rgba(5, 182, 212, 0.02) 50%,
      transparent);
  animation: scanline-sweep 12s linear infinite;
  pointer-events: none;
  z-index: 9997;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(5, 182, 212, 0.25);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(5, 182, 212, 0.5);
}

.terminal-cursor::after {
  content: '_';
  animation: blink 1s step-end infinite;
}

.text-glow {
  text-shadow: 0 0 6px currentColor;
}

.text-glow-lg {
  text-shadow: 0 0 10px rgba(103, 232, 249, 0.45);
}

.crt-border {
  border: 1px solid rgba(5, 182, 212, 0.45);
  box-shadow: 0 0 10px rgba(5, 182, 212, 0.25), inset 0 0 8px rgba(5, 182, 212, 0.04);
}

.crt-border:focus-within {
  border-color: rgba(5, 182, 212, 0.85);
  box-shadow: 0 0 14px rgba(5, 182, 212, 0.45), inset 0 0 8px rgba(5, 182, 212, 0.06);
}

.animate-flicker {
  animation: flicker 8s infinite;
}

.nav-link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(5, 182, 212, 0.18);
  background: rgba(5, 182, 212, 0.025);
  color: rgba(165, 243, 252, 0.72);
  padding: 0.8rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.nav-link-secondary:hover,
.nav-link-secondary:focus-visible {
  border-color: rgba(103, 232, 249, 0.4);
  background: rgba(5, 182, 212, 0.06);
  color: rgba(236, 254, 255, 0.96);
  outline: none;
}

.primary-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(103, 232, 249, 0.7);
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.22), rgba(5, 182, 212, 0.12));
  color: white;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 28px rgba(5, 182, 212, 0.2), inset 0 0 16px rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-cta:hover,
.primary-cta:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(165, 243, 252, 0.92);
  box-shadow: 0 0 34px rgba(5, 182, 212, 0.28), inset 0 0 18px rgba(255, 255, 255, 0.06);
  outline: none;
}

.primary-cta-note {
  color: rgba(207, 250, 254, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
}

.waterfall-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 28rem;
}

.waterfall-state-badge {
  border: 1px solid rgba(5, 182, 212, 0.28);
  background: rgba(5, 182, 212, 0.08);
  color: rgba(165, 243, 252, 0.88);
  padding: 0.35rem 0.8rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.waterfall-state[data-tone="error"] .waterfall-state-badge {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: rgba(252, 165, 165, 0.95);
}

.waterfall-retry {
  border: 1px solid rgba(103, 232, 249, 0.4);
  background: rgba(5, 182, 212, 0.08);
  color: white;
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.waterfall-retry:hover,
.waterfall-retry:focus-visible {
  border-color: rgba(165, 243, 252, 0.75);
  background: rgba(5, 182, 212, 0.16);
  outline: none;
}

.eyebrow-label {
  color: rgba(165, 243, 252, 0.8);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.micro-copy {
  color: rgba(186, 230, 253, 0.72);
}

@keyframes scanline-sweep {
  0% {
    top: -120px;
  }

  100% {
    top: 100vh;
  }
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

@keyframes flicker {
  0%,
  88%,
  90%,
  92%,
  100% {
    opacity: 1;
  }

  89% {
    opacity: 0.85;
  }

  91% {
    opacity: 0.92;
  }
}

.waterfall-wrap {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  aspect-ratio: 16 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 182, 212, 0.02);
  border: 1px solid rgba(5, 182, 212, 0.2);
}

.waterfall-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
  box-sizing: border-box;
  display: block;
  object-fit: contain;
  opacity: 0;
  transition: opacity 420ms ease;
  filter: saturate(1.06) contrast(1.03);
  cursor: zoom-in;
}

.waterfall-wrap img.ready {
  opacity: 1;
}

.waterfall-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  z-index: 10;
}

body {
  background-color: #020202;
  color: white;
  overflow-x: hidden;
}
