/* ============================================================
   Reveal system — elements start invisible; JS adds .is-visible
   when they enter the viewport (IntersectionObserver).
   Each variant controls how the element enters.
   ============================================================ */

.reveal {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: none !important;
}

/* Directional variants */
.reveal-up    { transform: translateY(24px); }
.reveal-left  { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }
.reveal-scale { transform: scale(0.94); }

/* Staggered children — parent gets .stagger, children get .reveal */
.stagger .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger .reveal:nth-child(2) { transition-delay: 80ms; }
.stagger .reveal:nth-child(3) { transition-delay: 160ms; }
.stagger .reveal:nth-child(4) { transition-delay: 240ms; }
.stagger .reveal:nth-child(5) { transition-delay: 320ms; }
.stagger .reveal:nth-child(6) { transition-delay: 400ms; }

/* ============================================================
   Hero entrance — triggered by JS removing .hero-loading
   ============================================================ */

.hero-loading .hero-eyebrow,
.hero-loading .hero-title,
.hero-loading .hero-sub,
.hero-loading .hero-actions,
.hero-loading .hero-note {
  opacity: 0;
  transform: translateY(16px);
}

.hero-eyebrow {
  transition: opacity 0.55s var(--ease-out-expo) 0.05s,
              transform 0.55s var(--ease-out-expo) 0.05s;
}

.hero-title {
  transition: opacity 0.65s var(--ease-out-expo) 0.15s,
              transform 0.65s var(--ease-out-expo) 0.15s;
}

.hero-sub {
  transition: opacity 0.6s var(--ease-out-expo) 0.28s,
              transform 0.6s var(--ease-out-expo) 0.28s;
}

.hero-actions {
  transition: opacity 0.55s var(--ease-out-expo) 0.4s,
              transform 0.55s var(--ease-out-expo) 0.4s;
}

.hero-note {
  transition: opacity 0.5s var(--ease-out-expo) 0.52s,
              transform 0.5s var(--ease-out-expo) 0.52s;
}

/* ============================================================
   Ambient floating orb in hero background
   ============================================================ */

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.hero-orb-1 {
  width: 520px;
  height: 520px;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(13,148,136,0.06) 0%, transparent 70%);
  animation: orbFloat1 12s ease-in-out infinite;
}

.hero-orb-2 {
  width: 320px;
  height: 320px;
  bottom: 10%;
  right: 5%;
  background: radial-gradient(circle, rgba(45,212,191,0.05) 0%, transparent 70%);
  animation: orbFloat2 16s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translateX(-50%) translateY(0px) scale(1); }
  33%       { transform: translateX(-50%) translateY(-18px) scale(1.03); }
  66%       { transform: translateX(-50%) translateY(10px) scale(0.98); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-24px) scale(1.06); }
}

/* ============================================================
   Nav: logo word-by-word fade-in on load
   ============================================================ */

@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-brand {
  animation: navFadeIn 0.5s var(--ease-out-expo) 0.1s both;
}

.nav-links {
  animation: navFadeIn 0.5s var(--ease-out-expo) 0.2s both;
}

.nav .btn {
  animation: navFadeIn 0.5s var(--ease-out-expo) 0.3s both;
}

/* ============================================================
   Feature card: icon pulse on hover
   ============================================================ */

@keyframes iconPulse {
  0%   { box-shadow: 0 0 0 0 rgba(13,148,136,0.25); }
  70%  { box-shadow: 0 0 0 8px rgba(13,148,136,0); }
  100% { box-shadow: 0 0 0 0 rgba(13,148,136,0); }
}

.feature-card:hover .feature-icon {
  animation: iconPulse 0.6s ease-out;
}

/* ============================================================
   Price card: soft lift on hover
   ============================================================ */

.price-card {
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   Step number: count-in handled by JS, just style the transition
   ============================================================ */

.step-number {
  transition: opacity 0.4s ease;
}

/* ============================================================
   Proof strip: ticker — items slide in from the right once
   ============================================================ */

@keyframes proofIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.proof-item:nth-child(1) { animation: proofIn 0.5s var(--ease-out-expo) 0.7s both; }
.proof-item:nth-child(2) { animation: proofIn 0.5s var(--ease-out-expo) 0.85s both; }
.proof-item:nth-child(3) { animation: proofIn 0.5s var(--ease-out-expo) 1.0s both; }
.proof-item:nth-child(4) { animation: proofIn 0.5s var(--ease-out-expo) 1.15s both; }

/* ============================================================
   Gradient line atop the price card: shimmer sweep
   ============================================================ */

@keyframes gradientShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.price-card::before {
  background: linear-gradient(
    90deg,
    var(--brand-primary) 0%,
    var(--accent-cta) 40%,
    var(--brand-primary) 100%
  );
  background-size: 200% auto;
  animation: gradientShimmer 4s linear infinite;
}

/* ============================================================
   Reduced motion: strip all animations
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
