@import url("fonts.css");

/* ============================================================
   MoovLED — tokens extraídos do Figma (b8Cks5aOcsMo5DFKHaQRba)
   ============================================================ */
:root {
  --bg:            #111417;
  --bg-deep:       #0c0c0d;
  --surface:       #18191a;
  --surface-2:     #1d2023;
  --surface-3:     #242528;
  --border:        #242528;
  --border-soft:   rgba(69, 70, 83, .2);
  --border-faint:  rgba(69, 70, 83, .1);
  --border-strong: rgba(69, 70, 83, .5);

  --text:       #e1e2e7;
  --text-muted: #c5c5d5;
  --text-dim:   #6b7280;

  --accent:    #89ceff;
  --accent-2:  #bac3ff;
  --grad-a:    #082493;
  --grad-b:    #199cdc;
  --live:      #4ade80;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --container: 1280px;
  --gutter: 40px;
  --radius:   12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --header-h: 80px;
}

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

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

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #06131f; padding: 12px 20px;
  border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- tipografia ---------- */
.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 7.2vw, 4rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
  /* correção de legibilidade: o Figma usa #8f909e sobre o painel de LED aceso */
  text-shadow: 0 2px 24px rgba(0, 0, 0, .75), 0 1px 3px rgba(0, 0, 0, .9);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.4;
  color: var(--text);
  margin: 0;
}
.h4 {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.55;
  color: #fff;
  margin: 0;
}
.lede { font-size: clamp(1rem, 1.6vw, 1.125rem); line-height: 1.6; margin: 0; }
.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin: 0;
}
.section { padding-block: clamp(56px, 8vw, 80px); }
.rule { width: 96px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 32px; border-radius: var(--radius);
  font-size: .875rem; font-weight: 700; letter-spacing: .05em;
  border: 0; cursor: pointer; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn--primary {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  color: #fff;
  box-shadow: 0 10px 15px rgba(8, 36, 147, .4);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(8, 36, 147, .55); }
.btn--ghost { background: transparent; color: var(--text); border: 2px solid var(--border-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--outline {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent); padding: 12px 25px; font-weight: 500;
}
.btn--outline:hover { background: rgba(137, 206, 255, .1); }
.btn--sm { padding: 12px 24px; }
.btn__arrow { width: 10px; height: 10px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-size: .75rem; font-weight: 600;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow img { width: 10px; height: 10px; }

/* ---------- badge / pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px; border-radius: 999px;
  background: rgba(24, 25, 28, .7);
  border: 1px solid rgba(137, 206, 255, .3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.pill__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); flex: none; }
.pill--live {
  background: rgba(0, 0, 0, .5); border-color: rgba(255, 255, 255, .1);
  color: #fff; letter-spacing: 0; text-transform: none; padding: 5px 13px;
}
.pill--live .pill__dot { background: var(--live); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(17, 20, 23, .7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-faint);
}
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header__logo { display: block; flex: none; }
.header__logo img { width: 132px; height: 57px; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  font-size: .875rem; font-weight: 500; letter-spacing: .05em;
  color: var(--text-muted); padding-bottom: 4px;
  border-bottom: 2px solid transparent; transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--accent); }
.nav a.is-active { color: var(--accent-2); font-weight: 700; border-bottom-color: var(--accent-2); }

.nav-toggle {
  display: none; width: 44px; height: 44px; flex: none;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); transition: transform .22s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding-block: clamp(72px, 14vw, 150px); }
.hero__bg { position: absolute; inset: -20px -32px; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s ease;
  pointer-events: none;
}
/* só aparece depois que há frame decodificado, evitando piscar preto sobre o still */
.hero__video.is-ready { opacity: .92; }
/* O escurecimento principal vive no PRÓPRIO vídeo (color grade no ffmpeg:
   brightness -0.16, saturation 0.38, deslocado para o azul). Fazer isso na
   fonte, e não com opacidade/scrim pesados, é o que permite o movimento
   continuar visível — foi a causa do hero parecer uma foto parada.
   Aqui sobra só o necessário para o H1 e a fusão com a seção seguinte. */
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(46% 36% at 50% 46%, rgba(6, 9, 12, .62) 0%, rgba(6, 9, 12, .30) 60%, rgba(6, 9, 12, 0) 100%),
    linear-gradient(180deg, rgba(17, 20, 23, .28) 0%, rgba(17, 20, 23, .26) 45%, var(--bg) 100%);
}
/* controle de movimento do vídeo de fundo */
.hero__toggle {
  position: absolute; left: var(--gutter); bottom: 24px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(12, 12, 13, .62);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.hero__toggle:hover { color: var(--accent); border-color: var(--accent); background: rgba(12, 12, 13, .8); }
.hero__toggle svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.hero__toggle .ico-pause,
.hero__toggle[aria-pressed="true"] .ico-play { display: none; }
.hero__toggle[aria-pressed="true"] .ico-pause { display: block; }

.hero__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero__lede { max-width: 672px; color: #d7d8e3; text-shadow: 0 1px 12px rgba(0, 0, 0, .7); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 8px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  width: 100%; max-width: 896px; margin-top: 40px;
  padding-top: 33px; border-top: 1px solid var(--border-soft);
}
.hero__stats > * + * { border-left: 1px solid var(--border-soft); }
.stat-inline { padding: 16px; text-align: center; }
.stat-inline b {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.5rem); line-height: 1.4; color: var(--accent);
}
.stat-inline span {
  display: block; margin-top: 4px; font-size: .75rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted);
}

/* ============================================================
   CARDS
   ============================================================ */
.section--cards { background: var(--bg); }
.section__head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-bottom: 64px; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 25px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(137, 206, 255, .35); }
.card__glow {
  position: absolute; top: -40px; right: -40px; width: 128px; height: 128px;
  border-radius: 999px; background: rgba(186, 195, 255, .1); filter: blur(20px); pointer-events: none;
}
.card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
/* sem width/height aqui: cada ícone tem proporção própria no Figma
   (globe 20x20, pin 16x20, bolt 16x20, store 20x18) e usa os
   atributos width/height do próprio <img> */
