/* ==========================================================================
   usvSMC — Dolphin D3+
   Referências: Saildrone Voyager (hero de mídia real + spec em pares),
   DJI Enterprise (ficha técnica em tabela), Everyday Robots (paleta de 3 cores).
   Paleta: fundo #05090D · texto #EDEAE3 · laranja do casco #FF5519
   ========================================================================== */

/* Fontes hospedadas no site (OFL), subconjunto latino: cobre todos os acentos do pt-BR.
   Archivo recortada para os eixos usados (largura 110–125%, peso 700–900): 41 KB. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700 900;
  font-stretch: 110% 125%;
  font-display: swap;
  src: url('../fonts/archivo-display-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-var-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
}

:root {
  --bg: #05090D;
  --bg-2: #0B1219;
  --ink: #EDEAE3;
  --ink-2: #A7ADB2;
  --ink-3: #8A9199;
  --ink-on-media: #D5D8DA;
  --line: rgba(237, 234, 227, 0.12);
  --accent: #FF5519;
  --accent-hover: #FF7A45;

  --f-display: 'Archivo', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --display: var(--f-display);
  --sans: var(--f-body);
  --mono: var(--f-mono);

  --gutter: clamp(16px, 5.5vw, 80px);
  --max: 1440px;
  --section-y: clamp(72px, 9vw, 104px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}
body { line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ===== TIPOGRAFIA ===== */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kicker::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
}
.kicker--light { color: #C9CCCF; }
.kicker--dark { color: var(--bg); }
.kicker--dark::before { background: var(--bg); }

.title {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  font-weight: 800;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.title em { font-style: normal; color: var(--accent); }
.title--sm { font-size: clamp(28px, 3vw, 40px); }

.lead {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 54ch;
}
.lead--side { max-width: 40ch; }

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost {
  color: var(--ink);
  border-color: rgba(237, 234, 227, 0.4);
  background: rgba(5, 9, 13, 0.35);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 20px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
}
.link-arrow svg { transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  /* Sem borda: uma borda transparente repetia o topo escuro do degradê como uma linha de 1px. */
  background: linear-gradient(to bottom, rgba(5, 9, 13, 0.75), rgba(5, 9, 13, 0));
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(5, 9, 13, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
/* backdrop-filter vira o bloco de contenção do menu fixo (que encolheria para 80px): desligar com o menu aberto. */
.site-header.menu-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-inner {
  width: 100%;
  max-width: none;
  padding: 0 clamp(16px, 5vw, 5vw);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 16px; flex-shrink: 0; min-height: 44px; }
.brand img { height: 32px; width: auto; }
.brand-badge {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9CCCF;
  border-left: 1px solid rgba(237, 234, 227, 0.3);
  padding-left: 16px;
}
.nav { display: flex; gap: clamp(12px, 1.6vw, 28px); font-size: 14.5px; font-weight: 500; align-items: center; }
.nav a { padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color 0.2s, color 0.2s; white-space: nowrap; }
.nav a:hover { border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(237, 234, 227, 0.25);
  border-radius: 2px;
  cursor: pointer;
}
.mobile-toggle__close { display: none; }
.mobile-toggle[aria-expanded="true"] .mobile-toggle__open { display: none; }
.mobile-toggle[aria-expanded="true"] .mobile-toggle__close { display: block; }
.nav__cta { display: none; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: clamp(640px, 100svh, 1080px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--bg) url('../img/hero-poster-1600.webp') center / cover no-repeat;
}
@media (max-width: 800px) {
  .hero { background-image: url('../img/hero-poster-800.webp'); }
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 9, 13, 0.96) 0%, rgba(5, 9, 13, 0.7) 42%, rgba(5, 9, 13, 0.1) 75%);
}
.hero__body {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  padding-bottom: 56px;
}
.hero__copy { display: flex; flex-direction: column; gap: 24px; max-width: 880px; }
.hero__title {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  font-weight: 900;
  font-size: clamp(48px, 7.2vw, 108px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-on-media);
  max-width: 50ch;
}
.hero__actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }

.hero__ticker { position: relative; border-top: 1px solid rgba(237, 234, 227, 0.14); }
.hero__ticker-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C9CCCF;
}
.hero .kicker--light { color: var(--ink); text-shadow: 0 1px 12px rgba(5, 9, 13, 0.9); }
.hero__ticker-dot { display: inline-flex; align-items: center; gap: 8px; }
.hero__ticker-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== NÚMEROS ===== */
.specs { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.specs__grid {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.spec {
  padding: 40px clamp(20px, 2.8vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spec:first-child { padding-left: var(--gutter); }
.spec:last-child { padding-right: var(--gutter); }
.spec + .spec { border-left: 1px solid var(--line); }
.spec__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  font-weight: 900;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.spec__value span:not(.spec__num) {
  font-family: var(--f-mono);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--accent);
}
.spec__num { font-variant-numeric: tabular-nums; }
.spec__label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.spec__note { font-size: 14px; color: var(--ink-2); }

/* ===== ANATOMIA ===== */
.anatomy { position: relative; background: var(--bg); }
.anatomy__intro {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  padding-top: clamp(56px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  pointer-events: none;
}
.anatomy__intro > * { max-width: 400px; }
.anatomy__intro .lead { color: #C9CCCF; }
.anatomy__stage { position: relative; max-width: 1920px; margin-inline: auto; overflow: hidden; }
.anatomy__stage img { width: 100%; height: auto; aspect-ratio: 1783 / 882; object-fit: cover; }
.anatomy__points { position: absolute; inset: 0; }
.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-8px, -50%);
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.pin::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 85, 25, 0.3);
  animation: pin 2.4s ease-in-out infinite;
}
.pin::after { content: ''; width: 48px; height: 1px; background: var(--ink); }
.pin__chip {
  order: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(5, 9, 13, 0.88);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s;
}
a.pin__chip:hover { background: var(--bg); color: var(--accent-hover); }
.pin__num { font-family: var(--f-mono); font-size: 11px; font-weight: 400; color: var(--accent); }
.pin--left { transform: translate(calc(-100% + 8px), -50%); flex-direction: row-reverse; }
@keyframes pin { 50% { box-shadow: 0 0 0 10px rgba(255, 85, 25, 0.12); } }

/* ===== COMPONENTES =====
   Grade com os 4 componentes à vista: 4 colunas no desktop, 2 no tablet, 1 no celular. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.slides { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 16px; }
.slide { position: relative; display: flex; flex-direction: column; gap: 18px; }
.slide img { width: 100%; height: auto; aspect-ratio: 1200 / 1306; object-fit: cover; background: var(--bg); }
.slide__text { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
/* Os slides ficam dentro da seção Anatomia, logo abaixo da foto com os pinos. */
.anatomy__parts { padding-block: clamp(40px, 5vw, 72px) var(--section-y); }

/* ===== SEÇÕES ===== */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-2); }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: clamp(40px, 4vw, 56px);
}
.section__head > div { display: flex; flex-direction: column; gap: 20px; }


