@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --navy-950: #040c1d;
  --navy-900: #09224a;
  --navy-850: #0c2a59;
  --navy-800: #12336a;
  --gold: #d2ab46;
  --gold-light: #ecd38a;
  --gold-dark: #b4893a;
  --paper: #f4f1ea;
  --text: #f4f6fb;
  --muted: #aab6cb;
  --line: rgba(210, 171, 70, .16);
  --grad: linear-gradient(95deg, var(--gold-dark) 0%, var(--gold) 46%, var(--gold-light) 100%);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--text);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; }

.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 60;
  padding: 10px 16px; border-radius: 999px;
  background: var(--gold); color: var(--navy-900); text-decoration: none;
  transform: translateY(-160%); transition: transform .2s ease;
}
.skip-link:focus { transform: none; }

/* ─── Botão ─── */
.cta {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  width: min(420px, 100%); min-height: 62px; padding: 0 28px;
  overflow: hidden; cursor: pointer;
  border: 1px solid rgba(255, 236, 186, .45); border-radius: 999px;
  background: var(--grad); color: var(--navy-900);
  box-shadow: 0 10px 30px rgba(180, 137, 58, .32), inset 0 1px rgba(255, 255, 255, .45);
  font-size: 13px; line-height: 1.25; font-weight: 700; letter-spacing: .05em;
  text-align: center; text-transform: uppercase;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .45) 47%, transparent 72%);
  transform: translateX(-140%); transition: transform .7s var(--ease);
}
.cta span, .cta svg { position: relative; z-index: 1; }
.cta svg { flex: 0 0 auto; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(210, 171, 70, .42), inset 0 1px rgba(255, 255, 255, .5); }
.cta:hover::before { transform: translateX(140%); }
.cta:focus-visible, .footer a:focus-visible, .form-close:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }
.cta[disabled] { cursor: progress; opacity: .75; transform: none; }

.cta-note { width: min(420px, 100%); margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; text-align: center; }
.cta-note strong { color: var(--text); font-weight: 600; }

.section-index {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px; color: var(--gold);
  font-size: 11px; line-height: 1.5; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.section-index::before {
  content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 14px rgba(210, 171, 70, .7);
}

h2 {
  margin: 0; color: var(--paper);
  font-size: clamp(26px, 2.4vw, 40px); line-height: 1.16; font-weight: 500;
  letter-spacing: -.03em; text-wrap: balance;
}

/* ─── Topo ─── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(720px, 50vw, 880px);
  padding: 112px 0 72px;
  background:
    radial-gradient(ellipse 60% 70% at 78% 40%, rgba(43, 92, 178, .38), transparent 70%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
}

.hero-ribbon {
  position: absolute; inset: 0 0 auto; z-index: 3;
  min-height: 44px; display: grid; place-items: center; padding: 8px 24px;
  background: var(--grad); color: var(--navy-900);
  font-size: 12px; line-height: 1.4; font-weight: 700; letter-spacing: .04em;
  text-align: center; text-transform: uppercase;
}
.hero-ribbon span { text-wrap: balance; }

.hero-photo {
  position: absolute; z-index: -1; top: 0; right: 0; bottom: 0;
  width: min(54vw, 860px);
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 66% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 46%), linear-gradient(0deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 46%), linear-gradient(0deg, transparent 0%, #000 22%);
  mask-composite: intersect;
}

.hero-content { width: min(600px, 48vw); }
.brand { width: 190px; height: auto; margin-bottom: 30px; }

.hero-question {
  margin: 0 0 14px; color: var(--gold-light);
  font-size: clamp(15px, 1.15vw, 18px); line-height: 1.4; font-weight: 600;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 2.6vw, 44px); line-height: 1.12; font-weight: 400;
  letter-spacing: -.025em; text-wrap: balance;
}
.hero h1 strong { color: var(--gold); font-weight: 700; }
.hero h1 em { color: var(--paper); font-style: normal; font-weight: 600; }

.lead {
  max-width: 540px; margin: 0 0 28px; color: #c3cde0;
  font-size: clamp(15px, 1.05vw, 17px); line-height: 1.6;
}

/* ─── Prova ─── */
.proof {
  padding: 96px 0;
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, .04);
}
.proof-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.proof-head .section-index { justify-content: center; }

