:root {
  --primary: #0f172a;
  --secondary: #2563eb;
  --accent-gold: #b45309;
  --accent-green: #15803d;
  --text: #334155;
  --muted: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;

  /* Premium extras */
  --card: #ffffff;
  --card-soft: rgba(15, 23, 42, 0.04);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 10px 22px rgba(2, 6, 23, 0.06);
  --radius: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ========================= */
/* Header & Nav              */
/* ========================= */
.main-nav {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

nav {
  padding: 0.8rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  min-height: 80px;
  /* Alterado de height fixa para min-height para flexibilidade */
}

/* Logo SVG Styles */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  /* Reduzido de 48px para evitar sobreposição */
  width: auto;
  transition: all 0.3s ease;
}

/* New Navigation Links */
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-item {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 0.5rem;
}

.nav-item:hover {
  color: var(--secondary);
}

.btn-cta-header {
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  border: 2px solid var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-cta-header:hover {
  background-color: var(--primary);
  color: var(--white);
}

@media (max-width: 768px) {
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
}


/* Hero Section */
.hero {
  padding: 8rem 5% 10rem;
  max-width: 100%;
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  min-height: 70vh;
  position: relative;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: #cad5e1;
  margin-bottom: 2.5rem;
}

/* Badge Tech & Pulse - High Contrast for Dark Hero */
.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #bfdbfe;
  /* Azul claro legível */
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.badge-tech strong {
  color: #ffffff;
  font-weight: 700;
}

/* Pulse Animation */
.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  /* Laranja vibrante */
  box-shadow: 0 0 0 rgba(245, 158, 11, 0.4);
  animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* Overlap Strategy Container */
.overlap-content {
  margin-top: -7rem;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.tech-link {
  /* Mantendo compatibilidade com classes antigas */
  color: #bfdbfe;
}

.btn-simulador {
  background-color: var(--accent-gold);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 2rem;
  cursor: pointer;
  border: none;
  transition: 0.3s;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-simulador:hover {
  transform: scale(1.05);
  background-color: #d97706;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Formulário */
.hero-form-container {
  flex: 0.8;
  max-width: 420px;
  background: var(--white);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
}

/* Boxes de Oferta - PRODUCTION STYLE (Light/Glass) */
.offer-box {
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  /* Transparente Original */
  backdrop-filter: blur(5px);
  color: #ffffff;
}

.offer-box-guaranteed {
  border-left: 4px solid var(--accent-green);
}

.offer-box-lottery {
  border-left: 4px solid var(--accent-gold);
}

.offer-title {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.text-green {
  color: #4ade80;
}

.text-gold {
  color: #facc15;
}

.offer-text {
  font-size: 1rem;
  color: #f1f5f9;
  font-weight: 500;
}

/* Search Input */
.search-wrapper {
  margin-bottom: 3rem;
  text-align: center;
}

.search-input-group {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
}

.search-input-group input {
  width: 100%;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  font-size: 1.1rem;
  box-shadow: 0 4px 6px -1px rgba(226, 232, 240, 0.5);
}

.search-input-group input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

input,
select {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

input:focus,
select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

button[type="submit"] {
  width: 100%;
  background-color: var(--secondary);
  color: var(--white);
  padding: 1.1rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* FAQ estático */
#faq,
#faq-dinamico {
  padding: 5rem 5%;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.faq-grid {
  max-width: 800px;
  margin: 3rem auto 0;
  display: grid;
  gap: 1.5rem;
}

.faq-item {
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--light);
  border: 1px solid var(--border);
  transition: 0.3s;
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.faq-item h3,
.faq-item h4 {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* FAQ PREMIUM */
.faq-premium {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.faq-premium-card {
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-premium-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.10);
}

.faq-premium-head {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(15, 23, 42, 0.02));
}

.faq-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.18);
  flex: 0 0 auto;
}

.faq-premium-head-body {
  flex: 1;
  min-width: 0;
}

.faq-premium-title {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}

.faq-premium-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-chip {
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.75);
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 6px 10px;
  border-radius: 999px;
}

.faq-chip.primary {
  color: rgba(37, 99, 235, 0.98);
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.22);
}

.faq-premium-body {
  padding: 16px 18px 10px;
}

.faq-preview {
  color: var(--text);
  opacity: 0.92;
  font-size: 0.98rem;
  line-height: 1.75;
  text-align: justify;
  margin-bottom: 10px;
}

.faq-full {
  display: none;
  padding-top: 6px;
  border-top: 1px dashed rgba(148, 163, 184, 0.45);
}

.faq-full.open {
  display: block;
}

/* Filtros */
.faq-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.faq-filter-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: var(--muted);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-filter-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background: #eff6ff;
}

.faq-filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

/* Rich Content */
.faq-rich-paragraph {
  margin: 0 0 1.5rem 0;
  text-align: justify;
  line-height: 1.85;
  color: var(--text);
  hyphens: auto;
  white-space: pre-line;
}

.faq-rich-list,
.faq-rich-olist {
  margin: 0 0 1.2rem 1.5rem;
  padding-left: 1.5rem;
}

.faq-rich-list li {
  margin: 0.35rem 0;
  line-height: 1.8;
}

.faq-full strong {
  color: var(--primary);
  font-weight: 900;
}

.faq-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.75);
}

.faq-btn {
  background: var(--secondary);
  color: var(--white);
  border: none;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.faq-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.faq-link {
  font-weight: 900;
  color: var(--secondary);
  text-decoration: none;
}

.faq-link:hover {
  text-decoration: underline;
}

.faq-note {
  margin-left: auto;
  font-size: 0.85rem;
  color: rgba(100, 116, 139, 0.8);
  font-weight: 800;
}

.no-results {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 0;
  color: var(--muted);
  font-weight: 800;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* Modais */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}

.modal-content {
  background: var(--white);
  margin: 5% auto;
  padding: 3rem;
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  position: relative;
  animation: slideUp 0.4s ease-out;
}

.close-btn {
  position: absolute;
  right: 25px;
  top: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #94a3b8;
}

#res-simulacao {
  display: none;
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  text-align: left;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  nav {
    justify-content: center;
    height: auto;
    padding: 1rem 5%;
  }

  .logo img {
    height: 32px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 4rem 5% 6rem;
    min-height: auto;
  }

  .overlap-content {
    margin-top: -2rem;
    padding: 1.5rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  .hero-content {
    order: 2;
  }

  .hero-form-container {
    order: 1;
    width: 100%;
    max-width: 100%;
  }

  .hero-content .tech-link {
    margin: 0 auto 2rem;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  .faq-actions {
    flex-wrap: wrap;
  }

  .faq-note {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }
}