/* =========================================================
   Nexa — site institucional
   Design system (04/12/2026): Geist · azul-noite #122A44 (principal:
   títulos, logo, fundos escuros) · laranja-sinal #FF5B1F (acento)
   laranja-sombra #C9441A · grafite médio #3F4145 (só texto corrido)
   cinza #8A8C8F · linha #D9D8D3 · papel #F4F3EF · branco #FFFFFF
   Proporção 60/30/10: papel e branco / azul-noite / laranja.
   Contraste: laranja-sinal nunca como texto sobre fundo claro;
   laranja-sinal sobre azul-noite 4,7:1 (qualquer texto).
   ========================================================= */

:root {
  --noite: #122A44;
  --noite-fundo: #0B1B2D;
  --grafite: #3F4145;
  --sinal: #FF5B1F;
  --sombra: #C9441A;
  --cinza: #8A8C8F;
  --linha: #D9D8D3;
  --papel: #F4F3EF;
  --branco: #FFFFFF;
  --papel-82: rgba(244, 243, 239, .82);
  --papel-18: rgba(244, 243, 239, .18);

  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 9vw, 112px);
  --radius: 4px;
  --header-h: 68px;
  --ease: cubic-bezier(.6, 0, .2, 1);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--grafite);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, ol, ul { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sombra); outline-offset: 3px; }
.dark :focus-visible, .footer :focus-visible { outline-color: var(--sinal); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.white { background: var(--branco); }
.dark { background: var(--noite); color: var(--papel); }
h1, h2, h3, h4 { color: var(--noite); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--papel); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--noite); color: var(--papel); padding: 12px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* ---------- Tipografia ---------- */
.label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--noite);
}
.dark .label { color: var(--sinal); }
.label::before { content: ""; width: 8px; height: 8px; background: var(--sinal); flex: none; }
.h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -.03em; font-weight: 600; }
.h2--narrow { max-width: 760px; }
.h2--wide { max-width: 880px; margin-bottom: 56px; }
.h2--sm { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; }
.h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 24px; }
strong { font-weight: 600; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  background: var(--sombra); color: var(--branco);
  border: 0; border-radius: var(--radius);
  font-size: 17px; font-weight: 600; text-decoration: none; line-height: 1.2;
  transition: transform .2s var(--ease-out), box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201, 68, 26, .28); color: var(--branco); }
