/* ============================================
   MOVIX — Refinements v2
   Layered on top of styles.css
   ============================================ */

/* ---------- Real logo ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: inherit;
  font-size: 0;
  line-height: 1;
}
.brand .logo-wrap {
  display: inline-flex;
  align-items: center;
  height: 30px;
}
.brand .logo {
  display: block;
  height: 30px;
  width: auto;
  aspect-ratio: 670 / 207;
  object-fit: contain;
}
.brand .logo-light { display: none; }
.brand .logo-dark { display: block; }
/* Light logo wherever the surrounding chrome is dark */
.nav.dark-mode .brand .logo-light,
.mobile-menu .brand .logo-light,
.footer .brand .logo-light { display: block; }
.nav.dark-mode .brand .logo-dark,
.mobile-menu .brand .logo-dark,
.footer .brand .logo-dark { display: none; }
.brand .brand-mark { display: none !important; }
/* Sizing variants */
.mobile-menu .brand .logo,
.mobile-menu .brand .logo-wrap { height: 36px; }
.footer-brand .brand .logo,
.footer-brand .brand .logo-wrap { height: 44px; }
.brand > span:not(.logo-wrap) { display: none; }

/* Real photo support */
.leader-img[data-photo="true"] {
  background: #1A1A1A;
  position: relative;
}
.leader-img[data-photo="true"]::before {
  background: none;
}
.leader-img[data-photo="true"] img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  z-index: 2;
}
.leader-img[data-photo="true"] .leader-img-label { display: none; }
.clients {
  background: var(--paper);
  padding: 96px 0 80px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.clients-header {
  text-align: center;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.clients-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--amber);
}
.clients-title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--text-primary);
  max-width: 760px;
}
.clients-viewport {
  overflow: hidden;
}
.clients-track {
  display: flex;
  gap: 88px;
  align-items: center;
  width: max-content;
  animation: clients-scroll 60s linear infinite;
}
.clients:hover .clients-track { animation-play-state: paused; }
.clients-track img {
  height: 56px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.55;
  filter: grayscale(1) contrast(0.9);
  transition: opacity 280ms ease, filter 280ms ease, transform 280ms var(--ease);
}
.clients-track img:hover {
  opacity: 1;
  transform: scale(1.04);
}
@keyframes clients-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 44px)); }
}
@media (max-width: 768px) {
  .clients { padding: 64px 0 56px; }
  .clients-header { margin-bottom: 40px; }
  .clients-track { gap: 56px; }
  .clients-track img { height: 40px; }
  @keyframes clients-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 28px)); }
  }
}

/* ---------- Galeria de operações (slider; mesma cadência das logos) ---------- */
.galeria-operacoes {
  background: var(--paper);
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.galeria-viewport {
  overflow: hidden;
}
.galeria-track {
  display: flex;
  gap: 16px;
  align-items: center;
  width: max-content;
  animation: galeria-scroll 230s linear infinite;
}
.galeria-operacoes:hover .galeria-track { animation-play-state: paused; }
.galeria-track img {
  height: 220px;
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--rule);
}
@keyframes galeria-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 8px)); }
}
@media (max-width: 768px) {
  .galeria-operacoes { padding: 24px 0; }
  .galeria-track { gap: 12px; }
  .galeria-track img { height: 150px; }
  @keyframes galeria-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 6px)); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .galeria-track { animation: none; }
}
.galeria-track img { cursor: zoom-in; }

