*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #E24B4A;
  --red-dark: #A32D2D;
  --red-pale: #FCEBEB;
  --amber: #EF9F27;
  --amber-dark: #633806;
  --green: #1D9E75;
  --green-pale: #E1F5EE;
  --bg: #0E0D0C;
  --bg2: #181714;
  --bg3: #211F1C;
  --border: rgba(255,255,255,0.07);
  --text: #F0EDE6;
  --muted: #8A8680;
  --accent: #E24B4A;
}

/* Esta linha é a responsável por fazer a animação fluida de descida para o form */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; 
  align-items: center; 
  justify-content: space-between; /* Volta a empurrar a logo para a esquerda e o botão para a direita */
  padding: 1.25rem 4rem;
  background: rgba(14,13,12,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; }
.logo img { height: 60px; width: auto; object-fit: contain; }

.nav-cta {
  background: var(--red); color: #fff; border: none; border-radius: 6px;
  padding: 0.6rem 1.4rem; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; text-decoration: none; transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--red-dark); }

/* =========================================
   HERO (Textos e Botões Centralizados)
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; 
  justify-content: center;
  align-items: center; /* Centraliza todo o bloco no meio da tela */
  text-align: center;  /* Centraliza o texto dentro do bloco */
  padding: 8rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(226,75,74,0.08) 0%, transparent 70%); /* Ajustei o brilho de fundo para o centro também */
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(226,75,74,0.12); border: 1px solid rgba(226,75,74,0.3);
  border-radius: 100px; padding: 0.35rem 1rem; font-size: 0.78rem; font-weight: 600;
  color: #F09595; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 2rem; width: fit-content; position: relative; z-index: 1;
}
.hero-tag::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); display: block;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800; 
  line-height: 1.15; 
  max-width: 800px;  
  position: relative; z-index: 1;
  margin: 0 auto 1.5rem auto; /* Mantém a caixa de texto centralizada */
  letter-spacing: -0.03em;
}
.hero h1 .highlight {
  color: var(--red);
  position: relative;
  display: inline-block; 
}
.hero h1 .highlight::after {
  content: '';
  position: absolute; bottom: 4px; left: 0; right: 0; height: 5px;
  background: var(--red); opacity: 0.3; border-radius: 2px;
}

.hero-sub {
  font-size: 1.1rem; color: #B8B4AE; 
  max-width: 580px; 
  position: relative; z-index: 1; 
  margin: 0 auto 2.5rem auto; /* Mantém a caixa de texto centralizada */
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions { 
  display: flex; gap: 1rem; align-items: center; 
  justify-content: center; /* Centraliza os botões um ao lado do outro */
  flex-wrap: wrap; position: relative; z-index: 1; 
}
.btn-primary {
  background: var(--red); color: #fff; border: none; border-radius: 8px;
  padding: 0.9rem 2rem; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1rem;
  cursor: pointer; text-decoration: none; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.9rem 1.6rem; font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 1rem;
  cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.hero-stat-row {
  display: flex; gap: 2rem; margin-top: 4rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
  position: relative; z-index: 1; flex-wrap: wrap;
}
.hero-stat strong { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--red); display: block; }
.hero-stat span { font-size: 0.82rem; color: var(--muted); }

/* ALERT BAND */
.alert-band {
  background: rgba(226,75,74,0.08); border-top: 1px solid rgba(226,75,74,0.2);
  border-bottom: 1px solid rgba(226,75,74,0.2);
  padding: 1.25rem 4rem;
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.92rem; color: #F09595;
}
.alert-band svg { flex-shrink: 0; width: 20px; height: 20px; }
.alert-band strong { color: var(--red); }

/* SECTION SHARED */
section { padding: 6rem 4rem; }
.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1rem;
}
.section-title {
  font-family: 'Montserrat', sans-serif; font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; line-height: 1.15; max-width: 600px; margin-bottom: 1.2rem;
}
.section-sub { font-size: 1rem; color: var(--muted); max-width: 500px; line-height: 1.7; }