/* ===== PASSOS ===== */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; gap: 18px; }
.step__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.step__media img, .step__video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.step:hover .step__media img { transform: scale(1.04); }
.step__text { display: flex; gap: 14px; }
.step__num { font-family: var(--f-mono); font-size: 13px; color: var(--accent); padding-top: 4px; }
.step h3 { font-family: var(--f-display); font-stretch: 110%; font-variation-settings: 'wdth' 110; font-weight: 700; font-size: 21px; line-height: 1.2; margin-bottom: 6px; }
.step p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
/* ===== SIMULADOR ===== */
.sim { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(48px, 7vw, 96px); }
.sim__control { display: flex; flex-direction: column; gap: 24px; }
.sim__input { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.sim__label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sim__label strong { white-space: nowrap; }
.sim__label span, .sim__summary-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sim__label strong {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.02em;
}
.sim__slider { width: 100%; height: 28px; accent-color: var(--accent); cursor: pointer; }
.sim__range { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }

.sim__result { display: flex; flex-direction: column; gap: 48px; padding-top: 44px; }
.lanes { position: relative; display: flex; flex-direction: column; gap: 36px; padding-bottom: 36px; }
.lane { display: flex; flex-direction: column; gap: 12px; }
.lane__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; color: var(--ink-2); }
.lane__head strong {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  font-weight: 800;
  font-size: clamp(28px, 2.8vw, 40px);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.lane--d3 .lane__head span { color: var(--ink); }
.lane--d3 .lane__head strong { color: var(--accent); }
.lane__track { height: 14px; background: rgba(237, 234, 227, 0.08); }
.lane__bar { height: 100%; width: 0; background: #7C848B; transition: width 0.25s var(--ease); }
.lane--d3 .lane__bar { background: var(--accent); }
.lanes__limit {
  position: absolute;
  left: 27%;
  top: 56px;
  bottom: 0;
  border-left: 1px dashed rgba(237, 234, 227, 0.5);
}
.lanes__limit span {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translate(-50%, 8px);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.sim__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.sim__summary > div { display: flex; flex-direction: column; gap: 6px; }
.sim__summary strong {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  font-weight: 900;
  font-size: clamp(32px, 3vw, 44px);
  letter-spacing: -0.03em;
}
.sim__summary p { align-self: end; font-size: 14px; line-height: 1.6; color: var(--ink-3); }

/* ===== SOLUÇÕES ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(360px, 32vw, 460px);
  gap: 16px;
}
.tile { position: relative; overflow: hidden; background: var(--bg-2); }
.tile--wide { grid-column: span 2; }
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.tile:hover img { transform: scale(1.04); }
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 9, 13, 0.96) 0%, rgba(5, 9, 13, 0.75) 35%, rgba(5, 9, 13, 0) 70%);
}
.tile__body {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tile__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-on-media);
}
.tile__tag::before { content: ''; width: 16px; height: 2px; background: var(--accent); }
.tile h3 { font-family: var(--f-display); font-stretch: 115%; font-variation-settings: 'wdth' 115; font-weight: 800; font-size: 26px; line-height: 1.1; }
.tile--wide h3 { font-size: clamp(26px, 2.4vw, 34px); }
.tile p { font-size: 15px; line-height: 1.5; color: var(--ink-on-media); max-width: 58ch; }

/* ===== FICHA TÉCNICA ===== */
.spec-sheet { background: var(--bg-2); padding-bottom: var(--section-y); }
.spec-sheet__banner { position: relative; height: clamp(260px, 26vw, 380px); overflow: hidden; }
.spec-sheet__banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.spec-sheet__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-2) 0%, rgba(11, 18, 25, 0) 70%);
}
.spec-sheet__heading {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.spec-sheet__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
}
.sheet > div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.sheet > div:last-child { border-bottom: 1px solid var(--line); }
.sheet dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.sheet dd { font-size: 16px; }

