/* ==========================================================================
   Landing institucional — De Olho na Encosta (V3)
   CSS puro, sem dependências externas (fontes do sistema).
   Identidade: base grafite, laranja como cor de marca (mesmo laranja MMF da
   Slope Vision), azul só em elementos técnicos/sensores.
   ========================================================================== */

:root {
  /* Cores — usar SEMPRE estas variáveis */
  --bg: #121416;
  --bg-deep: #0d0f11;
  --surface: #1a1d21;
  --surface-alt: #22262b;
  --surface-strip: #171a1e;
  --text: #eef0f2;
  --muted: #a5adb6;
  --orange: #ed702d;
  --orange-dark: #ae3505;
  --orange-light: #f09265;
  --blue: #4da3ff;
  --ok: #4ade80;
  --warn: #fbbf24;
  --border: #2e343b;
  --border-soft: #262b31;
  --on-orange: #16110d;          /* texto sobre laranja (contraste alto) */

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 28px rgba(0, 0, 0, .32);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, .5);
  --header-h: 72px;
  --container: 1320px;
  --gutter: clamp(32px, 5vw, 80px);   /* soma das margens laterais */

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.0625rem; font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--orange-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(100% - var(--gutter), var(--container)); margin-inline: auto; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--on-orange);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.5rem; height: 1.5rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

.accent { color: var(--orange); }

.eyebrow {
  font-size: .8125rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--orange-light);
  margin-bottom: 16px;
}

/* Título de seção com barra laranja */
.title-bar::after {
  content: ""; display: block; width: 52px; height: 4px; margin-top: 12px;
  border-radius: 2px; background: var(--orange);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 10px;
  font: inherit; font-weight: 700; text-decoration: none; line-height: 1.2;
  border: 1.5px solid transparent;
  transition: background-color .2s, border-color .2s, transform .2s, color .2s, box-shadow .2s;
}
.btn .icon { width: 1.125rem; height: 1.125rem; stroke-width: 2; }
.btn--sm { padding: 11px 18px; font-size: .9375rem; }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--primary { background: var(--orange); color: var(--on-orange); box-shadow: 0 6px 20px rgba(237, 112, 45, .28); }
.btn--primary:hover { background: var(--orange-light); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(237, 112, 45, .38); }
.btn--ghost { border-color: #56606a; color: var(--text); background: rgba(13, 15, 17, .35); }
.btn--ghost:hover { border-color: var(--orange-light); color: var(--orange-light); transform: translateY(-1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 17, .94);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  transition: box-shadow .2s, border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 8px 22px rgba(0, 0, 0, .4); }

.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

/* Logo oficial (arquivo com fundo branco próprio): fica intacto numa placa clara */
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand__plate { display: block; padding: 4px 8px; background: #fff; border-radius: 9px; line-height: 0; }
.brand__plate img { height: 46px; width: auto; }
.brand--sm .brand__plate img { height: 36px; }

.nav { display: flex; align-items: center; gap: 36px; flex: 1; justify-content: flex-end; }
.nav__list { display: flex; gap: 6px; margin-inline: auto; }
.nav__list a {
  position: relative; display: block; text-decoration: none; color: var(--muted);
  font-size: .9375rem; font-weight: 500; padding: 10px 14px; border-radius: 8px;
  transition: color .2s, background-color .2s;
}
.nav__list a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--orange); border-radius: 2px; transform: scaleX(0); transition: transform .25s;
}
.nav__list a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.nav__list a.is-active { color: var(--text); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center;
  min-height: clamp(540px, 40vw, 660px);
  padding: clamp(40px, 5vw, 72px) 0 clamp(80px, 7vw, 104px);
  border-bottom: 1px solid var(--border);
}

/* A fotografia participa de toda a composição; o texto fica sobre o degradê */
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--bg-deep); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 24%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 15, 17, .96) 0%, rgba(13, 15, 17, .86) 28%, rgba(13, 15, 17, .42) 52%, rgba(13, 15, 17, 0) 74%),
    linear-gradient(180deg, rgba(13, 15, 17, .40) 0%, rgba(13, 15, 17, 0) 28%, rgba(13, 15, 17, .55) 100%);
}
/* Curvas topográficas: overlay bem sutil, só sobre a área escura à esquerda */
.hero__contours {
  position: absolute; inset: 0; width: 100%; height: 100%; color: var(--orange-light); opacity: .07;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%); mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
}

