/* Animations & Motion System — Bcommercy (Observed from https://bcommercy.com.br/#passo-a-passo) */

@keyframes bc-marq {
  to { transform: translateX(-50%); }
}

@keyframes bc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes bc-drift {
  from { transform: translateX(-2.5%); }
  to { transform: translateX(2.5%); }
}

@keyframes bc-rise {
  from { transform: translateY(22px); }
  to { transform: none; }
}

@keyframes bc-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes bc-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes bc-heroIn {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes bc-devIn {
  from {
    opacity: 0;
    translate: min(32vw, 440px) 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* Hero Staggered Entrance */
.bc-hero__copy > * {
  animation: bc-heroIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bc-hero__copy > *:nth-child(1) { animation-delay: 0.05s; }
.bc-hero__copy > *:nth-child(2) { animation-delay: 0.20s; }
.bc-hero__copy > *:nth-child(3) { animation-delay: 0.38s; }
.bc-hero__copy > *:nth-child(4) { animation-delay: 0.55s; }

.bc-hero__device {
  animation: bc-devIn 1.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Scroll Reveal System */
.bc-js .bc-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(6px);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.3s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1s ease;
  transition-delay: var(--d, 0s);
}
.bc-js .bc-reveal.bc-left { transform: translateX(-56px); }
.bc-js .bc-reveal.bc-right { transform: translateX(56px); }
.bc-js .bc-reveal.bc-zoom { transform: scale(0.93); }
.bc-js .bc-reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (max-width: 767px) {
  .bc-js .bc-reveal.bc-left,
  .bc-js .bc-reveal.bc-right {
    transform: translateY(48px);
  }
}

/* Card & Step Staggers */
.bc-card:nth-child(2) { --d: 0.12s; }
.bc-card:nth-child(3) { --d: 0.24s; }
.bc-card:nth-child(4) { --d: 0.36s; }
.bc-step:nth-child(2) { --d: 0.15s; }
.bc-step:nth-child(3) { --d: 0.30s; }

/* Ambient Loops */
.bc-marquee__track { animation: bc-marq 120s linear infinite; }
.bc-strip__track { animation: bc-marq 70s linear infinite; will-change: transform; }
.bc-steps__img img { animation: bc-float 8s ease-in-out infinite; }
.bc-float { animation: bc-float 6s ease-in-out infinite; }
.bc-float--b { animation-delay: -3s; }
.bc-glow { animation: bc-pulse 8s ease-in-out infinite; }
.bc-hero .bc-giant span { animation: bc-drift 16s ease-in-out infinite alternate; }
.bc-hero .bc-giant span:nth-child(2) { animation-direction: alternate-reverse; }

/* Hover & Interactive Micro-interactions */
.bc-strip img,
.bc-car__media img,
.bc-win img,
.bc-lia__avatar img {
  clip-path: inset(0 round var(--zr, 0px));
  transition:
    scale 1.8s cubic-bezier(0.25, 0.1, 0.25, 1),
    clip-path 1.8s cubic-bezier(0.25, 0.1, 0.25, 1),
    opacity 0.35s ease;
}
.bc-strip img:hover,
.bc-car__media img:hover,
.bc-win img:hover,
.bc-lia__avatar img:hover {
  scale: 1.03;
  clip-path: inset(1.46% round var(--zr, 0px));
}

.bc-car__track {
  transition: transform 0.8s cubic-bezier(0.65, 0.05, 0.2, 1);
  will-change: transform;
}
.bc-car__slide {
  opacity: 0.35;
  filter: blur(3px);
  transform: scale(0.9);
  transition:
    opacity 0.6s ease,
    filter 0.6s ease,
    transform 0.8s cubic-bezier(0.65, 0.05, 0.2, 1);
}
.bc-car__slide.is-on {
  opacity: 1;
  filter: none;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .bc * {
    animation: none !important;
    transition: none !important;
  }
  .bc-js .bc-reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .bc-js .bc-lia__phone img {
    translate: none;
  }
}
