:root {
  --bg: #0b0f19;
  --card-bg: rgba(17, 24, 39, 0.84);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(239, 68, 68, 0.45);
  --accent: #ef4444;
  --accent-hover: #dc2626;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

a {
  color: inherit;
  text-decoration: none;
}

section, .hero {
  scroll-margin-top: 140px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fundo Fixo com corte de 20% */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  right: -10%;
  bottom: -10%;
  background-image: 
    linear-gradient(rgba(11, 15, 25, 0.87), rgba(11, 15, 25, 0.93)), 
    url('imagens/fundo.webp'),
    url('imagens/nomex.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cabeçalho */
header {
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}
.logo {
  display: flex;
  align-items: center;
}
.logo a {
  display: block;
}
.logo-principal {
  height: 85px !important;
  max-height: 85px !important;
  max-width: 320px !important;
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  color: #cbd5e1;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 65px 0 35px;
  text-align: center;
}
.tag {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--accent);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.25;
}
.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 30px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Barra de Números */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  margin: 40px 0 20px;
  text-align: center;
}
.stat-item strong {
  font-size: 1.8rem;
  color: #fff;
  display: block;
  font-weight: 700;
  line-height: 1.1;
}
.stat-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Botões */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  transition: all 0.2s ease;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff !important;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid var(--card-border);
  transition: all 0.2s ease;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

/* Seções */
section { padding: 50px 0; }
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 35px;
  font-size: 0.95rem;
}

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  padding: 26px 22px;
  border-radius: 12px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--card-hover-border);
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #fff;
}
.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Problemas */
.problem-card {
  border-left: 3px solid var(--accent);
}
.problem-tag {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}

/* Contratos */
.contract-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(17, 24, 39, 0.95));
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 14px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 30px 0;
}
.contract-info h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 8px;
}
.contract-info p {
  color: #cbd5e1;
  font-size: 0.95rem;
  max-width: 620px;
}
.contract-list {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.contract-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f1f5f9;
}

/* ==========================================================================
   SUPREMA COM LOGO AMPLIADO PARA 440PX
   ========================================================================== */
.partner-box {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 36px 30px;
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 24px;
}
.partner-box a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.partner-box img {
  width: 440px !important; /* Ampliado para 440px */
  max-width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 8px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}
.partner-box h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #fff;
}

/* Downloads (3 Programas) */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.down-box {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 28px 18px;
  text-align: center;
  color: #fff !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
  overflow: hidden;
}
.down-box:hover {
  border-color: var(--accent);
  background: rgba(23, 32, 51, 0.95);
  transform: translateY(-3px);
}
.down-logo-wrapper {
  height: 76px;
  max-height: 76px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.down-img {
  max-height: 64px !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}
.down-box span {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff !important;
}
.down-badge {
  font-size: 0.74rem;
  color: var(--accent) !important;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(239, 68, 68, 0.1);
  padding: 4px 12px;
  border-radius: 6px;
}

/* ==========================================================================
   CARDS DA EQUIPE COM ÍCONE COMPLETO DO WHATSAPP
   ========================================================================== */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.contact-item {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  padding: 22px 16px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-item:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-2px);
}
.contact-item small {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.72rem;
  display: block;
  letter-spacing: 0.5px;
}
.contact-item strong {
  font-size: 1.15rem;
  display: block;
  color: #fff;
}

/* Botão de WhatsApp */
.btn-zap-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25d366 !important;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-top: 4px;
}
.btn-zap-action svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.btn-zap-action:hover {
  background: #25d366;
  color: #0b0f19 !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transform: translateY(-2px);
}

/* Como Chegar / Mapa */
.map-box {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.map-frame {
  width: 100%;
  height: 270px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: block;
}
.map-info h3 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 700;
}
.map-info p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 18px;
}
.map-info address {
  font-style: normal;
  color: #f1f5f9;
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}
.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff !important;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-maps:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

/* Rodapé */
footer {
  border-top: 1px solid var(--card-border);
  padding: 35px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 40px;
}
.footer-links {
  margin-top: 10px;
  display: flex;
  gap: 16px;
  justify-content: center;
}
.footer-links a {
  color: #cbd5e1;
  font-weight: 500;
}
.footer-links a:hover {
  color: var(--accent);
}

/* Responsividade */
@media (max-width: 992px) {
  .contacts-grid, .stats-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .map-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 16px 0;
    justify-content: center;
  }
  .nav-links {
    display: none;
  }
  .logo-principal {
    height: 60px !important;
    max-height: 60px !important;
    max-width: 230px !important;
  }

  .hero h1 { font-size: 1.85rem; line-height: 1.3; }
  .hero p { font-size: 0.98rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn, .hero-actions .btn-outline { width: 100%; text-align: center; }
  
  .contract-box { flex-direction: column; text-align: center; padding: 22px 18px; }
  .contract-list { justify-content: center; }
  
  .partner-box { flex-direction: column; text-align: center; padding: 24px 18px; }
  .partner-box img { width: 280px !important; margin: 0 auto; }
  
  .downloads-grid { grid-template-columns: 1fr; gap: 14px; }
  .down-box { padding: 18px 10px; }
  .down-logo-wrapper { height: 60px; max-height: 60px; }
  .down-img { max-height: 52px !important; max-width: 140px !important; }

  .contacts-grid, .stats-bar {
    grid-template-columns: 1fr !important;
  }
  .btn-zap-action { width: 100%; padding: 12px; font-size: 1rem; }

  .map-box {
    padding: 18px;
    text-align: center;
  }
  .map-frame {
    height: 220px;
  }
  .btn-maps {
    width: 100%;
    justify-content: center;
  }
}