/* TOLVYN — animations.css */

/* ─── Keyframes ──────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(249,115,22,0.4); }
  70%  { box-shadow: 0 0 0 12px rgba(249,115,22,0); }
  100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* ─── Hero entrance ──────────────────────────────────────────────────── */
.anim-fade-up {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__eyebrow { animation-delay: 0.05s; }
.hero h1       { animation-delay: 0.15s; }
.hero__sub     { animation-delay: 0.25s; }
.hero__ctas    { animation-delay: 0.35s; }
.proof-bar     { animation-delay: 0.45s; animation-name: fadeUp; opacity: 0;
                 animation-duration: 0.7s;
                 animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
                 animation-fill-mode: forwards; }

/* ─── Scroll-triggered reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for card groups */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ─── Orange dot pulse (CTA) ─────────────────────────────────────────── */
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

/* ─── Button hover glow ──────────────────────────────────────────────── */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(255,255,255,0.12) 50%,
    transparent 70%);
  background-size: 400px 100%;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::after {
  opacity: 1;
  animation: shimmer 0.7s ease forwards;
}

/* ─── Nav scroll transition ──────────────────────────────────────────── */
.nav {
  transition: background 0.3s ease, border-color 0.3s ease,
              backdrop-filter 0.3s ease;
}

/* ─── Plan card hover ────────────────────────────────────────────────── */
.plan {
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
              transform 0.25s ease;
}
.plan:hover { transform: translateY(-3px); }

/* ─── Step connector animation ───────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .step__num {
    transition: box-shadow 0.3s ease;
  }
  .step:hover .step__num {
    box-shadow: 0 0 0 6px rgba(249,115,22,0.15);
  }
}

/* ─── Respect reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