.card__icon img { object-fit: contain; }
.card p { margin: 11px 0 0; }

/* ============================================================
   NÚMEROS
   ============================================================ */
.section--stats {
  background:
    radial-gradient(90% 130% at 50% 50%,
      rgba(8, 36, 147, .2) 0%, rgba(13, 28, 85, .6) 25%,
      rgba(15, 24, 54, .8) 37.5%, var(--bg) 50%),
    var(--bg-deep);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 25px; border-radius: var(--radius);
  background: rgba(24, 25, 28, .7);
  border: 1px solid rgba(186, 195, 255, .3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.stat:nth-child(2n) { border-color: rgba(137, 206, 255, .3); }
.stat__icon {
  width: 64px; height: 64px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--grad-a) 0%, #129ad9 100%);
  box-shadow: 0 0 15px rgba(18, 154, 217, .5);
}
.stat:nth-child(2) .stat__icon { background: linear-gradient(135deg, #129ad9 0%, var(--accent) 100%); box-shadow: 0 0 15px rgba(137, 206, 255, .5); }
.stat:nth-child(3) .stat__icon { background: linear-gradient(135deg, #4154bf 0%, var(--accent-2) 100%); box-shadow: 0 0 15px rgba(186, 195, 255, .5); }
/* people 30x15, map 22.5x22.5, timer 22.5x26.25, eye 27.5x18.75 — dimensões no <img> */
.stat__icon img { object-fit: contain; }
.stat__value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.2;
  letter-spacing: -.01em; color: var(--text);
}
.stat__label { margin-top: 6px; font-size: .875rem; font-weight: 500; letter-spacing: .05em; color: var(--text-muted); }

/* ============================================================
   GALERIA (bento)
   ============================================================ */
.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.gallery__head p { max-width: 672px; margin: 16px 0 0; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 292px); gap: 16px; }
.bento__main { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.bento__sub  { grid-column: 3; grid-row: 1; }
.bento__card { grid-column: 3; grid-row: 2; }

/* isolation: isolate é obrigatório — sem ele os filhos com z-index negativo
   escapam para o contexto de empilhamento raiz e somem atrás do fundo do body */
.tile { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: flex-end; }
.tile img.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tile__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, rgba(17, 20, 23, .2) 50%, rgba(17, 20, 23, 0) 100%); opacity: .85; }
.tile__body { position: relative; padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.tile__body h3, .tile__body h4 { color: #fff; }
.tile__body p { margin: 0; }
.tile--sm .tile__body { padding: 24px; gap: 3px; }
.tile--sm .tile__scrim { opacity: .9; background: linear-gradient(0deg, var(--bg) 0%, rgba(17, 20, 23, 0) 100%); }
.tile--sm p { font-size: .75rem; font-weight: 600; }

.bento__card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 25px;
  display: flex; flex-direction: column; justify-content: center;
}
.bento__card .card__icon { width: 40px; height: 40px; margin-bottom: 16px; }
.bento__card p { font-size: .75rem; font-weight: 600; margin: 8px 0 0; }
.bento__card .link-arrow { margin-top: auto; padding-top: 24px; }

/* ============================================================
   MARCAS (marquee)
   ============================================================ */
.brands { background: var(--surface-2); border-top: 1px solid var(--border-faint); border-bottom: 1px solid var(--border-faint); padding-block: 48px; }
.brands__title { text-align: center; font-size: .875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 24px; }
.marquee { position: relative; overflow: hidden; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 128px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--surface-2), rgba(29, 32, 35, 0)); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--surface-2), rgba(29, 32, 35, 0)); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 64px; padding: 16px 32px; opacity: .5; }
.marquee__group span { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.4; color: var(--text); white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============================================================
   FORMULÁRIO
   ============================================================ */
.quote__card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
  display: grid; grid-template-columns: 2fr 3fr;
}
.quote__info {
  position: relative; overflow: hidden; padding: 40px;
  background: linear-gradient(133deg, #272a2d 0%, var(--surface-2) 100%);
}
.quote__info::after {
  content: ""; position: absolute; left: -96px; bottom: -95px;
  width: 256px; height: 256px; border-radius: 999px;
  background: rgba(186, 195, 255, .1); filter: blur(32px); pointer-events: none;
}
.quote__info > * { position: relative; }
.quote__info p { margin: 15px 0 0; }
.contact-list { display: flex; flex-direction: column; gap: 24px; margin-top: 33px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item__icon { width: 40px; height: 40px; flex: none; border-radius: 4px; background: var(--surface-3); display: flex; align-items: center; justify-content: center; }
/* mail 20x16, phone 15x22, building 20x18 — dimensões no <img> */
.contact-item__icon img { object-fit: contain; }
.contact-item dt { font-size: .75rem; font-weight: 600; color: var(--text-muted); }
.contact-item dd { margin: 2px 0 0; font-size: 1rem; color: var(--text); word-break: break-word; }
.contact-item dd a:hover { color: var(--accent); }

.quote__form { padding: 40px; background: var(--surface); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; }
.field > label { font-size: .75rem; font-weight: 600; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%; padding: 18px 16px; border-radius: var(--radius-sm);
  background: var(--surface-3); border: 1px solid transparent;
  color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .18s ease, background-color .18s ease;
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #202124; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #f87171; }
.field__error { font-size: .75rem; color: #f87171; min-height: 0; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__submit { width: 100%; }
.form__submit[disabled] { opacity: .6; cursor: progress; }
.form__status { margin-top: 16px; font-size: .875rem; border-radius: var(--radius-sm); padding: 12px 16px; }
.form__status:empty { display: none; }
.form__status[data-state="ok"]  { background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .4); color: #86efac; }
.form__status[data-state="err"] { background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .4); color: #fca5a5; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg); padding-top: 49px; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__brand img { width: 120px; height: 51px; object-fit: contain; }
.footer__brand p { margin: 22px 0 0; max-width: 282px; }
.footer h2, .footer h3 { font-size: .875rem; font-weight: 600; color: var(--text); margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a:hover { color: var(--accent); }
.footer .contact-line { display: flex; gap: 10px; align-items: center; }
.footer .contact-line img { width: 12px; height: 12px; opacity: .75; flex: none; }

.socials { display: flex; gap: 12px; margin-top: 26px; }
.socials a {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--surface-3); display: flex; align-items: center; justify-content: center;
  transition: background-color .18s ease, transform .18s ease;
}
.socials a:hover { background: var(--grad-b); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; fill: var(--text); }

.footer__bottom { margin-top: 48px; border-top: 1px solid var(--border-faint); padding-block: 32px; }
.footer__bottom p { margin: 0; font-size: .8125rem; }

/* ---------- página de políticas ---------- */
.doc { max-width: 760px; margin-inline: auto; padding-block: clamp(48px, 8vw, 88px); }
.doc h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--text); margin: 0 0 12px; }
.doc h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--text); margin: 48px 0 12px; }
.doc p { margin: 0 0 14px; }
.doc a { color: var(--accent); }
.doc a:hover { text-decoration: underline; }
.doc .note {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
  padding: 18px 20px; margin: 24px 0;
}
.doc .note p { margin: 0; }
.doc .back { display: inline-flex; margin-bottom: 32px; color: var(--accent); font-size: .875rem; font-weight: 600; }
.doc__meta { color: var(--text-dim); }
.footer__bottom--flush { margin-top: 0; }

