:root {
  --blue: #028AC4;
  --blue-deep: #02618F;
  --blue-sky: #5FC3EE;
  --ink: #0B1F2E;
  --ink-2: #3A5163;
  --ink-3: #566C7E;
  --paper: #F3F6F9;
  --paper-2: #E8EEF3;
  --white: #FFFFFF;
  --line: #D5DFE7;
  --night: #061A28;
  --night-2: #0A2638;
  --night-line: #1B3B52;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --f-display: "Montserrat", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 5vw, 72px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; max-width: 18ch; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.mono { font-family: var(--f-mono); }
.small { font-size: 13px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.kicker {
  font-family: var(--f-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-deep);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.kicker-light { color: var(--blue-sky); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--blue-deep); color: #fff;
  font: 700 15px/1 var(--f-body);
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #0273A6; } }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: var(--white); } }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))) 14px;
  transition: background-color 240ms ease, box-shadow 240ms ease;
}
.nav .btn-short { display: none; }
@media (max-width: 420px) {
  .nav { gap: 12px; }
  .nav .btn-long { display: none; }
  .nav .btn-short { display: inline; }
}
.nav.scrolled { background: rgba(243, 246, 249, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--f-display); color: var(--blue-deep); letter-spacing: -0.02em; }
.nav-mark { width: 38px; height: 30px; }
.nav-links { display: flex; gap: 32px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.nav-links a { text-decoration: none; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--blue); } }
@media (max-width: 860px) { .nav-links { display: none; } }

/* Hero */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  /* texto alinhado à mesma coluna de 1240px das outras seções */
  padding: 120px var(--gutter) 80px max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
  overflow: hidden;
  background: var(--paper);
}
/* A imagem tem 16:9; o símbolo fica a 47% dela. Deslocando-a 12% para fora
   da direita, o símbolo cai sempre à direita do título, de 960px a 4K. */
.hero-visual {
  --vw: min(100vw, 1600px);
  position: absolute;
  right: calc(var(--vw) * -0.12); bottom: -2vw;
  width: var(--vw);
  max-width: none;
  aspect-ratio: 16 / 9;
  pointer-events: none;
}
.hero-hand { width: 100%; height: 100%; mix-blend-mode: multiply; will-change: transform; }
.hero-mark {
  position: absolute;
  left: 47.2%; top: 25%;
  width: 11.5%;
  overflow: visible;
  filter: drop-shadow(0 18px 24px rgba(2, 97, 143, 0.22));
}
.hero-glow {
  position: absolute; left: 44%; top: 18%; width: 22%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(95, 195, 238, 0.35), rgba(95, 195, 238, 0) 65%);
  z-index: -1;
}
.hero-copy { position: relative; max-width: 620px; z-index: 2; }
.eyebrow { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 22px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 78px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--blue-deep); }
.lead { margin-top: 26px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 46ch; }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-start; padding-top: 104px; padding-bottom: 0; min-height: auto; }
  /* Empilhado: corta o vazio de cima da foto e centraliza símbolo + mão */
  .hero-visual { position: relative; right: auto; bottom: auto; width: 150%; margin: -14% 0 -6% -52%; order: 2; }
}
@media (min-width: 600px) and (max-width: 860px) {
  .hero-visual { width: 120%; margin: -12% 0 -6% -24%; }
}

/* Pain */
.pain { padding: clamp(88px, 12vw, 160px) 0; background: var(--white); border-top: 1px solid var(--line); }
.pain-list { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: p; }
.pain-list li { padding: 28px 32px 8px 0; border-top: 2px solid var(--ink); }
.pain-list li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.pain-n { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); display: block; margin-bottom: 40px; }
.pain-list h3 { margin-bottom: 10px; }
.pain-list p { color: var(--ink-2); }
@media (max-width: 760px) {
  .pain-list { grid-template-columns: 1fr; gap: 0; }
  .pain-list li, .pain-list li + li { padding: 24px 0 28px; border-left: 0; }
  .pain-n { margin-bottom: 18px; }
}

/* Services */
.services { padding: clamp(88px, 12vw, 160px) 0; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.svc {
  background: var(--white); border-radius: var(--radius); padding: 36px;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 240ms ease, transform 240ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .svc:hover { box-shadow: 0 0 0 1px var(--blue), 0 20px 40px -24px rgba(2, 97, 143, 0.45); }
}
.svc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.svc-icon { flex: none; width: 30px; height: 30px; }
.svc-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--blue-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 22px; }
.svc { padding-top: 32px; }
.svc p { color: var(--ink-2); max-width: 44ch; }
@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } .svc { padding: 28px; } }

