/* ═══════════════════════════════════════════════════════════════════════════════
   FPV Link – Custom Animations & Effects (beyond Tailwind utilities)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Nav scroll state ─────────────────────────────────────────────────────── */
#main-nav {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-nav.nav-scrolled {
  background: rgba(10, 10, 10, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid #2a2a2a;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* ── Glow background blobs ────────────────────────────────────────────────── */
@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.glow-blob {
  animation: glow-pulse 6s ease-in-out infinite;
}

.glow-blob-delay {
  animation: glow-pulse 6s ease-in-out 3s infinite;
}

/* ── Blinking dot ─────────────────────────────────────────────────────────── */
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.dot-blink {
  animation: dot-blink 2s ease-in-out infinite;
}

.dot-blink-fast {
  animation: dot-blink 1.2s ease-in-out infinite;
}

/* ── Initial page load animation ──────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.anim-1 { animation: fadeInUp 0.6s ease both; }
.anim-2 { animation: fadeInUp 0.6s ease 0.1s both; }
.anim-3 { animation: fadeInUp 0.6s ease 0.2s both; }
.anim-4 { animation: fadeInUp 0.6s ease 0.3s both; }
.anim-5 { animation: fadeInUp 0.8s ease 0.4s both; }

/* ── Scroll-triggered fade-in ─────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.fade-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered feature cards */
.fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in:nth-child(2) { transition-delay: 0.07s; }
.fade-in:nth-child(3) { transition-delay: 0.14s; }
.fade-in:nth-child(4) { transition-delay: 0.21s; }
.fade-in:nth-child(5) { transition-delay: 0.28s; }
.fade-in:nth-child(6) { transition-delay: 0.35s; }

/* ── Legal pages – list styling ───────────────────────────────────────────── */
.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.legal-section ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: #999;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a3a3a;
}

.legal-section p {
  margin-bottom: 0.875rem;
  color: #999;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.legal-section strong {
  color: #f0f0f0;
  font-weight: 600;
}

.legal-section code {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.8125rem;
}

.legal-section a {
  color: #e0e0e0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #3a3a3a;
  transition: text-decoration-color 0.2s;
}

.legal-section a:hover {
  text-decoration-color: #e0e0e0;
}

/* ── Mobile menu overlay ──────────────────────────────────────────────────── */
#mobile-menu {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
