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

:root {
  --blue: #0079FF;
  --blue-dark: #005FCC;
  --blue-light: #E6F1FF;
  --navy: #080C14;
  --bg: #FFFFFF;
  --bg-alt: #F7F9FC;
  --text: #0F1729;
  --text-mid: #0F1729;
  --text-muted: #0F1729;
  --border: rgba(0,0,0,0.08);
  --green: #16A34A;
  --red: #DC2626;
  --amber: #CA8A04;
  --sans: 'Inter', sans-serif;
  --hero-font: 'Google Sans Flex', 'Inter', sans-serif;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 6px 24px rgba(0,0,0,0.09), 0 1px 6px rgba(0,0,0,0.04);
  --max-w: 1600px;
  --px: clamp(16px, 2.5vw, 40px);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* skip-to-content */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--blue); color: #fff;
  padding: 8px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 80px;
  background: var(--navy);
  background: color-mix(in srgb, var(--navy) 97%, transparent);
  backdrop-filter: blur(14px);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--px); height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

nav.nav-scrolled {
  background: var(--navy);
  box-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img {
  height: 27px; width: auto; display: block;
}

.nav-cta {
  background: var(--blue); color: #fff !important;
  padding: 8px 20px; border-radius: var(--radius);
  font-weight: 500 !important; font-size: 14px;
  text-decoration: none; transition: background 0.15s;
}
.nav-cta:hover { background: var(--blue-dark) !important; }
/* ─── HERO ─── */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #F0F4FC 0%, #F7F9FE 60%, #EEF2FB 100%);
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 115px var(--px) 62px var(--px);
  display: grid;
  grid-template-columns: minmax(0, 56%) minmax(0, 44%);
  align-items: center;
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding-right: 40px;
  min-width: 0;
}

.hero-right {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
  position: relative;
  min-width: 0;
}

.hero-eyebrow {
  font-family: var(--hero-font);
  display: block;
  font-size: 11px; font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--hero-font);
  font-size: clamp(26px, 3.1vw, 46px);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  font-weight: 300;
  color: var(--blue);
}

.hero-sub {
  font-family: var(--hero-font);
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.72;
  font-weight: 400;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-ctas {
  display: flex; gap: 16px; align-items: center; flex-wrap: nowrap;
}

.btn-hero {
  font-family: var(--hero-font);
  background: var(--blue); color: #fff;
  padding: 14px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 500;
  text-decoration: none; transition: background 0.15s, box-shadow 0.15s;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(27,111,255,0.28);
}
.btn-hero:hover { background: var(--blue-dark); box-shadow: 0 6px 20px rgba(27,111,255,0.35); }

/* Hero visual asset */
.hero-asset {
  width: 100%;
  max-width: 700px;
}

.hero-asset img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
}

/* ─── HERO LOGOS CAROUSEL ─── */
.hero-logos {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.hero-logos-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: logos-ticker 20s linear infinite;
}

.hero-logos-track:hover { animation-play-state: paused; }

@keyframes logos-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-logos-track img {
  height: 22px;
  width: auto;
  max-width: 84px;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(1) opacity(0.4);
  transition: filter 0.35s ease;
}

.hero-logos-track img:hover {
  filter: grayscale(0) opacity(1);
}

/* ─── LAYOUT PRIMITIVES ─── */
.sw { border-top: 1px solid var(--border); }
.sw-alt { background: var(--bg-alt); border-top: 1px solid var(--border); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 110px var(--px);
}

/* ─── SECTION OVERRIDES ─── */
#como-funciona { background: #fff; }
#como-funciona > .container { padding-bottom: 56px; }
#mercados-v2 > .container:first-child { padding-bottom: 55px; }
#mercados-v2 > .container:first-child .section-body { margin-bottom: 28px; }
#mercados-v2 > .container:last-child { padding-top: 0; padding-bottom: 110px; }
#diferenciais > .container { padding-bottom: 137px; }


.section-label {
  font-size: 12px; font-weight: 600; color: var(--blue);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px;
}

h2.section-title {
  font-size: clamp(22px, 3.1vw, 38px);
  font-weight: 300; letter-spacing: -0.01em;
  line-height: 1.2; color: var(--navy);
  max-width: 680px; margin-bottom: 20px;
}
h2.section-title.wide { max-width: 820px; text-wrap: balance; }
h2.section-title.pq-title { max-width: 1100px; }

.section-body {
  font-size: 17px; color: var(--text-muted);
  max-width: 560px; line-height: 1.75;
  font-weight: 400; margin-bottom: 56px;
}

