/* =============================================
   Nu Design System – shared.css
   Animações, utilitários e estilos globais
   ============================================= */

/* ── Fonte Nunito (wordmark) ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@800;900&display=swap');

/* ── Logo wordmark oficial ── */
.nu-wordmark {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #820ad1;
  line-height: 1;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.90);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed { opacity: 1; transform: none; }

.reveal-delay-1 { transition-delay: 0.08s !important; }
.reveal-delay-2 { transition-delay: 0.16s !important; }
.reveal-delay-3 { transition-delay: 0.24s !important; }
.reveal-delay-4 { transition-delay: 0.32s !important; }
.reveal-delay-5 { transition-delay: 0.42s !important; }

/* ── Float ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
@keyframes float-rot {
  0%, 100% { transform: translateY(0px) rotate(15deg); }
  50%       { transform: translateY(-12px) rotate(10deg); }
}
@keyframes float-rot2 {
  0%, 100% { transform: translateY(0px) rotate(-12deg); }
  50%       { transform: translateY(-10px) rotate(-7deg); }
}
.animate-float      { animation: float      4s ease-in-out infinite; }
.animate-float-rot  { animation: float-rot  5s ease-in-out infinite; }
.animate-float-rot2 { animation: float-rot2 6s ease-in-out infinite; }
.animate-float-slow { animation: float      7s ease-in-out infinite; }

/* ── Pulse Glow (botão primário) ── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(130, 10, 209, 0.35); }
  50%       { box-shadow: 0 4px 50px rgba(130, 10, 209, 0.70); }
}
.btn-pulse { animation: pulse-glow 2.4s ease-in-out infinite; }

/* ── Shimmer (botão com brilho animado) ── */
@keyframes shimmer-btn {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.btn-shimmer {
  background: linear-gradient(
    110deg,
    #820ad1 20%,
    #c270ff 48%,
    #820ad1 65%
  );
  background-size: 300% 100%;
  animation: shimmer-btn 3.5s linear infinite;
}

/* ── Blob / Morph ── */
@keyframes blob-morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25%       { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50%       { border-radius: 50% 50% 30% 70% / 40% 50% 60% 50%; }
  75%       { border-radius: 70% 30% 50% 50% / 60% 40% 60% 40%; }
}
.blob { animation: blob-morph 10s ease-in-out infinite; }

/* ── Gradient animado ── */
@keyframes grad-shift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}
.animate-grad { background-size: 200% 200%; animation: grad-shift 8s ease infinite; }

/* ── Mobile Menu ── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
}
#mobile-menu.open { max-height: 520px; opacity: 1; }

/* ── Active nav link ── */
header nav a.active,
#mobile-menu a.active { color: #820ad1 !important; font-weight: 700 !important; }

/* ── 3D Card Tilt ── */
.card-3d { transition: transform 0.25s ease; transform-style: preserve-3d; }

/* ── Credit card hover ── */
.credit-card-hover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.credit-card-hover:hover {
  transform: translateY(-10px) rotate(-4deg) scale(1.03);
  box-shadow: 0 32px 64px rgba(130,10,209,0.4);
}

/* ── Gradient text ── */
.text-gradient-purple {
  background: linear-gradient(135deg, #c270ff, #820ad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-vivid {
  background: linear-gradient(135deg, #ff40ff, #820ad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Dot grid pattern ── */
.bg-dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(130, 10, 209, 0.12) 1px, transparent 0);
  background-size: 28px 28px;
}

/* ── Quote card ── */
.quote-card {
  position: relative;
}
.quote-card::before {
  content: '"';
  position: absolute;
  top: -8px; left: 20px;
  font-size: 90px;
  color: rgba(130, 10, 209, 0.12);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

/* ── Stat number ── */
.stat-num { font-variant-numeric: tabular-nums; }

/* ── FAQ Accordion ── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.3s ease; }

/* ── Tag badge ── */
.nu-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(130, 10, 209, 0.10);
  color: #820ad1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(130, 10, 209, 0.2);
}
.dark .nu-tag {
  background: rgba(130, 10, 209, 0.15);
  color: #c084fc;
  border-color: rgba(130, 10, 209, 0.3);
}

/* ── Scroll indicator pulse ── */
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}
.bounce-down { animation: bounce-down 1.8s ease-in-out infinite; }

/* ── Ticker/marquee ── */
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-inner { animation: ticker 25s linear infinite; }
.ticker-inner:hover { animation-play-state: paused; }