/* ---------- Lightbox (clique para ampliar a imagem da galeria) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 10, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
@media (prefers-reduced-motion: reduce) {
  .lightbox { transition: none; }
}

/* ---------- Hero refinement: subtle map-grid background + ambient motion ---------- */
.hero { position: relative; overflow: hidden; padding-top: calc(var(--nav-h) + 28px) !important; }
.hero .hero-topmeta { margin-bottom: 44px; }
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
  overflow: hidden;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(212,165,42,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(212,165,42,0.07) 0%, transparent 60%);
  animation: heroDrift 48s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  0%   { transform: translate(0%, 0%) scale(1); }
  50%  { transform: translate(-3%, 2%) scale(1.05); }
  100% { transform: translate(2%, -1%) scale(1.02); }
}
.hero-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Traveling dash signal along route lines */
.hero-bg .route {
  stroke: rgba(212,165,42,0.24);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 6 14;
  animation: routeFlow 34s linear infinite;
}
.hero-bg .route.r2 { animation-duration: 48s; animation-direction: reverse; opacity: 0.6; }
.hero-bg .route.r3 { animation-duration: 60s; opacity: 0.45; }
.hero-bg .route.r4 { animation-duration: 42s; opacity: 0.5; }
.hero-bg .route.r5 { animation-duration: 54s; animation-direction: reverse; opacity: 0.45; }
.hero-bg .route.r6 { animation-duration: 66s; opacity: 0.4; }
.hero-bg .route.r7 { animation-duration: 46s; animation-direction: reverse; opacity: 0.42; }
.hero-bg .route.r8 { animation-duration: 72s; opacity: 0.35; }
.hero-bg .route.r9 { animation-duration: 58s; animation-direction: reverse; opacity: 0.38; }
@keyframes routeFlow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -400; }
}
.hero-bg .node {
  fill: rgba(212,165,42,0.5);
  animation: nodePulse 9s ease-in-out infinite;
}
.hero-bg .node.n2 { animation-delay: 1.4s; }
.hero-bg .node.n3 { animation-delay: 2.8s; }
.hero-bg .node.n4 { animation-delay: 4.2s; }
.hero-bg .node.n5 { animation-delay: 5.6s; }
.hero-bg .node.n6 { animation-delay: 7s; }
.hero-bg .node.n7 { animation-delay: 0.8s; }
.hero-bg .node.n8 { animation-delay: 2.2s; }
.hero-bg .node.n9 { animation-delay: 3.6s; }
.hero-bg .node.n10 { animation-delay: 5s; }
.hero-bg .node.n11 { animation-delay: 6.4s; }
.hero-bg .node.n12 { animation-delay: 1s; }
.hero-bg .node.n13 { animation-delay: 3s; }
.hero-bg .node.n14 { animation-delay: 4.6s; }
.hero-bg .node.n15 { animation-delay: 6s; }
.hero-bg .node.n16 { animation-delay: 2.6s; }
@keyframes nodePulse {
  0%, 100% { opacity: 0.3; r: 2.5; }
  50%      { opacity: 0.6; r: 3.2; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg::before, .hero-bg .route, .hero-bg .node, .hero-bg .scan { animation: none; }
}
.hero .wrap, .hero > .wrap { position: relative; z-index: 1; }
.hero .hero-grid, .hero .hero-meta { position: relative; z-index: 1; }

/* Top-left meta strip in hero — adds the "annual report" gravitas */
.hero-topmeta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 64px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule-dark);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted-on-dark);
  flex-wrap: wrap;
  gap: 12px;
}
.hero-topmeta .group { display: inline-flex; align-items: center; gap: 14px; }
.hero-topmeta .group::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Stat number counter wrapper */
.stat-num [data-count] { display: inline-block; font-variant-numeric: tabular-nums; }

/* Hero h1 width fix + balanced wrap */
.hero h1 { max-width: 16ch; text-wrap: balance; }
.hero .h1 { font-size: clamp(48px, 6.2vw, 92px); }

/* Hero: rotador de palavras no eyebrow (Bloco 2.1) */
.word-rotator { display: inline-block; transition: opacity 0.5s ease; }
.word-rotator.is-out { opacity: 0; }

/* Hero: prova social + qualificação de público (Blocos 2.2/2.3) */
.hero-proof { margin-bottom: 36px; max-width: 540px; }
.hero-proof-main { font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--text-on-dark); margin-bottom: 8px; }
.hero-proof-sub { font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--text-muted-on-dark); }

