/* --- VARIÁVEIS DE COR E FONTE --- */
:root {
  --bg-main: #060608;
  --bg-card: rgba(20, 20, 25, 0.7);
  --primary-blue: #4f46e5;
  --primary-blue-hover: #4338ca;
  --glow-blue: rgba(79, 70, 229, 0.4);
  --text-white: #ffffff;
  --text-gray: #a1a1aa;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --red-alert: #ef4444;

  --font-main: "Inter", sans-serif;
}

/* --- RESET BÁSICO --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-white);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- UTILITÁRIOS --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.mt-4 {
  margin-top: 3.5rem;
  margin-bottom: 48px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* --- BOTÕES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 16px;
}

.btn-primary-final {
  background-color: #121212;
  color: var(--text-white);
  border: none;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--text-white);
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-blue-hover);
  box-shadow: 0 0 20px var(--glow-blue);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-white);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-white);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* --- NAVEGAÇÃO (PÍLULA) --- */
header {
  padding: 30px 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo i {
  font-size: 2.2rem;
  color: var(--text-white);
}

.nav-pill {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 10px 24px;
  display: flex;
  gap: 24px;
  backdrop-filter: blur(10px);
}

.nav-pill a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  transition: color 0.3s;
}

.nav-pill a:hover {
  color: var(--text-white);
}

.nav-btn {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 180px 0 100px;
  text-align: center;
  background: radial-gradient(
    ellipse 1400px 420px at 50% 100%,
    #34376f 0%,
    var(--bg-main) 75%
  );
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #242430;
  color: var(--text-gray);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 25px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #f97316;
  border-radius: 50%;
  box-shadow: 0 0 10px #b3b3b3;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.highlight-blue {
  color: var(--primary-blue);
  font-style: italic;
}

