/* ==========================================================================
   JPStudio - Motion & Visual Effects
   3D Tilt, MagicBento Glow & Infographics
   ========================================================================== */

/* 1. Aura de luz atras do Hero Showcase */
.showcase-aura {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0.05) 50%, transparent 75%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
  animation: auraPulse 8s ease-in-out infinite alternate;
}

@keyframes auraPulse {
  from { opacity: 0.6; transform: translateX(-50%) scale(0.95); }
  to { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

/* 2. Os 4 Infograficos Numericos Customizados */

/* A. 21x: Barras Comparativas */
.graphic-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  height: 70px;
}

.bar-slow {
  width: 14px;
  height: 6px;
  background: #cbd5e1;
  border-radius: 4px;
}

.bar-fast {
  width: 18px;
  height: 65px;
  background: var(--accent);
  border-radius: 6px;
  transform-origin: bottom;
  animation: growBar 2s cubic-bezier(0.16, 1, 0.3, 1) infinite alternate;
}

@keyframes growBar {
  from { transform: scaleY(0.7); }
  to { transform: scaleY(1); }
}

/* B. 33%: Anel Circular Gradiente */
.graphic-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0% 33%, #e2e8f0 33% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.graphic-ring::after {
  content: '';
  width: 48px;
  height: 48px;
  background: var(--gray-50);
  border-radius: 50%;
}

/* C. 66,7%: Velocimetro Meia-Lua */
.graphic-gauge {
  width: 80px;
  height: 40px;
  border-top-left-radius: 80px;
  border-top-right-radius: 80px;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.gauge-fill {
  position: absolute;
  inset: 0;
  border-top-left-radius: 80px;
  border-top-right-radius: 80px;
  background: conic-gradient(from 180deg at 50% 100%, var(--accent) 0deg, var(--emerald) 120deg, transparent 120deg);
}

.gauge-needle {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: 36px;
  background: var(--gray-900);
  transform-origin: bottom center;
  transform: rotate(30deg);
  border-radius: 2px;
  animation: swayNeedle 4s ease-in-out infinite alternate;
}

@keyframes swayNeedle {
  from { transform: rotate(15deg); }
  to { transform: rotate(45deg); }
}

/* D. 82%: Matriz de 100 Pontos */
.graphic-dots {
  display: grid;
  grid-template-columns: repeat(10, 6px);
  gap: 3px;
  justify-content: center;
}

.dot-unit {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
}

.dot-unit.lit {
  background: var(--accent);
  box-shadow: 0 0 4px rgba(37, 99, 235, 0.6);
}

/* 3. Indicador de Digitacao no Simulador */
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: white;
  border-radius: 12px;
  width: fit-content;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* 4. Suporte a Reducao de Movimento (WCAG 2.2.2) */
@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;
  }
  .showcase-frame {
    transform: none !important;
  }
}
