:root{
  --bg:#0b1220;
  --gradient-1: radial-gradient(1200px 600px at 10% -10%, rgba(37,99,235,.35), transparent);
  --gradient-2: radial-gradient(900px 500px at 90% -20%, rgba(14,165,233,.25), transparent);

  --surface:#ffffff;
  --surface-soft:#f8fafc;

  --text:#0b0d12;
  --muted:#64748b;

  --brand:#2563eb;
  --brand-2:#1d4ed8;

  --ring:rgba(37,99,235,.22);
  --border:#e7eaf0;

  --shadow-sm:0 6px 18px rgba(2,6,23,.06);
  --shadow-md:0 14px 40px rgba(2,6,23,.10);

  --max:1150px;
  --r:18px;

  --hero-darken:.62;
  --bar-max:200;

  --ease:cubic-bezier(.22,.61,.36,1);
}

/* =========================
   RESET + FIX OVERFLOW 🔒
   ========================= */
*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  max-width:100%;
  overflow-x:hidden; /* 🔑 */
}

body{
  margin:0;
  max-width:100%;
  overflow-x:hidden; /* 🔑 */
  background:var(--surface-soft);
  color:var(--text);
  font:16px/1.65 Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif;
}

img{
  max-width:100%;
  display:block;
}

/* =========================
   LAYOUT
   ========================= */
.container{
  max-width:var(--max);
  margin:0 auto;
  padding:32px 18px;
}

.section{padding:28px 0}

h1,h2,h3{
  line-height:1.15;
  letter-spacing:-.01em;
}

h2{
  font-size:clamp(22px,3vw,30px);
  margin:0 0 18px;
}

.muted{color:var(--muted)}
.small{font-size:.9rem}

/* =========================
   NAV
   ========================= */
.site-header{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(11,18,32,.78);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.nav{
  max-width:var(--max);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  font-weight:800;
  text-decoration:none;
}

.nav a{
  color:#cfe1ff;
  text-decoration:none;
  font-weight:600;
}

.menu-btn{
  width:40px;
  height:36px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.25);
  background:transparent;
  color:#e2e8f0;
}

.nav .links{
  display:none;
  flex-direction:column;
  gap:10px;
}

.nav.open .links{display:flex}

.nav .cta{
  background:var(--brand);
  color:#fff;
  padding:8px 14px;
  border-radius:10px;
}

/* =========================
   HERO (FIX CRÍTICO AQUI)
   ========================= */
.hero{
  position:relative;
  background:var(--bg);
  color:#fff;
  isolation:isolate;
  overflow:hidden; /* 🔑 FIX */
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:var(--gradient-1),var(--gradient-2);
  z-index:0;
}

.hero-media{
  position:absolute;
  inset:0;
  z-index:-1;
  overflow:hidden; /* 🔑 */
}

.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:74% 46%;
  filter:grayscale(.02) contrast(1.04);
  transform:scale(1.04);
}

.hero-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35) 40%, rgba(0,0,0,0) 80%),
    linear-gradient(180deg, rgba(0,0,0,var(--hero-darken)), rgba(0,0,0,var(--hero-darken)));
}

.hero .container{
  position:relative;
  z-index:1;
  padding:96px 18px 56px;
  max-width:980px;
}

.kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  background:rgba(15,23,42,.6);
  border:1px solid rgba(255,255,255,.18);
  padding:8px 16px;
  border-radius:999px;
  font-weight:600;
}

.hero h1{
  font-size:clamp(30px,4.6vw,56px);
  max-width:22ch;
  margin:16px 0 12px;
}

.hero p{
  font-size:clamp(16px,2.2vw,20px);
  max-width:48ch;
  color:#dbeafe;
}

.hero .actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:20px;
}

/* =========================
   BUTTONS
   ========================= */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 20px;
  border-radius:14px;
  font-weight:800;
  text-decoration:none;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}

.btn-primary{
  background:var(--brand);
  color:#fff;
  box-shadow:0 18px 44px rgba(37,99,235,.38);
}

.btn-primary:hover{
  background:var(--brand-2);
  transform:translateY(-2px);
}

/* =========================
   STATS
   ========================= */
.stats{
  display:grid;
  gap:14px;
  margin-top:28px;
}

.stat{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  border-radius:14px;
  padding:14px;
}

.stat b{
  font-size:clamp(22px,4vw,30px);
}

/* =========================
   TRUST
   ========================= */
.trustbar{
  background:#0b1220;
  color:#cfe1ff;
  border-block:1px solid rgba(255,255,255,.06);
}

.trustbar-row{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(2,1fr);
}

.trustitem{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  padding:12px;
  text-align:center;
}

/* =========================
   GRID / CARDS
   ========================= */
.grid-2{display:grid;gap:18px}

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r);
  box-shadow:var(--shadow-sm);
}

.pad{padding:18px}

/* =========================
   STEPS
   ========================= */
.steps{display:grid;gap:16px}

.step{
  background:#f1f5ff;
  border:1px solid #e6ebff;
  border-radius:var(--r);
  padding:18px;
  display:flex;
  gap:14px;
}

