/* =====================================================
   1. CONFIGURAÇÕES GERAIS (ROOT & RESET)
===================================================== */
:root {
  /* Paleta de Cores - Cyber Security Theme */
  --bg-dark: #020617;       /* Fundo Principal (Deep Navy) */
  --bg-card: #0f172a;       /* Fundo de Cartões Sólidos */
  --bg-glass: rgba(15, 23, 42, 0.6); /* Efeito Vidro */
  
  --primary: #38bdf8;       /* Ciano Tech (Ação Principal) */
  --primary-glow: rgba(56, 189, 248, 0.5);
  
  --secondary: #3b82f6;     /* Azul Royal (Links/Secundário) */
  --accent: #22d3ee;        /* Detalhes Brilhantes */
  
  --text-main: #f8fafc;     /* Branco Gelo */
  --text-body: #94a3b8;     /* Cinza Azulado (Leitura) */
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(56, 189, 248, 0.3);

  /* Fontes */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Espaçamento e Bordas */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  
  --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Container Centralizado */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   2. NAVBAR (MENU) - EFEITO VIDRO
===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: 80px;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.brand {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-symbol {
  color: var(--primary);
  font-size: 1.8rem;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-item {
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-item:hover {
  color: var(--primary);
}

/* Botão do Menu */
.btn-nav {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.btn-nav:hover {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 28px;
  cursor: pointer;
}

/* =====================================================
   3. HERO SECTION (CAPA)
===================================================== */
.hero-section {
  position: relative;
  padding: 160px 0 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Efeito de Fundo */
.hero-bg-effect {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.12) 0%, rgba(2, 6, 23, 0) 60%);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Tipografia Hero */
.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.display-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(90deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-body);
  margin-bottom: 40px;
  max-width: 540px;
}

.trust-pills {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-body);
}

.trust-pills i {
  color: var(--primary);
  margin-right: 6px;
}

/* Card de Busca (Glassmorphism) */
.hero-search-card {
  position: relative;
}

.card-glass {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-header h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header p {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* Input de Busca */
.search-input-group {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 6px;
  transition: 0.3s;
}

.search-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.search-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.btn-search {
  background: var(--primary);
  border: none;
  width: 48px;
  border-radius: 8px;
  color: var(--bg-dark);
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-search:hover {
  background: var(--accent);
  transform: scale(1.05);
}

.search-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
}

/* =====================================================
   4. EXPERTISE (GRID CARDS)
===================================================== */
.section-expertise {
  padding: 100px 0;
  background: var(--bg-dark);
}

.section-header {
  margin-bottom: 60px;
}

.overline {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: 2.5rem;
}

.grid-expertise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 32px;
  border-radius: var(--radius-md);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.tech-card h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.tech-card p {
  color: var(--text-body);
  font-size: 0.95rem;
}

/* =====================================================
   5. EMERGENCY BANNER
===================================================== */
.emergency-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 60px 0;
}

.emergency-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.emergency-text h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.emergency-text p {
  color: var(--text-body);
}

.btn-outline-white {
  padding: 14px 30px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--bg-dark);
}

/* =====================================================
   6. INSIGHTS (BLOG)
===================================================== */
.section-insights {
  padding: 100px 0;
}

.grid-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.insight-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 30px;
  border-radius: var(--radius-md);
  transition: 0.3s;
}

.insight-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 12px;
}

.insight-card h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.insight-card p {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.center-btn {
  text-align: center;
  margin-top: 50px;
}

.btn-secondary {
  padding: 12px 30px;
  color: var(--text-body);
  border: 1px solid var(--border-light);
  border-radius: 50px;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* =====================================================
   7. TESTIMONIALS & FAQ
===================================================== */
.section-testimonials {
  padding: 100px 0;
  background: #050a14;
}

.section-title-center {
  text-align: center;
  font-family: var(--font-title);
  font-size: 2.2rem;
  margin-bottom: 60px;
}

.grid-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-item {
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.testimonial-item.featured {
  border-color: rgba(56, 189, 248, 0.3);
  background: linear-gradient(180deg, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.8) 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.quote-icon {
  font-size: 3rem;
  color: rgba(255,255,255,0.1);
  line-height: 1;
  margin-bottom: -10px;
}

.testimonial-item p {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 24px;
  font-style: italic;
}

.author strong { display: block; color: var(--primary); }
.author span { font-size: 0.85rem; color: var(--text-body); }

/* FAQ */
.section-faq {
  padding: 100px 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.faq-intro h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.faq-intro p { color: var(--text-body); }

.faq-item {
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

details { padding: 16px 0; cursor: pointer; }
summary { font-weight: 600; list-style: none; font-size: 1.1rem; }
details[open] summary { color: var(--primary); margin-bottom: 10px; }
.faq-content { color: var(--text-body); font-size: 0.95rem; padding-bottom: 10px; }

/* =====================================================
   8. FOOTER
===================================================== */
.main-footer {
  background: #000;
  padding: 80px 0 30px;
  border-top: 1px solid var(--border-light);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand h4 { color: #fff; margin-bottom: 10px; font-size: 1.2rem; }
.footer-brand p { color: var(--text-body); font-size: 0.9rem; }

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-links h5 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-links ul li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-body);
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
}

/* =====================================================
   9. MODAIS & FLUXOS
===================================================== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(8px);
  z-index: 3000; /* Z-INDEX AUMENTADO PARA COBRIR TUDO */
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
}

.modal-card {
  background: #0f172a;
  border: 1px solid var(--border-light);
  padding: 40px;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 480px;
  position: relative;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: translateY(20px);
  animation: slideUp 0.4s forwards ease;
}

@keyframes slideUp {
  to { transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-body);
  font-size: 1.5rem;
  cursor: pointer;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  margin: 0 auto 12px;
  box-shadow: 0 0 10px #22c55e;
}

.modal-card h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.modal-body p, .modal-card p {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* Botões do Modal */
.btn-primary {
  background: var(--primary);
  color: var(--bg-dark);
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  background: var(--accent);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.full-width { width: 100%; }

.modal-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.check-list {
  text-align: left;
  margin-bottom: 24px;
  background: rgba(0,0,0,0.2);
  padding: 16px;
  border-radius: 8px;
}

.check-list li {
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 0.9rem;
}

.check-list i { color: #22c55e; margin-right: 8px; }

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 1500;
  display: flex;
  justify-content: center;
  pointer-events: none; /* Deixa clicar atrás se o banner for transparente */
}

.cookie-content {
  pointer-events: auto; /* Reabilita o clique no botão */
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-light);
  padding: 16px 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  max-width: 600px;
}

.cookie-content p { font-size: 0.85rem; color: #fff; margin: 0; }
.btn-small {
  background: var(--primary);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--bg-dark);
}

/* =====================================================
   10. RESPONSIVIDADE (MOBILE)
===================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  
  .hero-description { margin: 0 auto 40px; }
  .trust-pills { justify-content: center; }
  .display-title { font-size: 2.5rem; }
  
  .faq-layout { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 40px 20px;
    border-bottom: 1px solid var(--border-light);
    display: none;
  }

  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
  
  .display-title { font-size: 2rem; }
  
  .modal-actions { flex-direction: column; }
  
  .cookie-content {
    flex-direction: column;
    border-radius: 12px;
    text-align: center;
    width: 100%;
  }
  
  .btn-search { width: 100%; margin-top: 8px; }
  .search-input-group { flex-direction: column; padding: 10px; }
}

/* =====================================================
   11. WIDGET WHATSAPP (FIXO NOVO)
===================================================== */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 10px;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
  font-size: 32px;
  color: #fff;
}

.notification-dot {
  position: absolute;
  top: 0;
  right: 0;
  background: #ff4757;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-dark);
}

/* Balão de Texto */
.whatsapp-bubble {
  background: #fff;
  color: #0f172a;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  margin-right: 10px;
  
  /* Lógica de aparecer/sumir */
  opacity: 0;
  visibility: hidden; /* Garante que não atrapalhe cliques quando sumir */
  transform: translateY(10px);
  transition: all 0.5s ease;
  
  /* Link Fixes */
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.whatsapp-bubble.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Seta do balão */
.whatsapp-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
}

.close-bubble {
  position: absolute;
  top: -8px;
  left: -8px;
  background: rgba(0,0,0,0.1);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  color: #666;
}

/* Ajuste Mobile */
@media (max-width: 768px) {
  .whatsapp-widget { bottom: 20px; right: 20px; }
  .whatsapp-btn { width: 50px; height: 50px; }
  .whatsapp-btn i { font-size: 26px; }
}