:root {
  --blue: #23408E;
  --cyan: #22B8D9;
  --ink: #1A2233;
  --muted: #40536E;
  --line: #E4EBF5;
  --line-strong: #C9D8E9;
  --bg-alt: #F5F8FC;
  --error: #C0392B;
  --ok: #1E7A5F;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: Inter, system-ui, sans-serif; overflow-x: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--cyan); }
input, textarea, button { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: #fff; }
h1, h2, h3 { font-family: Poppins, sans-serif; margin: 0; }

@keyframes jsbPulse { 0%, 100% { opacity: .35; r: 5; } 50% { opacity: 1; } }
@keyframes jsbDash { to { stroke-dashoffset: -220; } }
@keyframes jsbSpin { to { transform: rotate(360deg); } }
@keyframes jsbPop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes jsbCheck { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes jsbRing { 0% { transform: scale(.6); opacity: .55; } 100% { transform: scale(1.5); opacity: 0; } }

.page { width: 100%; overflow-x: hidden; }
.container { max-width: 1240px; margin: 0 auto; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 76px;
  display: flex; align-items: center; gap: 24px;
}
.logo-link { display: block; width: 60px; height: 50px; overflow: hidden; position: relative; flex: 0 0 auto; }
.logo-img { position: absolute; width: 60px; height: 50px; left: 0; top: 0; object-fit: contain; }
.header-divider { width: 1px; height: 30px; background: var(--line); }
.brand { flex: 1 1 auto; min-width: 0; }
.brand-name { font-family: Poppins, sans-serif; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag { font-size: 11px; color: #5B7FA6; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-desktop { display: none; align-items: center; gap: 30px; }
.nav-desktop a:not(.btn-gradient) { font-size: 15px; font-weight: 500; color: var(--ink); }
.nav-desktop a:not(.btn-gradient):hover { color: var(--blue); }

.burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px; border: 1px solid var(--line);
  border-radius: 12px; background: #FFFFFF; cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--blue); border-radius: 2px; }

.nav-mobile {
  border-top: 1px solid var(--line); background: #FFFFFF;
  padding: 14px 20px 22px; display: flex; flex-direction: column; gap: 4px;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a:not(.btn-gradient) { padding: 13px 6px; font-size: 16px; font-weight: 500; color: var(--ink); border-bottom: 1px solid #F0F4FA; }
.btn-mobile-cta { margin-top: 10px; text-align: center; padding: 14px 22px; }

.btn-gradient {
  display: inline-block; padding: 12px 22px; border-radius: 12px;
  background: linear-gradient(100deg, var(--blue), var(--cyan)); color: #FFFFFF;
  font-weight: 600; font-size: 15px; box-shadow: 0 6px 18px rgba(35,64,142,0.22);
  transition: filter .15s ease;
}
.btn-gradient:hover { color: #FFFFFF; filter: brightness(1.07); }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .burger { display: none; }
}

/* Hero */
.hero { background: #FFFFFF; padding: clamp(48px, 7vw, 96px) 20px clamp(40px, 6vw, 88px); padding-top: calc(76px + clamp(48px, 7vw, 96px)); }
.hero-inner {
  max-width: 1240px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px;
  border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--blue); letter-spacing: 0.01em;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }

h1 { font-weight: 700; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08; letter-spacing: -0.025em; margin-top: 22px; }
.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); margin: 20px 0 0; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn-lg { padding: 16px 30px; border-radius: 14px; font-size: 16px; }
.btn-lg.btn-gradient { box-shadow: 0 10px 26px rgba(35,64,142,0.24); }
.btn-outline {
  display: inline-block; background: #FFFFFF; border: 1px solid var(--line-strong);
  color: var(--blue); font-weight: 600;
}
.btn-outline:hover { border-color: var(--cyan); color: var(--blue); background: var(--bg-alt); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 32px; font-size: 14px; color: var(--muted); }

.art-card { border-radius: 24px; background: var(--bg-alt); border: 1px solid var(--line); padding: clamp(18px, 3vw, 34px); box-shadow: 0 18px 50px rgba(35,64,142,0.07); }
.art-svg { display: block; width: 100%; height: auto; }
.dash-anim { animation: jsbDash 4.5s linear infinite; }
.pulse-anim { animation: jsbPulse 3s ease-in-out infinite; }

/* Sections */
.section { background: #FFFFFF; padding: clamp(56px, 7vw, 104px) 20px; scroll-margin-top: 76px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.section-head h2 { font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; letter-spacing: -0.02em; margin-top: 14px; }
.section-head p { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 16px 0 0; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 22px; margin-top: 46px; }
.card {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  box-shadow: 0 2px 10px rgba(26,34,51,0.03); transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--cyan); box-shadow: 0 14px 34px rgba(35,64,142,0.10); }
.icon-box {
  width: 50px; height: 50px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--blue);
}
.card h3 { font-weight: 600; font-size: 19px; line-height: 1.3; margin-top: 20px; letter-spacing: -0.01em; }
.card p { font-size: 15px; line-height: 1.62; color: var(--muted); margin: 10px 0 0; }

.steps {
  list-style: none; margin: 48px 0 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 30px 26px;
}
/* Alinha exatamente com o centro do 1º e do 4º círculo (54px = raio 27px),
   que ficam encostados à esquerda de suas colunas na grid de 4 colunas
   iguais com gap de 26px: coluna = (100% - 3*26px) / 4 = 25% - 19.5px. */
.steps-line { display: none; position: absolute; top: 27px; left: 27px; right: calc(25% - 46.5px); height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
@media (min-width: 1024px) { .steps-line { display: block; } }
.step-num {
  width: 54px; height: 54px; border-radius: 50%; background: #FFFFFF; display: flex;
  align-items: center; justify-content: center; font-family: Poppins, sans-serif; font-weight: 700;
  font-size: 18px; position: relative; z-index: 1; border: 2px solid;
}
.step-num--blue { border-color: var(--blue); color: var(--blue); }
.step-num--cyan { border-color: var(--cyan); color: var(--cyan); }
.steps h3 { font-weight: 600; font-size: 18px; margin-top: 18px; letter-spacing: -0.01em; }
.steps p { font-size: 15px; line-height: 1.62; color: var(--muted); margin: 8px 0 0; }

.diff-title { font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; margin-bottom: 38px; }
.grid-diff { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.diff-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.diff-num { font-family: Poppins, sans-serif; font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -0.03em; color: var(--blue); }
.diff-card h3 { font-weight: 600; font-size: 16px; margin-top: 14px; }
.diff-card p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 7px 0 0; }

.tec-container { text-align: center; }
.tec-container h2 { font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; }
.tec-sub { font-size: 15px; color: var(--muted); margin: 12px 0 0; }
.tec-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.tec-tags span {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-alt);
  font-family: Poppins, sans-serif; font-weight: 500; font-size: 14px; color: #5C6880;
}
.tec-tags span:hover { color: var(--blue); border-color: var(--line-strong); }

.cta-banner {
  max-width: 1240px; margin: 0 auto; border-radius: 24px;
  background: linear-gradient(105deg, var(--blue) 0%, var(--blue) 40%, var(--cyan) 100%);
  padding: clamp(38px, 5vw, 66px) clamp(24px, 4vw, 60px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.cta-text { max-width: 620px; }
.cta-text h2 { font-weight: 700; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.14; letter-spacing: -0.02em; color: #FFFFFF; }
.cta-text p { font-size: 17px; line-height: 1.55; color: #E8F4FA; margin: 14px 0 0; }
.btn-cta {
  display: inline-block; padding: 17px 34px; border-radius: 14px; background: #FFFFFF; color: var(--blue);
  font-weight: 700; font-size: 16px; box-shadow: 0 10px 30px rgba(10,30,70,0.24);
}
.btn-cta:hover { color: var(--blue); background: #E8F4FA; }

.contato-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 4vw, 56px); }
.contact-list { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; background: #FFFFFF; border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px;
}
.contact-item:hover { border-color: var(--cyan); color: var(--blue); }
.contact-item--static:hover { border-color: var(--line); }
.contact-icon {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; color: var(--blue);
}
.contact-label { display: block; font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: #5B7FA6; }
.contact-value { display: block; font-family: Poppins, sans-serif; font-weight: 600; font-size: 17px; color: var(--ink); word-break: break-word; }
.contact-sub { display: block; font-size: 14px; color: #5B7FA6; margin-top: 2px; }

.contact-form {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 10px 34px rgba(35,64,142,0.06); display: flex; flex-direction: column; gap: 18px;
}
.contact-form[hidden], .success-card[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  padding: 14px 16px; border-radius: 12px; border: 1px solid #D8E2EF; background: #FFFFFF; font-size: 15px; outline: none;
}
.field textarea { resize: vertical; font-family: Inter, system-ui, sans-serif; }
.field input:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,184,217,0.16); }
.field input.filled, .field textarea.filled { border-color: var(--cyan); }
.field input.invalid, .field textarea.invalid { border-color: var(--error); }
.field-error { font-size: 13px; color: var(--error); min-height: 17px; display: block; }
.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: none; padding: 16px 28px; font-size: 16px; cursor: pointer;
  box-shadow: 0 10px 26px rgba(35,64,142,0.22); transition: opacity .2s ease;
}
.btn-submit:disabled { opacity: 0.75; cursor: progress; }
.btn-spinner {
  width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #FFFFFF; animation: jsbSpin .7s linear infinite;
}
.form-status { margin: 0; font-size: 14px; line-height: 1.55; min-height: 20px; color: var(--error); }
.form-status.ok { color: var(--ok); }

.success-card {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(32px, 4vw, 48px); box-shadow: 0 10px 34px rgba(35,64,142,0.06);
  text-align: center; animation: jsbPop .45s cubic-bezier(.2,.8,.3,1) both;
}
.success-icon-wrap { position: relative; width: 84px; height: 84px; margin: 0 auto; }
.success-ring {
  position: absolute; inset: 0; border-radius: 50%; background: var(--cyan);
  animation: jsbRing 1.6s ease-out .25s 2;
}
.success-icon {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 84px; height: 84px; border-radius: 50%; color: #FFFFFF;
  background: linear-gradient(140deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 30px rgba(35,64,142,0.28);
}
.success-check { stroke-dasharray: 40; animation: jsbCheck .5s ease-out .3s both; }
.success-card h3 {
  font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2;
  letter-spacing: -0.02em; margin: 26px 0 0;
}
.success-card > p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 14px auto 0; max-width: 34em; }
.success-steps {
  display: flex; flex-direction: column; gap: 12px; text-align: left;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; margin-top: 28px;
}
.success-step { display: flex; align-items: flex-start; gap: 12px; }
.success-step span:last-child { font-size: 15px; line-height: 1.5; color: var(--ink); }
.success-step-num {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--blue);
  color: #FFFFFF; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; font-family: Poppins, sans-serif;
}
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* Footer */
.site-footer { background: var(--blue); color: #FFFFFF; padding: clamp(48px, 6vw, 76px) 20px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px; }
.footer-logo-box { display: inline-block; background: #FFFFFF; border-radius: 14px; padding: 12px 16px; }
.footer-logo { display: block; width: 100px; height: 84px; object-fit: contain; }
.footer-about { font-size: 15px; line-height: 1.6; color: #C6D6EE; margin: 20px 0 0; max-width: 30em; }
.footer-heading { font-weight: 600; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: #8FB6E8; margin: 0 0 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-links a { color: #FFFFFF; }
.footer-links a:hover { color: var(--cyan); }
.footer-muted { color: #C6D6EE; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.16); margin-top: 44px; padding: 24px 0 30px; font-size: 14px; color: #C6D6EE; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .dash-anim, .pulse-anim { animation: none; }
}
