@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

html, body {
  min-height: 100vh;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f7f5ef;
  color: #0b1b33;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Faixa escura no topo (46.5% da tela) com brilho verde-azulado a direita */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 46.5vh;
  background:
    radial-gradient(ellipse 55% 80% at 75% 15%, rgba(35, 95, 85, 0.35), rgba(35, 95, 85, 0) 65%),
    rgb(11, 27, 51);
  z-index: -1;
}

/* Paginas internas: faixa escura menor */
body.inner::before {
  height: 150px;
}

.hero {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(46.5vh + 195px);
}

/* Card centralizado exatamente sobre a linha divisória (46.5vh) */
.card {
  position: absolute;
  top: 46.5vh;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.14),
    0 4px 14px rgba(0, 0, 0, 0.06);
  max-width: 518px;
  width: calc(100% - 32px);
  padding: 24px 36px 20px;
  text-align: center;
  overflow: hidden;
}

/* Linha verde no topo curvando junto com o border-radius */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #1faa53;
}

.logo {
  width: 52px;
  height: 42px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img, .logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

h1 {
  color: #0b1b33;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 auto 12px;
  max-width: 380px;
}

.sub {
  color: #556275;
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 20px;
  font-weight: 400;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2b705;
  color: #0b1b33;
  font-size: 17px;
  font-weight: 700;
  min-width: 194px;
  height: 48px;
  padding: 0 34px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(242, 183, 5, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.cta:hover {
  transform: translateY(-2px);
  background: #e5ad04;
  box-shadow: 0 14px 28px rgba(242, 183, 5, 0.55);
}

.cta .arrow {
  margin-left: 8px;
  font-size: 18px;
  line-height: 1;
}

.note {
  margin-top: 13px;
  color: #8c97a8;
  font-size: 12.5px;
  letter-spacing: -0.01em;
}

/* ==========================================================
   MODAL DE VERIFICAÇÃO DE SEGURANÇA (ANTI-ROBÔ)
   ========================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 27, 51, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.35),
    0 6px 20px rgba(0, 0, 0, 0.12);
  max-width: 400px;
  width: 100%;
  padding: 32px 28px 28px;
  text-align: center;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-tag {
  display: inline-block;
  color: #1faa53;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-title {
  color: #0b1b33;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.modal-sub {
  color: #64748b;
  font-size: 14.5px;
  margin-bottom: 22px;
  font-weight: 400;
}

.captcha-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.captcha-equation {
  color: #0b1b33;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.02em;
  user-select: none;
}

#captchaInput {
  width: 68px;
  height: 52px;
  border: 2px solid #1faa53;
  border-radius: 12px;
  background: #fbfdfb;
  font-family: inherit;
  font-size: 28px;
  font-weight: 800;
  color: #0b1b33;
  text-align: center;
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 170, 83, 0.15);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  caret-color: #0b1b33;
}

#captchaInput:focus {
  border-color: #1faa53;
  box-shadow: 0 0 0 4px rgba(31, 170, 83, 0.25);
}

#captchaInput.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
  animation: shake 0.35s ease;
}

#captchaInput.success {
  border-color: #1faa53;
  background: #f0fdf4;
  box-shadow: 0 0 0 4px rgba(31, 170, 83, 0.3);
}

.captcha-error {
  color: #ef4444;
  font-size: 12.5px;
  font-weight: 600;
  margin: 6px 0 2px;
  text-align: center;
}

.modal-btn {
  width: 100%;
  height: 52px;
  background: #f2b705;
  color: #0b1b33;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(242, 183, 5, 0.45);
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.modal-btn:hover {
  transform: translateY(-2px);
  background: #e5ad04;
  box-shadow: 0 14px 28px rgba(242, 183, 5, 0.55);
}

.modal-btn:active {
  transform: translateY(0);
}

.modal-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  transform: none;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

footer {
  background: rgb(11, 27, 51);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 16px 20px;
  text-align: center;
  position: relative;
  z-index: 10;
}

footer nav a {
  color: #8c97a8;
  font-size: 13px;
  text-decoration: none;
  margin: 0 14px;
  transition: color 0.15s ease;
}

footer nav a:hover {
  color: #ffffff;
}

footer p {
  margin-top: 12px;
  color: #526074;
  font-size: 11.5px;
}

/* Paginas internas (termos, privacidade, contato) */
.page-content {
  flex: 1;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  padding: 200px 24px 60px;
}

.page-content h1 {
  font-size: 32px;
  margin-bottom: 24px;
  max-width: none;
}

.page-content h2 {
  color: #0b1b33;
  font-size: 20px;
  margin: 28px 0 10px;
}

.page-content p {
  line-height: 1.7;
  margin-bottom: 14px;
  color: #374151;
}

.page-content a {
  color: #2563eb;
}

.page-content a.voltar {
  display: inline-block;
  margin-top: 24px;
  text-decoration: none;
}

@media (max-width: 600px) {
  .hero {
    min-height: calc(46.5vh + 190px);
  }
  .card {
    padding: 24px 20px 20px;
    border-radius: 16px;
    width: calc(100% - 28px);
  }
  h1 {
    font-size: 28px;
    max-width: none;
  }
  .sub {
    font-size: 14px;
    margin-bottom: 18px;
  }
  .cta {
    padding: 12px 28px;
    font-size: 16px;
    min-width: 0;
  }
  .modal-card {
    padding: 28px 20px 22px;
    border-radius: 20px;
  }
  footer nav a {
    margin: 0 8px;
    font-size: 12px;
  }
}
