/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.06; }
  50%       { opacity: 0.12; }
}

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

/* ============================================================
   HERO ENTRANCE
   ============================================================ */
.hero__eyebrow  { animation: fadeIn     0.6s ease both; animation-delay: 0.1s; }
.hero__headline { animation: fadeInUp   0.7s ease both; animation-delay: 0.2s; }
.hero__subheadline { animation: fadeInUp 0.7s ease both; animation-delay: 0.35s; }
.hero__actions  { animation: fadeInUp   0.7s ease both; animation-delay: 0.5s; }
.hero__metrics  { animation: slideInLeft 0.7s ease both; animation-delay: 0.4s; }

/* ============================================================
   BACKGROUND GLOW PULSE
   ============================================================ */
.hero__bg-glow {
  animation: glowPulse 8s ease-in-out infinite;
}

/* ============================================================
   GRADIENT TEXT SHIMMER (optional on hover)
   ============================================================ */
.nav__logo:hover span {
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--primary-container) 50%,
    var(--primary) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 1.5s linear infinite;
}

/* ============================================================
   METRIC COUNTER (JS hooks into this)
   ============================================================ */
.hero__metric-value.is-counting {
  animation: fadeIn 0.4s ease both;
}

/* ============================================================
   MOBILE MENU TRANSITION
   ============================================================ */
.nav__mobile {
  animation: fadeIn 0.25s ease both;
}

/* ============================================================
   PAGE LOAD SKELETON PLACEHOLDER
   ============================================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-low) 25%,
    var(--surface-high) 50%,
    var(--surface-low) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ============================================================
   TYPEWRITER CURSOR
   ============================================================ */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.typewriter__cursor {
  display: inline-block;
  color: var(--primary);
  font-weight: 400;
  margin-left: 1px;
  animation: blink 0.85s step-start infinite;
}

.hero__eyebrow.is-typing .typewriter__cursor {
  animation-play-state: paused;
  opacity: 1;
}