/* CTA consultor inline (cross-sell nas páginas de veículo, Bloco 4.2) */
.cta-consultor-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: 56px;
  padding: 22px 28px;
  border: 1px solid var(--rule);
  background: var(--bone);
}
.cta-consultor-inline p { margin: 0; font-size: 16px; font-weight: 500; color: var(--text-primary); }
.cta-consultor-inline a {
  color: var(--amber);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.cta-consultor-inline a:hover { border-bottom-color: var(--amber); }
.cta-consultor-inline a .arrow { transition: transform 250ms var(--ease); }
.cta-consultor-inline a:hover .arrow { transform: translateX(4px); }
@media (max-width: 640px) {
  .cta-consultor-inline { padding: 18px 18px; gap: 12px; }
}

.hero-scrollcue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted-on-dark);
  opacity: 0.7;
}
.hero-scrollcue .line {
  width: 1px;
  height: 28px;
  background: var(--text-muted-on-dark);
  animation: cue 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 0.2; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0.2; transform-origin: bottom; }
}

/* ---------- Live Operations Feed (replaces plain trust strip) ---------- */
.ops {
  background: var(--ink);
  color: var(--text-on-dark);
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
  padding: 18px 0;
}
.ops-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.ops-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--amber);
  border-right: 1px solid var(--rule-dark);
  padding-right: 32px;
}
.ops-label .led {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ECC71;
  box-shadow: 0 0 0 0 rgba(46,204,113,0.6);
  animation: led 2s ease-out infinite;
}
@keyframes led {
  0% { box-shadow: 0 0 0 0 rgba(46,204,113,0.6); }
  100% { box-shadow: 0 0 0 14px rgba(46,204,113,0); }
}
.ops-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: ops-ticker 30.8s linear infinite;
  color: var(--text-muted-on-dark);
}
/* Deslocamento exato (definido via JS = início da 2ª metade) p/ loop sem salto.
   Fallback -50% até o JS medir. */
