/* Homepage — motion & micro-interactions (white bg, no purple wash) */

@keyframes aliveAccentShimmer {
  0%, 100% { color: #6D28D9; }
  50% { color: #7C3AED; }
}

@keyframes aliveStatIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aliveTrustIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes aliveSvcIconPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

body[data-page="home"]:not(.no-animations) .corp-hero__accent {
  animation: aliveAccentShimmer 5s ease-in-out infinite;
}

body[data-page="home"] .corp-stats-bar.is-alive .corp-stat {
  animation: aliveStatIn 0.65s cubic-bezier(0.34, 1.2, 0.64, 1) backwards;
}

body[data-page="home"] .corp-stats-bar.is-alive .corp-stat:nth-child(1) { animation-delay: 0s; }
body[data-page="home"] .corp-stats-bar.is-alive .corp-stat:nth-child(3) { animation-delay: 0.08s; }
body[data-page="home"] .corp-stats-bar.is-alive .corp-stat:nth-child(5) { animation-delay: 0.16s; }
body[data-page="home"] .corp-stats-bar.is-alive .corp-stat:nth-child(7) { animation-delay: 0.24s; }

body[data-page="home"] .corp-stats-bar.is-alive .corp-stat strong {
  display: inline-block;
  min-width: 2.5ch;
  font-variant-numeric: tabular-nums;
}

body[data-page="home"] .corp-trustbar.is-alive .corp-trustbar__item {
  animation: aliveTrustIn 0.55s cubic-bezier(0.34, 1.2, 0.64, 1) backwards;
}

body[data-page="home"] .corp-trustbar.is-alive .corp-trustbar__item:nth-child(1) { animation-delay: 0.04s; }
body[data-page="home"] .corp-trustbar.is-alive .corp-trustbar__item:nth-child(2) { animation-delay: 0.1s; }
body[data-page="home"] .corp-trustbar.is-alive .corp-trustbar__item:nth-child(3) { animation-delay: 0.16s; }
body[data-page="home"] .corp-trustbar.is-alive .corp-trustbar__item:nth-child(4) { animation-delay: 0.22s; }

body[data-page="home"]:not(.no-animations) .corp-svc:hover .corp-svc__icon {
  animation: aliveSvcIconPop 0.55s ease;
}

body[data-page="home"]:not(.no-animations) .portfolio-grid .portfolio-item__img img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-page="home"]:not(.no-animations) .portfolio-grid .portfolio-item:hover .portfolio-item__img img {
  transform: scale(1.04);
}

body[data-page="home"]:not(.no-animations) .corp-avatars span {
  animation: aliveSvcIconPop 3.5s ease-in-out infinite;
}

body[data-page="home"]:not(.no-animations) .corp-avatars span:nth-child(1) { animation-delay: 0s; }
body[data-page="home"]:not(.no-animations) .corp-avatars span:nth-child(2) { animation-delay: 0.35s; }
body[data-page="home"]:not(.no-animations) .corp-avatars span:nth-child(3) { animation-delay: 0.7s; }

body[data-page="home"]:not(.no-animations) .corp-process__step {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body[data-page="home"]:not(.no-animations) .corp-process__step:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .corp-hero__accent,
  body[data-page="home"] .corp-avatars span,
  body[data-page="home"] .corp-stats-bar.is-alive .corp-stat,
  body[data-page="home"] .corp-trustbar.is-alive .corp-trustbar__item {
    animation: none !important;
  }
}

body.no-animations[data-page="home"] .corp-hero__accent,
body.no-animations[data-page="home"] .corp-avatars span {
  animation: none !important;
}
