/* ==========================================================================
   Integra Cargo — folha de estilo do site
   Escrita a mao, sem framework. Depende apenas de tokens.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--body-ink);
  background: var(--surface);
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.45rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* Foco visivel em tudo que e interativo — nao remover. */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 12px 22px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--r-btn) var(--r-btn);
  transition: top .2s;
}
.skip-link:focus { top: 0; text-decoration: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   2. Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  padding: clamp(64px, 8vw, 104px) 0;
  /* compensa o header fixo quando a ancora e acessada */
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.section--alt  { background: var(--surface-alt); }
.section--dark { background: var(--navy); color: rgba(255, 255, 255, .72); }

.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }

/* :not(.btn) e obrigatorio: sem ele esta regra (0,1,1) vence .btn--primary (0,1,0)
   e o texto do botao fica coral sobre o gradiente coral, invisivel ate o hover. */
.section--dark a:not(.btn) { color: var(--brand); }

/* Faixa escura ganha um brilho suave na cor de acento, como os cards da SPA */
.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 12% 0%, color-mix(in srgb, var(--sec-from, var(--brand)) 16%, transparent), transparent 70%),
    radial-gradient(50% 50% at 92% 100%, color-mix(in srgb, var(--sec-to, var(--brand-2)) 12%, transparent), transparent 70%);
}
.section--dark > .wrap { position: relative; z-index: 1; }

.section__head { max-width: 780px; margin-bottom: 44px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Rotulo de secao: caixa alta + tracking, como os .card-category do sistema */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track);
  color: var(--brand-ink);
}
.section--dark .eyebrow { color: var(--brand); }

/* O numero da secao usa o gradiente proprio dela */
.eyebrow__num {
  display: inline-grid;
  /* alguns gradientes de secao sao claros; a sombra mantem o numero legivel */
  text-shadow: 0 1px 2px rgba(0, 0, 0, .38);
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--r-card);
  background-image: linear-gradient(to bottom left, var(--sec-from), var(--sec-to));
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0;
}

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.3rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--body-ink);
}
.section--dark .lead { color: rgba(255, 255, 255, .78); }

/* Frase de fecho de secao — o "recado" que o documento destaca */
.pullquote {
  margin: 40px 0 0;
  padding-left: 22px;
  border-left: 4px solid;
  border-image: linear-gradient(to bottom, var(--sec-from), var(--sec-to)) 1;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.section--dark .pullquote { color: #fff; }

.grid { display: grid; gap: 22px; }
.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: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

/* --------------------------------------------------------------------------
   3. Botoes — replica do mixin diagonal-gradient do sistema
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 0;
  border-radius: var(--r-btn);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track);
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-position .35s ease,
              background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); box-shadow: none; }

.btn--primary {
  background: var(--brand);
  background-image: var(--brand-grad);
  background-size: 210% 210%;
  background-position: top right;
  color: #fff;
  box-shadow: var(--sh-btn);
}
.btn--primary:hover {
  background-position: bottom left;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--sh-btn-hover);
}

/* Equivalente ao .btn-simple do sistema: fundo vazado, borda na cor da marca */
.btn--simple {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
}
.btn--simple:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}
/* sobre fundo claro o texto precisa da variante escurecida */
.section:not(.section--dark) .btn--simple { border-color: var(--brand-ink); color: var(--brand-ink); }
.section:not(.section--dark) .btn--simple:hover { background: var(--brand-ink); color: #fff; }

.btn--ghost {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; transform: translateY(-1px); }

.btn--lg { padding: 17px 38px; font-size: 1rem; }
.btn--round { border-radius: var(--r-pill); }

/* CTA que fecha cada secao */
.section__cta { margin-top: 36px; }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--navy-bar);
  transition: background .25s ease, box-shadow .25s ease, height .25s ease;
}
.header.is-scrolled {
  height: 64px;
  background: transparent;
  box-shadow: 0 2px 22px rgba(0, 0, 0, .28);
}