@keyframes ops-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--ops-shift, -50%)); }
}
.ops-viewport { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ops:hover .ops-track { animation-play-state: paused; }
.ops-row { display: inline-flex; align-items: center; gap: 14px; }
.ops-row .code { color: var(--amber); }
.ops-row .arrow { color: var(--text-muted-on-dark); opacity: 0.5; }
.ops-row .ts { color: var(--text-on-dark); opacity: 0.7; }

/* ---------- Vehicles: SVG blueprints instead of slate ---------- */
.veh-img {
  background: linear-gradient(180deg, #0F0F0F 0%, #1A1A1A 100%);
  padding: 0;
  align-items: stretch;
  position: relative;
}
.veh-img .blueprint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.veh-img .blueprint svg {
  width: 80%;
  height: 80%;
  color: rgba(255,255,255,0.85);
  transition: transform 500ms var(--ease);
}
.veh-card:hover .veh-img .blueprint svg { transform: scale(1.04); }
.veh-img::before {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 32px),
    linear-gradient(180deg, #181818 0%, #0E0E0E 100%);
}
.veh-img-corners {
  position: absolute;
  inset: 14px;
  pointer-events: none;
  z-index: 2;
}
.veh-img-corners::before, .veh-img-corners::after,
.veh-img-corners > span::before, .veh-img-corners > span::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--amber);
  border-style: solid;
  border-width: 0;
}
.veh-img-corners::before { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.veh-img-corners::after { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.veh-img-corners > span::before { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.veh-img-corners > span::after { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.veh-img .blueprint-meta {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
}
.veh-img .blueprint-meta .right { color: var(--amber); }
.veh-img-label { display: none; }

/* ---------- Brazil Network Map Section ---------- */
.coverage {
  background: var(--ink);
  color: var(--text-on-dark);
  position: relative;
}
.coverage .section-head .lede,
.coverage .section-head .eyebrow { color: var(--text-muted-on-dark); }
.coverage .h2 { color: var(--text-on-dark); }

.cov-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: stretch;
}
.map-frame {
  position: relative;
  border: 1px solid var(--rule-dark);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 60px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.map-frame .map-meta-tl,
.map-frame .map-meta-tr,
.map-frame .map-meta-bl,
.map-frame .map-meta-br {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted-on-dark);
  z-index: 2;
}
.map-meta-tl { top: 20px; left: 20px; color: var(--amber); }
.map-meta-tr { top: 20px; right: 20px; }
.map-meta-bl { bottom: 20px; left: 20px; }
.map-meta-br { bottom: 20px; right: 20px; color: var(--amber); }
.map-frame svg.map-svg { width: 100%; height: 100%; display: block; }

.cov-state-dot {
  cursor: pointer;
  transition: r 200ms ease;
}
.cov-state-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  fill: rgba(255,255,255,0.55);
  pointer-events: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cov-state-dot:hover { r: 7; }
.cov-state-dot.hq { fill: var(--amber); }

.cov-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.cov-stat {
  border-top: 1px solid var(--rule-dark);
  padding: 24px 0;
}
.cov-stat:last-child { border-bottom: 1px solid var(--rule-dark); }
.cov-stat .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted-on-dark);
  margin-bottom: 12px;
}
.cov-stat .num {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-on-dark);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}
.cov-stat .num .plus { color: var(--amber); font-size: 0.55em; font-weight: 500; }
.cov-stat .desc { font-size: 13px; color: var(--text-muted-on-dark); max-width: 28ch; line-height: 1.5; }
.cov-hover {
  margin-top: auto;
  padding: 24px;
  background: var(--graphite);
  border: 1px solid var(--rule-dark);
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 200ms ease;
}
.cov-hover.active { border-color: var(--amber); }
.cov-hover .cov-hover-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-bottom: 12px;
}
.cov-hover .state-code {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-on-dark);
  margin-bottom: 8px;
}
.cov-hover .state-name {
  font-family: 'Archivo', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
}
.cov-hover .state-empty {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted-on-dark);
}

/* ---------- "How it works" — visual diagram on top of comparison ---------- */
.diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  margin-bottom: 56px;
  position: relative;
}
.diagram-col {
  padding: 40px;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.diagram-col + .diagram-col { border-left: 1px solid var(--rule); }
.diagram-col .diagram-svg { width: 100%; height: 180px; }
.diagram-col .diagram-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
}
.diagram-col.pain .diagram-svg { color: var(--text-secondary); opacity: 0.7; }
.diagram-col.resolve .diagram-svg { color: var(--ink); }
.diagram-col .diagram-vs {
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--paper);
  border: 1px solid var(--rule);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  z-index: 2;
}

/* Make comparison area feel more like data */
.compare {
  background: var(--paper);
}

/* ---------- Pilares: stronger visual identity ---------- */
.pillar-grid article {
  border-top: 1px solid var(--rule-dark);
  padding-top: 28px;
  position: relative;
}
.pillar-grid article::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 60px;
  height: 1px;
  background: var(--amber);
}

/* ---------- Form refinement: number column ---------- */
.cot-form {
  position: relative;
  background: var(--paper);
}
.cot-form .form-stamp {
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  z-index: 2;
}
.cot-form .form-stamp .amber { color: var(--amber); }

/* ---------- Vehicle detail blueprint hero ---------- */
.veh-hero-img {
  padding: 0;
  align-items: stretch;
}
.veh-hero-img .blueprint-big {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.veh-hero-img .blueprint-big svg {
  width: 86%;
  height: 70%;
  color: rgba(255,255,255,0.9);
}
.veh-hero-img::before {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 48px),
    linear-gradient(180deg, #181818 0%, #0E0E0E 100%);
}
.veh-hero-img .veh-hero-img-label { z-index: 2; color: rgba(255,255,255,0.6); }
.veh-hero-img .corner-meta {
  position: absolute;
  top: 20px; left: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--amber);
  z-index: 2;
}
.veh-hero-img .corner-meta-tr {
  position: absolute;
  top: 20px; right: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  z-index: 2;
}