/* botão flutuante de WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 999px;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  :root { --gutter: 24px; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: 380px 240px 240px; }
  .bento__main { grid-column: 1 / span 2; grid-row: 1; }
  .bento__sub  { grid-column: 1; grid-row: 2 / span 2; }
  .bento__card { grid-column: 2; grid-row: 2 / span 2; }
  .quote__card { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(12, 12, 13, .97);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav[data-open="true"] { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--border-faint); }
  .nav a.is-active { border-bottom-color: var(--border-faint); }
  .nav-toggle { display: flex; }
  .header__cta { display: none; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero__stats { max-width: 100%; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-template-rows: 320px 240px auto; }
  .bento__main, .bento__sub, .bento__card { grid-column: 1; }
  .bento__main { grid-row: 1; } .bento__sub { grid-row: 2; } .bento__card { grid-row: 3; }
  .hero__stats { grid-template-columns: 1fr; padding-top: 8px; }
  .hero__stats > * + * { border-left: 0; border-top: 1px solid var(--border-soft); }
  .hero__actions .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .quote__info, .quote__form { padding: 28px 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .tile__body { padding: 24px; }
  .marquee__group { gap: 40px; }
  .wa-float { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; }
}

@media (max-width: 640px) {
  .hero__toggle { left: 16px; bottom: 16px; padding: 9px 12px; }
  .hero__toggle .hero__toggle-texto { display: none; }
}
