/* custom.css — estilos complementares ao TailwindCSS CDN */

html {
  scroll-padding-top: 4rem;
}

body {
  overflow-x: hidden;
}

/* Seta customizada para <select> com appearance-none */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='rgba(255,255,255,0.4)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1.125rem;
  padding-right: 2.5rem;
}

/* ============================================================
   ANIMAÇÕES DE ENTRADA — Intersection Observer (JS adiciona o attr)
   ============================================================ */
[data-animate] {
  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);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   LOGO — gradiente roxo → cyan
   ============================================================ */
.logo-gradient {
  background: linear-gradient(135deg, #a09aee 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   HERO — título com gradiente animado
   ============================================================ */
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-headline {
  background: linear-gradient(270deg, #ffffff 0%, #b8b2f0 30%, #06B6D4 60%, #ffffff 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 7s ease infinite;
}

/* ============================================================
   HERO — partículas (canvas)
   ============================================================ */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* ============================================================
   MOCKUP — flutuação + glow pulsante
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0px);  }
  50%       { transform: translateY(-14px); }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 30px rgba(127, 119, 221, 0.25),
                0 0 60px rgba(6, 182, 212, 0.08);
  }
  50% {
    box-shadow: 0 0 55px rgba(127, 119, 221, 0.55),
                0 0 110px rgba(6, 182, 212, 0.2);
  }
}

.mockup-float {
  animation: float 4.5s ease-in-out infinite;
}

.mockup-glow {
  animation: pulse-glow 3.5s ease-in-out infinite;
}

/* ============================================================
   GLASSMORPHISM — cards comuns
   ============================================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease !important;
}

.glass-card:hover {
  border-color: rgba(127, 119, 221, 0.4) !important;
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(127, 119, 221, 0.15),
              0 0 30px rgba(127, 119, 221, 0.1);
}

/* Card Growth em destaque */
.glass-card-featured {
  background: rgba(127, 119, 221, 0.1) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 2px solid rgba(127, 119, 221, 0.55) !important;
  box-shadow: 0 0 40px rgba(127, 119, 221, 0.18);
  transition: box-shadow 0.35s ease, transform 0.35s ease !important;
}

.glass-card-featured:hover {
  box-shadow: 0 0 70px rgba(127, 119, 221, 0.35),
              0 24px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(-5px);
}

/* ============================================================
   BOTÕES PRIMÁRIOS — glow no hover
   ============================================================ */
.btn-glow {
  transition: box-shadow 0.3s ease, transform 0.2s ease !important;
}

.btn-glow:hover {
  box-shadow: 0 0 35px rgba(127, 119, 221, 0.55),
              0 8px 24px rgba(127, 119, 221, 0.3) !important;
  transform: translateY(-2px);
}

.btn-glow:active {
  transform: translateY(0);
}

/* ============================================================
   ÍCONES DE FEATURE — glow no hover via group
   ============================================================ */
.group:hover .icon-glow {
  box-shadow: 0 0 20px rgba(127, 119, 221, 0.4);
  background: rgba(127, 119, 221, 0.2) !important;
}

/* ============================================================
   SEÇÕES — radial glow de fundo (profundidade)
   ============================================================ */
#como-funciona,
#funcionalidades {
  position: relative;
}

#como-funciona::before,
#funcionalidades::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(127, 119, 221, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

#solucao,
#planos,
#contato {
  position: relative;
}

#solucao::before,
#planos::before,
#contato::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================================
   BARRA DE PROGRESSO DE SCROLL
   ============================================================ */
#scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #7F77DD 0%, #06B6D4 100%);
  pointer-events: none;
  z-index: 60;
}

/* ============================================================
   NAV — link ativo (seção visível)
   ============================================================ */
.nav-active {
  color: white !important;
  -webkit-text-fill-color: white !important;
  position: relative;
}

.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #7F77DD, #06B6D4);
}

/* ============================================================
   NÚMEROS DOS PASSOS — anel animado
   ============================================================ */
@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(127, 119, 221, 0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(127, 119, 221, 0); }
}

.step-number {
  animation: ring-pulse 2.5s ease-in-out infinite;
}
