/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px) }
  to { opacity: 1; transform: translateY(0) }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(92,184,104,.4) }
  50% { opacity: .6; box-shadow: 0 0 0 4px rgba(92,184,104,0) }
}

@keyframes grow {
  from { transform: scaleX(0) }
}

@keyframes scroll {
  to { transform: translateX(-50%) }
}

@keyframes spin {
  to { transform: rotate(360deg) }
}

/* Scroll reveal */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}

.rv.vis {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr }
  .conf-card { grid-template-columns: 1fr }
  .conf-visual { min-height: 280px }
  .test-grid { grid-template-columns: repeat(2, 1fr) }
}

@media (max-width: 768px) {
  .reach-grid, .test-grid { grid-template-columns: 1fr }
  .about-features { grid-template-columns: 1fr }
  .test-header-deco { font-size: 5rem }
}

/* Visually hidden (for a11y) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip navigation link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: .75rem 1.5rem;
  background: var(--g1);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--r);
  text-decoration: none;
}

.skip-link:focus {
  top: .5rem;
}

/* Focus visible — keyboard accessibility (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Respect reduced motion preference (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rv {
    opacity: 1;
    transform: none;
  }
}
