/* =========================================================
   ProspectaBR - Global Stylesheet
   ========================================================= */

:root {
  scroll-behavior: smooth;
}

/* ===== Base ===== */
html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color: #0f172a;
  color: #f8fafc;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ===== Containers auxiliares ===== */
.container-default {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ===== Navbar ===== */
.nav-glass {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* ===== Hero ===== */
.hero {
  min-height: 700px;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
  }
}

.hero-bg {
  position: relative;
  background-color: #0f172a;
  overflow: hidden;
  /* Adiciona um degradê sutil para garantir contraste no rodapé do hero */
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('assets/images/prospectabr.png');
  background-size: cover;
  background-position: center;
  opacity: 0.1; /* 10% de opacidade como solicitado */
  z-index: 0;
  filter: grayscale(20%) brightness(0.8); /* Ajuste para não distrair */
}

.hero-bg > * {
  position: relative;
  z-index: 1;
}

/* ===== Gradiente de texto ===== */
.gradient-text {
  background: linear-gradient(to right, #4ade80, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Cards banco de dados ===== */
.db-card {
  background: rgba(15, 23, 42, 0.9); /* Aumentado de 0.6 para 0.9 para melhor leitura */
  border: 1px solid rgba(51, 65, 85, 0.8);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.db-card:hover {
  border-color: #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
  transform: translateY(-2px);
}

.db-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}

.db-card:hover::after {
  opacity: 1;
}

/* ===== Status online ===== */
.status-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

/* ===== Dot animado ===== */
.dot {
  width: 6px;
  height: 6px;
  background-color: #4ade80;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* Acessibilidade: reduzir animações */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Listas com check ===== */
.check-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.6rem;
  list-style: none;
  font-size: 0.9rem;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 900;
}

/* ===== Planos ===== */
.plan-card {
  background: #ffffff;
  border-radius: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.plan-card-featured {
  background: #0f172a;
  border: 2px solid #22c55e;
  transform: scale(1.05);
}

/* ===== Botões ===== */
.btn-primary {
  background-color: #22c55e;
  color: white;
  font-weight: 700;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background-color: #16a34a;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* ===== Links ===== */
a {
  text-decoration: none;
}

/* ===== Footer ===== */
.footer-dark {
  background: #020617;
  border-top: 1px solid #0f172a;
}

/* ===== Helpers ===== */
.text-muted {
  color: #94a3b8;
}

.border-soft {
  border-color: rgba(255, 255, 255, 0.06);
}
 
/* ===== Tooltip custom com balão ===== */
.tooltip {
  position: relative !important;
  cursor: help !important;
  border-bottom: 2px dotted #22c55e !important;
  display: inline-block;
}

.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: 125%;
  transform: translateX(-50%) translateY(10px);
  background: #1e293b;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  width: 240px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-out;
  z-index: 99999;
  pointer-events: none;
  border: 1px solid #334155;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.tooltip::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 110%;
  transform: translateX(-50%) translateY(10px);
  border-width: 6px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-out;
  z-index: 99999;
}

.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
