/* =========================================================
   MatryoshkaVPN — Animations
   ========================================================= */

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

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

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

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,216,255,0.3); }
  50%       { box-shadow: 0 0 40px rgba(0,216,255,0.6), 0 0 60px rgba(0,82,255,0.3); }
}

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

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(90px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(90px) rotate(-360deg); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

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

@keyframes counter-up {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

@keyframes wave-dot {
  0%, 100% { transform: scaleY(0.4); }
  50%       { transform: scaleY(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateX(20px); }
}

/* ── Hero Logo ─────────────────────────────────────────── */
.hero-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center; justify-content: center;
  margin: 25px 0;
}

.hero-logo {
  width: 270px; height: 270px;
  object-fit: contain;
  position: relative; z-index: 2;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 12px 36px rgba(0,216,255,0.6));
}

.hero-glow {
  position: absolute; inset: -35px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,216,255,0.3) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
}

.orbit-ring {
  position: absolute; inset: -55px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,216,255,0.22);
  animation: rotate-slow 8s linear infinite;
}

.orbit-ring-2 {
  inset: -95px;
  animation-duration: 14s;
  animation-direction: reverse;
  border-color: rgba(0,82,255,0.18);
  border-width: 1.5px;
}

.orbit-dot {
  position: absolute; top: 50%;
  width: 12px; height: 12px;
  background: var(--neon);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(0,216,255,0.9);
  margin-top: -6px;
}

.orbit-ring .orbit-dot { left: -6px; }
.orbit-ring-2 .orbit-dot { right: -6px; background: var(--neon-blue); box-shadow: 0 0 14px rgba(0,82,255,0.9); }

/* ── Scroll Reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Animated Gradient Text ────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon), var(--neon-blue));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ── Shimmer Loading ───────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.05) 75%
  );
  background-size: 200% auto;
  animation: shimmer 1.5s linear infinite;
  border-radius: 8px;
}

/* ── Spinner ───────────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(0,216,255,0.25);
  border-top-color: var(--neon);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ── Number Counter ────────────────────────────────────── */
.counter { display: inline-block; }

/* ── Page Transitions ──────────────────────────────────── */
.page-enter {
  animation: fadeUp 0.5s ease both;
}

/* ── Particle BG ───────────────────────────────────────── */
.particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--neon);
  opacity: 0.3;
  animation: float var(--dur, 8s) ease-in-out infinite var(--delay, 0s);
}

/* ── Glow Separator ────────────────────────────────────── */
.glow-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0.3;
  margin: 40px 0;
}

/* ── Status Dot ────────────────────────────────────────── */
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}

.status-dot.active  { background: var(--success); box-shadow: 0 0 8px rgba(16,185,129,0.6); animation: blink 2s ease-in-out infinite; }
.status-dot.expired { background: var(--danger);  box-shadow: 0 0 8px rgba(239,68,68,0.6); }
.status-dot.pending { background: var(--warning); box-shadow: 0 0 8px rgba(245,158,11,0.6); }

/* ── Hero Gradient BG ──────────────────────────────────── */
.hero-bg-mesh {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%,  rgba(0,160,255,0.25) 0%, transparent 65%),
    radial-gradient(ellipse 30% 30% at 85% 80%, rgba(0,82,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 25% 25% at 10% 90%, rgba(0,216,255,0.08) 0%, transparent 60%);
}

/* ── Card Hover Effect ─────────────────────────────────── */
.hover-lift {
  transition: transform var(--transition), box-shadow var(--transition);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5), 0 0 30px rgba(0,216,255,0.1);
}

/* ── Neon Underline ────────────────────────────────────── */
.neon-underline {
  position: relative; display: inline-block;
}

.neon-underline::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon));
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.neon-underline:hover::after { transform: scaleX(1); }

/* ── Testimonial Card ──────────────────────────────────── */
.testimonial-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-dim);
  transition: border-color var(--transition);
}

.testimonial-card:hover { border-color: var(--border); }

.stars { color: #F59E0B; font-size: 13px; letter-spacing: 1px; }

/* ── Modal ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,11,22,0.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1; pointer-events: all;
}

.modal {
  width: 100%; max-width: 480px;
  background: rgba(15,20,40,0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  transform: scale(0.95);
  transition: transform var(--transition);
}

.modal-overlay.open .modal { transform: scale(1); }