/* O desfoque vive numa camada propria, e nao no .header.
   backdrop-filter aplicado ao proprio header o tornaria bloco contentor dos
   descendentes position:fixed — e o painel do menu mobile ficaria preso a
   altura do header em vez de ocupar a tela. */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: inherit;
  transition: background .25s ease;
}
.header.is-scrolled::before {
  background: rgba(13, 13, 15, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.header__logo { flex: none; }
.header__logo img {
  height: 34px;
  width: auto;
  transition: height .25s ease;
}
.header.is-scrolled .header__logo img { height: 28px; }

/* Linha unica: sem display:flex aqui, o .nav__list e o .nav__actions
   empilham e os botoes vazam para fora da altura do header. */
.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  min-width: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: block;
  padding: 9px 13px;
  border-radius: var(--r-btn);
  color: rgba(255, 255, 255, .78);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav__link:hover,
.nav__link:focus-visible { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav__link.is-active { color: var(--brand); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 14px;
}
.nav__actions .btn {
  padding: 10px 18px;
  font-size: var(--fs-xs);
  /* rotulo de botao no header nunca quebra em duas linhas: entre ~930 e
     1024px os itens encolhiam e o texto virava "ACESSO / CLIENTE" */
  flex: none;
  white-space: nowrap;
}

/* nessa faixa a linha fica apertada; aperta o respiro antes de deixar quebrar */
@media (max-width: 1080px) {
  .header__inner { gap: 14px; }
  .nav__link { padding: 9px 9px; }
  .nav__actions { gap: 8px; margin-left: 8px; }
  .nav__actions .btn { padding: 10px 13px; }
}

/* --- mega-menu de solucoes --- */

.megamenu { position: relative; }

.megamenu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  font-family: inherit;
}
.megamenu__toggle .chev { transition: transform .2s ease; }
.megamenu__toggle[aria-expanded='true'] .chev { transform: rotate(180deg); }
.megamenu__toggle[aria-expanded='true'] { color: #fff; background: rgba(255, 255, 255, .08); }

.megamenu__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(880px, calc(100vw - 40px));
  padding: 22px;
  background: var(--navy-card);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-xl);
  box-shadow: 0 50px 100px rgba(0, 0, 0, .35), 0 15px 35px rgba(0, 0, 0, .3);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.megamenu.is-open .megamenu__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.megamenu__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: var(--r-btn);
  color: rgba(255, 255, 255, .8);
  font-size: var(--fs-sm);
  line-height: 1.3;
  transition: background .18s, color .18s;
}
.megamenu__item:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }

.megamenu__num {
  flex: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .38);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: var(--r-card);
  background-image: linear-gradient(to bottom left, var(--sec-from), var(--sec-to));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* --- botao hamburguer --- */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(64px, 8vw, 104px);
  background: var(--navy);
  color: rgba(255, 255, 255, .78);
  overflow: hidden;
  scroll-margin-top: var(--header-h);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.jpg') center / cover no-repeat;
  opacity: .22;
}

/* overlay navy + brilho coral, na linha do fundo da tela de login do sistema */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 85% 12%, rgba(255, 133, 77, .30), transparent 68%),
    radial-gradient(55% 55% at 8% 92%, rgba(253, 87, 107, .22), transparent 70%),
    linear-gradient(180deg, rgba(18, 18, 20, .86) 0%, rgba(18, 18, 20, .94) 55%, var(--navy) 100%);
}

.hero > .wrap { position: relative; z-index: 2; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.hero__media { margin: 0; }

/* em tela larga sobra margem fora do .wrap: a captura avanca sobre ela
   (o .hero tem overflow:hidden, entao nunca gera scroll horizontal) */
@media (min-width: 1240px) {
  .hero__media { width: 122%; }
}
.hero__media img {
  width: 100%;
  height: auto;
  /* o PNG ja traz sombra propria; o brilho coral atras o separa do fundo navy */
  filter: drop-shadow(0 24px 60px rgba(255, 133, 77, .18));
}

.hero__kicker {
  display: inline-block;
  margin-bottom: 20px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 133, 77, .45);
  border-radius: var(--r-pill);
  background: rgba(255, 133, 77, .1);
  color: var(--brand);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track);
}

