/* ============================================================
   Proofix landing — custom styles overlaying Tailwind CDN
============================================================ */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Selection colour matches brand */
::selection {
  background-color: #F28C28;
  color: #ffffff;
}

/* Focus rings: brand orange, visible only on keyboard nav */
:focus-visible {
  outline: 2px solid #F28C28;
  outline-offset: 2px;
  border-radius: 4px;
}

a:focus,
button:focus {
  outline: none;
}

/* ============================================================
   Scroll-reveal animation
   - Elements with .reveal start hidden + translated down
   - When visible, they fade-in + slide up
   - Honors prefers-reduced-motion
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Hero pulse dot — soft, slow, not aggressive
============================================================ */
@keyframes pulse-soft {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}
.animate-pulse {
  animation: pulse-soft 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .animate-pulse {
    animation: none;
  }
}

/* ============================================================
   Subtle background grain — adds physical texture
   only on hero (handled via class on section in HTML if needed)
============================================================ */
.bg-grain {
  position: relative;
}
.bg-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.6;
  mix-blend-mode: multiply;
}