.hero-subtitle {
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* --- DESIGN SECTION (NOVO DESIGN IGUAL À IMAGEM) --- */

/* Wrapper com brilho roxo concentrado bem na costura com o hero, que funde rápido para o preto (fundo preto nas laterais e embaixo) */
.design-section-wrapper {
  background: radial-gradient(
    ellipse 1400px 420px at 50% 0%,
    #34376f 0%,
    var(--bg-main) 75%
  );
  padding-top: 40px;
}

/* CARDS DO TOPO (OVERLAP) */
.features-overlap {
  position: relative;
  z-index: 2;
  margin-bottom: 60px;
}

/* Alinha os cards pela base para o card do meio "flutuar" mais alto, como no esboço */
/* 1. TIRAR O GAP DA GRADE (Esta é a chave para a sobreposição funcionar) */
.features-overlap .grid-3 {
  align-items: end;
  gap: 0;
}

.card-feature {
  background: linear-gradient(180deg, #202130 0%, #101010 100%);
  border: 1px solid #262833;
  border-radius: 40px;
  padding: 64px 16px 32px;
  transition:
    transform 0.3s,
    border-color 0.3s,
    z-index 0s; /* Z-index instantâneo no hover */
}

/* 2. CARD DA ESQUERDA */
.card-feature:nth-child(1) {
  transform: rotate(-6deg);
  position: relative;
  z-index: 1;
}
.card-feature:nth-child(1):hover {
  transform: rotate(0deg) translateY(-10px);
  z-index: 20; /* Vem para frente do central ao passar o mouse */
}

/* 3. CARD DO CENTRO */
.card-feature:nth-child(2) {
  position: relative;
  z-index: 10; /* Garante que fique fixo por cima por padrão */
  margin-bottom: 20px;
  margin-right: 20px;
  margin-left: 20px;
}
.card-feature:nth-child(2):hover {
  transform: translateY(-10px);
}

/* 4. CARD DA DIREITA */
.card-feature:nth-child(3) {
  transform: rotate(6deg);
  position: relative;
  z-index: 1;
}
.card-feature:nth-child(3):hover {
  transform: rotate(0deg) translateY(-10px);
  z-index: 20; /* Vem para frente do central ao passar o mouse */
}
.card-feature i {
  font-size: 48px;
  color: #ffffff;
  margin-bottom: 24px; /* Espaçamento ícone > título de 24px */
  display: inline-block; /* Garante que a margem funcione perfeitamente */
}

.card-feature h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600; /* Semibold */
  font-size: 20px;
  line-height: 1.15; /* 115% */
  color: #ffffff;
  margin-bottom: 8px; /* Espaçamento de título > texto de 8px */
}

.card-feature p {
  font-family: "Montserrat", sans-serif;
  font-weight: 400; /* Regular */
  font-size: 14px;
  line-height: 1.15; /* 115% */
  color: #b7b6b7;
  margin-bottom: 0;
}

/* --- SEÇÃO DE PRODUTO (Grade Bento) --- */
.product-section {
  padding: 20px 0 80px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-span-1 {
  grid-column: span 1;
}
.bento-span-2 {
  grid-column: span 2;
}

/* Card Escuro Bento */
.card-bento-dark {
  background-color: #111115;
  border-radius: 20px;
  padding: 30px;
  transition:
    transform 0.3s,
    border-color 0.3s;
}

.card-bento-dark:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

/* Card Degradê Bento */
.card-bento-gradient {
  background: linear-gradient(180deg, #1f204d 0%, var(--bg-main) 100%);
  padding: 30px;
  border-radius: 20px;
  transition:
    transform 0.3s,
    border-color 0.3s;
}

.card-bento-gradient:hover {
  border-color: rgba(79, 70, 229, 0.4);
  transform: translateY(-5px);
}

/* Tipografia Base dos Cards Bento */
.card-bento-dark i,
.card-bento-gradient i {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--text-white);
  display: inline-block;
}

.card-bento-dark h3,
.card-bento-gradient h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-bento-dark p,
.card-bento-gradient p {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cta-bottom {
  margin-top: 50px;
}

/* --- CARDS BASE E GLASSMORPHISM (Mantido para outras sessões) --- */
.card-glass {
  background: linear-gradient(
    180deg,
    rgba(30, 30, 36, 0.6) 0%,
    rgba(15, 15, 20, 0.8) 100%
  );
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 35px 30px;
  transition:
    transform 0.3s,
    border-color 0.3s;
  backdrop-filter: blur(10px);
  margin-bottom: 40px;
}

.card-glass:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.card-glass i {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--text-white);
}

.card-glass h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card-glass p {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- COMPARAÇÃO E PROCESSO --- */
.comparison h2,
.process h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  margin-top: 24px;
}

.process-note p {
  color: #e6e6e6;
  margin-top: 48px;
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.icon-circle i {
  margin-bottom: 0;
}

.icon-red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red-alert);
}
.icon-blue {
  background: rgba(79, 70, 229, 0.15);
  color: var(--primary-blue);
}

.card-glow {
  background: linear-gradient(
    180deg,
    rgba(30, 30, 36, 0.6) 0%,
    rgba(79, 70, 229, 0.1) 100%
  );
  border-color: rgba(79, 70, 229, 0.4);
}

.feature-list {
  list-style: none;
  margin-top: 20px;
  text-align: left;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--text-gray);
}
.list-red i {
  color: var(--red-alert);
  font-size: 1rem;
  margin: 0;
}
.list-blue i {
  color: #4ade80;
  font-size: 1rem;
  margin: 0;
}

/* --- PROCESSO --- */
.process {
  background-color: var(--primary-blue);
  padding: 80px 0;
}

.process h2 {
  color: var(--text-white);
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.card-step {
  background-color: #111116;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 40px 25px;
  text-align: left;
  transition: transform 0.3s ease;
}

.card-step:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

.step-number {
  font-size: 4.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 20px;
}

.card-step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-white);
}

.card-step p {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.5;
}

/* --- PREÇOS (Atualizado) --- */
.pricing {
  padding: 80px 0 100px;
  position: relative;
  background: radial-gradient(
    ellipse 1200px 600px at 50% 30%,
    #23244d 0%,
    var(--bg-main) 70%
  );
}

.pricing .section-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-top: 10px;
}

.pricing-offer-card {
  max-width: 950px;
  margin: 0 auto;
  margin-top: 48px;
  background-color: #0b0b16;
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: 28px;
  padding: 45px 50px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  box-shadow: 0 0 60px rgba(79, 70, 229, 0.12);
}

.offer-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-gray);
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.offer-old-price {
  color: var(--text-gray);
  text-decoration: line-through;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.offer-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
}