.hero h1 {
  max-width: 17ch;
  color: #fff;
  margin-bottom: 22px;
}

.hero__tagline {
  max-width: 62ch;
  margin-bottom: 18px;
  font-size: clamp(1.0625rem, 1.7vw, 1.35rem);
  font-weight: 300;
  color: rgba(255, 255, 255, .82);
}

.hero__text { max-width: 62ch; color: rgba(255, 255, 255, .68); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 40px;
}

/* --- chips de capacidade --- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 500;
  /* sem nowrap: um chip longo ("Integracao com ERP, transportadoras e demais
     players da cadeia") estourava a largura da tela no mobile. Com flex-wrap,
     o navegador so quebra o texto quando o chip sozinho nao cabe na linha. */
  max-width: 100%;
}

.section--dark .chip,
.hero .chip {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .86);
}

.chip--accent {
  border-color: transparent;
  background-image: linear-gradient(to bottom left, var(--sec-from), var(--sec-to));
  color: #fff;
  font-weight: 600;
}

/* --- nota de operacao internacional --- */

.hero__markets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .62);
}
.hero__markets strong { color: #fff; font-weight: 600; }
.hero__markets .dot { color: var(--brand); }

/* --------------------------------------------------------------------------
   5b. Numeros da plataforma
   -------------------------------------------------------------------------- */

.stats {
  position: relative;
  z-index: 3;
  /* o cartao sobe 64px acima da secao: a ancora precisa compensar isso e o header */
  scroll-margin-top: calc(var(--header-h) + 88px);
  padding: 0 0 8px;
  background: var(--surface-alt);
}

/* cartao que sobe sobre a borda inferior do hero */
.stats__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: -64px;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 50px -20px rgba(20, 20, 24, .28), var(--sh-card);
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 30px 22px 28px;
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--line); }

.stat__num {
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  /* gradiente na versao escurecida da marca: coral puro sobre branco
     nao passa nem no minimo de contraste para texto grande (3:1) */
  color: var(--brand-ink);
  background-image: linear-gradient(to right, #C9451A, #C8364A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat__label {
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.4;
  color: var(--body-ink);
}

.stats__note {
  margin: 14px 0 0;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--body-ink);
}