/* ===== FILME (VISUAL DE ESTÚDIO) ===== */
.section--film {
  position: relative;
  overflow: visible;
  /* O brilho do palco vaza para os lados; corta só na horizontal para não criar rolagem lateral no celular. */
  overflow-x: clip;
  background: radial-gradient(ellipse 85% 65% at 50% 55%, #0D1622 0%, #05090D 75%);
}
.film-stage {
  position: relative;
  margin-inline: auto;
  max-width: 1200px;
}
.film-stage__glow {
  position: absolute;
  inset: -15% -8% 10% -8%;
  background: 
    radial-gradient(ellipse 65% 50% at 50% 40%, rgba(255, 85, 25, 0.1) 0%, transparent 65%),
    radial-gradient(ellipse 85% 60% at 50% 50%, rgba(24, 40, 60, 0.45) 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  filter: blur(36px);
}
.film {
  position: relative;
  z-index: 1;
  background: #000;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(237, 234, 227, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 32px 64px -10px rgba(0, 0, 0, 0.8),
    0 64px 108px -18px rgba(0, 0, 0, 0.95);
  cursor: pointer;
}
.film.is-playing {
  cursor: default;
}
.film video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
/* Botão de play centralizado de estúdio */
.film__play {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(5, 9, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(237, 234, 227, 0.3);
  box-shadow: 
    0 10px 32px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s, opacity 0.3s ease, visibility 0.3s;
}
.film__play svg {
  margin-left: 4px;
  color: var(--accent);
  transition: transform 0.2s var(--ease), color 0.2s;
}
.film:not(.is-playing):hover .film__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(11, 18, 25, 0.9);
  border-color: rgba(255, 85, 25, 0.7);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.8),
    0 0 32px rgba(255, 85, 25, 0.4),
    0 0 0 1px rgba(255, 85, 25, 0.5) inset;
}
.film:not(.is-playing):hover .film__play svg {
  transform: scale(1.06);
  color: #FFF;
}
.film.is-playing .film__play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.85);
}
@media (max-width: 600px) {
  .film__play { width: 68px; height: 68px; }
  .film__play svg { width: 22px; height: 22px; }
}
/* Sombra projetada de piso de estúdio (infinite studio floor shadow) */
.film-stage__shadow {
  position: relative;
  width: 90%;
  height: 56px;
  margin: -16px auto 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.75) 38%, rgba(0, 0, 0, 0.2) 65%, transparent 78%);
  filter: blur(16px);
  pointer-events: none;
  z-index: 0;
}
.film__action {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
@media (max-width: 768px) {
  .film { border-radius: 8px; }
  .film-stage__shadow { height: 40px; margin-top: -12px; filter: blur(12px); }
  .film__action { margin-top: 28px; }
}

/* ===== CASOS ===== */
.record { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 7vw, 96px); }
.record__copy { display: flex; flex-direction: column; gap: 24px; }
.record__cta { align-self: flex-start; }
.certs {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.case { display: flex; flex-direction: column; gap: 8px; padding: 28px 0; border-top: 1px solid var(--line); }
.case:last-child { border-bottom: 1px solid var(--line); }
.case__origin { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.case h3 { font-family: var(--f-display); font-stretch: 110%; font-variation-settings: 'wdth' 110; font-weight: 700; font-size: 22px; line-height: 1.25; }
.case p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ===== AQUISIÇÃO ===== */
.deals { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-top: 1px solid var(--line); }
.deals--single { grid-template-columns: 1fr; max-width: 720px; }
.deal { padding: 40px 40px 40px 0; display: flex; flex-direction: column; gap: 16px; }
.deal + .deal { padding-left: 40px; border-left: 1px solid var(--line); }
.deals--single .deal { padding: 40px 0; }
.deal h3 { font-family: var(--f-display); font-stretch: 115%; font-variation-settings: 'wdth' 115; font-weight: 800; font-size: 26px; line-height: 1.1; }
.deal p { font-size: 15px; line-height: 1.65; color: var(--ink-2); flex: 1; }
.deal__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.deal__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.deal__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}
.deal .btn, .deal .link-arrow { align-self: flex-start; }
.deal__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.deal__actions .btn { align-self: auto; }
.deal__badge {
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 85, 25, 0.45);
  padding: 4px 8px;
}