/* ---------- Vehicle hero photo override ---------- */
.veh-hero-img-photo {
  padding: 0;
}
.veh-hero-img-photo::before { content: none; background: none; }
.veh-hero-img-photo .veh-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.veh-hero-img-photo .corner-meta,
.veh-hero-img-photo .corner-meta-tr {
  z-index: 2;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
}

/* ---------- Vehicle photo gallery ---------- */
.veh-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.veh-shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #111;
  border: 1px solid var(--rule);
  margin: 0;
}
.veh-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms var(--ease);
}
.veh-shot:hover img { transform: scale(1.04); }
@media (max-width: 1024px) {
  .veh-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .veh-gallery { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Vehicle card photo (overrides blueprint) ---------- */
.veh-card.has-photo .blueprint,
.veh-card.has-photo .blueprint-meta { display: none; }
.veh-card.has-photo .veh-img {
  background: #111;
}
.veh-card.has-photo .veh-img::before {
  background: none;
}
.veh-card.has-photo .veh-img .veh-cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 500ms var(--ease);
}
.veh-card.has-photo:hover .veh-img .veh-cover-photo {
  transform: scale(1.04);
}
.veh-card.has-photo .veh-img-corners { z-index: 2; }
.veh-card.has-photo .blueprint-meta {
  display: flex !important;
  z-index: 2;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  padding: 24px 16px 12px;
  bottom: 0;
}

/* ---------- Manifesto band (banda de convicção) ---------- */
.manifesto { text-align: center; }
.manifesto-line {
  font-family: 'Archivo', sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  max-width: 900px;
  margin: 0 auto;
}
.manifesto-line .amber { color: var(--amber); }

/* ---------- Depoimentos (scaffold; oculto até ter conteúdo real) ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 240px;
}
.testi-quote {
  font-family: 'Archivo', sans-serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-primary);
}
.testi-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
}
.testi-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---------- Documentos legais (Políticas) ---------- */
.legal-doc { max-width: 820px; }
.legal-doc h2 {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-top: 56px;
  margin-bottom: 16px;
}
.legal-doc h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 10px;
}
.legal-doc p { margin-bottom: 16px; }
.legal-doc p, .legal-doc li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.legal-doc ul { padding-left: 22px; list-style: disc; margin-bottom: 16px; }
.legal-doc li { margin-top: 8px; }
.legal-doc li::marker { color: var(--amber); }
.legal-doc strong { color: var(--text-primary); font-weight: 600; }
.legal-doc a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
.legal-doc .legal-lead { font-size: 18px; color: var(--text-primary); }
.legal-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted-on-dark);
  margin-top: 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .testi-grid { grid-template-columns: 1fr; }
  .cov-grid { grid-template-columns: 1fr; gap: 40px; }
  /* Quando empilha, a caixa do estado clicado vem logo abaixo do mapa, antes dos stats */
  .cov-side { gap: 28px; }
  .cov-side .cov-hover { order: -1; margin-top: 0; }
  .diagram { grid-template-columns: 1fr; }
  .diagram-col + .diagram-col { border-left: none; border-top: 1px solid var(--rule); }
  .diagram-vs { right: 50% !important; top: auto !important; bottom: -18px !important; transform: translateX(50%) !important; }
  .ops-inner { gap: 16px; }
  .ops-label { padding-right: 16px; font-size: 10px; }
}
@media (max-width: 768px) {
  /* Ticker "Atendemos" — velocidade no mobile */
  .ops-track { animation-duration: 50s; }
  /* Hero topmeta — keep readable, drop the 3rd item on small screens */
  .hero-topmeta {
    font-size: 9px;
    gap: 10px 16px;
    margin-bottom: 32px;
    padding-bottom: 18px;
  }
  .hero-topmeta span:nth-child(3) { display: none; }
  /* Hero h1 already scales via clamp */
  .hero { padding-top: calc(var(--nav-h) + 24px) !important; }
  /* Hero scroll cue hidden on touch */
  .hero-scrollcue { display: none; }
  /* Diagram simpler */
  .diagram-col { padding: 32px 24px; min-height: 0; }
  .diagram-col .diagram-svg { height: 140px; }
  /* Form stamp small + reposition so it doesn't overlap */
  .cot-form .form-stamp { top: -1px; right: 12px; padding: 8px 12px; font-size: 9px; }
  .cot-form { padding-top: 56px !important; }
  /* Vehicle hero corner meta */
  .veh-hero-img .corner-meta, .veh-hero-img .corner-meta-tr { top: 12px; font-size: 9px; }
  .veh-hero-img .corner-meta { left: 12px; }
  .veh-hero-img .corner-meta-tr { right: 12px; }
  /* Vehicle CTA strip centered when stacked */
  .veh-cta-strip { flex-direction: column; align-items: flex-start; padding: 40px 0; gap: 20px; }
  .veh-cta-strip h3 { max-width: 100%; }
  /* Spec table stack rows for ultra-narrow */
  .spec-table .row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .spec-table .row dt { font-size: 10px; }
  .spec-table .row dd { font-size: 15px; }
  /* Coverage stats become a single column, side-by-side */
  .cov-side .cov-stat { padding: 18px 0; }
  .cov-side .cov-stat .num { font-size: 38px; }
  .cov-hover { padding: 18px; min-height: 110px; }
  .cov-hover .state-code { font-size: 44px; }
  /* Map labels slightly smaller for narrow screens */
  .cov-state-label { font-size: 8px; }
  /* Pilares — reduce big numeral */
  .pillar-num { font-size: 72px; }
  .pillar-title { font-size: 28px; }
  /* Section head bottom spacing */
  .section-head { margin-bottom: 56px; }
  /* Footer brand image height */
  .footer-brand .brand .logo,
  .footer-brand .brand .logo-wrap { height: 38px; }
  /* Reduce hero ambient motion intensity on mobile (battery) */
  .hero-bg .scan { display: none; }
  .hero-bg::before { animation-duration: 60s; }
}
@media (max-width: 640px) {
  .hero-topmeta { font-size: 9px; }
  .map-frame { aspect-ratio: 4 / 5; }
  /* Rótulos dos cantos do mapa: encolher, aproximar das bordas e impedir colisão/corte */
  .map-frame .map-meta-tl,
  .map-frame .map-meta-tr,
  .map-frame .map-meta-bl,
  .map-frame .map-meta-br {
    font-size: 8px;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }
  .map-meta-tl { top: 12px; left: 12px; }
  .map-meta-tr { top: 12px; right: 12px; text-align: right; }
  .map-meta-bl { bottom: 12px; left: 12px; }
  .map-meta-br { bottom: 12px; right: 12px; text-align: right; }
  /* Tighten hero-cta-row */
  .hero-cta-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
  .hero-cta-row .text-link { align-self: flex-start; }
  /* Final CTA buttons stack */
  .final-cta-btns { flex-direction: column; width: 100%; }
  .final-cta-btns .btn { justify-content: center; width: 100%; }
  /* Footer bottom strip stacks */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 10px; }
  /* Clients title smaller on narrow */
  .clients-title { font-size: 19px; line-height: 1.3; }
  .clients-eyebrow { font-size: 10px; }
  /* CTA button sizes on narrow */
  .btn { padding: 14px 20px; font-size: 13px; }
  /* Tag pill sizes */
  .tag-pill { font-size: 9px; padding: 6px 10px; }
  /* Trust items legible */
  .trust-items li { font-size: 10px; letter-spacing: 0.14em; gap: 10px; }
  /* Hero h1 tighter */
  .hero .h1 { font-size: clamp(38px, 9vw, 56px); }
  /* Stat numbers slightly smaller */
  .stat-num { font-size: clamp(44px, 12vw, 64px) !important; }
}