.btn:active { transform: translateY(0); }
.dark .btn, .header.on-dark .btn { background: var(--sinal); color: var(--noite); }
.dark .btn:hover, .header.on-dark .btn:hover { color: var(--noite); box-shadow: 0 10px 28px rgba(255, 91, 31, .32); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn--top { margin-top: 56px; }
.btn--block { width: 100%; }

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.header.is-scrolled { background: rgba(244, 243, 239, .92); border-bottom-color: var(--linha); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.header.on-dark { color: var(--papel); }
.header.on-dark.is-scrolled { background: rgba(18, 42, 68, .92); border-bottom-color: var(--papel-18); }
.header.on-dark .logo { color: var(--papel); --lever: var(--papel); }
.header.on-dark .burger { border-color: var(--papel-18); }
.header.on-dark .nav a:not(.btn)::after { background: var(--sinal); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; color: var(--noite); --lever: var(--noite); }
.logo svg { height: 36px; width: auto; overflow: visible; }
.logo text { font-family: var(--font); font-weight: 600; font-size: 168px; letter-spacing: -6.7px; fill: currentColor; }
.logo--neg { color: var(--papel); --lever: var(--papel); }
.logo--neg svg { height: 44px; }

.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sombra); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--linha); border-radius: var(--radius); background: transparent; position: relative; z-index: 60; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 26px; }
.menu-open .burger { color: var(--papel); border-color: var(--papel-18); }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px;
    padding: 96px var(--gutter) 48px;
    background: var(--noite); color: var(--papel);
    font-size: 28px; font-weight: 600; letter-spacing: -.02em;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav a:not(.btn) { padding: 10px 0; }
  .nav .btn { margin-top: 24px; font-size: 17px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .logo { color: var(--papel); --lever: var(--papel); position: relative; z-index: 60; }
  .menu-open { overflow: hidden; }
  .menu-open .header { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Hero: Ascensão ---------- */
.hero-band { position: relative; isolation: isolate; overflow: hidden; padding-top: var(--header-h); min-height: 100vh; min-height: 100svh; display: flex; align-items: center; background: var(--noite-fundo); }
.hero-bg { position: absolute; inset: 0; z-index: -1; will-change: transform; }
.hero-bg__inner { position: absolute; inset: 0; transform-origin: 50% 50%; }
/* O ponto de fuga fica à direita do texto no desktop e acima do texto no celular */
@media (min-width: 701px) { .hero-bg__inner { right: auto; width: 136%; } }
@media (max-width: 700px) { .hero-bg__inner { top: -60%; } }
.hero-bg picture, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 50% 50%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 27, 45, .92) 0%, rgba(11, 27, 45, .72) 38%, rgba(11, 27, 45, .25) 70%, rgba(11, 27, 45, .35) 100%),
    linear-gradient(0deg, rgba(18, 42, 68, 1) 0%, rgba(18, 42, 68, 0) 22%);
}
.rays { position: absolute; inset: 0; width: 100%; height: 100%; }
.ray { fill: none; stroke: var(--sinal); stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .5; }
.vp-dot { fill: var(--sinal); transform-origin: 500px 500px; }
.vp-ring { fill: none; stroke: var(--sinal); stroke-width: 1.5; opacity: 0; transform-origin: 500px 500px; }

.hero { width: 100%; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 112px); }
.hero__text { max-width: 680px; }
.hero__title { font-size: clamp(44px, 6.4vw, 92px); line-height: 1.0; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.hero__title .w { display: inline-block; }
.hero__lead { margin: 28px 0 40px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 560px; color: var(--papel-82); }

/* Entrada: a câmera "sobe" — a foto gira e se abre até o céu, as linhas convergem para o ponto de fuga */
.js .hero-bg__inner { animation: rise 2.8s cubic-bezier(.16, .8, .12, 1) both; }
.js .ray { animation: ray-draw 1.1s cubic-bezier(.6, 0, .2, 1) both, ray-dim 1.2s ease 3.4s both; animation-delay: calc(1.1s + var(--i) * 45ms), 3.4s; }
.js .vp-dot { animation: vp-pop .5s cubic-bezier(.2, .7, .2, 1) 2.1s both; }
.js .vp-ring { animation: vp-ring 3s ease-out 2.4s infinite; }
.js .vp-ring--2 { animation-delay: 3.9s; }
.js .hero__title .w { opacity: 0; transform: translateY(.5em); animation: word-in .9s var(--ease-out) forwards; animation-delay: calc(.5s + var(--i) * 70ms); }
.js .hero__lead, .js .hero .btn { animation: fade-up .9s var(--ease-out) 1.1s both; }
.js .hero .label { animation: fade-up .9s var(--ease-out) .3s both; }

@keyframes rise { from { transform: scale(1.45) rotate(-8deg); filter: brightness(.25); } to { transform: none; filter: none; } }
@keyframes ray-draw { from { stroke-dashoffset: 1; opacity: .9; } to { stroke-dashoffset: 0; opacity: .9; } }
@keyframes ray-dim { from { opacity: .9; } to { opacity: .5; } }
@keyframes vp-pop { 0% { transform: scale(0); } 60% { transform: scale(1.8); } 100% { transform: scale(1); } }
@keyframes vp-ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(14); opacity: 0; } }
@keyframes word-in { to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 700px) {
  .hero-bg::after { background: linear-gradient(0deg, rgba(11, 27, 45, .95) 0%, rgba(11, 27, 45, .7) 50%, rgba(11, 27, 45, .45) 100%); }
  .hero-band { align-items: flex-end; }
}