.offer-price-currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-white);
}

.offer-price-value {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1;
}

.offer-price-note-inline {
  font-size: 0.85rem;
  color: var(--text-gray);
}
.offer-price-note-inline strong {
  color: var(--text-white);
}

.offer-description {
  color: var(--text-gray);
  font-size: 0.85rem;
  line-height: 1.5;
}

.pricing-offer-right h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-white);
}

.offer-feature-list {
  list-style: none;
  text-align: left;
}

.offer-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 14px;
  line-height: 1.4;
}

.offer-feature-list i {
  color: #4f46e5;
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Espaçamento Extra */
.mt-6 {
  margin-top: 6rem;
  padding: 8px 16px 8px 16px;
}

.badge-outline {
  display: inline-block;
  border: 1px solid; /* Aplica a borda usando sua variável */
  color: #ffffff;
  border-radius: 50px;
  padding: 8px 16px 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* --- PLANOS MENSAIS (Manutenção) --- */
.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 3.5rem auto 2.5rem;
  text-align: left;
}

.plan-card {
  background-color: #111115;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-5px);
}

.plan-card.featured {
  background: linear-gradient(180deg, #1f204d 0%, var(--bg-main) 100%);
  border: 1px solid rgba(79, 70, 229, 0.4);
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.plan-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-white);
}

.tag-recommended {
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
}

.plan-desc {
  color: var(--text-gray);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 30px;
  min-height: 50px;
}

.plan-price {
  margin-bottom: 30px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-price .currency {
  font-size: 1rem;
  color: var(--text-gray);
}

.plan-price .value {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-white);
}

.plan-price .period {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.plan-features {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 15px;
  line-height: 1.4;
}

.plan-features i.ph-check {
  color: var(--primary-blue);
  margin-top: 2px;
}

.plan-features i.ph-plus {
  color: #6b7280;
  margin-top: 2px;
}

.maintenance-note {
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* Responsividade Preços / Planos */
@media (max-width: 900px) {
  .pricing-offer-card {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .maintenance-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing .section-title {
    font-size: 1.7rem;
  }
}
/* --- FAQ --- */
/* --- FAQ --- */
.faq {
  padding: 80px 0;
  background: radial-gradient(
    ellipse 1400px 420px at 50% 0%,
    #34376f 0%,
    var(--bg-main) 60%
  );
}

.faq-flex {
  display: flex;
  gap: 80px; /* Aumentado o respiro entre colunas */
  align-items: flex-start;
}

.faq-intro {
  flex: 0 0 450px; /* Aumentado para a largura ficar igual à imagem */
  text-align: left;
}

.faq-intro h2 {
  font-size: 2.5rem; /* Letra maior para destacar */
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.02em;
}

.faq-intro p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.faq-accordion {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: linear-gradient(
    180deg,
    #1c1c22 0%,
    #111115 100%
  ); /* Fundo escuro igual à imagem */
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: linear-gradient(180deg, #22222a 0%, #15151a 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-item summary {
  padding: 22px 25px;
  font-weight: 500;
  font-size: 0.95rem;
  font-family: "Montserrat", sans-serif;
  color: #e4e4e7;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary i {
  color: var(--text-gray); /* Setinha cinza ao invés de azul */
  font-size: 1.2rem;
  transition:
    transform 0.3s,
    color 0.3s;
  flex-shrink: 0;
  margin-left: 15px;
}

.faq-item:hover summary i {
  color: #ffffff; /* Setinha fica branca ao passar o mouse */
}

.faq-item[open] summary i {
  transform: rotate(180deg);
  color: var(--text-white);
}

.faq-content {
  padding: 0 25px 22px;
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-content p {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  margin-top: 5px;
}
/* --- CTA FINAL (banner azul) --- */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  background: linear-gradient(180deg, #242c81 0%, #14194b 100%);
  text-align: center;
}
.cta-banner h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 15px;
}
.cta-banner .container > p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  margin: 0 auto 30px;
}
.cta-schedule {
  margin-top: 25px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}
.cta-decor {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.cta-decor::before {
  content: "";
  position: absolute;
  inset: 45px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cta-decor-left {
  left: -180px;
  bottom: -220px;
}
.cta-decor-right {
  right: -180px;
  bottom: -220px;
}

/* --- FOOTER --- */
footer {
  background-color: #030305;
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--text-gray);
  font-size: 0.9rem;
  max-width: 300px;
}
footer h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--text-white);
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  text-align: center;
  color: var(--text-gray);
  font-size: 0.85rem;
}

/* --- COMPLEMENTOS DO JAVASCRIPT --- */

/* Transição do Header Smart */
header {
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    backdrop-filter 0.3s ease;
}
.header-scrolled {
  background-color: rgba(6, 6, 8, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 0; /* Deixa o header mais fininho ao rolar */
}

/* Animações de Scroll (Intersection Observer) */
.js-scroll-hidden {
  opacity: 0;
  transform: translateY(30px) !important; /* Move um pouco pra baixo */
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.js-scroll-visible {
  opacity: 1;
  /* Anula o deslocamento vertical, respeitando rotações se houverem (ex: nos cards sobrepostos) */
  transform: translateY(0) !important;
}

/* Modal de Intenção de Saída (Exit Intent) */
.exit-modal {
  display: none; /* Escondido por padrão */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.exit-modal.show-modal {
  display: flex;
  opacity: 1;
}
.exit-modal-content {
  position: relative;
  max-width: 450px;
  width: 90%;
  text-align: center;
  padding: 50px 40px 40px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.exit-modal.show-modal .exit-modal-content {
  transform: scale(1);
}
.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--text-gray);
  cursor: pointer;
  transition: color 0.3s;
}
.close-modal:hover {
  color: var(--text-white);
}

/* --- BOTÃO VOLTAR AO TOPO --- */
.btn-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-blue);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px var(--glow-blue);
  z-index: 999;

  /* Oculto por padrão */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.btn-back-to-top:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-5px); /* Efeito de flutuar ao passar o mouse */
  box-shadow: 0 6px 20px var(--glow-blue);
}

/* Classe adicionada via JavaScript quando rolar a página */
.btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Responsividade: ajustar tamanho e margem no mobile */
@media (max-width: 768px) {
  .btn-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-pill,
  .nav-btn {
    display: none;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .grid-2,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-offer-card {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    gap: 30px;
  }
  .pricing h2 {
    font-size: 1.6rem;
  }
  .faq-flex {
    flex-direction: column;
    gap: 30px;
  }
  .faq-intro {
    flex: none;
    text-align: center;
  }
  .faq-intro h2 {
    font-size: 1.6rem;
  }
  .cta-banner h2 {
    font-size: 1.6rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand p {
    margin: 15px auto;
  }
}

/* --- CARDS COMPACTOS EM GRADE NO MOBILE (IGUAL AO ESBOÇO) --- */
@media (max-width: 768px) {
  /* Cards do topo (Cuidamos de tudo / Atendimento / Sempre atualizado) */
  .features-overlap .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .features-overlap .card-feature {
    padding: 64px 16px 32px;
    border-radius: 22px;
  }

  .features-overlap .card-feature:nth-child(2) {
    padding-top: 34px;
  }

  .features-overlap .card-feature i {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }

  .features-overlap .card-feature h3 {
    font-size: 0.75rem;
    margin-bottom: 6px;
    line-height: 1.25;
  }

  .features-overlap .card-feature p {
    font-size: 0.62rem;
    line-height: 1.35;
  }

  /* Seção "Nosso Produto" */
  .product-section .section-title {
    font-size: 1.7rem;
  }

  .product-section .section-subtitle {
    font-size: 0.85rem;
  }

  /* Bento grid mantém disposição em grade, só reduz tamanho */
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .bento-span-2 {
    grid-column: span 2;
  }

  .card-bento-dark,
  .card-bento-gradient {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .card-bento-dark i,
  .card-bento-gradient i {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .card-bento-dark h3,
  .card-bento-gradient h3 {
    font-size: 0.72rem;
    margin-bottom: 6px;
    line-height: 1.25;
  }

  .card-bento-dark p,
  .card-bento-gradient p {
    font-size: 0.6rem;
    line-height: 1.35;
  }

  .cta-bottom .btn-large {
    padding: 12px 24px;
    font-size: 0.8rem;
  }
}