.proof-grid {
  display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.6fr) minmax(0, .78fr);
  gap: clamp(16px, 2.4vw, 32px); align-items: center;
}
.proof figure { margin: 0; }
.proof-print img {
  width: 100%; aspect-ratio: 590 / 1000; object-fit: cover; object-position: top;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.proof-photo img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .5);
}
.proof figcaption { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.proof figcaption strong { display: block; color: var(--gold-light); font-size: 15px; font-weight: 700; }

/* ─── Diagnóstico ─── */
.diagnostic {
  position: relative; overflow: hidden; padding: 104px 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(210, 171, 70, .10), transparent 32%),
    linear-gradient(180deg, var(--navy-900), #071a3a);
}
.diagnostic-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.diagnostic-intro { max-width: 520px; }
.diagnostic-intro > p:not(.section-index):not(.cta-note) {
  margin: 22px 0 30px; color: #c3cde0; font-size: 16px; line-height: 1.6;
}
.cta-note-left { text-align: left; }

.diagnostic-list {
  margin: 0; padding: 8px 32px; list-style: none;
  border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(155deg, rgba(18, 51, 106, .78), rgba(4, 12, 29, .9));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .05);
}
.diagnostic-list li {
  display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: center;
  min-height: 96px; padding: 20px 0; border-top: 1px solid var(--line);
}
.diagnostic-list li:first-child { border-top: 0; }
.number {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(210, 171, 70, .55); border-radius: 50%;
  background: rgba(4, 12, 29, .7); color: var(--gold);
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.diagnostic-list p { margin: 0; color: #d6deeb; font-size: 15px; line-height: 1.6; }
.diagnostic-mobile-cta { display: none; }

/* ─── Gabriel ─── */
.mentor { padding: 104px 0; background: var(--navy-950); }
.mentor-grid {
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.mentor-photo img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 40% 20%;
  border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .5);
}
.mentor-text > p:not(.section-index) { max-width: 560px; margin: 20px 0 0; color: #c3cde0; font-size: 16px; line-height: 1.65; }
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  max-width: 560px; margin: 32px 0 36px; padding: 0; list-style: none;
}
.stats li { padding: 18px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(18, 51, 106, .35); }
.stats strong { display: block; color: var(--gold); font-size: clamp(22px, 2vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.stats span { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }

/* ─── Rodapé ─── */
.footer { padding: 30px 0; border-top: 1px solid rgba(210, 171, 70, .1); background: #030916; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer img { width: 120px; height: auto; }
.footer small, .footer a { color: #7d8aa3; font-size: 11px; line-height: 1.5; }
.footer a { justify-self: end; text-decoration: none; border-bottom: 1px solid rgba(210, 171, 70, .3); }

/* ─── Formulário ─── */
.form-dialog {
  width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; overflow: auto;
  border: 1px solid var(--line); border-radius: 26px;
  background: linear-gradient(160deg, #0d2a58, #06142e 70%);
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}
.form-dialog::backdrop { background: rgba(2, 6, 16, .72); backdrop-filter: blur(4px); }
.form-dialog[open] { animation: subir .35s var(--ease); }
@keyframes subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.lead-form { position: relative; padding: 34px 32px 26px; }
.lead-form h2 { font-size: clamp(22px, 3vw, 28px); padding-right: 28px; }
.form-sub { margin: 12px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.form-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06);
  color: var(--text); font-size: 24px; line-height: 1; cursor: pointer;
}

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field > span { color: #cfd8e8; font-size: 12.5px; font-weight: 600; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 1px solid rgba(170, 182, 203, .28); border-radius: 12px;
  background: rgba(4, 12, 29, .55); color: var(--text); font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { color: #0b1630; }
.field input::placeholder { color: #6f7d97; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210, 171, 70, .2); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #e98b8b; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(233, 139, 139, .12); color: #ffd2d2; font-size: 13.5px; line-height: 1.5; }
.form-submit { width: 100%; margin-top: 22px; }
.form-legal { margin: 14px 0 0; color: #7f8ca6; font-size: 11.5px; line-height: 1.5; text-align: center; }
.form-legal a { color: #b8c3d8; }

.noscript { position: fixed; inset: auto 12px 12px; z-index: 100; padding: 14px 18px; border-radius: 12px; background: var(--gold); color: var(--navy-900); text-align: center; }

/* ─── Revelar ao rolar ─── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .diagnostic-list li:nth-child(2) { transition-delay: 60ms; }
.js .diagnostic-list li:nth-child(3) { transition-delay: 120ms; }
.js .diagnostic-list li:nth-child(4) { transition-delay: 180ms; }
.js .diagnostic-list li:nth-child(5) { transition-delay: 240ms; }

/* ─── Tablet e celular ─── */
@media (max-width: 900px) {
  .shell { width: min(100% - 34px, 680px); }

  .hero { min-height: 0; padding: 0 0 56px; }
  .hero-ribbon { position: relative; min-height: 48px; font-size: 10.5px; }
  .hero-photo { position: relative; z-index: 0; display: block; width: 100%; height: clamp(280px, 76vw, 460px); }
  .hero-photo img { object-position: 50% 22%; -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 30%); mask-image: linear-gradient(0deg, transparent 0%, #000 30%); -webkit-mask-composite: source-over; mask-composite: add; }
  .hero-shell { margin-top: -64px; position: relative; z-index: 1; }
  /* No celular o botão sobe para a primeira tela: o parágrafo de apoio vai
     para depois dele. */
  .hero-content { width: 100%; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
  .brand { width: 160px; margin: 0 auto 18px; order: 0; }
  .hero-question { order: 1; }
  .hero h1 { margin-inline: auto; order: 2; }
  .hero .cta { order: 3; }
  .hero .cta-note { order: 4; }
  .lead { order: 5; margin: 22px auto 0; }
  .hero .cta, .cta-note { width: 100%; }

  .proof { padding: 72px 0; }
  .proof-head { margin-bottom: 32px; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-photo { grid-column: 1 / -1; grid-row: 1; }

  .diagnostic { padding: 72px 0 78px; }
  .diagnostic-grid { grid-template-columns: 1fr; gap: 40px; }
  .diagnostic-intro { max-width: 620px; margin: 0 auto; text-align: center; }
  .diagnostic-intro .section-index { justify-content: center; }
  .diagnostic-intro > p:not(.section-index):not(.cta-note) { margin: 20px auto 0; }
  .diagnostic-intro .cta { display: none; }
  .cta-note-left { width: 100%; margin-top: 16px; text-align: center; }
  .diagnostic-list { width: 100%; padding-inline: 26px; }
  .diagnostic-mobile-cta { display: inline-flex; width: 100%; max-width: 560px; justify-self: center; }

  .mentor { padding: 72px 0; }
  .mentor-grid { grid-template-columns: 1fr; gap: 32px; }
  .mentor-photo { max-width: 420px; margin: 0 auto; }
  .mentor-text { text-align: center; }
  .mentor-text .section-index { justify-content: center; }
  .mentor-text > p:not(.section-index) { margin-inline: auto; }
  .stats { margin-inline: auto; }
  .mentor-text .cta { width: 100%; max-width: 560px; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 32px, 440px); }
  .hero h1 { font-size: clamp(26px, 7.4vw, 32px); }
  .hero-question { font-size: 15px; }
  .proof-grid { gap: 14px; }
  .proof-print img { border-radius: 16px; }
  .proof figcaption { font-size: 12px; }
  .proof figcaption strong { font-size: 13.5px; }
  .diagnostic-list { padding: 4px 18px; border-radius: 22px; }
  .diagnostic-list li { grid-template-columns: 40px 1fr; gap: 14px; min-height: 0; padding: 18px 0; }
  .number { width: 38px; height: 38px; font-size: 11px; }
  .diagnostic-list p { font-size: 14px; line-height: 1.5; }
  .stats { grid-template-columns: 1fr; }
  .stats li { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 14px; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; gap: 12px; text-align: center; }
  .footer a { justify-self: center; }

  .form-dialog { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  .lead-form { padding: 28px 18px 24px; }
  .field-grid { grid-template-columns: 1fr; }
}

@media (hover: none) { .cta:hover { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