/* ============================================================
   Hub diagram — "Cenário habitual" vs "Com a Movix"
   (substitui o diagrama SVG original; bloco escuro embutido na seção)
   ============================================================ */
.hd-section {
  --hd-bg: #0e0e0e;
  --hd-surface: #161616;
  --hd-border: #2a2a2a;
  --hd-gold: #D4A52A;
  --hd-gold-dim: #7a6328;
  --hd-red: #c94c4c;
  --hd-red-dim: #7a2828;
  --hd-text: #e8e4dc;
  --hd-muted: #6a6a6a;
  --hd-label: #999;
  background: var(--hd-bg);
  color: var(--hd-text);
  padding: 56px 0;
  margin: 56px 0;
}
.hd-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.hd-panels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
}
.hd-panel {
  border: 1px solid var(--hd-border);
  padding: 36px 26px;
  position: relative;
  background: var(--hd-surface);
}
.hd-panel-before { border-radius: 14px 0 0 14px; }
.hd-panel-after {
  border-radius: 0 14px 14px 0;
  background: linear-gradient(135deg, #141410 0%, #16160f 100%);
  border-color: var(--hd-gold-dim);
}
.hd-vs-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}
.hd-vs-badge {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--hd-bg);
  border: 1px solid var(--hd-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--hd-muted);
  flex-shrink: 0;
}
.hd-panel-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hd-panel-before .hd-panel-label { color: var(--hd-red); }
.hd-panel-after  .hd-panel-label { color: var(--hd-gold); }
.hd-panel-label::after { content: ''; flex: 1; height: 1px; }
.hd-panel-before .hd-panel-label::after { background: var(--hd-red-dim); }
.hd-panel-after  .hd-panel-label::after { background: var(--hd-gold-dim); }

