/* ==========================================================================
   EASY GUIDE (UHS) - MOTION.CSS
   Sistema Global de Animações Coeso baseado no Framer Motion da Origem
   ========================================================================== */

:root {
  /* Curvas e Springs do Framer Motion */
  --framer-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --framer-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --framer-spring-snappy: cubic-bezier(0.12, 0.23, 0.5, 1);
  --framer-spring-soft: cubic-bezier(0.25, 1, 0.5, 1);
  
  /* Durações Padronizadas */
  --motion-duration-hero: 0.85s;
  --motion-duration-reveal: 0.75s;
  --motion-duration-fast: 0.26s;
  --motion-duration-normal: 0.4s;
}

/* ==========================================================================
   1. ANIMAÇÕES DE ENTRADA DO HERO (Ao Carregar a Página)
   ========================================================================== */

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroMockupReveal {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatingBadgeTop {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes floatingBadgeBottom {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* Aplicação na Hero Section */
.hero-eyebrow {
  animation: heroFadeUp var(--motion-duration-hero) var(--framer-ease-out) 0.05s both;
}

.hero-title {
  animation: heroFadeUp var(--motion-duration-hero) var(--framer-ease-out) 0.15s both;
}

.hero-subtitle {
  animation: heroFadeUp var(--motion-duration-hero) var(--framer-ease-out) 0.25s both;
}

.hero-cta-group {
  animation: heroFadeUp var(--motion-duration-hero) var(--framer-ease-out) 0.35s both;
}

.hero-guarantee {
  animation: heroFadeUp var(--motion-duration-hero) var(--framer-ease-out) 0.42s both;
}

.hero-visual .mockup-card {
  animation: heroMockupReveal 0.95s var(--framer-ease-out) 0.2s both;
}

.badge-top-right {
  animation: floatingBadgeTop 4s ease-in-out infinite 1.2s;
}

.badge-bottom-left {
  animation: floatingBadgeBottom 4.5s ease-in-out infinite 1.4s;
}

/* ==========================================================================
   2. SISTEMA UNIVERSAL DE SCROLL REVEAL (Framer-like Fade & Slide)
   ========================================================================== */

/* Classe Base de Revelação */
.framer-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--motion-duration-reveal) var(--framer-ease-out),
              transform var(--motion-duration-reveal) var(--framer-ease-out);
  will-change: opacity, transform;
}

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

/* Revelação Fade Puro */
.framer-reveal-fade {
  opacity: 0;
  transition: opacity var(--motion-duration-reveal) var(--framer-ease-out);
  will-change: opacity;
}

.framer-reveal-fade.is-revealed {
  opacity: 1;
}

/* Revelação com Scale Suave (para Mockups, Imagens e Containers Grandes) */
.framer-reveal-scale {
  opacity: 0;
  transform: scale(0.96) translateY(24px);
  transition: opacity var(--motion-duration-reveal) var(--framer-ease-out),
              transform var(--motion-duration-reveal) var(--framer-ease-out);
  will-change: opacity, transform;
}

.framer-reveal-scale.is-revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Delays em Cascata (Stagger) para Grids e Filhos */
.stagger-1 { transition-delay: 0.05s !important; }
.stagger-2 { transition-delay: 0.11s !important; }
.stagger-3 { transition-delay: 0.17s !important; }
.stagger-4 { transition-delay: 0.23s !important; }
.stagger-5 { transition-delay: 0.29s !important; }
.stagger-6 { transition-delay: 0.35s !important; }
.stagger-7 { transition-delay: 0.41s !important; }
.stagger-8 { transition-delay: 0.47s !important; }
.stagger-9 { transition-delay: 0.53s !important; }
.stagger-10 { transition-delay: 0.59s !important; }
.stagger-11 { transition-delay: 0.65s !important; }
.stagger-12 { transition-delay: 0.71s !important; }

/* ==========================================================================
   3. MICRO-INTERAÇÕES TÁTEIS FRAMER (Hover, Focus, Active)
   ========================================================================== */

/* Botões Globais */
.btn-figma-primary,
.btn-figma-secondary,
.btn-primary,
.btn-outline,
.btn-step-demo,
.carousel-nav-btn {
  transition: transform var(--motion-duration-fast) var(--framer-spring-snappy),
              box-shadow var(--motion-duration-fast) var(--framer-spring-snappy),
              background-color var(--motion-duration-fast) ease,
              border-color var(--motion-duration-fast) ease !important;
  will-change: transform, box-shadow;
}

.btn-figma-primary:hover,
.btn-figma-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 131, 116, 0.14) !important;
}

.btn-figma-primary:active,
.btn-figma-secondary:active,
.btn-primary:active,
.btn-outline:active {
  transform: translateY(0) scale(0.97) !important;
}

/* Ícones de Seta dentro de Botões */
.btn-figma-primary .icon-circle,
.btn-figma-secondary .play-circle,
.step-arrow-circle {
  transition: transform var(--motion-duration-fast) var(--framer-spring-snappy) !important;
}

.btn-figma-primary:hover .icon-circle {
  transform: translate(3px, -3px) !important;
}

.btn-figma-secondary:hover .play-circle {
  transform: scale(1.08) !important;
}

.btn-step-demo:hover .step-arrow-circle {
  transform: translateX(4px) !important;
}

/* Cards Interativos Globais */
.protecao-card,
.jornada-card,
.setup-step-card,
.func-card,
.feature-card,
.segmento-card,
.segment-card,
.metric-card,
.metrics-stat-item,
.pillar-card,
.depoimento-card,
.cenario-card-wrapper,
.qualificacao-col-left,
.qualificacao-col-right,
.impacto-box,
.cta-final-card {
  transition: transform var(--motion-duration-fast) var(--framer-spring-snappy),
              box-shadow var(--motion-duration-fast) var(--framer-spring-snappy),
              border-color var(--motion-duration-fast) ease !important;
  will-change: transform, box-shadow;
}

.protecao-card:hover,
.setup-step-card:hover,
.func-card:hover,
.feature-card:hover,
.segmento-card:hover,
.segment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(33, 148, 139, 0.1);
  border-color: rgba(110, 221, 212, 0.55);
}

/* Eyebrows / Badges */
.eyebrow {
  transition: transform var(--motion-duration-fast) var(--framer-spring-snappy),
              background-color var(--motion-duration-fast) ease !important;
}

.eyebrow:hover {
  transform: translateY(-1px);
}

/* Header Flutuante */
.header-capsule {
  transition: transform 0.3s var(--framer-ease-out),
              box-shadow 0.3s var(--framer-ease-out),
              background-color 0.3s ease,
              border-color 0.3s ease !important;
}

/* ==========================================================================
   4. ACESSIBILIDADE (Respeito a prefers-reduced-motion)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-title,
  .hero-subtitle,
  .hero-cta-group,
  .hero-guarantee,
  .hero-visual .mockup-card,
  .badge-top-right,
  .badge-bottom-left,
  .framer-reveal,
  .framer-reveal-fade,
  .framer-reveal-scale {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