.hero__inner { position: relative; }
.hero h1 { font-size: clamp(2.5rem, 1.2rem + 3.6vw, 4.25rem); max-width: 11.5em; font-weight: 800; line-height: 1.05; letter-spacing: -.025em; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero__lead { margin-top: 20px; max-width: 30em; font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem); color: #d3d8de; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Destaques leves, integrados ao hero (sem caixas) */
.highlights { display: flex; flex-wrap: wrap; gap: 14px 0; margin-top: clamp(28px, 4vw, 44px); max-width: 640px; }
.highlights li {
  display: flex; align-items: center; gap: 12px; padding: 2px 22px;
  font-size: .875rem; line-height: 1.35; font-weight: 500; color: #dfe3e8;
  border-left: 1px solid rgba(255, 255, 255, .16);
}
.highlights li:first-child { padding-left: 0; border-left: 0; }
.highlights .icon { color: var(--orange); width: 1.875rem; height: 1.875rem; stroke-width: 1.4; }

.hero__badge {
  position: absolute; right: 0; bottom: 0; padding: 14px clamp(20px, 3vw, 44px) 14px 22px;
  background: rgba(13, 15, 17, .82); border-left: 3px solid var(--orange);
  font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.5; color: #dfe3e8;
}

/* ---------- Seções ---------- */
.section { position: relative; padding: clamp(36px, 4.2vw, 64px) 0; }
.section--base { background: var(--bg); }
.section--surface { background: var(--surface); border-block: 1px solid var(--border); }

.section__head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px clamp(32px, 6vw, 80px);
  align-items: end; margin-bottom: clamp(20px, 2.4vw, 32px);
}
.section__lead { color: var(--muted); font-size: 1.0625rem; max-width: 40rem; }

/* Textura de curvas de nível no fundo da seção de tecnologia */
.section--tech { overflow: hidden; }
.section--tech > .container { position: relative; z-index: 1; }
.section__art { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--orange-light); opacity: .06; }

/* ---------- Nosso objetivo ---------- */
.goal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.goal {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 16px 20px; background: linear-gradient(180deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s;
}
.goal:hover { transform: translateY(-2px); border-color: rgba(237, 112, 45, .55); }
.goal h3 { font-size: 1.125rem; }
.goal p { margin-top: 2px; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.goal__icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px;
  color: var(--orange); background: rgba(237, 112, 45, .12); border: 1px solid rgba(237, 112, 45, .28);
}
.goal__icon .icon { width: 2rem; height: 2rem; stroke-width: 1.4; }
.goal__icon--tech { color: var(--blue); background: rgba(77, 163, 255, .10); border-color: rgba(77, 163, 255, .28); }
.goal__chev { color: #59626c; width: 1.25rem; height: 1.25rem; transition: color .2s, transform .2s; }
.goal:hover .goal__chev { color: var(--orange); transform: translateX(3px); }

/* ---------- Projeto piloto (composição editorial) ---------- */
.pilot { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.1fr); gap: clamp(24px, 3.4vw, 52px); align-items: center; }
.pilot__text { display: grid; gap: 14px; align-content: start; color: #b9c0c8; font-size: 1.0625rem; }
.pilot__text h2 { color: var(--text); }
.pilot__text strong { color: var(--text); font-weight: 600; }
.location { display: inline-flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 600; color: var(--text); }
.location .icon { color: var(--orange); }

/* Instituições: composição tipográfica (sem logos inventados) */
.partners { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--border); }
.partners__title { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.partners__list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; }
.partners__list li { font-size: .9375rem; font-weight: 700; letter-spacing: .01em; color: #e3e7eb; }
.partners__list li:not(:last-child)::after { content: "•"; margin-left: 14px; color: var(--orange); font-weight: 400; }

.pilot__visual {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(130px, 15%, 200px); gap: 12px;
  height: clamp(340px, 29vw, 440px);
}
.pilot__main { position: relative; min-height: 0; border-radius: var(--radius); overflow: hidden; }
.pilot__main img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  /* a foto se dissolve em direção ao texto, como na referência */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%); mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
}
.pilot__pin {
  position: absolute; left: 26%; top: 22px; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; font-size: .8125rem; line-height: 1.3; color: var(--muted);
  background: rgba(13, 15, 17, .82); border: 1px solid var(--border); border-radius: 10px;
}
.pilot__pin .icon { color: var(--orange); width: 1.5rem; height: 1.5rem; }
.pilot__pin strong { display: block; color: var(--text); font-weight: 600; font-size: .875rem; }

.pilot__thumbs { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 12px; min-height: 0; }
.pilot__thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }

/* ---------- Como funciona (pipeline) ---------- */
.flow { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px; }
/* Linha contínua atrás dos cartões: aparece nos vãos e liga as etapas */
.flow::before {
  content: ""; position: absolute; left: 3%; right: 3%; top: 43px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--orange)); opacity: .55;
}

.flow__step {
  position: relative; z-index: 1; padding: 16px 16px 18px;
  background: linear-gradient(180deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.flow__top { display: flex; align-items: center; gap: 12px; }
.flow__top h3 { display: grid; gap: 1px; font-size: 1.0625rem; line-height: 1.2; }
.flow__num { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; color: #6f7883; }
.flow__step p { margin-top: 12px; color: var(--muted); font-size: .9rem; line-height: 1.45; }

.flow__icon {
  display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 14px;
  color: var(--orange); background: rgba(237, 112, 45, .12); border: 1px solid rgba(237, 112, 45, .3);
}
.flow__icon .icon { width: 1.75rem; height: 1.75rem; stroke-width: 1.4; }
/* Etapas de campo (sensor/datalogger/gateway) em azul técnico */
.flow__icon--tech { color: var(--blue); background: rgba(77, 163, 255, .10); border-color: rgba(77, 163, 255, .3); }

/* Seta no vão entre as etapas */
.flow__step:not(:last-child)::after {
  content: ""; position: absolute; z-index: 2; top: 33px; right: -30px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--bg) center / 10px no-repeat; border: 1px solid var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ed702d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E");
}

/* ---------- Plataforma ---------- */
.section--platform { overflow: hidden; }
.section--platform::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(45% 70% at 90% 50%, rgba(237, 112, 45, .09), transparent 70%);
}
.platform { position: relative; display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.platform__text h2 { font-size: clamp(1.75rem, 1rem + 1.5vw, 2.25rem); }
.platform__text .section__lead { margin-top: 18px; }
.feature-list { display: grid; gap: 12px; margin: 24px 0 28px; }
.feature-list li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.check {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  color: var(--orange); background: rgba(237, 112, 45, .12); border: 1px solid rgba(237, 112, 45, .3);
}
.check .icon { width: 1rem; height: 1rem; stroke-width: 2; }

/* Notebook com a interface ilustrativa */
.device__screen {
  display: grid; grid-template-columns: 24% 1fr; min-height: 400px;
  background: var(--bg); border: 9px solid #2a2f36; border-bottom-width: 11px; border-radius: 18px 18px 4px 4px;
  box-shadow: var(--shadow-lg), 0 0 0 1px #3a424b; overflow: hidden;
}
.device__base {
  height: 13px; margin-inline: -3%; border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #3a424b, #23282d); box-shadow: 0 18px 30px rgba(0, 0, 0, .45);
}
.device__caption { margin-top: 16px; text-align: center; font-size: .8125rem; color: var(--muted); }

.dash__side { padding: 14px 10px; background: var(--bg-deep); border-right: 1px solid var(--border); font-size: .75rem; }
.dash__brand { display: flex; align-items: center; gap: 7px; padding: 4px 6px 14px; font-weight: 700; color: var(--orange-light); }
.dash__brand svg { width: 20px; height: 16px; }
.dash__side li { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 7px; color: var(--muted); }
.dash__side li .icon { width: 1.05rem; height: 1.05rem; }
.dash__side li.is-on { background: rgba(237, 112, 45, .14); color: var(--orange-light); }

.dash__main { display: grid; gap: 12px; padding: 14px; align-content: start; min-width: 0; }
.dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { display: grid; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.kpi__n { font-size: 1.5rem; font-weight: 800; line-height: 1.15; color: var(--blue); }
.kpi__l { font-size: .6875rem; color: var(--muted); line-height: 1.3; }
.kpi--warn .kpi__n { color: var(--warn); }

.dash__panel { padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; min-width: 0; }
.dash__panel-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: .75rem; font-weight: 600; color: var(--text); }
.legend { display: inline-flex; align-items: center; gap: 5px; font-weight: 400; color: var(--muted); font-size: .6875rem; white-space: nowrap; }
.lg { width: 12px; height: 3px; border-radius: 2px; }
.lg--x { background: var(--blue); }
.lg--y { background: var(--orange-light); margin-left: 5px; }
.lg--z { background: #7dd3c0; margin-left: 5px; }
.dash__chart svg { display: block; width: 100%; height: 130px; }

.dash__row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.dash__events { display: grid; gap: 8px; font-size: .75rem; color: var(--muted); }
.dash__events li { display: flex; align-items: center; gap: 9px; }
.dash__map svg { display: block; width: 100%; height: 84px; border-radius: 6px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--ok { background: var(--ok); }
.dot--warn { background: var(--warn); }

/* ---------- Contato (faixa compacta) ---------- */
.section--contact { padding-block: clamp(24px, 2.8vw, 36px); background: var(--surface-strip); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 20px clamp(28px, 5vw, 64px); align-items: center; }
.contact__text h2 { font-size: clamp(1.5rem, 1.1rem + 1vw, 1.875rem); }
.contact__text p { margin-top: 6px; color: var(--muted); font-size: .9375rem; max-width: 34rem; }
.contact__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.contact__item {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-alt), var(--surface));
}
.contact__item .icon { grid-row: span 2; color: var(--orange); }
.contact__label { font-size: .75rem; color: var(--muted); line-height: 1.3; }
.contact__value { font-weight: 600; color: #7b8590; line-height: 1.3; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-deep); padding: 16px 0; color: var(--muted); font-size: .875rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer__copy { margin-right: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer__links a { text-decoration: none; transition: color .2s; }
.footer__links a:hover { color: var(--orange-light); }

/* ---------- Revelar ao rolar (só com JS; sem JS tudo fica visível) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .nav__list a { padding-inline: 10px; }
  .platform, .pilot { grid-template-columns: 1fr; }
  .section__head, .contact { grid-template-columns: 1fr; align-items: start; }
  .pilot__visual { height: clamp(300px, 46vw, 440px); }
  .pilot__main img { -webkit-mask-image: none; mask-image: none; }
  .pilot__pin { left: 16px; }
}

@media (max-width: 1024px) {
  /* Pipeline em 3 colunas, sem a linha contínua */
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
  .flow::before { display: none; }
  .flow__step:nth-child(3)::after { display: none; }
  .contact__list { grid-template-columns: repeat(3, 1fr); }
}

/* Menu mobile: só se esconde quando o JS está ativo (sem JS, o menu fica visível) */
@media (max-width: 900px) {
  .goal-grid { grid-template-columns: 1fr; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .2s, opacity .2s;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

  .header__inner { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding-block: 10px; gap: 12px; }
  .nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 4px 0 8px; }
  .nav__list { flex-direction: column; gap: 0; margin-inline: 0; }
  .nav__list a { padding: 13px 4px; border-bottom: 1px solid var(--border-soft); border-radius: 0; }
  .nav__list a::after { display: none; }
  .nav__list a.is-active { color: var(--orange-light); }
  .nav .btn { width: 100%; }

  .js .nav { display: none; }
  .js .nav.is-open { display: flex; }

  /* Hero: fotografia em cima, texto embaixo, com degradê de transição */
  .hero { display: block; min-height: 0; padding: 0 0 40px; }
  .hero__media { position: relative; inset: auto; z-index: 0; height: clamp(240px, 62vw, 380px); }
  .hero__media img { object-position: 82% 50%; }
  .hero__shade { background: linear-gradient(180deg, rgba(13, 15, 17, .25) 0%, rgba(13, 15, 17, 0) 40%, var(--bg-deep) 100%); }
  .hero__contours { display: none; }
  .hero__inner { margin-top: -40px; }
  .hero__badge { display: none; }
}

@media (max-width: 820px) {
  /* Pipeline vertical */
  .flow { grid-template-columns: 1fr; gap: 34px; }
  .flow::before {
    display: block; left: 41px; right: auto; top: 30px; bottom: 30px; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--blue), var(--orange));
  }
  .flow__step:not(:last-child)::after, .flow__step:nth-child(3)::after {
    display: block; top: auto; right: auto; bottom: -27px; left: 32px; transform: rotate(90deg);
  }
  .contact__list { grid-template-columns: 1fr; }
  .highlights li { padding-inline: 16px; }
}

@media (max-width: 640px) {
  :root { --gutter: 32px; }
  .hero__actions .btn { width: 100%; }
  .highlights { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .highlights li, .highlights li:first-child { padding: 0; border-left: 0; }
  .pilot__visual { grid-template-columns: 1fr; height: auto; gap: 10px; }
  .pilot__main { aspect-ratio: 16 / 10; }
  .pilot__thumbs { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 110px; gap: 10px; }
  .pilot__pin { top: 12px; left: 12px; }
  .dash__side { display: none; }
  .device__screen { grid-template-columns: 1fr; min-height: 0; }
  .dash__row { grid-template-columns: 1fr; }
  .dash__map { display: none; }
  .legend { display: none; }
  .brand__plate img { height: 40px; }
  .goal { padding: 14px 16px; gap: 14px; }
  .goal__icon { width: 56px; height: 56px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .dash__kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