/* canvas (área do desenho) */
.hd-canvas {
  position: relative;
  height: 320px;
  margin-bottom: 22px;
}
.hd-link-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

/* VOCÊ */
.hd-you {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  z-index: 3;
}
.hd-you-before {
  width: 64px; height: 64px;
  background: #1a1a1a;
  border: 2px solid #4a4a4a;
  color: #bbb;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.hd-you-after {
  width: 60px; height: 60px;
  background: #141414;
  border: 2px solid #555;
  color: #ccc;
  left: 4%; top: 50%;
  transform: translateY(-50%);
}

/* Fornecedor box (esquerda) */
.hd-supplier {
  position: absolute;
  z-index: 2;
  background: #1a1010;
  border: 1px solid var(--hd-red-dim);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 92px;
}
.hd-sb-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: 0.18em;
  color: #8a5a5a;
  text-transform: uppercase;
}
.hd-sb-uf {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--hd-red);
  letter-spacing: 0.05em;
}
.hd-f1 { left: 50%; top: 0; transform: translateX(-50%); }
.hd-f2 { right: 0; top: 24%; }
.hd-f3 { right: 4%; bottom: 4%; }
.hd-f4 { left: 4%; bottom: 4%; }
.hd-f5 { left: 0; top: 24%; }

.hd-chaos-line {
  stroke: var(--hd-red-dim);
  stroke-width: 1;
  stroke-dasharray: 5 4;
  fill: none;
  opacity: 0.55;
  animation: hd-dashMove 3s linear infinite;
}
@keyframes hd-dashMove { to { stroke-dashoffset: -18; } }