@media (max-width: 920px) {
  /* 5 = 1 + 2 + 2: o maior numero ganha a linha inteira */
  .stats__list { grid-template-columns: 1fr 1fr; margin-top: -48px; }
  .stat { padding: 24px 16px; }
  .stat:first-child { grid-column: 1 / -1; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(odd):not(:first-child) { border-left: 1px solid var(--line); }
}

@media (max-width: 380px) {
  .stats__list { grid-template-columns: 1fr; }
  .stat:nth-child(odd):not(:first-child) { border-left: 0; }
}

/* --------------------------------------------------------------------------
   6. "O que resolve" — sintomas x solucao
   -------------------------------------------------------------------------- */

.pains { display: grid; gap: 12px; }

.pain {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.pain svg { flex: none; margin-top: 2px; color: #9aa4bd; }

.answer {
  padding: clamp(26px, 3.5vw, 38px);
  border-radius: var(--r-xl);
  background: var(--navy);
  color: rgba(255, 255, 255, .78);
  box-shadow: var(--sh-card);
}
.answer h3 { color: #fff; }

/* --------------------------------------------------------------------------
   7. Indice de solucoes
   -------------------------------------------------------------------------- */

.solutions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.solution {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  color: var(--body-ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.solution:hover {
  text-decoration: none;
  transform: translate3d(0, -3px, 0);
  /* mesmo gesto dos stat cards do sistema: sombra colorida no hover */
  box-shadow: 0 10px 24px -6px color-mix(in srgb, var(--sec-from) 55%, transparent);
}

.solution__num {
  display: inline-grid;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .38);
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-card);
  background-image: linear-gradient(to bottom left, var(--sec-from), var(--sec-to));
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.solution__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.solution__desc { margin: 0; font-size: var(--fs-xs); line-height: 1.5; }

/* --------------------------------------------------------------------------
   8. Listas de recurso
   -------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px 28px;
}
.features--single { grid-template-columns: 1fr; }

.features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.features li svg {
  flex: none;
  margin-top: 3px;
  color: var(--sec-from);
}

/* --------------------------------------------------------------------------
   9. Stepper de fluxo
   -------------------------------------------------------------------------- */

.flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 8px 0 36px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.flow::-webkit-scrollbar { height: 6px; }
.flow::-webkit-scrollbar-thumb { background: var(--sec-from); border-radius: 3px; }

.flow__step {
  position: relative;
  flex: 1 0 auto;
  min-width: 118px;
  padding: 14px 10px;
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.section--dark .flow__step { color: rgba(255, 255, 255, .82); }

/* a trilha: bolinha + linha ligando as etapas */
.flow__step::before {
  content: '';
  display: block;
  width: 13px;
  height: 13px;
  margin: 0 auto 11px;
  border-radius: 50%;
  background-image: linear-gradient(to bottom left, var(--sec-from), var(--sec-to));
}
.flow__step::after {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(50% + 12px);
  right: calc(-50% + 12px);
  height: 2px;
  background: color-mix(in srgb, var(--sec-from) 40%, transparent);
}
.flow__step:last-child::after { display: none; }

/* --------------------------------------------------------------------------
   10. Cartao glass — motivo da tela de login do sistema
   -------------------------------------------------------------------------- */

.card-glass {
  padding: clamp(24px, 3vw, 32px);
  border-radius: 10px;
  background: rgba(88, 88, 88, .4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 30px -6px rgba(255, 255, 255, .1);
}
.card-glass h3 { margin-bottom: .35em; }
.card-glass .card-glass__sub {
  margin-bottom: 1.2em;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   11. Chatbot — baloes de conversa
   -------------------------------------------------------------------------- */

.chatbox {
  max-width: 420px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--navy-card);
  box-shadow: var(--sh-card);
}

.chatbox__head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 20px;
  /* mesmo gradiente do cabecalho do widget de chat do sistema */
  background-image: linear-gradient(to bottom left, #FF864E, #FD576B);
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-sm);
}
.chatbox__avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}

.chatbox__body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 20px;
}

.bubble {
  max-width: 85%;
  padding: 11px 17px;
  border-radius: 25px;
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.bubble--out {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background-image: linear-gradient(to bottom left, #FF864E, #FD576B);
  color: #fff;
}
.bubble--in {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .85);
}

/* --------------------------------------------------------------------------
   12. Blocos de apoio
   -------------------------------------------------------------------------- */

/* grupo rotulado de chips (ERPs, conectividade, ecossistema, modais...) */
.chipgroup + .chipgroup { margin-top: 26px; }
.chipgroup__label {
  margin-bottom: 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track);
  color: var(--sec-from);
}
.section:not(.section--dark) .chipgroup__label {
  color: color-mix(in srgb, var(--sec-to) 78%, #000);
}

/* equacao Venda + Margem + Frete */
.equation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 36px 0;
  text-align: center;
}
.equation__term {
  flex: 1 1 150px;
  max-width: 220px;
  padding: 22px 18px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-card);
  font-weight: 600;
  color: var(--ink);
}
.equation__term--result {
  flex-basis: 260px;
  max-width: 320px;
  border-color: transparent;
  background-image: linear-gradient(to bottom left, var(--sec-from), var(--sec-to));
  color: #fff;
}
.equation__op {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--sec-from);
}

/* cartoes de publico */
.audience {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: 1.35;
}
.audience svg { flex: none; color: var(--brand-ink); }

/* trilha de players da cadeia (secao 15) */
.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 28px 0;
}
.chain__plus { color: var(--sec-from); font-weight: 600; }

/* --------------------------------------------------------------------------
   12b. Midia — capturas do produto e fotos
   -------------------------------------------------------------------------- */

.media { margin: 0; }
.media figcaption {
  margin-top: 12px;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--body-ink);
}
.section--dark .media figcaption { color: rgba(255, 255, 255, .55); }