/* ---------- O que é ---------- */
.split { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.split__head { flex: 1 1 380px; min-width: 0; }
.split__body { flex: 1 1 480px; min-width: 0; font-size: clamp(17px, 1.4vw, 19px); }
.split__body p + p { margin-top: 20px; }

/* Carrossel de fotos */
.slides { position: relative; margin: 56px 0; aspect-ratio: 1280 / 549; overflow: hidden; border-radius: var(--radius); background: var(--noite); isolation: isolate; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.is-active { opacity: 1; z-index: 1; }
@media (max-width: 700px) { .slides { aspect-ratio: 4 / 3; margin: 40px calc(var(--gutter) * -1); border-radius: 0; } }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 42, 68, .78), rgba(18, 42, 68, 0) 45%); pointer-events: none; }
.slide figcaption {
  position: absolute; left: clamp(20px, 3vw, 32px); bottom: clamp(56px, 6vw, 72px); z-index: 2;
  display: flex; align-items: center; gap: 10px;
  color: var(--papel); font-size: clamp(15px, 1.4vw, 18px); font-weight: 600; letter-spacing: -.01em;
  opacity: 0; transform: translateY(10px); transition: opacity .5s .2s, transform .5s .2s var(--ease-out);
}
.slide figcaption::before { content: ""; width: 8px; height: 8px; background: var(--sinal); }
.slide.is-active figcaption { opacity: 1; transform: none; }
.slides__bar { position: absolute; left: clamp(20px, 3vw, 32px); right: clamp(20px, 3vw, 32px); bottom: clamp(16px, 2.4vw, 28px); z-index: 3; display: flex; align-items: center; gap: 8px; }
.slides__dot { flex: 1; height: 44px; padding: 0; background: none; border: 0; display: flex; align-items: center; }
.slides__dot span { display: block; width: 100%; height: 2px; background: var(--papel-18); position: relative; overflow: hidden; }
.slides__dot span::after { content: ""; position: absolute; inset: 0; background: var(--papel); transform: scaleX(0); transform-origin: left; }
.slides__dot.is-done span::after { transform: scaleX(1); }
.slides__dot.is-active span::after { animation: progress var(--slide-ms, 3000ms) linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--radius); padding: 32px; transition: transform .3s var(--ease-out), box-shadow .3s; }
.card--paper { background: var(--papel); padding: 28px; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(18, 42, 68, .10); }
.card__ico { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: color .3s; }
.card--paper .card__ico { width: 32px; height: 32px; }
.card:hover .card__ico { color: var(--sombra); }
.card h4 { margin: 24px 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.card h3 { margin: 20px 0 8px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.card p { font-size: 16px; line-height: 1.55; }
.cards--3 .card p { font-size: 17px; }

/* ---------- Processo ---------- */
.process { position: relative; margin-top: 64px; }
.process__track { position: relative; height: 2px; background: var(--papel-18); }
.process__fill { position: absolute; inset: 0; background: var(--sinal); transform-origin: left; transform: scaleX(var(--p, 1)); }
.process__fulcrum { position: absolute; top: -1px; left: calc(var(--p, 1) * 100%); width: 18px; height: 16px; transform: translateX(-50%); }
.steps { list-style: none; padding: 0; margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.step { display: flex; flex-direction: column; transition: opacity .5s; }
.js .process.is-tracking .step:not(.is-on) { opacity: .4; }
.step__n { font-size: 44px; font-weight: 600; line-height: 1.1; color: var(--sinal); letter-spacing: -.03em; }
.step h3 { margin: 12px 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.step p { flex: 1; margin-bottom: 24px; font-size: 16px; color: var(--papel-82); }
.step__get { border: 1px solid var(--papel-18); background: rgba(244, 243, 239, .06); border-radius: var(--radius); padding: 16px; font-size: 15px; line-height: 1.5; }
.step__get span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 1000px) and (min-width: 701px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .process { padding-left: 32px; }
  .process__track { position: absolute; left: 0; top: 8px; bottom: 0; width: 2px; height: auto; }
  .process__fill { transform-origin: top; transform: scaleY(var(--p, 1)); }
  .process__fulcrum { left: 1px; top: calc(var(--p, 1) * 100%); transform: translate(-50%, -50%) rotate(90deg); }
  .steps { grid-template-columns: 1fr; margin-top: 0; gap: 48px; }
  .step__n { font-size: 32px; }
}

/* ---------- Problemas ---------- */
.problems { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 72px; }
.problems__aside { flex: 1 1 340px; min-width: 0; position: sticky; top: calc(var(--header-h) + 40px); }
.problems__list { flex: 1 1 560px; min-width: 0; }
.stat { margin: 40px 0; padding: 28px; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--radius); }
.stat__n { font-size: clamp(56px, 6vw, 72px); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--sombra); font-variant-numeric: tabular-nums; }
.stat__t { margin-top: 12px; font-size: 15px; line-height: 1.5; }
.problem { position: relative; padding: 28px 0; }
.problem::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--linha); transform-origin: left; }
.problem:last-child { border-bottom: 1px solid var(--linha); }
.problem h3 { margin-bottom: 10px; font-size: 21px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.problem p { font-size: 17px; }
.js .problem.reveal::before { transform: scaleX(0); transition: transform .9s var(--ease) .1s; }
.js .problem.reveal.is-visible::before { transform: scaleX(1); }
@media (max-width: 960px) { .problems__aside { position: static; } }

/* ---------- Quem ---------- */
.person { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.person__photo { flex: 0 1 400px; min-width: 240px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--linha); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__text { flex: 1 1 480px; min-width: 0; }
.person__role { margin: 8px 0 28px; font-size: 19px; font-weight: 500; }
.person__bio { margin-bottom: 32px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; max-width: 620px; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; font-weight: 500; }
.chips li { border: 1px solid var(--linha); border-radius: 999px; padding: 8px 16px; }

/* ---------- Contato ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.contact__text { flex: 1 1 400px; min-width: 0; }
.contact__lead { margin-top: 28px; font-size: clamp(17px, 1.4vw, 19px); max-width: 460px; }
.form { flex: 1 1 480px; min-width: 0; background: var(--branco); color: var(--grafite); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; min-height: 52px;
  border: 1px solid var(--linha); border-radius: var(--radius); background: var(--branco);
  color: var(--grafite); font: inherit; font-size: 16px; font-weight: 400;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #6E7074; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sombra); box-shadow: 0 0 0 3px rgba(201, 68, 26, .18); }
.field input:user-invalid { border-color: var(--sombra); }
.form__captcha:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Rodapé ---------- */
.footer { background: var(--noite); color: var(--papel); border-top: 1px solid var(--papel-18); }
.footer__inner { padding-top: 48px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 64px; }
.footer__legal { flex: 1 1 520px; max-width: 680px; font-size: 13px; line-height: 1.65; color: rgba(244, 243, 239, .78); }
.footer__legal p + p { margin-top: 10px; }
.footer__copy { margin-top: 20px !important; }

/* ---------- Revelar ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 100ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Página de obrigado / 404 ---------- */
.simple { min-height: 100vh; display: flex; flex-direction: column; }
.simple main { flex: 1; display: flex; align-items: center; padding-top: var(--header-h); }
.simple .h2 { margin-bottom: 20px; }
.simple p { max-width: 560px; font-size: 19px; margin-bottom: 36px; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .hero__title .w, .js .reveal { opacity: 1; transform: none; }
  .vp-ring { display: none; }
}

/* Botão dentro do formulário branco: laranja-sombra com texto branco (4,9:1) */
.form .btn { background: var(--sombra); color: var(--branco); }
.form .btn:hover { color: var(--branco); box-shadow: 0 10px 24px rgba(201, 68, 26, .28); }
.field { color: var(--noite); }
