/* ═══════════════════════════════════════════════════════════
   BeeReach Marketing — Animation Helpers & Keyframes
   ═══════════════════════════════════════════════════════════ */

/* ── GSAP reveal helpers ──
   These classes are markers only. GSAP sets the initial hidden state
   via gsap.set() so content remains visible if GSAP fails to load. */

/* ── Hero entrance ──
   GSAP handles hero stagger via gsap.set() + gsap.to().
   No CSS hiding needed — keeps content visible if GSAP fails. */

/* ── Keyframe Animations ── */
@keyframes mkt-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

@keyframes mkt-pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.3); }
  50% { box-shadow: 0 0 12px 4px rgba(124, 58, 237, 0.15); }
}

@keyframes mkt-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes mkt-typing-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes mkt-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mkt-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mkt-scale-in {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes mkt-check-draw {
  from { stroke-dashoffset: 20; }
  to { stroke-dashoffset: 0; }
}

@keyframes mkt-count-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ── Demo-specific animations ── */

/* WhatsApp community sync pulse */
@keyframes mkt-sync-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Instagram DM bubble slide */
@keyframes mkt-dm-slide {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Instagram keyword highlight */
@keyframes mkt-keyword-flash {
  0% { background: transparent; }
  30% { background: rgba(255, 249, 71, 0.25); }
  100% { background: rgba(255, 249, 71, 0.1); }
}

/* BeeLinks theme transition */
@keyframes mkt-theme-fade {
  0% { opacity: 0; transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── Utility classes ── */
.mkt-animate-float {
  animation: mkt-float 4s ease-in-out infinite;
}

.mkt-animate-shimmer {
  background-size: 200% auto;
  animation: mkt-shimmer 3s linear infinite;
}

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

  .mkt-reveal,
  .mkt-reveal--left,
  .mkt-reveal--right,
  .mkt-reveal--scale {
    opacity: 1;
    transform: none;
  }

  .mkt-hero__badge,
  .mkt-hero__title,
  .mkt-hero__subtitle,
  .mkt-hero__actions,
  .mkt-hero__trust {
    opacity: 1;
    transform: none;
  }
}

/* ── Mockup element styles used by JS demos ── */
.mkt-wa-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--mkt-glass-border);
  border-radius: var(--mkt-radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.mkt-wa-card--active {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.1);
}

.mkt-wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.mkt-wa-info {
  flex: 1;
  min-width: 0;
}

.mkt-wa-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mkt-text-primary);
  margin-bottom: 2px;
}

.mkt-wa-meta {
  font-size: 0.75rem;
  color: var(--mkt-text-tertiary);
}

.mkt-wa-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mkt-success);
  font-variant-numeric: tabular-nums;
}

.mkt-wa-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mkt-success);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s;
}

.mkt-wa-check--visible {
  opacity: 1;
  transform: scale(1);
}

.mkt-wa-check svg {
  width: 12px;
  height: 12px;
  stroke: white;
  stroke-width: 3;
  fill: none;
}

/* Rule trigger bar */
.mkt-wa-rule {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--mkt-radius-xs);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--mkt-accent);
  font-weight: 600;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s, transform 0.4s;
}

.mkt-wa-rule--visible {
  opacity: 1;
  transform: translateY(0);
}

.mkt-wa-rule__icon {
  font-size: 14px;
}

.mkt-wa-rule__bar {
  flex: 1;
  height: 3px;
  background: rgba(124, 58, 237, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.mkt-wa-rule__progress {
  height: 100%;
  background: var(--mkt-accent);
  border-radius: 2px;
  width: 0%;
  transition: width 1.5s ease;
}

/* Instagram comment / DM styles */
.mkt-ig-comment {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--mkt-glass-border);
  border-radius: var(--mkt-radius-sm);
  padding: 14px;
  margin-bottom: 12px;
}

.mkt-ig-comment__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.mkt-ig-comment__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.mkt-ig-comment__user {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mkt-text-primary);
}

.mkt-ig-comment__text {
  font-size: 0.85rem;
  color: var(--mkt-text-secondary);
  line-height: 1.5;
}

.mkt-ig-keyword {
  background: rgba(255, 249, 71, 0.15);
  color: var(--mkt-brand);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  animation: mkt-keyword-flash 1s ease;
}

.mkt-ig-dm {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--mkt-radius-sm);
  padding: 14px 16px;
  margin-top: 12px;
  animation: mkt-dm-slide 0.5s ease;
}

.mkt-ig-dm__label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--mkt-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.mkt-ig-dm__text {
  font-size: 0.85rem;
  color: var(--mkt-text-primary);
  line-height: 1.5;
}

.mkt-ig-dm__cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--mkt-accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: mkt-typing-cursor 0.8s ease infinite;
}

/* BeeLinks theme mockup elements */
.mkt-bl-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: background 0.6s;
}

.mkt-bl-name {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  transition: color 0.6s;
}

.mkt-bl-bio {
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 24px;
  transition: color 0.6s;
}

.mkt-bl-link {
  display: block;
  padding: 14px 18px;
  border-radius: var(--mkt-radius-sm);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  transition: background 0.6s, color 0.6s, border-color 0.6s;
  border: 1px solid transparent;
}