/* RISKS */
.risks { background: var(--bg2); }
.risks-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px; margin-top: 3.5rem;
  border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden;
}
.risk-card {
  background: var(--bg3); padding: 2.2rem 2rem;
  position: relative; overflow: hidden;
  transition: background 0.2s;
}
.risk-card:hover { background: #2A2722; }
.risk-num {
  font-family: 'Montserrat', sans-serif; font-size: 3.5rem; font-weight: 800;
  color: rgba(226,75,74,0.15); line-height: 1;
  position: absolute; top: 1.2rem; right: 1.6rem;
}
.risk-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(226,75,74,0.1); border: 1px solid rgba(226,75,74,0.2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.4rem;
}
.risk-icon svg { width: 20px; height: 20px; color: var(--red); }
.risk-card h3 {
  font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700;
  margin-bottom: 0.7rem; color: var(--text);
}
.risk-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* REALITY CHECK */
.reality { background: var(--bg); }
.reality-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.reality-visual {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 16px;
  padding: 2rem; overflow: hidden;
}
.timeline-item {
  display: flex; gap: 1rem; padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.tl-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px;
}
.tl-year { font-family: 'Montserrat', sans-serif; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-bottom: 0.3rem; }
.tl-text { font-size: 0.88rem; color: var(--text); line-height: 1.5; }
.tl-badge {
  display: inline-block; font-size: 0.72rem; padding: 0.2rem 0.6rem;
  border-radius: 4px; margin-top: 0.4rem; font-weight: 500;
}

/* SOLUTION */
.solution { background: var(--bg2); }
.solution-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.sol-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 2rem; transition: border-color 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}
.sol-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), transparent); opacity: 0;
  transition: opacity 0.3s;
}
.sol-card:hover { border-color: rgba(29, 158, 117, 0.3); transform: translateY(-2px); }
.sol-card:hover::before { opacity: 1; }
.sol-num {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(29,158,117,0.1); border: 1px solid rgba(29,158,117,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-size: 0.82rem; font-weight: 700; color: #5DCAA5;
  margin-bottom: 1.2rem;
}
.sol-card h3 { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.sol-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* CTA SECTION */
.cta-section {
  background: var(--bg);
  text-align: center; padding: 7rem 4rem;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(226,75,74,0.1) 0%, transparent 70%);
}
.cta-section h2 {
  font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; max-width: 700px; margin: 0 auto 1.5rem;
  position: relative; z-index: 1; line-height: 1.1;
}
.cta-section p {
  color: var(--muted); max-width: 480px; margin: 0 auto 2.5rem;
  font-size: 1rem; line-height: 1.7; position: relative; z-index: 1;
}
.cta-section .actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; }

/* FORM */
.form-section { background: var(--bg2); }
.form-inner {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start;
}
.form-box {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem;
}
.form-box h3 { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.form-box p { font-size: 0.88rem; color: var(--muted); margin-bottom: 2rem; }
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.4rem; font-weight: 500; }
.form-row input, .form-row select {
  width: 100%; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.75rem 1rem; color: var(--text); font-family: 'Montserrat', sans-serif; font-size: 0.92rem;
  outline: none; transition: border-color 0.2s;
}
.form-row input:focus, .form-row select:focus { border-color: rgba(226,75,74,0.5); }
.form-row select option { background: var(--bg2); }
.form-submit {
  width: 100%; background: var(--red); color: #fff; border: none; border-radius: 8px;
  padding: 0.9rem; font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 1rem;
  cursor: pointer; margin-top: 0.5rem; transition: background 0.2s;
}
.form-submit:hover { background: var(--red-dark); }
.form-submit:disabled { background: var(--muted); cursor: not-allowed; }
.form-trust { display: flex; align-items: center; gap: 6px; margin-top: 1rem; font-size: 0.78rem; color: var(--muted); }

/* TESTIMONIALS */
.quotes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 3rem; }
.quote-card {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 12px; padding: 1.6rem;
}
.quote-text { font-size: 0.9rem; color: #B8B4AE; line-height: 1.65; margin-bottom: 1.2rem; font-style: italic; }
.quote-author { display: flex; align-items: center; gap: 10px; }
.quote-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(226,75,74,0.15); display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-size: 0.75rem; font-weight: 700; color: var(--red);
}
.qa-name { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.qa-role { font-size: 0.78rem; color: var(--muted); }

/* FOOTER */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 2rem 4rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: gap;
  font-size: 0.82rem; color: var(--muted);
}

@media(max-width: 768px) {
  /* Cabeçalho lado a lado no mobile */
  nav { 
    padding: 1rem 1.5rem; 
    flex-direction: row; /* Garante que fiquem na mesma linha */
    justify-content: space-between; /* Um em cada ponta */
    gap: 10px;
  }
  
  /* Reduz levemente a logo e o botão para caberem na tela do celular */
  .logo img { height: 50px; }
  .nav-cta {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem; 
  }
  
  /* Ajuste no topo porque o cabeçalho mudou de tamanho */
  .hero { padding: 8rem 1.5rem 3rem; }
  
  /* Ajustes gerais de respiro das seções */
  section { padding: 4rem 1.5rem; }
  .reality-inner, .form-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  
  /* Faixa de alerta centralizada */
  .alert-band { 
    padding: 1rem 1.5rem; 
    flex-direction: column; 
    text-align: center; 
  }
  
  /* Rodapé centralizado */
  footer { 
    padding: 2rem 1.5rem; 
    flex-direction: column; 
    gap: 1.5rem; 
    text-align: center; 
  }
  
  /* Botões da Hero ocupando 100% da tela no mobile */
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-ghost {
    width: 100%;
    justify-content: center;
  }
  
  /* Ajuste do título no mobile */
  .hero h1 {
    font-size: 2.1rem; 
  }
}

/* =========================================
   ANIMAÇÕES E ESTADOS DO FORMULÁRIO
   ========================================= */

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.message-box {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  animation: slideUp 0.4s ease-out forwards;
}

.message-box.success {
  background: rgba(29, 158, 117, 0.1);
  border: 1px solid rgba(29, 158, 117, 0.3);
  color: #5DCAA5;
}

.message-box.error {
  background: rgba(226, 75, 74, 0.1);
  border: 1px solid rgba(226, 75, 74, 0.3);
  color: #F09595;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-submit.success-state {
  background: var(--green) !important;
  pointer-events: none;
}

.form-submit.error-state {
  background: var(--red-dark) !important;
}