/* ─── HOW IT WORKS: accordion + image ─── */
.hf-wrap {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  gap: 0;
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hf-list {
  display: flex; flex-direction: column;
  padding: 0 56px 80px var(--px);
}

.hf-item {
  cursor: pointer;
  border-top: 1px solid var(--border);
  position: relative;
}
.hf-item:last-child { border-bottom: 1px solid var(--border); }

/* Active card: lift from the list with left accent */
.hf-item.active {
  border-top-color: transparent;
  margin: -1px 0;
  border-radius: 10px;
  box-shadow: 0 2px 20px rgba(15,30,61,0.07);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  background: #fff;
}
.hf-item.active + .hf-item { border-top-color: transparent; }

.hf-item-header {
  display: flex; align-items: center;
  padding: 24px 20px 24px 0;
  gap: 14px;
}
.hf-item.active .hf-item-header {
  padding: 24px 20px 20px 20px;
}

.hf-item-num {
  font-size: 11px; font-weight: 600; color: var(--blue);
  letter-spacing: 0.1em;
  flex-shrink: 0; min-width: 22px;
}

.hf-item-title {
  font-size: 17px; font-weight: 500;
  color: var(--navy); line-height: 1.35;
  flex: 1; margin: 0;
}

.hf-item-arrow {
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid #d1d9e6;
  background: #fff;
  transition: background 0.2s, border-color 0.2s;
}
.hf-item-arrow svg { width: 13px; height: 13px; transition: transform 0.3s ease; }
.hf-item.active .hf-item-arrow { background: var(--blue); border-color: var(--blue); }
.hf-item.active .hf-item-arrow svg { transform: rotate(180deg); }
.hf-item.active .hf-item-arrow svg path { stroke: #fff; }

.hf-item-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.42s ease;
}
.hf-item.active .hf-item-body { max-height: 480px; }

.hf-item-body-inner {
  padding: 0 20px 28px 20px;
}

.hf-item-desc {
  font-size: 15px; color: var(--text-mid);
  line-height: 1.72; margin-bottom: 18px;
}

.hf-item-bullets { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 0; }
.hf-item-bullets li {
  font-size: 14px; color: var(--text-mid);
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.55;
}
.hf-item-bullets li::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--navy); flex-shrink: 0; margin-top: 8px;
}

.hf-visual {
  position: sticky;
  top: 80px;
  align-self: start;
  padding: 0 var(--px) 80px 40px;
}

.hf-img-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 40px rgba(15,30,61,0.10);
}

#hf-video {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  max-height: 560px;
  /* Reserva o espaço antes do vídeo carregar, evitando deslocamento de layout.
     9/5 = 1.80, a proporção real dos três vídeos da seção. */
  aspect-ratio: 9 / 5;
  background: var(--border, #e6e9f0);
}

.section-body-narrow {
  max-width: 820px;
}

/* ─── CONTRAST TABLE ─── */
.contrast-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.contrast-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.contrast-wrap thead tr { background: var(--bg-alt); }
.contrast-wrap th {
  padding: 16px 24px; text-align: left;
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--border); font-weight: 600;
}
.contrast-wrap th:first-child { width: 26%; }
.contrast-wrap td {
  padding: 15px 24px; border-bottom: 1px solid var(--border);
  color: var(--text-mid); line-height: 1.5; vertical-align: top;
}
.contrast-wrap tr:last-child td { border-bottom: none; }
.contrast-wrap tbody tr:hover td { background: var(--bg-alt); }

td.feature { color: var(--navy); font-weight: 600; }
td.good { color: var(--green); }
td.bad { color: var(--red); }
td.mid { color: var(--amber); }

.check::before { content: '✓ '; color: var(--green); }
.cross::before { content: '✗ '; color: var(--red); }
.warn::before { content: '~ '; color: var(--amber); }

/* ─── PARA QUEM V2 (CAROUSEL) ─── */
.pq-carousel-container { padding-top: 0; }
.pq-carousel-inner { position: relative; }
.pq-carousel-track {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.pq-slide {
  min-width: 0; padding: 24px; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 3px 22px rgba(15,30,61,0.07);
}
.pq-slide-title {
  font-size: 22px; font-weight: 700; color: var(--navy);
  line-height: 1.25; margin-bottom: 24px;
}
.pq-slide-media {
  position: relative; width: 100%; flex-shrink: 0;
  margin-top: auto; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 12px; background: var(--bg-alt);
}
.pq-slide-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.pq-dots { display: none; }
.pq-dot {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: none; background: transparent; cursor: pointer;
}
.pq-dot::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(15,30,61,0.18);
}
.pq-dot.active::before { background: var(--blue); width: 22px; border-radius: 4px; }