.num{
  width:30px;
  height:30px;
  border-radius:50%;
  background:#dbeafe;
  color:#1d4ed8;
  display:grid;
  place-items:center;
  font-weight:800;
}

/* =========================
   BAR
   ========================= */
.bar-wrap{
  display:grid;
  gap:14px;
  max-width:760px;
}

.bar-row{
  display:grid;
  grid-template-columns:100px 1fr;
  gap:12px;
}

.bar{
  position:relative;
  height:20px;
  background:#eef2f7;
  border-radius:999px;
  overflow:hidden;
}

.bar-fill{
  height:100%;
  width:0;
  border-radius:999px;
  transition:width 1.2s var(--ease);
}

.bar-fill.before{background:#f87171}
.bar-fill.after{background:#34d399}

.bar-value{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  font-weight:700;
}

/* =========================
   FORM
   ========================= */
.form{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r);
  padding:22px;
  box-shadow:var(--shadow-md);
}

label{font-weight:600}

input,select,textarea{
  width:100%;
  padding:14px;
  border-radius:12px;
  border:1px solid #e2e6ee;
}

input:focus,select:focus,textarea:focus{
  outline:0;
  border-color:var(--brand);
  box-shadow:0 0 0 4px var(--ring);
}

/* =========================
   CONSENT
   ========================= */
.consent{
  display:grid;
  grid-template-columns:20px 1fr;
  gap:12px;
  margin:14px 0;
}

/* =========================
   FOOTER
   ========================= */
.footer{
  margin-top:40px;
  padding:36px 18px;
  text-align:center;
  font-size:14px;
  background:#fff;
  border-top:1px solid #eef1f6;
}

.footer a{
  color:var(--brand);
  text-decoration:none;
}

/* =========================
   REVEAL
   ========================= */
.reveal{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.visible{
  opacity:1;
  transform:none;
}

/* =========================
   RESPONSIVE
   ========================= */
@media(min-width:720px){
  .menu-btn{display:none}
  .nav .links{display:flex;flex-direction:row;gap:20px}
  .stats{grid-template-columns:repeat(4,1fr)}
  .grid-2{grid-template-columns:1fr 1fr}
  .steps{grid-template-columns:repeat(3,1fr)}
  .trustbar-row{grid-template-columns:repeat(4,1fr)}
}

/* =========================================================
   HERO QUICK + CONSENTS
   ========================================================= */

.hero .container{position:relative}
.hero-quick{
  margin-top:18px;
  max-width:760px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  border-radius:18px;
  padding:14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
}
.hero-quick h3{
  margin:0 0 10px 0;
  font-size:16px;
  line-height:1.2;
  color:#fff;
  font-weight:700;
}
.hero-quick .qgrid{
  display:grid;
  grid-template-columns: 1.15fr 1fr 1.05fr;
  gap:10px;
  align-items:end;
}
.hero-quick label{
  display:block;
  font-size:13px;
  color:rgba(255,255,255,.88);
  margin:0 0 6px 0;
}
.hero-quick select,
.hero-quick input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(10,18,32,.55);
  color:#fff;
  outline:none;
}
.hero-quick select:focus,
.hero-quick input:focus{
  border-color: rgba(99,102,241,.65);
  box-shadow: 0 0 0 4px rgba(99,102,241,.18);
}
.hero-quick .qactions{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:12px;
  flex-wrap:wrap;
}
.hero-quick .qtrust{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  font-size:12px;
  color:rgba(255,255,255,.85);
  margin-top:10px;
}
.hero-quick .qtrust span{
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(10,18,32,.35);
}
.hero-quick .qbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 14px;
  border-radius:12px;
  border:0;
  cursor:pointer;
  font-weight:800;
  width:100%;
  max-width:260px;
  background:linear-gradient(180deg, rgba(59,130,246,1), rgba(37,99,235,1));
  color:#fff;
  box-shadow: 0 16px 40px rgba(37,99,235,.25);
}
.hero-quick .qbtn:active{transform:translateY(1px)}
.hero-quick .qsmall{
  font-size:12px;
  color:rgba(255,255,255,.75);
  margin:0;
}
@media (max-width: 920px){
  .hero-quick{max-width:100%}
  .hero-quick .qgrid{grid-template-columns:1fr}
  .hero-quick .qbtn{max-width:100%}
}

.form .consents .consent{
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.form .consents .consent input{
  margin-top:3px;
  width:18px;
  height:18px;
  flex:0 0 auto;
}
.form .consents .consent span{
  display:block;
  line-height:1.35;
}

/* =========================================================
   GLOBAL FORM VALIDATION UI
   ========================================================= */

.has-error input,
.has-error select,
.has-error textarea {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245,158,11,.25) !important;
}

/* tooltip base */
.form-error {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -46px;
  background: #fff;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #92400e;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
  z-index: 50;
  animation: errorIn .18s ease;
}

.form-error::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 22px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #f59e0b;
  border-top: 1px solid #f59e0b;
  transform: rotate(45deg);
}

.form-error .icon {
  font-size: 18px;
  line-height: 1;
}

/* garante posicionamento */
label {
  position: relative;
}

/* animação */
@keyframes errorIn {
  from { opacity:0; transform:translateY(6px); }
  to { opacity:1; transform:none; }
}
