/* ============================================================
   MECHASH — Animations & Keyframes
   ============================================================ */

/* ── CTA Button Pulse ───────────────────────────────────── */
@keyframes pulse-cta {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(182, 249, 201, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(182, 249, 201, 0);
  }
}

/* ── Status Dot ─────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

/* ── Circuit Node ───────────────────────────────────────── */
@keyframes circuit-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

/* ── Glow Border ────────────────────────────────────────── */
@keyframes border-glow {
  0%, 100% {
    border-color: rgba(8, 126, 139, 0.2);
    box-shadow: 0 0 10px rgba(8, 126, 139, 0.1);
  }
  50% {
    border-color: rgba(8, 126, 139, 0.6);
    box-shadow: 0 0 30px rgba(8, 126, 139, 0.3);
  }
}

/* ── Fade Slide Entrance ────────────────────────────────── */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ── Hero Title Entrance ────────────────────────────────── */
@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ── Line Draw ──────────────────────────────────────────── */
@keyframes lineGrow {
  from { height: 0; }
  to   { height: 100%; }
}

/* ── Glitch Text ────────────────────────────────────────── */
@keyframes glitch-1 {
  0%, 95%, 100% { clip-path: inset(50%); transform: skewX(0); }
  5% { clip-path: inset(8% 0 60% 0); transform: skewX(-2deg); }
  10% { clip-path: inset(70% 0 10% 0); transform: skewX(1deg); }
  15% { clip-path: inset(50%); transform: skewX(0); }
}

@keyframes glitch-2 {
  0%, 90%, 100% { clip-path: inset(50%); transform: skewX(0); }
  8%  { clip-path: inset(40% 0 45% 0); transform: skewX(2deg); }
  12% { clip-path: inset(10% 0 80% 0); transform: skewX(-1deg); }
  16% { clip-path: inset(50%); transform: skewX(0); }
}

/* ── Float ──────────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* ── Rotating Border ────────────────────────────────────── */
@keyframes rotate-border {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Shimmer ────────────────────────────────────────────── */
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}

/* ── Hero Entrance Stagger ──────────────────────────────── */
.hero-label {
  animation: fadeSlideUp 0.7s ease 0.1s both;
}

.hero-title {
  animation: heroFade 0.9s ease 0.25s both;
}

.hero-description {
  animation: fadeSlideUp 0.7s ease 0.45s both;
}

.hero-actions {
  animation: fadeSlideUp 0.7s ease 0.6s both;
}

.hero-stats {
  animation: fadeSlideUp 0.7s ease 0.75s both;
}

.hero-visual {
  animation: fadeSlideLeft 0.9s ease 0.3s both;
}

/* ── Accent Glowing Text ────────────────────────────────── */
.glow-text {
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(182, 249, 201, 0.4),
      0 0 20px rgba(182, 249, 201, 0.2);
  }
  50% {
    text-shadow:
      0 0 16px rgba(182, 249, 201, 0.7),
      0 0 40px rgba(182, 249, 201, 0.3);
  }
}

/* ── Loading Spinner ────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,27,46,0.4);
  border-top-color: #001B2E;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

/* ── Form success ───────────────────────────────────────── */
@keyframes successPop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.form-success {
  text-align: center;
  padding: var(--space-2xl);
  animation: successPop 0.5s ease;
}

.form-success .checkmark {
  font-size: 48px;
  margin-bottom: var(--space-lg);
}
