/* Variáveis CSS para gradientes e cores */

/* Escala tipográfica responsiva para telas grandes (2K/4K) */
html { font-size: 16px; }
html { scroll-behavior: smooth; }
@media (min-width: 1536px) { /* ~2K */
  html { font-size: 19px; }
}
@media (min-width: 1920px) { /* Full HD+ / 2K amplo */
  html { font-size: 20px; }
}
@media (min-width: 2560px) { /* 2.5K/4K inicial */
  html { font-size: 21px; }
}
@media (min-width: 3200px) { /* 4K amplo */
  html { font-size: 23px; }
}

/* Largura do container ampliada para telas grandes */
.container { max-width: 1240px; }
@media (min-width: 1536px) { .container { max-width: 1460px; } }
@media (min-width: 1920px) { .container { max-width: 1620px; } }
@media (min-width: 2560px) { .container { max-width: 1780px; } }
@media (min-width: 3200px) { .container { max-width: 1940px; } }
:root {
  /* Cores principais */
  --primary: 259 94% 66%;      /* Roxo vibrante #6b4fff */
  --accent: 120 100% 50%;     /* Verde neon #00ff8c */
  --secondary: 330 100% 54%;  /* Rosa vibrante #ff147f */
  --header-offset: 88px;
  /* Cores de bordas */
  --border: 0 0% 14.9%;       /* Cinza escuro para bordas */
  --border-primary: 259 94% 66% / 0.3;  /* Roxo com transparência */
  --border-accent: 120 100% 50% / 0.3; /* Verde com transparência */
  --border-secondary: 330 100% 54% / 0.3; /* Rosa com transparência */
}

@media (min-width: 768px) {
  :root { --header-offset: 120px; }
}

/* Evitar que âncoras fiquem ocultas sob o header fixo */
[id] { scroll-margin-top: var(--header-offset); }

/* Estilos base para garantir visualização correta */
html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Garantir que o fundo escuro funcione */
body {
  background-color: #0a0a0a !important;
  color: #e2e2e2 !important;
}

.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Estilos para o background cósmico */
#cosmic-background {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: -10 !important;
  pointer-events: none !important;
}

/* Estilos das estrelas */
.star {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.65);
  animation: twinkle ease-in-out infinite;
}

.star-bright {
  position: absolute;
  border-radius: 50%;
  animation: twinkle-bright ease-in-out infinite;
  box-shadow: 0 0 10px 2px currentColor;
}

