/* ==========================================================================
   Cláudio & Cia Variedades
   Compositor GPU (transform, opacity, clip-path) + Acessibilidade Reduced Motion
   ========================================================================== */

/* 1. Botões Glint & Press + Touch Ripple (#001188, #060d1f, #002255) */
.btn-glint::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    110deg,
    rgba(255,255,255, 0) 0%,
    rgba(255,255,255, 0.28) 50%,
    rgba(255,255,255, 0) 100%
  );
  transform: skewX(-24deg);
  pointer-events: none;
  z-index: 2;
  transition: left 0.65s var(--ease-out-expo);
}

@media (hover: hover) and (pointer: fine) {
  .btn-glint:hover::before,
  .btn-glint:focus-visible::before {
    left: 145%;
  }
}

.touch-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255, 0.36);
  transform: scale(0);
  pointer-events: none;
  z-index: 1;
  animation: claudio-ripple 0.65s ease-out forwards;
}

@keyframes claudio-ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* 2. Perspective Tilt 3D + Glare (#002266) */
[data-tilt-card] {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.38s var(--ease-spring);
  will-change: transform;
}

.tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    280px circle at var(--gx, 50%) var(--gy, 35%),
    rgba(255,255,255, 0.22),
    transparent 65%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.3s ease;
}

[data-tilt-card].is-tilting .tilt-glare {
  opacity: 1;
}

/* 3. Animações Autorais Conectadas (Seções 01, 02 e 03) */
.rastro-node-pulse {
  transform-box: fill-box;
  transform-origin: center;
}

.is-inview .rastro-node-pulse {
  animation: claudio-node-pulse 2.4s ease-in-out infinite;
}

@keyframes claudio-node-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(110,135,178, 0.5));
  }
  50% {
    transform: scale(1.28);
    filter: drop-shadow(0 0 12px rgba(110,135,178, 0.95));
  }
}

/* Seção 01: Escudo flutuante sutil */
.is-inview .shield-vector {
  animation: claudio-shield-float 5.2s ease-in-out infinite;
}

@keyframes claudio-shield-float {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-7px) scale(1.02);
  }
}

/* Seção 02: Anéis de Radar Diagnóstico */
.scan-ring {
  transform-box: fill-box;
  transform-origin: center;
}

.is-inview .scan-ring-1 {
  animation: claudio-scan-ring 2.8s ease-out infinite;
}

.is-inview .scan-ring-2 {
  animation: claudio-scan-ring 2.8s ease-out 1.1s infinite;
}

@keyframes claudio-scan-ring {
  0% {
    transform: scale(0.55);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

.is-inview .pulse-dot,
.is-inview .abstract-status-dot {
  animation: claudio-dot-blink 2s ease-in-out infinite;
}

@keyframes claudio-dot-blink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

/* Seção 03: Barra de Progresso do Auto-Ciclo de Tabs */
.garden-option.is-selected.is-autocycling .garden-progress i {
  animation: claudio-tab-progress 5.6s linear forwards;
}

@keyframes claudio-tab-progress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* 4. Reduced Motion Rigoroso (Preserva 100% da Informação, Cliques e Contraste) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .section-shader,
  .tilt-glare,
  .garden-progress {
    display: none !important;
  }

  .hero-arch-mask,
  .hero-copy *,
  .reveal-group,
  .reveal-group *,
  .review-card,
  .journey-step,
  .footer-cinematic-shell {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    clip-path: none !important;
  }

  .rastro-draw,
  .journey-draw,
  .service-beam-path {
    stroke-dashoffset: 0 !important;
  }
}