/* HUB (direita) — empurrado mais p/ esquerda p/ dar respiro ao leque */
.hd-hub {
  position: absolute;
  left: 34%; top: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 68px;
  background: #0e0e0a;
  border: 2px solid var(--hd-gold);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  z-index: 3;
  box-shadow: 0 0 32px rgba(212, 165, 42, 0.14);
}
.hd-hub-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--hd-gold);
  letter-spacing: 0.08em;
}
.hd-hub-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: var(--hd-gold-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Estado — LARGURA FIXA p/ todas as bordas esquerdas alinharem,
   garantindo que nenhuma linha do hub atravesse uma caixa vizinha */
.hd-state {
  position: absolute;
  right: 14px;
  width: 160px;
  z-index: 2;
  background: #12120c;
  border: 1px solid var(--hd-gold-dim);
  border-radius: 10px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(-50%);
}
.hd-state-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hd-gold);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(212, 165, 42, 0.4);
  animation: hd-pulseGold 2.5s ease-in-out infinite;
}
@keyframes hd-pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 165, 42, 0); }
  50%      { box-shadow: 0 0 0 5px rgba(212, 165, 42, 0.15); }
}
.hd-state-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--hd-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* ritmo vertical levemente mais equilibrado nas pontas */
.hd-n1 { top: 10%; }
.hd-n2 { top: 25%; }
.hd-n3 { top: 40%; }
.hd-n4 { top: 55%; }
.hd-n5 { top: 70%; }
.hd-n6 { top: 85%; }

.hd-hub-line {
  stroke: var(--hd-gold);
  stroke-width: 1.2;
  fill: none;
  opacity: 0.55;
  stroke-dasharray: 3 3;
  animation: hd-dashMoveGold 2s linear infinite;
}
.hd-hub-line-solid {
  stroke: var(--hd-gold-dim);
  stroke-width: 1.6;
  fill: none;
  opacity: 0.85;
}
@keyframes hd-dashMoveGold { to { stroke-dashoffset: -12; } }

/* legendas embaixo de cada painel */
.hd-friction, .hd-calm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
  padding: 10px 12px;
  border-radius: 6px;
}
.hd-friction {
  color: var(--hd-red);
  border: 1px solid var(--hd-red-dim);
  background: rgba(122, 40, 40, 0.08);
}
.hd-calm {
  color: var(--hd-gold);
  border: 1px solid var(--hd-gold-dim);
  background: rgba(212, 165, 42, 0.06);
}

/* métricas */
.hd-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hd-border);
  border: 1px solid var(--hd-border);
  border-radius: 10px;
  overflow: hidden;
}
.hd-metric { background: var(--hd-surface); padding: 16px 12px; text-align: center; }
.hd-panel-after .hd-metric { background: #131310; }
.hd-metric-value {
  font-size: 22px;
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.hd-panel-before .hd-metric-value { color: var(--hd-red); }
.hd-panel-after  .hd-metric-value { color: var(--hd-gold); }
.hd-metric-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--hd-muted);
  line-height: 1.4;
}

/* respeita prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hd-chaos-line, .hd-hub-line, .hd-state-dot { animation: none !important; }
}

/* mobile — empilhado */
@media (max-width: 760px) {
  .hd-section { padding: 36px 0; margin: 36px 0; }
  .hd-panels { grid-template-columns: 1fr; }
  .hd-panel { padding: 28px 18px; }
  .hd-panel-before { border-radius: 14px 14px 0 0; }
  .hd-panel-after  { border-radius: 0 0 14px 14px; border-top: none; }
  .hd-vs-col { padding: 0; }
  .hd-vs-badge { width: 40px; height: 40px; margin: -20px auto; position: relative; z-index: 5; }
  .hd-canvas { height: 300px; }
  .hd-state { width: 120px; right: 6px; padding: 7px 8px; }
  .hd-state-name { font-size: 8px; letter-spacing: 0.05em; }
  .hd-supplier { min-width: 84px; padding: 7px 9px; }
  .hd-hub { left: 38%; width: 76px; height: 60px; }
  .hd-hub-name { font-size: 12px; }
  .hd-you-after { width: 46px; height: 46px; left: 3%; font-size: 8px; }
}
