.motion-ready .hero__content > * {
  opacity: 0;
  animation: hero-copy-in .65s cubic-bezier(.2, .75, .25, 1) forwards;
}
.motion-ready .hero__content > *:nth-child(1) { animation-delay: .05s; }
.motion-ready .hero__content > *:nth-child(2) { animation-delay: .13s; }
.motion-ready .hero__content > *:nth-child(3) { animation-delay: .21s; }
.motion-ready .hero__content > *:nth-child(4) { animation-delay: .29s; }
.motion-ready .hero__content > *:nth-child(5) { animation-delay: .37s; }
.motion-ready .hero__visual {
  opacity: 0;
  animation: hero-visual-in .8s .28s cubic-bezier(.2, .75, .25, 1) forwards;
}
@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-visual-in {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}


.phone-mockup__screen { position: relative; overflow: hidden; }
.scan-line {
  position: absolute;
  z-index: 2;
  top: 20%;
  right: 12px;
  left: 12px;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 5px 16px rgba(23, 108, 91, .28);
  transition: opacity .25s;
}
.hero__visual[data-stage="1"] .scan-line {
  opacity: 1;
  animation: diagnostic-scan 2.1s ease-in-out infinite;
}
@keyframes diagnostic-scan {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(190px); }
}
.repair-badge {
  transition: background .45s, border-color .45s, transform .45s;
}
.hero__visual[data-stage="0"] .repair-badge { background: var(--mint); border-color: #e0f3e9; }
.hero__visual[data-stage="1"] .repair-badge { background: #f7eabd; border-color: #fdf4d8; }
.hero__visual[data-stage="2"] .repair-badge { background: var(--coral); border-color: #fbd9cc; }
.hero__visual[data-stage="3"] .repair-badge { background: var(--mint); border-color: #e0f3e9; animation: repair-success .55s cubic-bezier(.2, .8, .25, 1); }
@keyframes repair-success {
  0% { transform: scale(.85) rotate(-8deg); }
  65% { transform: scale(1.06) rotate(2deg); }
  100% { transform: scale(1) rotate(0); }
}
.phone-mockup__progress i { transition: background .35s, transform .35s; }
.phone-mockup__progress i.is-complete { background: var(--green); }
.phone-mockup__progress i.is-current { background: var(--coral); transform: scaleY(1.5); }

.route-parcel {
  position: absolute;
  z-index: 4;
  bottom: 46px;
  left: 4%;
  display: grid;
  width: 36px;
  height: 36px;
  color: var(--mint);
  background: var(--ink);
  border: 3px solid var(--white);
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(16, 42, 42, .2);
  place-items: center;
  transition: transform 1.15s cubic-bezier(.35, .75, .25, 1);
}
.route-parcel .icon { width: 18px; height: 18px; }
.hero__visual[data-stage="0"] .route-parcel { transform: translate(0, 0) rotate(-8deg); }
.hero__visual[data-stage="1"] .route-parcel { transform: translate(65px, -70px) rotate(5deg); }
.hero__visual[data-stage="2"] .route-parcel { transform: translate(180px, -130px) rotate(-4deg); }
.hero__visual[data-stage="3"] .route-parcel { transform: translate(330px, -30px) rotate(6deg); }
.floating-card { transition: border-color .4s, box-shadow .4s, transform .4s; }
.hero__visual[data-stage="0"] .floating-card--top,
.hero__visual[data-stage="1"] .floating-card--top {
  border-color: rgba(23, 108, 91, .25);
  box-shadow: 0 15px 36px rgba(16, 42, 42, .18);
}
.hero__visual[data-stage="3"] .floating-card--bottom {
  border-color: rgba(244, 123, 96, .45);
  box-shadow: 0 15px 36px rgba(16, 42, 42, .2);
  transform: rotate(3deg) translateY(-5px);
}
.motion-ready .visual__spark { animation: spark-breathe 4s ease-in-out infinite; }
.motion-ready .visual__spark--two { animation-delay: -2s; }
@keyframes spark-breathe {
  0%, 100% { opacity: .55; transform: scale(.9) rotate(0); }
  50% { opacity: 1; transform: scale(1.08) rotate(12deg); }
}
.hero__visual.is-paused .scan-line,
.hero__visual.is-paused .visual__spark,
.hero__visual.is-paused .repair-badge { animation-play-state: paused; }

.repair-card__icon, .button .icon { transition: transform .22s ease; }
.repair-card:hover .repair-card__icon { transform: translateY(-3px) rotate(-4deg); }
.button:hover .icon:last-child { transform: translateX(3px); }

@media (max-width: 600px) {
  .route-parcel { width: 31px; height: 31px; border-radius: 9px; }
  .route-parcel .icon { width: 15px; height: 15px; }
  .hero__visual[data-stage="1"] .route-parcel { transform: translate(45px, -55px) rotate(5deg); }
  .hero__visual[data-stage="2"] .route-parcel { transform: translate(120px, -95px) rotate(-4deg); }
  .hero__visual[data-stage="3"] .route-parcel { transform: translate(245px, -20px) rotate(6deg); }
  @keyframes diagnostic-scan {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(145px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .hero__content > *,
  .motion-ready .hero__visual {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .scan-line, .route-parcel, .visual__spark { display: none; }
  .repair-badge, .floating-card, .phone-mockup__progress i { animation: none; transition: none; }
}