/* Hub */
.hub { background: var(--night); color: #DCE7EF; padding: clamp(88px, 12vw, 160px) 0; overflow: hidden; }
.hub h2 { color: #fff; margin-bottom: 22px; }
.hub-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hub-copy > p { color: #A8BCCB; max-width: 46ch; }
.hub-points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.hub-points li { padding-left: 30px; position: relative; color: #DCE7EF; }
.hub-points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 14px; border: 2px solid var(--blue-sky); transform: rotate(45deg) scale(0.75); }
.hub-diagram svg { width: 100%; height: auto; overflow: visible; }
.hub-lines path { stroke: var(--night-line); }
.hub-lines path.lit { stroke: var(--blue); }
.hub-pulses circle { fill: var(--blue-sky); opacity: 0; }
.hub-nodes rect { fill: var(--night-2); stroke: var(--night-line); stroke-width: 1.5; }
.hub-nodes text { fill: #DCE7EF; }
.hub-core circle { fill: var(--blue-deep); stroke: rgba(95, 195, 238, 0.35); stroke-width: 10; }
@media (max-width: 860px) { .hub-wrap { grid-template-columns: 1fr; } .hub-diagram { order: -1; margin: 0 -8px; } }

/* Method */
.method { padding: clamp(88px, 12vw, 160px) 0; background: var(--white); }
.steps { position: relative; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.steps-track { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--paper-2); }
.steps-fill { height: 100%; width: 100%; background: var(--blue); transform-origin: left center; transform: scaleX(0); }
.step { position: relative; padding-top: 44px; }
.step-dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; background: var(--white); border: 2px solid var(--line); transform: rotate(45deg); transition: background-color 300ms ease, border-color 300ms ease; }
.step.on .step-dot { background: var(--blue); border-color: var(--blue); }
.step-n { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); }
.step h3 { margin: 6px 0 10px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 960px) {
  .steps ol { grid-template-columns: 1fr; gap: 36px; padding-left: 40px; }
  .steps-track { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .steps-fill { transform-origin: center top; transform: scaleY(0); }
  .step { padding-top: 0; }
  .step-dot { left: -40px; top: 4px; }
}

/* Products */
.products { padding: clamp(88px, 12vw, 160px) 0; }
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(28px, 4vw, 56px);
  background: var(--white); border-radius: 20px; box-shadow: 0 0 0 1px var(--line);
}
.product + .product { margin-top: 20px; }
.product-flip .product-copy { order: 2; }
.tag { font-family: var(--f-mono); font-size: 12.5px; color: var(--blue-deep); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.product h3 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; margin-bottom: 16px; }
.product-lead { color: var(--ink-2); font-size: 18px; max-width: 44ch; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; font-size: 15.5px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.35em; width: 14px; height: 8px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.product-visual { position: relative; min-height: 380px; border-radius: 16px; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .product-flip .product-copy { order: 0; }
  .product-visual { min-height: 320px; }
}

/* Classifica mock */
.phone { width: 230px; background: var(--white); border-radius: 26px; padding: 14px; box-shadow: 0 0 0 1px var(--line), 0 30px 50px -30px rgba(11, 31, 46, 0.4); font-size: 12.5px; }
.phone-bar { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 10px; }
.phone-bar .mono { font-weight: 400; color: var(--ink-3); font-size: 11px; }
.phone-photo { position: relative; height: 130px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #d9dcdf 0%, #eef0f1 30%, #c9cdd1 55%, #e6e8ea 75%, #cfd3d6 100%); }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px); background-size: 33.33% 33.33%; }
.defect { position: absolute; height: 3px; border-radius: 3px; transform-origin: left center; }
.d1 { left: 18%; top: 38%; width: 42%; background: #E5484D; transform: rotate(18deg); }
.d2 { left: 55%; top: 70%; width: 26%; background: #F5A524; transform: rotate(-12deg); }
.phone-row { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid var(--paper-2); }
.phone-row .mono { font-size: 11.5px; }
.phone-chips { display: flex; gap: 6px; margin-top: 10px; }
.phone-chips span { flex: 1; text-align: center; padding: 6px 0; border-radius: 8px; background: var(--paper); font-weight: 600; font-size: 11px; }
.phone-chips .on { background: var(--blue-deep); color: #fff; }
.xlsx { position: absolute; right: 8%; bottom: 12%; background: #107C41; color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 12px; box-shadow: 0 16px 30px -16px rgba(16, 124, 65, 0.8); }

/* Stone mock */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 88%; }
.board-col { background: var(--white); border-radius: 12px; padding: 12px 10px; min-height: 220px; box-shadow: 0 0 0 1px var(--line); }
.board-col p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.card { display: block; height: 54px; border-radius: 8px; background: var(--paper); margin-bottom: 8px; position: relative; }
.card::before { content: ""; position: absolute; left: 8px; top: 10px; width: 60%; height: 6px; border-radius: 3px; background: var(--line); }
.card::after { content: ""; position: absolute; left: 8px; top: 24px; width: 38%; height: 6px; border-radius: 3px; background: var(--paper-2); }
.card.short { height: 40px; }
.card.hl { background: #E3F3FB; box-shadow: inset 0 0 0 1.5px var(--blue); }
.card.hl::before { background: var(--blue); }

/* Recon mock */
.recon { width: 86%; background: var(--white); border-radius: 14px; padding: 12px; box-shadow: 0 0 0 1px var(--line), 0 30px 50px -34px rgba(11,31,46,.45); }
.recon-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 11px 8px; border-bottom: 1px solid var(--paper-2); font-size: 12px; }
.recon-row .st { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: #E6F6EC; color: #1A7F45; }
.recon-row.ai { background: #EEF7FC; border-radius: 8px; }
.recon-row.ai .st { background: var(--blue-deep); color: #fff; }
.recon-btn { margin-top: 12px; width: 100%; height: 38px; border: 0; border-radius: 9px; background: var(--ink); color: #fff; font: 700 12.5px var(--f-body); }
@media (max-width: 480px) { .recon-row { grid-template-columns: 1fr auto; } .recon-row .mono:nth-child(2) { display: none; } }

/* Principles */
.principles { padding: clamp(88px, 12vw, 140px) 0; background: var(--white); border-top: 1px solid var(--line); }
.pr-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.pr { border-top: 2px solid var(--blue); padding-top: 20px; }
.pr h3 { font-size: 18px; margin-bottom: 8px; }
.pr p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 960px) { .pr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pr-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--night); color: #DCE7EF; padding: clamp(88px, 12vw, 160px) 0; }
.contact h2 { color: #fff; margin-bottom: 20px; }
.contact-copy > p { color: #A8BCCB; max-width: 40ch; }
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--night-2); padding: clamp(22px, 3vw, 36px); border-radius: 20px; box-shadow: 0 0 0 1px var(--night-line); }
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: #DCE7EF; }
.opt { color: #7F97A8; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 500 16px/1.4 var(--f-body); color: #fff;
  background: var(--night); border: 1.5px solid var(--night-line); border-radius: 10px;
  padding: 12px 14px; transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 112px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7F97A8 50%), linear-gradient(135deg, #7F97A8 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field ::placeholder { color: #8299AA; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-sky); box-shadow: 0 0 0 3px rgba(95, 195, 238, 0.18); }
.field [aria-invalid="true"] { border-color: #F07178; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form .btn { background: #0273A6; min-width: 140px; }
@media (hover: hover) and (pointer: fine) { .form .btn:hover { background: #016E9F; } }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { font-size: 14.5px; color: #A8BCCB; }
.form-status.ok { color: #7EE2A8; }
.form-status.err { color: #F7A1A6; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--night); color: #7F97A8; padding: 0 0 40px; }
.footer-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--night-line); padding-top: 32px; font-size: 14.5px; }
.footer .nav-brand { color: #fff; }
.footer .nav-brand svg use { filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Celulares pequenos: menos respiro nos cartões e quadro com 3 colunas */
@media (max-width: 480px) {
  .product { padding: 20px; }
  .svc { padding: 24px; }
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 92%; }
  .board-col { padding: 10px 8px; }
  .board-col:nth-child(4) { display: none; }
  .phone { width: min(230px, 100%); }
  .xlsx { right: 4%; bottom: 6%; }
}