/* Classes para gradientes que não estão funcionando */
.text-gradient-primary {
  background: linear-gradient(to right, #6b4fff, #00ff8c, #ff147f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-secondary {
  background: linear-gradient(to right, #ff147f, #6b4fff, #00ff8c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-gradient-primary {
  background: #6b4fff !important;
}

/* Classes de background gradiente personalizadas */
.bg-gradient-card {
  background: linear-gradient(to bottom right, rgba(30, 30, 40, 0.8), rgba(15, 15, 25, 0.9), rgba(30, 30, 40, 0.8)) !important;
}

.bg-gradient-demo-overlay {
  background: linear-gradient(to right, rgba(107, 79, 255, 0.1), rgba(0, 251, 251, 0.1), rgba(255, 0, 123, 0.1)) !important;
}

/* Classes de sombra glow personalizadas */
.shadow-glow-primary {
  box-shadow: none !important;
}

.shadow-glow {
  box-shadow: none !important;
}

/* Remoção global de sombras de destaque (box-shadow e drop-shadow) */
[class*="shadow-"],
.shadow {
  box-shadow: none !important;
}
[class*="drop-shadow"] {
  filter: none !important;
}

/* Classes de cores dos indicadores - Corrigidas */
.bg-accent {
  background-color: #ff147f !important;  /* Rosa vibrante */
}

.bg-secondary {
  background-color: #00ff8c !important;  /* Verde neon */
}

.bg-primary {
  background-color: #6b4fff !important;  /* Roxo vibrante */
}

/* Correção de cores para consistência visual */
:root {
  /* Garantir que as cores estejam corretas */
  --primary: 259 94% 66%;      /* Roxo vibrante #6b4fff */
  --accent: 330 100% 54%;      /* Rosa vibrante #ff147f */
  --secondary: 120 100% 50%;   /* Verde neon #00ff8c */
}

/* Classes do espectro de áudio */
.demo-bar {
  width: 2px;
  border-radius: 1px;
  transition: height 0.2s ease-out, opacity 0.2s ease-out;
  transform-origin: bottom;
  min-height: 2px;
  margin: 0 1px;
}

.border-primary-30 {
  border-color: rgba(107, 79, 255, 0.3) !important;
}

.border-accent-30 {
  border-color: rgba(0, 255, 140, 0.3) !important;
}

.border-secondary-30 {
  border-color: rgba(255, 20, 147, 0.3) !important;
}

/* Classes de transição para cards */
.card-tilt {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.card-advantage {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.testimonial-card {
  transition: transform 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out;
}

.pricing-card {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

/* Fundo dos cards: preto 100% com 70% de transparência */
.card-tilt,
.card-advantage,
.testimonial-card,
.pricing-card {
  background-color: rgba(0, 0, 0, 0.7) !important;
  position: relative;
  overflow: hidden;
}

/* Requisitos: card principal com fundo preto 70% */
#requisitos article {
  background-color: rgba(0, 0, 0, 0.7) !important;
}

/* DarkVoice Console (demo-interactive): fundo preto 70% */
#demo-interactive {
  background: rgba(0, 0, 0, 0.7) !important;
}

/* Efeito de brilho extra nos cards ao hover */
.card-tilt:hover {
  box-shadow: none !important;
  border-color: rgba(107, 79, 255, 0.6);
}

.card-advantage:hover {
  box-shadow: none !important;
  border-color: rgba(0, 255, 140, 0.5);
}

.testimonial-card:hover {
  box-shadow: none !important;
  border-color: rgba(255, 20, 147, 0.4);
}

/* Glare para efeito 3D */
.tilt-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 120ms ease-out;
}

/* Navegação em estilo "pílula" */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.6);
  flex-wrap: wrap;
}
.nav-pill-link {
  padding: 0.45rem 0.65rem;
  border-radius: 9999px;
  color: rgba(255,255,255,0.85);
  transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}
.nav-pill-link:hover {
  color: white;
  background: rgba(255,255,255,0.06);
}

@media (max-width: 1024px) {
  .nav-pill {
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
  }
  .nav-pill-link {
    padding: 0.4rem 0.55rem;
    font-size: 0.9rem;
  }
}

/* Carousel horizontal (depoimentos) */
.carousel-track {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  mask-image: linear-gradient(to right, transparent 0, black 5%, black 95%, transparent 100%);
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-btn {
  z-index: 1;
}

/* Botão dinâmico com gradiente animado */
.btn-dynamic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, #6b4fff, #00e0ff, #ff147f);
  background-size: 200% 100%;
  color: #0b0b0f;
}
.btn-dynamic:hover {
  background-position: 100% 0;
}
.btn-dynamic:focus-visible {
  outline: 2px solid rgba(107,79,255,0.8);
  outline-offset: 2px;
}

/* Animações de entrada suaves */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(107, 79, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(107, 79, 255, 0.6);
  }
}

/* Aplicar animação de entrada aos cards */
.card-tilt,
.card-advantage,
.testimonial-card,
.pricing-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Efeito de pulse no pricing card */
.pricing-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Delay escalonado para animações */
.card-tilt:nth-child(1) { animation-delay: 0.1s; }
.card-tilt:nth-child(2) { animation-delay: 0.2s; }
.card-tilt:nth-child(3) { animation-delay: 0.3s; }

.card-advantage:nth-child(1) { animation-delay: 0.4s; }
.card-advantage:nth-child(2) { animation-delay: 0.5s; }
.card-advantage:nth-child(3) { animation-delay: 0.6s; }

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }
.testimonial-card:nth-child(5) { animation-delay: 0.5s; }
.testimonial-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

@keyframes twinkle-bright {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}