/* captura larga, centralizada abaixo do texto */
.media--wide {
  max-width: 1000px;
  margin: 44px auto 0;
}
.media--wide figcaption { text-align: center; }

/* coluna de texto + midia lado a lado */
.split--media { align-items: center; }

/* Captura do produto numa moldura de janela: deixa claro que e a plataforma real */
.shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 30px 60px -24px rgba(20, 20, 24, .35), 0 12px 24px -12px rgba(0, 0, 0, .18);
}
.section--dark .shot {
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
}
.shot__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  background: #EEF1F6;
  border-bottom: 1px solid var(--line);
}
.shot__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D3D8E2;
}
.shot__bar span:first-child { background: var(--brand); }
.shot img { display: block; width: 100%; height: auto; }

/* PNG ja composto (com sombra e recorte proprios): sem moldura */
.shot--bare,
.section--dark .shot--bare {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* Foto: cantos do sistema ($border-radius-xl) e filete no gradiente da secao */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  background: var(--navy-card);
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.photo::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background-image: linear-gradient(to right, var(--sec-from, var(--brand)), var(--sec-to, var(--brand-2)));
}
.lead + .media,
p + .media { margin-top: 28px; }

/* --------------------------------------------------------------------------
   13. CTA final
   -------------------------------------------------------------------------- */

.closing {
  position: relative;
  padding: clamp(72px, 9vw, 116px) 0;
  background: var(--navy);
  color: rgba(255, 255, 255, .8);
  text-align: center;
  overflow: hidden;
  scroll-margin-top: var(--header-h);
}
.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(255, 133, 77, .34), transparent 70%),
    radial-gradient(50% 60% at 85% 100%, rgba(253, 87, 107, .26), transparent 70%);
}
.closing > .wrap { position: relative; z-index: 1; }

.closing h2 {
  max-width: 20ch;
  margin: 0 auto .5em;
  color: #fff;
}
.closing__lead {
  max-width: 62ch;
  margin: 0 auto 14px;
  font-size: clamp(1.0625rem, 1.7vw, 1.3rem);
  font-weight: 300;
  color: rgba(255, 255, 255, .82);
}
.closing__slogan {
  max-width: 54ch;
  margin: 26px auto 0;
  font-size: var(--fs-sm);
  color: var(--brand);
  font-weight: 500;
}
.closing__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

/* --------------------------------------------------------------------------
   14. Rodape
   -------------------------------------------------------------------------- */

.footer {
  padding: 64px 0 28px;
  background: var(--navy-bar);
  color: rgba(255, 255, 255, .58);
  font-size: var(--fs-sm);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.25fr .9fr 1fr 1.55fr;  /* contato tem dois enderecos: coluna mais larga */
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}

.footer__logo img { height: 40px; width: auto; margin-bottom: 18px; }
.footer__about { max-width: 34ch; font-size: var(--fs-xs); line-height: 1.6; }

.footer h4 {
  margin-bottom: 16px;
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track);
}

.footer__links li + li { margin-top: 9px; }
.footer__links a { color: rgba(255, 255, 255, .58); font-size: var(--fs-sm); }
.footer__links a:hover { color: var(--brand); text-decoration: none; }

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  line-height: 1.5;
}
.footer__contact li + li { margin-top: 13px; }
.footer__contact svg { flex: none; margin-top: 3px; color: var(--brand); }
.footer__contact a { color: rgba(255, 255, 255, .58); }
.footer__contact address { font-style: normal; }
.footer__contact address strong {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, .85);
  font-weight: 600;
}
.footer__contact a:hover { color: var(--brand); text-decoration: none; }

.social { display: flex; gap: 10px; margin-top: 22px; }
.social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .75);
  transition: background .2s, color .2s, transform .2s;
}
.social a:hover {
  background-image: var(--brand-grad);
  background-size: 210% 210%;
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  font-size: var(--fs-xs);
}
.footer__bottom a { color: rgba(255, 255, 255, .58); }
.footer__bottom a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   15. Voltar ao topo
   -------------------------------------------------------------------------- */

.totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background-image: var(--brand-grad);
  background-size: 210% 210%;
  background-position: top right;
  color: #fff;
  cursor: pointer;
  box-shadow: var(--sh-btn);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, visibility .25s, transform .25s, background-position .35s;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { background-position: bottom left; }

/* --------------------------------------------------------------------------
   16. Entrada em cena
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   17. Responsivo
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .solutions { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 920px) {
  :root { --header-h: 64px; }

  .burger { display: flex; }

  /* menu vira painel deslizante */
  .nav {
    display: block;          /* no painel mobile volta a empilhar */
    position: fixed;
    inset: var(--header-h) 0 0 auto;
    width: min(360px, 88vw);
    margin: 0;
    padding: 22px var(--gutter) 40px;
    background: var(--navy-bar);
    box-shadow: -8px 0 40px rgba(0, 0, 0, .4);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 13px 14px; font-size: 1rem; }

  .nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 20px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--line-dark);
  }
  .nav__actions .btn { padding: 13px 18px; font-size: var(--fs-sm); }

  /* no mobile o mega-menu vira uma lista simples que abre no lugar */
  .megamenu__panel {
    position: static;
    width: auto;
    grid-template-columns: 1fr;
    padding: 6px 0 6px 10px;
    margin-top: 2px;
    background: transparent;
    border: 0;
    border-left: 2px solid var(--line-dark);
    border-radius: 0;
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .megamenu.is-open .megamenu__panel { display: grid; }

  .split { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 620px; }
  .media--wide { margin-top: 32px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .solutions { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { max-width: none; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }

  .grid--2, .grid--3, .grid--4,
  .solutions { grid-template-columns: 1fr; }

  .features { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }

  .hero__actions .btn,
  .closing__actions .btn { width: 100%; }

  .equation { flex-direction: column; }
  .equation__term { max-width: none; width: 100%; }
}

/* --------------------------------------------------------------------------
   18. Preferencias do usuario
   -------------------------------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .nav, .totop, .hero__bg { display: none !important; }
  body { color: #000; }
  .section--dark, .closing, .hero { background: #fff !important; color: #000 !important; }
}


/* --------------------------------------------------------------------------
   19. Paginas internas de texto (politica de privacidade)
   -------------------------------------------------------------------------- */

.wrap--narrow { max-width: 820px; }

.pagehead {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 56px;
  background: var(--navy);
  color: rgba(255, 255, 255, .72);
  overflow: hidden;
}
.pagehead::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 88% 0%, rgba(255, 133, 77, .26), transparent 70%),
    radial-gradient(50% 60% at 5% 100%, rgba(253, 87, 107, .18), transparent 70%);
}
.pagehead > .wrap { position: relative; z-index: 1; }
.pagehead h1 { color: #fff; margin-bottom: .3em; }
.pagehead__sub { font-size: 1.1rem; font-weight: 300; color: rgba(255, 255, 255, .78); }

.crumbs {
  margin-bottom: 18px;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .5);
}
.crumbs a { color: var(--brand); }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* corpo de texto longo */
.policy { font-size: var(--fs-sm); line-height: 1.75; }

.policy h2 {
  margin-top: 2.2em;
  padding-top: 1.1em;
  border-top: 1px solid var(--line);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}
.policy > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.policy h3 { margin-top: 1.9em; font-size: 1.15rem; }
.policy h4 { margin-top: 1.6em; font-size: 1rem; color: var(--brand-ink); }

.policy__list { margin: 0 0 1.2em; }
.policy__list li {
  position: relative;
  margin-bottom: .6em;
  padding-left: 22px;
}
.policy__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-image: var(--brand-grad);
  background-size: 210% 210%;
}

.policy__address + .policy__address { margin-top: 1.1em; }
.policy__address strong { color: var(--ink); }
.policy__address {
  margin-top: .4em;
  font-style: normal;
  line-height: 1.7;
}