/* ─── FOOTER ─── */
/* O rodapé é só o filete: copyright à esquerda, redes sociais à direita. */
.footer-main {
  background: var(--navy);
}
.footer-copy-bar {
  max-width: var(--max-w); margin: 0 auto;
  padding: 20px var(--px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-social-icons {
  display: flex; gap: 10px; flex-shrink: 0;
}
.footer-social-icons a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.footer-social-icons a:hover { background: rgba(255,255,255,0.25); }
.footer-social-icons svg {
  width: 16px; height: 16px;
  fill: none; stroke: #fff;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  display: block;
}

/* ─── TABLET ─── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 52% 48%; }
  .hero-left { padding-right: 36px; }
  .hero h1 { font-size: clamp(24px, 2.8vw, 40px); }
  .hero-asset { max-width: 520px; }

  .pq-carousel-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h2.section-title.pq-title { max-width: 820px; }
}

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  :root { --px: 20px; }

  .nav-inner { padding: 0 16px; }
  .nav-logo { flex-shrink: 1; min-width: 0; }
  .nav-logo img { width: 100%; max-width: 140px; height: auto; }
  .nav-cta { flex-shrink: 0; padding: 12px 10px; font-size: 12px; white-space: nowrap; }

  .container { padding: 80px 20px; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 140px 20px 56px 20px;
    min-height: auto;
    gap: 48px;
  }
  .hero-left { grid-column: 1; padding-right: 0; }
  .hero-right { grid-column: 1; align-items: center; }
  .hero-asset { max-width: 100%; }
  .hero h1 { font-size: clamp(26px, 7vw, 39px); }
  .hero-sub { font-size: 16px; max-width: 100%; }

  .hf-wrap { grid-template-columns: 1fr; }
  .hf-list { padding: 0 20px 48px 20px; }
  .hf-item-header { padding: 22px 0; }
  .hf-item.active .hf-item-header { padding: 22px 16px 18px 16px; }
  .hf-item-body-inner { padding: 0 16px 24px 16px; }
  .hf-item.active .hf-item-body { max-height: 1600px; }
  .hf-item-media:not(:empty) { margin-top: 20px; }
  .hf-visual { display: none; }


  .footer-copy-bar { flex-direction: column; gap: 12px; text-align: center; }

  h2.section-title { font-size: clamp(21px, 6.2vw, 30px); }
  .section-body { font-size: 16px; }

  /* ── tabela comparativa → cards ── */
  .contrast-wrap { border: none; box-shadow: none; border-radius: 0; background: transparent; }
  .contrast-wrap table { display: block; }
  .contrast-wrap thead { display: none; }
  .contrast-wrap tbody { display: flex; flex-direction: column; gap: 12px; }
  .contrast-wrap tbody tr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: #fff;
  }
  .contrast-wrap td { padding: 12px; border-bottom: none; line-height: 1.45; font-size: 13px; }
  .contrast-wrap tbody tr:hover td { background: transparent; }
  .contrast-wrap tr:last-child td { border-bottom: none; }
  .contrast-wrap td.feature {
    grid-column: 1 / -1;
    background: var(--bg-alt);
    padding: 13px 16px;
    font-size: 14px; font-weight: 700;
    border-bottom: 1px solid var(--border);
  }
  .contrast-wrap td:nth-child(2) { border-right: 1px solid var(--border); }
  .contrast-wrap td:nth-child(3) { border-right: 1px solid var(--border); }
  .contrast-wrap td:nth-child(2)::before {
    content: 'NortScale';
    display: block; font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--navy); margin-bottom: 5px;
  }
  .contrast-wrap td:nth-child(3)::before {
    content: 'IA Gen.';
    display: block; font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--text-muted); margin-bottom: 5px;
  }
  .contrast-wrap td:nth-child(4)::before {
    content: 'Manual';
    display: block; font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--text-muted); margin-bottom: 5px;
  }

  .pq-carousel-track {
    display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .pq-carousel-track::-webkit-scrollbar { display: none; }
  .pq-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
  .pq-slide-title { font-size: 21px; }
  .pq-dots { display: flex; justify-content: center; gap: 4px; margin-top: 16px; }

}



/* ============================================
   AJUSTES SOMENTE CELULAR (não afeta tablet nem desktop)
   ============================================ */
@media (max-width: 600px) {
  /* Oculta a imagem do hero (cards de vidro) apenas no celular */
  .hero-right { display: none; }

  /* Como funciona: vídeo logo abaixo do título, antes do texto e dos bullets */
  .hf-item-body-inner { display: flex; flex-direction: column; }
  .hf-item-media { order: -1; }
  .hf-item-media:not(:empty) { margin-top: 0; margin-bottom: 20px; }
}
