/* HADAFIN Phase 24c — Homepage Premium Pass (subtle motion, no rainbow) */

@media (prefers-reduced-motion: no-preference) {
  /* Hero — re-enable subtle fade-in (premium polish had disabled these) */
  .home-mp--premium .home-mp-brand-mark {
    animation: hpFadeUp 0.7s ease both !important;
    letter-spacing: 0.14em !important;
  }
  .home-mp--premium .home-mp-hero--split h1 {
    animation: hpFadeUp 0.75s 0.08s ease both !important;
  }
  .home-mp--premium .home-mp-hero--split .tagline {
    animation: hpFadeUp 0.75s 0.14s ease both !important;
  }
  .home-mp--premium .home-mp-cta-row {
    animation: hpFadeUp 0.75s 0.2s ease both !important;
  }
  .home-mp--premium .home-mp-hero-ai {
    animation: hpFadeUp 0.85s 0.18s ease both !important;
  }
  .hp-search-wrap.hp-reveal-hero {
    animation: hpFadeUp 0.7s 0.28s ease both;
  }
}

@keyframes hpFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Scroll reveal — light, one-time */
.hp-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.hp-reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .hp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Card hover — lift + soft shadow (premium polish) */
.home-mp--premium .hp-card,
.home-mp--premium .home-mp-card,
.home-mp--premium .hp-project,
.home-mp--premium .hp-biz,
.home-mp--premium .hp-agent,
.home-mp--premium .hp-blog-card,
.home-mp--premium .home-mp-why-item,
.home-mp--premium .hp-quote {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.18s ease;
}
.home-mp--premium .hp-card:hover,
.home-mp--premium .home-mp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}
.home-mp--premium .home-mp-why-item:hover,
.home-mp--premium .hp-blog-card:hover,
.home-mp--premium .hp-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
}

/* Gradient accents — sparing (navy → emerald only, no rainbow) */
.hp-accent-heading h2 {
  position: relative;
  padding-bottom: 0.35rem;
}
.hp-accent-heading h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #0d9488, #134e4a);
  opacity: 0.85;
}
.hp-dealroom.hp-accent-heading .hp-split-panel h2::after {
  background: linear-gradient(90deg, #34d399, rgba(251, 191, 36, 0.85));
}
.hp-hero-glow {
  position: relative;
}
.hp-hero-glow::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(280px, 55vw);
  height: min(280px, 55vw);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.22) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.hp-hero-glow > * {
  position: relative;
  z-index: 1;
}

.home-mp--premium .home-mp-metrics {
  position: relative;
  overflow: hidden;
}
.home-mp--premium .home-mp-metrics::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #34d399 35%, #fbbf24 65%, transparent);
  opacity: 0.55;
  pointer-events: none;
}

/* Count-up numbers — tabular for smooth animation */
[data-hp-count] {
  font-variant-numeric: tabular-nums;
}
