/* ============================================================
   NEXUS — Componentes (v2) · institucional / sóbrio
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--fs-body);
  line-height: 1.7; color: var(--body); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--paper-2); }
.section--navy { background: var(--navy-800); color: #fff; }
.section--navy h1,.section--navy h2,.section--navy h3 { color: #fff; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Tipografia utilitária ---------- */
.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: .9rem;
}
.kicker--line { display: inline-flex; align-items: center; gap: .6rem; }
.kicker--line::before { content:""; width: 22px; height: 1px; background: var(--accent); }
.breadcrumb { display:flex; align-items:center; gap:.5rem; font-size: var(--fs-xs); margin-bottom: 1.1rem; }
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb__sep { color: var(--line-2); }
.breadcrumb__cur { color: var(--body); font-weight: 600; }
.section--navy .kicker { color: #7fc4e6; }
.lead { font-size: var(--fs-lead); color: var(--body); max-width: 62ch; }
.section--navy .lead { color: rgba(255,255,255,.8); }
.title-xl { font-size: var(--fs-hero); }
.title-lg { font-size: var(--fs-h1); }
.title-md { font-size: var(--fs-h2); }
.muted { color: var(--muted); }
.accentword { color: var(--accent-ink); }

/* ---------- Botões (discretos) ---------- */
.btn {
  --bg: var(--navy-700); --fg: #fff; --bd: var(--navy-700);
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.2rem; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  cursor: pointer; transition: background .2s var(--ease), border-color .2s, color .2s;
}
.btn:hover { background: var(--navy-800); border-color: var(--navy-800); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn--ghost:hover { background: var(--paper-2); border-color: var(--muted); color: var(--ink); }
.btn--light { --bg: #fff; --fg: var(--navy-800); --bd: #fff; }
.btn--light:hover { background: #eef2f6; border-color: #eef2f6; color: var(--navy-800); }
.btn--on-navy.btn--ghost { --fg: #fff; --bd: rgba(255,255,255,.3); }
.btn--on-navy.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color:#fff; }
.btn .ic { width: 16px; height: 16px; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.link-arrow { display:inline-flex; align-items:center; gap:.4rem; font-family:var(--font-head); font-weight:600; font-size:.9rem; color: var(--accent-ink); }
.link-arrow .ic { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link-arrow:hover .ic { transform: translateX(3px); }

/* ---------- Ícones (line, monocromático) ---------- */
.ic { display:inline-block; width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 2rem; height: 70px; }
.brand { display: flex; align-items: center; gap: .55rem; }
.brand img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; align-items: center; }
.nav-links a { font-family: var(--font-head); font-size: .9rem; font-weight: 500; color: var(--body); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--navy-800); }
.nav-cta { display: flex; align-items: center; gap: .7rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display:block; width: 22px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: .3s; }

/* ---------- Hero (claro, editorial) ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero--soft { background: linear-gradient(180deg, #fbfcfd 0%, #f3f6f9 100%); }
.hero__inner { padding-block: clamp(3.2rem, 7vw, 5.5rem); position: relative; z-index: 2; }
.hero h1 { font-size: var(--fs-hero); max-width: 18ch; color: var(--ink); }
.hero .lead { margin-top: 1.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero__art { position:absolute; right: 0; top: 0; bottom: 0; width: 42%; opacity: .06; background-repeat: no-repeat; background-position: right center; background-size: contain; pointer-events: none; }
.hero__art--mesh { right: -2%; width: 46%; opacity: .5; background-size: clamp(360px, 38vw, 560px); mix-blend-mode: multiply; animation: meshFloat 16s ease-in-out infinite; }
@keyframes meshFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }

/* Hero da home: split (texto largo à esquerda, logo centralizada à direita) */
.hero__inner.hero--home { padding-block: clamp(2.4rem, 5vw, 4.2rem); }
.hero--home.split { grid-template-columns: 1.55fr .68fr; gap: clamp(1.4rem,4vw,3.4rem); align-items:center; }
.hero--home .hero__copy h1 { max-width: 18ch; }
.hero--home .hero__copy .lead { max-width: 52ch; }
.hero__media { display:flex; align-items:center; justify-content:center; }
@media (max-width: 820px){ .hero--home.split { grid-template-columns:1fr; } }
.logo-build { display:flex; align-items:center; gap: clamp(9px,1.4vw,16px); }
.tetris { display:grid; grid-template-columns: repeat(4,1fr); grid-template-rows: repeat(6,1fr); gap: clamp(3px,.5vw,6px); width: clamp(78px,10vw,108px); aspect-ratio:4/6; flex:none; }
.tb { border-radius:4px; background: var(--navy-700); opacity:0; transform: translateY(-130px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); transition: transform .5s cubic-bezier(.2,1.3,.4,1), opacity .28s ease; }
.tb--accent { background: var(--brand); }
.tb.set { opacity:1; transform:none; }
.logo-build__word { height: clamp(40px,5.6vw,62px); width:auto; opacity:0; transform: translateX(-10px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.logo-build.word-in .logo-build__word { opacity:1; transform:none; }
@media (max-width: 820px){ .hero__media { display:none; } }
@media (prefers-reduced-motion: reduce){ .tb { opacity:1 !important; transform:none !important; } .logo-build__word { opacity:1 !important; transform:none !important; } }

/* Ilustração discreta de fundo nos heroes (representa o conteúdo) */
.hero__deco { position:absolute; right: clamp(2%,4vw,7%); top:50%; transform:translateY(-50%); width: clamp(140px,17vw,230px); aspect-ratio:1; background: url(img/hero-pixels.svg) no-repeat center/contain; opacity:.15; pointer-events:none; z-index:1; animation: floaty 9s ease-in-out infinite; }
@media (max-width: 820px){ .hero__deco { display:none; } }
@media (prefers-reduced-motion: reduce){ .hero__deco { animation:none; } }

/* faixa de credenciais sob o hero */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2rem; padding-block: 1.2rem; border-top: 1px solid var(--line); }
.trust span { font-size: var(--fs-sm); color: var(--muted); display:inline-flex; align-items:center; gap:.5rem; }
.trust .ic { width: 18px; height: 18px; color: var(--accent); }

/* muro de brasões — prova social institucional */
.crest-wall { border-top: 1px solid var(--line); padding-block: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: 1.1rem; }
.crest-wall__label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.crest-wall__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.3rem, 3.6vw, 2.8rem); }
.crest-wall__row li { line-height: 0; }
.crest-wall__row img { height: 48px; width: auto; filter: grayscale(1); opacity: .42; transition: opacity .35s var(--ease), filter .35s var(--ease), transform .35s var(--ease); }
.crest-wall__row li:hover img { filter: grayscale(0); opacity: 1; transform: translateY(-3px); }
@media (max-width: 640px) { .crest-wall__row img { height: 38px; } }

/* ---------- Grid utilitário ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__media { order: -1; }

/* ---------- Cards genéricos ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: var(--line); box-shadow: var(--shadow-md); }
.card h3 { font-size: var(--fs-h3); margin-bottom: .5rem; }
.card p { font-size: var(--fs-sm); color: var(--body); margin: 0; }

/* ---------- Feature (ícone + texto) ---------- */
.feature { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.feature:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.feature .fic { width: 40px; height: 40px; display:grid; place-items:center; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: .9rem; }
.feature .fic .ic { width: 21px; height: 21px; }
.feature h4 { font-size: 1rem; margin-bottom: .35rem; color: var(--ink); }
.feature p { font-size: var(--fs-sm); color: var(--body); margin: 0; }

/* Missão, Visão, Valores */
.mvv { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; transition: border-color .2s, box-shadow .2s; }
.mvv:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.mvv .fic { width:46px; height:46px; display:grid; place-items:center; border-radius:10px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 1rem; }
.mvv .fic .ic { width:23px; height:23px; }
.mvv h3 { font-size:1.2rem; margin:0 0 .55rem; color: var(--ink); }
.mvv p { font-size: var(--fs-sm); color: var(--body); margin:0; }
.mvv__list { list-style:none; padding:0; margin:0; display:grid; gap:.55rem; }
.mvv__list li { position:relative; padding-left:1.15rem; font-size: var(--fs-sm); color: var(--body); }
.mvv__list li::before { content:""; position:absolute; left:0; top:.5em; width:7px; height:7px; border-radius:2px; background: var(--accent); }

/* Painel do significado da logo */
.logo-panel { background: linear-gradient(160deg,#fbfcfd,#eaf0f5); border:1px solid var(--line); border-radius:16px; padding: clamp(2rem,5vw,3.4rem); display:flex; flex-direction:column; align-items:center; gap:1.3rem; text-align:center; }
.logo-panel img { width:min(290px,82%); height:auto; }
.logo-panel__cap { font-size: var(--fs-xs); color: var(--muted); max-width:34ch; line-height:1.5; }

/* ---------- Card de solução (sistema) ---------- */
.syscard { display:flex; flex-direction:column; gap:.85rem; background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; transition: border-color .2s, box-shadow .2s; }
.syscard:hover { box-shadow: var(--shadow-md); border-color: var(--line-2); }
.syscard__shot { position:relative; border-radius:10px; overflow:hidden; border:1px solid var(--line); aspect-ratio: 16/9; background: var(--paper-2); }
.syscard__phone { position:absolute; right:12px; bottom:0; width:21%; aspect-ratio:600/848; background:#0e1a23; border-radius:11px 11px 0 0; padding:4px 4px 0; box-shadow:0 -2px 18px rgba(16,48,73,.28); z-index:2; }
.syscard__phone img { width:100%; height:100%; object-fit:cover; object-position:top center; border-radius:8px 8px 0 0; display:block; }
.syscard__shot img { width:100%; height:100%; object-fit:cover; object-position: top center; transition: transform .5s var(--ease); }
.syscard:hover .syscard__shot img { transform: scale(1.03); }
.syscard__head { display:flex; align-items:center; justify-content:space-between; gap: 1rem; }
.syscard__logo { height: 26px; width: auto; }
.syscard__tag { font-size: var(--fs-xs); letter-spacing:.04em; color: var(--muted); border:1px solid var(--line); padding:.25rem .6rem; border-radius: 999px; white-space: nowrap; }
.syscard__for { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); font-weight: 600; }
.syscard p { font-size: var(--fs-sm); color: var(--body); margin: 0; }
.syscard ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.syscard ul li { font-size: var(--fs-sm); color: var(--body); padding-left: 1.4rem; position: relative; }
.syscard ul li::before { content:""; position:absolute; left:2px; top:.62em; width:6px; height:6px; border:1.5px solid var(--accent); border-radius:2px; }
.syscard__foot { margin-top: auto; padding-top: .4rem; }

/* ---------- Lista de checagem ---------- */
.checklist { list-style:none; padding:0; margin:0; display:grid; gap:.7rem; }
.checklist li { position: relative; padding-left: 1.9rem; font-size: var(--fs-sm); color: var(--body); }
.checklist li .ic { position:absolute; left:0; top:.05em; width:18px; height:18px; color: var(--accent); }

/* ---------- Passos ---------- */
.steps { display: grid; gap: 1rem; counter-reset: s; }
.step { display:grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding: 1.3rem 1.4rem; border:1px solid var(--line); border-radius: var(--radius); background:#fff; }
.step__n { counter-increment: s; width: 34px; height: 34px; flex:none; display:grid; place-items:center; border-radius:50%; border:1.5px solid var(--accent); color: var(--accent-ink); font-family:var(--font-head); font-weight:700; font-size:.9rem; }
.step__n::before { content: counter(s); }
.step h4 { font-size: 1rem; margin-bottom:.25rem; color: var(--ink); }
.step p { font-size: var(--fs-sm); color: var(--body); margin: 0; }

/* ---------- Comparativo ---------- */
.compare { display:grid; grid-template-columns:1fr 1fr; gap: 1.2rem; }
.compare__col { padding: 1.6rem; border-radius: var(--radius); border:1px solid var(--line); background:#fff; }
.compare__col--good { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); background: var(--accent-soft); }
.compare h4 { font-size: var(--fs-xs); letter-spacing:.1em; text-transform:uppercase; margin-bottom:1rem; color: var(--muted); }
.compare__col--good h4 { color: var(--accent-ink); }
.compare ul { list-style:none; padding:0; margin:0; display:grid; gap:.7rem; }
.compare li { font-size: var(--fs-sm); padding-left:1.7rem; position:relative; color: var(--body); }
.compare li .ic { position:absolute; left:0; top:.05em; width:17px; height:17px; }
.compare__col--bad li .ic { color:#b03a4a; }
.compare__col--good li .ic { color: var(--accent); }

/* ---------- Números ---------- */
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; }
.stat .n { font-family:var(--font-head); font-weight:700; font-size: clamp(1.7rem,3.4vw,2.3rem); color: var(--navy-800); letter-spacing:-.02em; line-height:1; }
.section--navy .stat .n { color:#fff; }
.stat .l { font-size: var(--fs-xs); letter-spacing:.06em; text-transform:uppercase; color: var(--muted); margin-top:.5rem; }
.section--navy .stat .l { color: rgba(255,255,255,.65); }

/* ---------- Mock (discreto) ---------- */
.mock { border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-lg); background:#fff; }
.mock__bar { display:flex; gap:.4rem; padding:.65rem .9rem; background: var(--paper-3); border-bottom:1px solid var(--line); }
.mock__bar i { width:10px; height:10px; border-radius:50%; background: #cfd8e0; }
.mock__body { padding: 1.1rem; }
.mrow { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.7rem .9rem; border:1px solid var(--line); border-radius:8px; margin-bottom:.55rem; font-size: var(--fs-sm); color: var(--body); }
.mrow:last-child { margin-bottom:0; }
.mrow .price { font-family:var(--font-head); font-weight:700; color: var(--accent-ink); }
.mrow .meta { color: var(--muted); font-size: var(--fs-xs); }
.mtag { font-size: var(--fs-xs); padding:.18rem .5rem; border-radius:5px; background: var(--accent-soft); color: var(--accent-ink); font-weight:600; }

/* ---------- Faixa CTA (sóbria, navy plano) ---------- */
.cta { border-radius: var(--radius-lg); background: var(--navy-800); color:#fff; padding: clamp(2rem,4.5vw,3rem); display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap: 1.5rem; }
.cta h2 { color:#fff; font-size: var(--fs-h2); max-width: 20ch; }
.cta p { color: rgba(255,255,255,.78); margin:.5rem 0 0; }
.cta__actions { display:flex; flex-wrap:wrap; gap:.7rem; }

/* ---------- Selo CRA / credibilidade ---------- */
.cred { display:flex; flex-wrap:wrap; align-items:center; gap: 1.5rem 2.5rem; }
.cred img { height: 52px; width:auto; }
.cred p { margin:0; font-size: var(--fs-sm); color: var(--muted); max-width: 46ch; }

/* logos de clientes / produtos em escala de cinza */
.logo-row { display:flex; flex-wrap:wrap; align-items:center; gap: 1.6rem 2.4rem; }
.logo-row img { height: 30px; width:auto; opacity:.65; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.logo-row img:hover { opacity:1; filter:none; }

/* ---------- Pill solução hero ---------- */
.pill { display:inline-flex; align-items:center; gap:.5rem; border:1px solid var(--line); background:#fff; padding:.35rem .8rem; border-radius:999px; font-size: var(--fs-xs); color: var(--body); font-weight:500; }
.pill .ic { width:15px; height:15px; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.58); padding-block: 2.4rem 1.3rem; font-size: .95rem; }
.footer-grid { display:grid; grid-template-columns: 1.5fr .82fr .82fr 1.1fr 1.02fr; gap: 1.4rem 2rem; align-items: start; }
.footer-social { display:flex; gap:.95rem; margin-top:.2rem; }
.footer-social a { display:grid; place-items:center; color:rgba(255,255,255,.72); transition: color .2s, transform .2s; }
.footer-social a:hover { color:var(--brand); transform:translateY(-2px); }
.footer-social .ic { width:22px; height:22px; fill: currentColor; stroke: none; }
.footer-mapcol { display:flex; flex-direction:column; gap:.7rem; }
.footer-brand img { height: 34px; width:auto; margin-bottom: .9rem; }
.footer-brand p { font-size: var(--fs-sm); max-width: 32ch; color: rgba(255,255,255,.5); }
.site-footer h5 { color:#fff; font-family:var(--font-head); font-size:.74rem; letter-spacing:.13em; text-transform:uppercase; margin:0 0 .9rem; font-weight:600; }
.site-footer a { color: rgba(255,255,255,.66); font-size:.9rem; display:block; padding:.22rem 0; transition: color .2s; }
.site-footer a:hover { color:#fff; }
.footer-cra { display:flex; align-items:center; gap:.6rem; margin-top:1rem; background:#fff; border-radius:8px; padding:.45rem .7rem; width:fit-content; }
.footer-cra img { height: 24px; margin:0; }
.footer-cra span { color: var(--navy-800); font-size: .72rem; line-height:1.3; }

/* contato + mini-mapa discreto no rodapé */
.footer-addr { display:block; font-size:.86rem; color: rgba(255,255,255,.55); padding:.3rem 0 0; line-height:1.5; }
.footer-mapmini { position:relative; width:100%; max-width:210px; height:94px; border-radius:10px; overflow:hidden; border:1px solid rgba(255,255,255,.12); transition: border-color .25s var(--ease); }
.footer-mapmini:hover { border-color: rgba(255,255,255,.32); }
.footer-mapmini iframe { width:100%; height:100%; border:0; display:block; pointer-events:none; filter: grayscale(.5) contrast(1.02); }
.footer-mapmini__link { position:absolute; inset:0; z-index:2; }
.footer-cra span { font-size: var(--fs-xs); color: var(--navy-800); font-weight:500; line-height:1.3; }
.footer-bottom { margin-top:2.4rem; padding-top:1.4rem; border-top:1px solid rgba(255,255,255,.12); display:flex; flex-wrap:wrap; justify-content:space-between; gap:.8rem; font-size: var(--fs-xs); color: rgba(255,255,255,.5); }

/* ---------- Logo de produto em card/hero ---------- */
.sys-logo { height: 28px; width: auto; }
.sol-logo { height: 36px; width: auto; margin-bottom: 1.2rem; }
.sol-logo--tall { height: 60px; }

/* ---------- Card de cliente com brasão ---------- */
.clients-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.client { display:flex; flex-direction:column; align-items:center; text-align:center; gap:.7rem; padding:1.6rem 1rem; background:#fff; border:1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.client:hover { box-shadow: var(--shadow-md); border-color: var(--line-2); }
.client__crest { height: 76px; width:auto; object-fit:contain; }
.client h3 { font-size: .98rem; line-height:1.25; }
.client span { font-size: var(--fs-xs); color: var(--muted); letter-spacing:.04em; }
@media (max-width: 920px){ .clients-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 560px){ .clients-grid { grid-template-columns: repeat(2,1fr); } }
/* grupos por esfera (página Clientes) */
.client-group + .client-group { margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.client-group__head { display:flex; align-items:center; gap:.7rem; margin-bottom:1.3rem; padding-bottom:.7rem; border-bottom:1px solid var(--line); }
.client-group__title { font-size: var(--fs-h3); margin:0; }
.client-group__count { font-family: var(--font-head); font-size:.78rem; font-weight:600; color: var(--accent-ink); background: var(--accent-soft); padding:.2rem .62rem; border-radius:999px; }
/* grade de brasões que se embaralha (2 fileiras) */
.crest-shuffle { display:grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 1fr; gap: 1.1rem; }
.crest-shuffle .client { transition: opacity .4s var(--ease), transform .55s cubic-bezier(.2,.85,.3,1.25), box-shadow .25s, border-color .2s; will-change: transform, opacity; }
.crest-shuffle .client.crest-swap { opacity: 0; transform: translateY(10px) scale(.94); }
@media (max-width: 920px){ .crest-shuffle { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 560px){ .crest-shuffle { grid-template-columns: repeat(2,1fr); } }

/* ---------- Serviço: item com número ---------- */
.svc { display:flex; gap:1rem; padding:1.4rem; border:1px solid var(--line); border-radius: var(--radius); background:#fff; transition: border-color .2s, box-shadow .2s; height:100%; }
.svc:hover { box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.svc .svc-ic { width:46px; height:46px; flex:none; display:grid; place-items:center; border-radius:12px; background: linear-gradient(150deg, var(--accent-soft), #ffffff); box-shadow: inset 0 0 0 1px var(--line); color:var(--accent-ink); transition: background .2s, color .2s, box-shadow .2s; }
.svc .svc-ic .ic { width:23px; height:23px; }
.svc h4 { font-size:1rem; margin:0 0 .3rem; color:var(--ink); }
.svc p { font-size:var(--fs-sm); color:var(--body); margin:0; }
.svc .svc-ic { transition: background .2s, color .2s; }
.svc--btn { width:100%; text-align:left; font:inherit; cursor:pointer; align-items:stretch; }
.svc--btn > div:last-child { display:flex; flex-direction:column; flex:1; }
.svc--btn:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.svc--btn:hover .svc-ic { background: var(--accent); color:#fff; }
.svc__more { display:inline-flex; align-items:center; gap:.4rem; margin-top:auto; align-self:flex-start; padding:.32rem .7rem; border-radius:999px; background:var(--accent-soft); font-family:var(--font-head); font-size:var(--fs-xs); font-weight:600; color:var(--accent-ink); transition: background .2s var(--ease), color .2s var(--ease); }
.svc--btn p { margin-bottom:.9rem; }
.svc__more .ic { width:14px; height:14px; transition: transform .2s var(--ease); }
.svc--btn:hover .svc__more { background:var(--accent); color:#fff; }
.svc--btn:hover .svc__more .ic { transform: translateX(3px); }

/* ---------- Modal ---------- */
.modal { position:fixed; inset:0; z-index:120; display:grid; place-items:center; padding:1.2rem; background:rgba(10,26,47,.5); backdrop-filter:blur(3px); opacity:0; visibility:hidden; transition:opacity .25s var(--ease), visibility .25s; }
.modal.open { opacity:1; visibility:visible; }
.modal__dialog { position:relative; background:#fff; border-radius:16px; width:100%; max-width:620px; max-height:88vh; overflow-y:auto; padding:2rem clamp(1.4rem,4vw,2.4rem); box-shadow:0 30px 80px rgba(10,26,47,.4); transform:translateY(14px) scale(.985); transition:transform .28s var(--ease); }
.modal.open .modal__dialog { transform:none; }
.modal__close { position:absolute; top:14px; right:14px; width:38px; height:38px; border-radius:10px; border:1px solid var(--line); background:#fff; display:grid; place-items:center; cursor:pointer; color:var(--muted); transition:background .2s,color .2s; }
.modal__close:hover { background:var(--paper-2); color:var(--ink); }
.modal__close .ic { width:18px; height:18px; }
.modal__head { display:flex; gap:1rem; align-items:flex-start; margin-bottom:1.1rem; padding-right:2.2rem; }
.modal__ic { flex:none; width:54px; height:54px; border-radius:13px; background:var(--navy-800); display:grid; place-items:center; }
.modal__ic .ic { width:25px; height:25px; color:#fff; }
.modal__kicker { font-size:var(--fs-xs); text-transform:uppercase; letter-spacing:.1em; color:var(--accent-ink); font-weight:600; }
.modal__head h3 { margin:.25rem 0 0; font-size:1.5rem; line-height:1.15; }
.modal__body .lead { margin-bottom:1rem; color:var(--body); }
.modal__body p { color:var(--body); margin:.8rem 0; }
.modal__body .checklist { margin:1rem 0; }
.modal__cta { margin-top:1.5rem; }
@media (prefers-reduced-motion: reduce){ .modal, .modal__dialog { transition:none; } }

/* ---------- Reveal ---------- */
.reveal { opacity:0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity:1; transform:none; }

/* ---------- Refinos tipográficos (Sora) ---------- */
.title-xl, .hero h1 { letter-spacing: -.035em; line-height: 1.04; font-weight: 700; }
.title-lg { letter-spacing: -.03em; }
.title-md { letter-spacing: -.02em; }
.kicker { font-weight: 600; }

/* ---------- Barra de progresso de scroll ---------- */
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; z-index: 120; background: linear-gradient(90deg, var(--brand), var(--blue-600)); border-radius: 0 3px 3px 0; transition: width .1s linear; }
/* Botão voltar ao topo */
.to-top { position: fixed; right: clamp(1rem,3vw,2rem); bottom: clamp(1rem,3vw,2rem); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--navy-800); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 130; opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; box-shadow: var(--shadow-md); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), background .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--navy-900); transform: translateY(-2px); }
.to-top svg { display: block; }

/* ---------- Screenshot emoldurado (premium) ---------- */
.shot { position: relative; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -28px rgba(16,48,73,.45), 0 12px 28px -18px rgba(16,48,73,.25); transform: perspective(1600px) rotateY(-3deg) rotateX(1.5deg); transition: transform .6s var(--ease), box-shadow .6s var(--ease); will-change: transform; }
.shot:hover { transform: perspective(1600px) rotateY(0deg) rotateX(0deg) translateY(-4px); box-shadow: 0 40px 80px -30px rgba(16,48,73,.5); }
.shot img { display: block; width: 100%; height: auto; }
.shot--bare { border:0; background:transparent; box-shadow: 0 36px 70px -34px rgba(16,48,73,.42); transform:none; }
.shot--bare:hover { transform: translateY(-4px); }
.shot--float { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.shot__badge { position:absolute; left:14px; bottom:14px; display:inline-flex; align-items:center; gap:.45rem; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border:1px solid var(--line); border-radius:999px; padding:.35rem .8rem; font-family:var(--font-head); font-weight:600; font-size:.74rem; color:var(--accent-ink); box-shadow: var(--shadow-sm); }
.shot__badge .dot { width:7px; height:7px; border-radius:50%; background:#16a34a; box-shadow:0 0 0 3px rgba(22,163,74,.18); }

/* combinação dashboard + celular (mostra que há app mobile) */
.device-combo { position: relative; }
.phone-mock { position:absolute; right:-10px; bottom:-22px; width: clamp(110px, 25%, 146px); aspect-ratio: 600/848; background:#0e1a23; border-radius:20px; padding:6px; border:1px solid rgba(255,255,255,.08); box-shadow: 0 24px 46px -16px rgba(16,48,73,.5); z-index:3; animation: floaty 7s ease-in-out infinite; animation-delay:-3.5s; }
.phone-mock img { width:100%; height:100%; object-fit:cover; object-position:top center; border-radius:14px; display:block; }
.phone-mock__tag { position:absolute; left:50%; top:-13px; transform:translateX(-50%); display:inline-flex; align-items:center; gap:.35rem; white-space:nowrap; background: var(--navy-800); color:#fff; font-family:var(--font-head); font-weight:600; font-size:.64rem; letter-spacing:.02em; padding:.28rem .62rem; border-radius:999px; box-shadow: var(--shadow-sm); }
.phone-mock__tag .ic { width:13px; height:13px; color: var(--brand); }
@media (max-width:520px){ .phone-mock { display:none; } }

/* showcase de sistema (logo + screenshot) */
.showcase { display:grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem,5vw,4rem); align-items:center; }
.showcase--reverse > .showcase__media { order:-1; }

/* ---------- Header: leve encolhimento ao rolar ---------- */
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), var(--shadow-sm); }

/* ---------- Hero: intro stagger no load ---------- */
.hero__inner > * { opacity: 0; transform: translateY(16px); animation: heroIn .8s var(--ease) forwards; }
.hero__inner > *:nth-child(1){ animation-delay:.05s } .hero__inner > *:nth-child(2){ animation-delay:.14s }
.hero__inner > *:nth-child(3){ animation-delay:.23s } .hero__inner > *:nth-child(4){ animation-delay:.32s }
.hero__inner > *:nth-child(5){ animation-delay:.40s }
.hero__inner.split > * { opacity:0; transform: translateY(16px); animation: heroIn .8s var(--ease) forwards; }
.hero__inner.split > *:nth-child(2){ animation-delay:.18s }
@keyframes heroIn { to { opacity:1; transform:none; } }

/* link underline animado no nav */
.nav-links a::after { content:""; position:absolute; left:0; right:0; bottom:-22px; height:2px; background:var(--navy-800); transform:scaleX(0); transform-origin:left; transition:transform .28s var(--ease); }
.nav-links a { position:relative; }
.nav-links a:hover::after, .nav-links a.active::after { transform:scaleX(1); }

/* ---------- Reveal (stagger via --i) ---------- */
.reveal { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Responsivo ---------- */
@media (max-width: 920px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase--reverse > .showcase__media { order:0; }
  .shot { transform: none; }
  .nav-links, .nav-cta .btn { display:none; }
  .nav-toggle { display:block; }
  .nav.open .nav-links { display:flex; position:absolute; top:70px; left:0; right:0; flex-direction:column; background:#fff; padding:1.2rem var(--gutter); gap:1rem; border-bottom:1px solid var(--line); box-shadow: var(--shadow-md); }
  .grid-2,.grid-3,.grid-4,.split,.compare,.stats,.footer-grid { grid-template-columns: 1fr; }
  .grid-3,.grid-4 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap:1.4rem; }
  .split--reverse .split__media { order:0; }
  .hero__art { display:none; }
}
@media (max-width: 560px) {
  .grid-3,.grid-4,.stats { grid-template-columns: 1fr; }
  .cta { flex-direction:column; align-items:flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *{transition:none!important;animation:none!important;scroll-behavior:auto}
  .reveal{opacity:1;transform:none}
  .hero__inner > *, .hero__inner.split > * { opacity:1!important; transform:none!important; }
  .shot, .shot--float { animation:none!important; transform:none!important; }
}

/* ============================================================
   LOTE 2026-06-05 #4 — nav ativo, deco animada, rodapé, responsivo
   ============================================================ */

/* --- Nav: pílula de página ativa (destaque claro) + CTA no menu mobile --- */
.nav-links { gap: .35rem; }
.nav-links a:not(.btn) { padding: .5rem .78rem; border-radius: 9px; font-weight: 500; transition: color .2s var(--ease), background .2s var(--ease); }
.nav-links a:not(.btn)::after { display: none; }   /* pílula substitui o sublinhado */
.nav-links a:not(.btn):hover { color: var(--navy-900); background: var(--paper-2); }
.nav-links a:not(.btn).active { color: var(--accent-ink); background: var(--accent-soft); font-weight: 700; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.nav-links a.btn { color: #fff; }   /* corrige especificidade vs. .nav-links a */
.nav-mobile-cta { display: none; }

/* --- Hero deco: marca fantasma que se monta (Tetris) com transparência --- */
.hero__deco--build { background: none; opacity: .14; display: flex; align-items: center; justify-content: center; width: clamp(150px, 18vw, 240px); }
.hero__deco--build .logo-build { gap: 0; }
.hero__deco--build .tetris { width: clamp(120px, 15vw, 200px); }
@media (max-width: 860px){ .hero__deco--build { display: none; } }

/* --- CRA centralizado (Sobre) --- */
.cred--center { flex-direction: column; align-items: center; text-align: center; max-width: 640px; margin-inline: auto; gap: 1rem; }

/* --- Rodapé: linhas de contato com ícone --- */
.footer-contact { display: flex; flex-direction: column; gap: .45rem; }
.footer-contact .fc-row { display: flex; align-items: flex-start; gap: .55rem; padding: .12rem 0; }
.footer-contact .fc-row .ic { width: 16px; height: 16px; flex: none; margin-top: .2rem; color: var(--brand); stroke: currentColor; fill: none; }
.footer-contact .fc-row span { color: rgba(255,255,255,.66); font-size: .9rem; line-height: 1.45; }
.footer-contact a.fc-row:hover span { color: #fff; }
.footer-contact .fc-tel span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.footer-contact .footer-addr span { color: rgba(255,255,255,.55); }

/* ============================================================
   Responsivo (passada completa mobile-first)
   ============================================================ */
@media (max-width: 920px) {
  .nav-cta { display: none; }                         /* CTA desktop oculto; vai p/ o menu */
  .nav.open .nav-links { gap: .5rem; }
  .nav.open .nav-mobile-cta { display: inline-flex; justify-content: center; width: 100%; margin-top: .5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-mapcol { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
  .showcase__media .shot, .split__media .shot { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .hero h1 { max-width: none; }
  .device-combo { max-width: 520px; margin-inline: auto; }
  .cta { text-align: left; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-mapcol { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: .3rem; }
  .breadcrumb { flex-wrap: wrap; }
  .modal__head { gap: .8rem; }
  .modal__head h3 { font-size: 1.3rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .syscard__head { flex-wrap: wrap; gap: .55rem; }
  .syscard__tag { white-space: normal; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
  .nav .brand img { height: 30px; }
  .footer-mapmini { max-width: 100%; }
}

/* ============================================================
   ART DIRECTION (lote 2026-06-05 #5) — direção editorial premium
   ============================================================ */

/* — Tipografia: ragging equilibrado + leading confiante — */
h1, h2, h3 { text-wrap: balance; }
p, .lead, li { text-wrap: pretty; }
.title-xl, .hero h1 { line-height: 1.0; letter-spacing: -.04em; font-weight: 800; }
.title-lg { line-height: 1.05; letter-spacing: -.035em; }
.title-md { line-height: 1.08; letter-spacing: -.028em; font-weight: 700; }
.lead { line-height: 1.6; }

/* — Overline / kicker como filete premium — */
.kicker { font-size: .72rem; letter-spacing: .22em; opacity: .92; }
.kicker--line::before { width: 30px; height: 2px; background: linear-gradient(90deg, var(--brand), transparent); }
.section--navy .kicker { opacity: 1; }

/* — Eyebrow numerada (cabeçalho de seção editorial) — */
.eyebrow { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.1rem; }
.eyebrow .idx { font-family: var(--font-head); font-weight: 700; font-size: .78rem; color: var(--brand); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.eyebrow .lbl { font-family: var(--font-head); font-weight: 600; font-size: .73rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.eyebrow::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.section--navy .eyebrow .lbl { color: rgba(255,255,255,.62); }
.section--navy .eyebrow::after { background: linear-gradient(90deg, rgba(255,255,255,.18), transparent); }

/* — Links de texto: sublinhado que se revela — */
.link-arrow { position: relative; }
.link-arrow::before { content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; max-width: calc(100% - 1.4rem); height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.link-arrow:hover::before { transform: scaleX(1); }

/* — Cards: elevação expo + filete superior no hover — */
.card, .feature, .mvv, .svc, .syscard, .client { transition: transform .55s var(--ease-out), border-color .4s var(--ease), box-shadow .55s var(--ease-out); }
.card:hover, .feature:hover, .mvv:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.client:hover { transform: translateY(-4px); }
a.card { position: relative; overflow: hidden; }
a.card::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 10%, transparent)); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease-out); }
a.card:hover::after { transform: scaleX(1); }

/* — Brilho que segue o cursor (sutil) nos cards — */
.card[data-spot], .svc[data-spot] { position: relative; }
.card[data-spot]::before, .svc[data-spot]::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .4s var(--ease); background: radial-gradient(380px circle at var(--mx,50%) var(--my,50%), color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%); pointer-events: none; z-index: 0; }
.card[data-spot]:hover::before, .svc[data-spot]:hover::before { opacity: 1; }
.card[data-spot] > *, .svc[data-spot] > * { position: relative; z-index: 1; }

/* — Botões: foco acessível + brilho ao passar — */
.btn { letter-spacing: .005em; transition: background .25s var(--ease), border-color .25s, color .25s, transform .25s var(--ease-out), box-shadow .35s var(--ease-out); }
.btn:not(.btn--ghost):hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* — Seções escuras: profundidade (gradiente radial + textura de pixels da marca) — */
.section--navy, .cta { position: relative; overflow: hidden; background: radial-gradient(130% 150% at 100% 0%, #184a6c 0%, var(--navy-800) 46%, var(--navy-900) 100%); }
.section--navy::before, .cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1.4px); background-size: 24px 24px; opacity: .045; pointer-events: none; }
.section--navy > .container, .cta > * { position: relative; z-index: 1; }

/* — Estatísticas: números dominantes, “ledger” com filete — */
.stat .n { font-size: clamp(2.3rem, 4.8vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; }
.stat .l { margin-top: .7rem; }
.section--navy .stats { gap: 1.2rem 2rem; }
.section--navy .stat { padding-left: 1.3rem; border-left: 1px solid rgba(255,255,255,.14); }
/* faixa de prova com 2 números em destaque (página Clientes) */
.stats--duo { grid-template-columns: repeat(2, max-content); justify-content: center; gap: clamp(2.6rem, 9vw, 7rem); }
.stats--duo .stat { padding-left: 1.6rem; }
.stats--duo .stat .n { font-size: clamp(3.4rem, 8vw, 5.4rem); }
.stats--duo .stat .l { font-size: .95rem; margin-top: 1rem; letter-spacing: .08em; }
@media (max-width: 560px){ .stats--duo { grid-template-columns: 1fr 1fr; gap: 1.4rem; justify-content: stretch; } }

/* — Hero: respiro e título dominante — */
.hero__inner.hero--home { padding-block: clamp(2.8rem, 5vw, 4.6rem); }
.hero .lead { margin-top: 1.4rem; }
/* home (coluna estreita): título contido p/ ficar compacto; heros internos usam o tamanho grande */
.hero--home .hero__copy h1 { font-size: clamp(2.3rem, 4.3vw, 3.65rem); max-width: 17ch; }
.hero--home .hero__copy .lead { margin-top: 1.1rem; }

/* — Faixa de prova discreta no hero (credibilidade inline) — */
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.5rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hero__meta .mi { display: inline-flex; align-items: baseline; gap: .45rem; }
.hero__meta .mi b { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.hero__meta .mi span { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.hero__meta .sep { width: 1px; height: 24px; background: var(--line); }
@media (max-width: 560px) { .hero__meta .sep { display: none; } .hero__meta { gap: .6rem 1.4rem; } }

/* — Reveal com easing expo + leve blur de entrada — */
.reveal { transform: translateY(20px); filter: blur(2px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), filter .7s var(--ease-out); }
.reveal.in { filter: none; }
@media (prefers-reduced-motion: reduce) { .reveal { filter: none !important; } }