/* ===== FAQ ===== */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq > div:first-child { display: flex; flex-direction: column; gap: 20px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-btn {
  width: 100%;
  min-height: 64px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: none;
  border: 0;
  text-align: left;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}
.faq-btn__icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-btn__icon::before, .faq-btn__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: transform 0.25s var(--ease);
}
.faq-btn__icon::after { transform: translateY(-50%) rotate(90deg); }
.faq-item.is-open .faq-btn__icon::after { transform: translateY(-50%) rotate(0deg); }
.faq-panel {
  max-height: 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 70ch;
  transition: max-height 0.4s var(--ease), padding 0.3s;
}
.faq-item.is-open .faq-panel { max-height: 400px; padding-bottom: 24px; }

/* ===== AÇÕES E CTAS AO LONGO DO SITE ===== */
.section__action,
.film__action,
.faq__action {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: clamp(36px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}
.section__action p,
.faq__action p {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 50ch;
  margin-inline: auto;
}
.faq__action .btn {
  margin-inline: auto;
}
.action-note {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.sim__action {
  margin-top: 24px;
}
.sim__action .btn {
  width: 100%;
}
.spec-sheet__action {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

/* ===== SOBRE A SMC · GRUPO SMC ===== */
.section--about {
  border-top: 1px solid var(--line);
  padding-block: clamp(72px, 8vw, 112px);
  background: #FFFFFF;
  color: #0F172A;
  scroll-margin-top: 80px;
}
.about__header {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.about__identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.about__brand {
  display: block;
  align-self: flex-start;
  margin-bottom: 2px;
}
.about__logo-img {
  height: clamp(52px, 5vw, 64px);
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.about__title {
  font-family: var(--display);
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0F172A;
  margin: 0;
}
.about__title-highlight {
  color: #FF5519;
  display: block;
}
.about__subtitle {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
  letter-spacing: 0.02em;
  margin: 0;
}
.about__narrative {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 6px;
}
.about__lead {
  font-family: var(--sans);
  font-size: clamp(17px, 1.3vw, 20px);
  font-weight: 600;
  color: #0F172A;
  line-height: 1.48;
  margin: 0;
}
.about__desc {
  font-family: var(--sans);
  font-size: 15px;
  color: #64748B;
  line-height: 1.6;
  margin: 0;
}
.about__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: #FF5519;
  text-decoration: none;
  margin-top: 6px;
  transition: gap 0.2s ease, opacity 0.2s;
}
.about__link:hover {
  gap: 10px;
  opacity: 0.85;
}
.about__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.about-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: clamp(24px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.about-card:hover {
  transform: translateY(-4px);
  border-color: #CBD5E1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.about-card__kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #FF5519;
  text-transform: uppercase;
}
.about-card__val {
  font-family: var(--display);
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #0F172A;
  line-height: 1.15;
  margin-block: 4px 6px;
}
.about-card__desc {
  font-family: var(--sans);
  font-size: 13.5px;
  color: #64748B;
  line-height: 1.5;
  margin: 0;
}

/* ===== ECOSSISTEMA CORPORATIVO ===== */
.section--ecosystem {
  border-top: 1px solid var(--line);
  padding-block: clamp(64px, 7vw, 96px);
  background: #F3F5F7;
  color: #111827;
}
.ecosystem__head {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.ecosystem__head .kicker {
  color: #6B7280;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.ecosystem__head .kicker::before {
  background: #B45309;
}
.eco-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.eco-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.eco-card:hover {
  transform: translateY(-4px);
  border-color: #CBD5E1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.eco-card--active {
  border: 2px solid #FF5519;
  box-shadow: 0 10px 30px rgba(255, 85, 25, 0.12);
}
.eco-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
  padding-bottom: 16px;
  border-bottom: 1px solid #EDF2F7;
}
.eco-card__logo-img {
  height: 28px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
  display: block;
  transition: transform 0.22s var(--ease);
}
/* Ajustes individuais por proporção de logo */
.eco-card__logo-img--agro   { height: 22px; max-width: 140px; } /* wordmark flat 6.7:1 */
.eco-card__logo-img--enga   { height: 34px; max-width: 110px; } /* ícone + SMC 2.5:1 */
.eco-card__logo-img--insp   { height: 38px; max-width: 110px; } /* ícone alto 2.2:1 */
.eco-card__logo-img--usv    { height: 30px; max-width: 130px; } /* ícone + usvSMC 3:1 */
.eco-card:hover .eco-card__logo-img {
  transform: scale(1.04);
}
.eco-badge {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #05090D;
  color: #FF5519;
  border-radius: 6px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.eco-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.eco-card__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 20px;
  color: #0F172A;
  letter-spacing: -0.02em;
}
.eco-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}
.eco-card__link {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s var(--ease);
}
.eco-card__link span:last-child {
  transition: transform 0.2s var(--ease);
}
.eco-card:hover .eco-card__link span:last-child {
  transform: translateX(4px);
}
.eco-card__link--agro { color: #059669; }
.eco-card__link--eng { color: #0284C7; }
.eco-card__link--insp { color: #0D9488; }
.eco-card__link--usv { color: #FF5519; }

/* ===== FOOTER ===== */
.site-footer { padding-block: 64px 32px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 40px; }
.footer__brand img { height: 32px; width: auto; margin-bottom: 16px; }
.footer__brand p { font-size: 14px; line-height: 1.65; color: var(--ink-3); max-width: 40ch; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-2); }
.footer__col h2 { font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.footer__col a:hover { color: var(--ink); }
.footer__legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
/* Escondido enquanto o hero está na tela (lá já há CTAs e ele cobria a faixa inferior). */
/* Visível permanentemente */
.wa-float { transition: transform 0.25s var(--ease), opacity 0.25s, visibility 0.25s; }

/* ===== ENTRADA DO HERO (CSS puro: aparece antes de qualquer JS) =====
   O título só desliza, sem opacidade, para não atrasar o LCP. */
@media (prefers-reduced-motion: no-preference) {
  .hero__title { animation: hero-slide 1s var(--ease) both; }
  .hero__copy > :not(.hero__title),
  .hero__actions > *,
  .hero__ticker-inner > * { animation: hero-rise 0.9s var(--ease) both; }
  .hero__copy > .kicker { animation-delay: 0.05s; }
  .hero__lead { animation-delay: 0.2s; }
  .hero__actions > :nth-child(1) { animation-delay: 0.4s; }
  .hero__actions > :nth-child(2) { animation-delay: 0.5s; }
  .hero__ticker-inner > * { animation-duration: 0.6s; animation-delay: 0.7s; }
}
@keyframes hero-slide { from { transform: translateY(32px); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(24px); } }

/* ===== MOVIMENTO (Lenis) ===== */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.has-motion .hero__video, .has-motion .film, .has-motion .anatomy__stage img { will-change: transform; }

/* ===== RESPONSIVO ===== */
@media (max-width: 1180px) {
  .nav { display: none; }
  .mobile-toggle { display: flex; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: fixed;
    inset: 80px 0 0 0;
    padding: 32px var(--gutter);
    background: var(--bg);
    font-size: 24px;
  }
  .nav.is-open a:not(.btn) { padding: 10px 0; }
  .nav.is-open .nav__cta { display: inline-flex; align-self: stretch; margin-top: 24px; border-bottom: 0; font-size: 16px; }

  .anatomy__intro { position: static; padding-bottom: 40px; pointer-events: auto; }
  .anatomy__intro > * { max-width: 640px; }
}

@media (max-width: 960px) {
  .hero__body { flex-direction: column; align-items: stretch; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__ticker-inner { justify-content: flex-start; flex-wrap: wrap; gap: 8px 24px; padding-block: 20px; }

  .specs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec, .spec:first-child, .spec:last-child { padding: 28px var(--gutter); }
  .spec + .spec { border-left: 0; }
  .spec:nth-child(even) { border-left: 1px solid var(--line); }
  .spec:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .anatomy__points { position: static; padding: 24px var(--gutter) 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
  .pin, .pin--left { position: static; transform: none; flex-direction: row; white-space: normal; font-size: 15px; }
  .pin::before { width: 10px; height: 10px; box-shadow: none; animation: none; margin-right: 10px; }
  .pin::after { display: none; }
  .pin__chip { background: none; padding: 0; min-height: 44px; }
  /* No celular os pinos viram lista, e os slides logo abaixo já mostram os mesmos 4 itens. */
  .anatomy__points { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .slides { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .section__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .sim { grid-template-columns: 1fr; }
  .sim__result { padding-top: 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-sheet__grid { grid-template-columns: 1fr; }
  .spec-sheet__grid .sheet:first-child > div:last-child { border-bottom: 0; }
  .record, .faq { grid-template-columns: 1fr; }
  .deals { grid-template-columns: 1fr; }
  .deal, .deal + .deal { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .about__header { grid-template-columns: 1fr; gap: 32px; }
  .about__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col { gap: 0; }
  .footer__col a { min-height: 44px; display: flex; align-items: center; }
}

@media (max-width: 600px) {
  .brand-badge, .header-actions .btn { display: none; }
  .hero__actions .btn { width: 100%; }
  /* CTAs de texto longo quebram linha em vez de estourar a largura da tela. */
  .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.3; padding-block: 12px; }
  /* Medido a 390px: acima de ~45px "O RESGATE" não cabe e o "O" fica sozinho na linha. */
  .hero__title { font-size: 11.2vw; }
  .hero__shade { background: linear-gradient(to top, rgba(5, 9, 13, 0.97) 0%, rgba(5, 9, 13, 0.8) 55%, rgba(5, 9, 13, 0.25) 85%); }
  .anatomy__points { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .slides { grid-template-columns: 1fr; }
  .step__media { aspect-ratio: 4 / 3; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 380px; }
  .tile--wide { grid-column: auto; }
  .sheet > div { grid-template-columns: 1fr; gap: 4px; }
  .sim__summary { grid-template-columns: 1fr; }
  .lanes__limit span { font-size: 10px; transform: translate(-16px, 8px); }
  .about__logo-img { height: 46px; }
  .about__grid { grid-template-columns: 1fr; }
  .eco-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .wa-float { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
