/* Conecta Mob | base, componentes e seções. Usa só variáveis de tokens.css. Movimento fica em motion.css. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--fg); color: #000; padding: 12px 18px; border-radius: var(--r-pill); font-weight: 700; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.gt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ===== Botões ===== */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border-radius: var(--r-pill);
  font: 700 16px/1 var(--font); border: 0; cursor: pointer; touch-action: manipulation;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur-fast);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: var(--on-brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(73, 207, 148, .35); }
.btn-ghost { color: var(--fg); background: transparent; }
.btn-ghost::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; z-index: -1;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }

/* ===== Navegação fixa ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav); border-bottom: 1px solid transparent; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease); }
.nav.scrolled { background: rgba(0, 0, 0, .74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); opacity: .35; }
.nav::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); transform: scaleX(var(--scroll, 0)); transform-origin: left; }
.nav-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: var(--container); margin-inline: auto; padding: 22px var(--gutter) 16px; }
.nav .logo { display: block; width: clamp(150px, 16vw, 210px); flex: none; }
.nav .logo img { display: block; width: 100%; height: auto; }
.nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav ul a { position: relative; display: block; padding: 10px 0; font-size: 15px; font-weight: 500; color: var(--fg-soft); transition: color var(--dur-fast); }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav ul a:hover, .nav ul a[aria-current="true"] { color: var(--fg); }
.nav ul a[aria-current="true"]::after, .nav ul a:hover::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 22px; font-size: 14px; white-space: nowrap; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; place-items: center; }
.menu-btn svg { width: 18px; height: 18px; stroke: currentColor; }

/* ===== Hero ===== */
.stage { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: #020605; }
.hero-bg .fallback {
  position: absolute; inset: -10%;
  background:
    radial-gradient(ellipse 70% 34% at 72% 80%, rgba(0, 184, 244, .24), transparent 70%),
    radial-gradient(ellipse 60% 30% at 28% 88%, rgba(146, 231, 52, .16), transparent 70%),
    linear-gradient(180deg, #000 0%, #03100f 52%, #06221f 78%, #000 100%);
}
.hero-bg .glow { position: absolute; inset: 0; background: radial-gradient(520px circle at var(--mx, 72%) var(--my, 38%), rgba(73, 207, 148, .16), transparent 62%); }
.hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero-bg.is-playing video { opacity: 1; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .74) 50%, rgba(0, 0, 0, .32) 100%),
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 28%),
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 22%);
}

/* Visor de câmera: quadro, REC e timecode */
.vf { position: absolute; z-index: 1; inset: 92px clamp(12px, 2.4vw, 32px) 20px; pointer-events: none; }
.vf i { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(255, 255, 255, .4); }
.vf .tl { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.vf .tr { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.vf .bl { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.vf .br { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.rec { position: absolute; left: 38px; top: 2px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: .04em; color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; }
.rec b { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); }

.hero { position: relative; max-width: var(--container); margin-inline: auto; padding: clamp(132px, 15vw, 210px) var(--gutter) clamp(48px, 6vw, 88px); }
.hero-mark { position: absolute; z-index: 0; pointer-events: none; right: 3%; top: 54%; transform: translate(var(--px, 0px), calc(-50% + var(--py, 0px))); width: min(32vw, 470px); aspect-ratio: 254 / 244; opacity: .85; }
.hero-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mark-outline { fill: none; stroke: url(#gOuter); stroke-width: .8; stroke-linejoin: round; }
.mark-bolt-line { fill: none; stroke: url(#gBolt); stroke-width: .8; stroke-linejoin: round; }
.mark-bolt { fill: url(#gBolt); filter: drop-shadow(0 0 14px rgba(73, 207, 148, .55)); }

.hero-copy { position: relative; z-index: 2; max-width: 1040px; }
h1 { margin: 0; font-size: var(--fs-display); line-height: .98; letter-spacing: -.04em; }
h1 .mask { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
h1 .line { display: block; }
h1 .l1 { font-weight: 300; }
h1 .l2 { font-weight: 800; background: var(--grad-loop); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.lead { margin: clamp(24px, 3.4vw, 40px) 0 0; max-width: 34em; font-size: var(--fs-lead); color: var(--fg-soft); }
.lead strong { color: var(--fg); font-weight: 700; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 4vw, 44px); }

.media-toggle { position: absolute; z-index: var(--z-ui); right: var(--gutter); bottom: 34px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--fg); background: rgba(0, 0, 0, .55); border: 1px solid var(--line); backdrop-filter: blur(6px); transition: background var(--dur-fast), border-color var(--dur-fast); }
.media-toggle[hidden] { display: none; }
.media-toggle:hover { background: rgba(255, 255, 255, .1); border-color: var(--green); }
.media-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.media-toggle .i-play { display: none; }
.media-toggle[aria-pressed="true"] .i-play { display: block; }
.media-toggle[aria-pressed="true"] .i-pause { display: none; }

/* ===== Faixa em movimento (marquee) ===== */
.strip { border-block: 1px solid var(--line); background: var(--bg); }
.marquee { overflow: hidden; padding: 22px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee ul { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.marquee li { display: flex; align-items: center; white-space: nowrap; font-size: clamp(1.8rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.marquee li::after { content: ""; flex: none; width: .3em; height: .3em; margin-inline: clamp(24px, 3.4vw, 52px); border-radius: 50%; background: var(--grad); }
.marquee li:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .6); }
.tagline-row { max-width: var(--container); margin-inline: auto; padding: 18px var(--gutter); border-top: 1px solid var(--line); }
.tagline { margin: 0; color: var(--muted); font-weight: 500; font-size: clamp(.95rem, 1.3vw, 1.1rem); }

/* ===== Seções ===== */
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec-y); border-top: 1px solid var(--line); }
.sec h2 { margin: 0; font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.sec h3 { margin: 0; }
.sub { margin: 18px 0 0; max-width: 34em; color: var(--muted); font-size: var(--fs-lead); }
.fecho { margin: clamp(36px, 5vw, 64px) 0 0; font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 500; }
section[id] { scroll-margin-top: 72px; }

/* Sobre */
.sobre-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.sobre-h { font-size: clamp(2.2rem, 5.4vw, 4.8rem) !important; }
.sobre-h .l1 { display: block; font-weight: 300; }
.sobre-h .l2 { display: block; font-weight: 800; padding-bottom: .08em; }
.sobre-txt h3 { font-size: 1rem; font-weight: 700; margin: 0 0 10px; }
.sobre-txt h3:not(:first-child) { margin-top: 36px; }
.sobre-txt p { margin: 0 0 14px; max-width: 34em; color: var(--fg-soft); }
.sobre-txt strong { color: var(--fg); }

/* Mercado */
.mercado-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.problemas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.problemas li { display: flex; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.2rem, 2.3vw, 1.85rem); font-weight: 500; line-height: 1.25; }
.problemas .x { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--rec); color: #000; display: grid; place-items: center; font-size: 2.1rem; font-weight: 700; line-height: .9; padding-bottom: 3px; box-shadow: 0 0 0 5px rgba(255, 77, 77, .16), 0 0 22px rgba(255, 77, 77, .45); }
.consequencia { display: flex; gap: 18px; align-items: flex-start; margin: 32px 0 0; font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--fg-soft); max-width: 30em; }
.consequencia svg { flex: none; }
.consequencia strong { color: var(--fg); }

/* Visão */
.pares { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.pares li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .35em; padding: clamp(14px, 2vw, 22px) 0; border-bottom: 1px solid var(--line); font-size: clamp(2rem, 6.2vw, 5rem); line-height: 1.08; letter-spacing: -.035em; }
.pares strong { font-weight: 800; padding-bottom: .06em; }
.pares .dep { font-weight: 300; color: var(--muted); }
.pares em { font-style: normal; font-weight: 800; color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .55); background: linear-gradient(90deg, #fff calc(var(--p, 0) * 100%), transparent calc(var(--p, 0) * 100%)); -webkit-background-clip: text; background-clip: text; }

/* Método */
.etapas { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; position: relative; --prog: 0; }
.etapas::before, .etapas::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; }
.etapas::after { background: var(--line); z-index: 0; }
.etapas::before { background: var(--grad); z-index: 1; transform: scaleX(var(--prog)); transform-origin: left; }
.etapas li { position: relative; padding-top: 40px; }
.etapas li::before { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); z-index: 2; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.etapas li.on::before { background: var(--green); border-color: var(--green); transform: scale(1.25); }
.etapas .n { display: block; font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; transition: opacity var(--dur) var(--ease); }
.etapas li:not(.on) .n { opacity: .3; }
.etapas h3 { margin-top: 12px; font-size: 1.1rem; line-height: 1.3; font-weight: 700; }

/* Serviços */
.s-grid { display: grid; gap: 16px; margin-top: clamp(32px, 5vw, 56px); grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "drone drone a" "drone drone b" "c d e"; }
.s-tile { position: relative; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 28px; min-height: 150px; display: flex; align-items: flex-end; overflow: hidden; transition: border-color var(--dur) var(--ease); }
.s-tile:hover { border-color: var(--green); }
.s-tile h3 { position: relative; z-index: 1; font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; }
.s-tile:not(.s-drone)::before { content: ""; position: absolute; left: 28px; top: 28px; width: 28px; height: 3px; border-radius: 2px; background: var(--grad); }
.s-a { grid-area: a; } .s-b { grid-area: b; } .s-c { grid-area: c; } .s-d { grid-area: d; } .s-e { grid-area: e; } .s-drone { grid-area: drone; }
.s-drone { min-height: 360px; background: radial-gradient(ellipse 80% 60% at 70% 90%, rgba(0, 184, 244, .16), transparent 70%), #050a0a; padding: clamp(24px, 3vw, 40px); }
.contornos { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .6; }
.s-drone-txt { position: relative; z-index: 1; max-width: 22em; }
.s-drone-txt h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.s-drone-txt p { margin: 10px 0 0; color: var(--fg-soft); }

/* Público */
.publico-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.1rem, 1.9vw, 1.45rem); font-weight: 500; line-height: 1.3; }
.checks li:first-child { border-top: 1px solid var(--line); }
.ck { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; }
.ck svg { width: 16px; height: 16px; }

/* Planos */
.p-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 5vw, 56px); }
.plano { position: relative; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: clamp(24px, 2.4vw, 32px); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.plano:hover { border-color: var(--green); transform: translateY(-4px); }
.plano > * { position: relative; z-index: 1; }
.plano h3 { line-height: .95; letter-spacing: -.03em; font-weight: 800; }
.plano .pl { display: block; font-size: clamp(1.5rem, 2vw, 1.9rem); }
.plano .pn { display: block; font-size: clamp(2.2rem, 3.2vw, 3.2rem); padding-bottom: .08em; }
.pd { margin: 18px 0 0; font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.pp { margin: 10px 0 0; color: var(--muted); }
.pp strong { color: var(--fg); font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.plano ul { list-style: none; margin: 20px 0 24px; padding: 20px 0 0; border-top: 2px solid transparent; border-image: var(--grad) 1; display: grid; gap: 10px; color: var(--fg-soft); font-size: .98rem; line-height: 1.4; }
.plano li { position: relative; padding-left: 16px; }
.plano li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.plano .btn { margin-top: auto; }
.pt { margin: 10px 0 0; color: var(--fg-soft); font-size: .98rem; line-height: 1.45; }
.pe { margin: 22px 0 0; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pe + ul { margin-top: 12px; }
.p-extra { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
.plano-x { flex-direction: row; gap: clamp(24px, 3vw, 44px); }
.plano-x .px-txt { flex: 0 0 34%; }
.plano-x ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.plano-x .btn { white-space: nowrap; }
@media (max-width: 1100px) { .plano-x { flex-direction: column; } .plano-x .px-txt { flex: none; } }
.plano-x .pn { font-size: clamp(1.9rem, 2.6vw, 2.6rem); }
.plano-x .px-lista { display: flex; flex-direction: column; flex: 1; }
.plano-x .px-lista .pt { margin-top: 20px; }
.plano-x ul { margin-top: 18px; }
.px-nota { margin: 0 0 24px; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.plano-x .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 1100px) { .p-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .plano-x ul { grid-template-columns: 1fr; } }
.nota-planos { margin: 28px 0 0; color: var(--muted); max-width: 44em; }

/* Contato */
.contato-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.extras { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 500; }
.extras li { display: flex; align-items: center; gap: 14px; }
.extras li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); flex: none; }
.form { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: clamp(22px, 3vw, 40px); display: grid; gap: 18px; }
.form h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.campo { display: grid; gap: 8px; min-width: 0; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.campo label { font-size: var(--fs-small); font-weight: 500; color: var(--fg-soft); }
.campo input, .campo select, .campo textarea { width: 100%; font: 400 1rem/1.4 var(--font); color: var(--fg); background: #000; border: 1px solid #3a3a40; border-radius: var(--r-sm); padding: 14px 16px; min-height: 52px; transition: border-color var(--dur-fast); }
.campo textarea { resize: vertical; }
.campo input:hover, .campo select:hover, .campo textarea:hover { border-color: #55555c; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 2px solid var(--cyan); outline-offset: 2px; border-color: transparent; }
.campo [aria-invalid="true"] { border-color: var(--danger); }
.form .btn { width: 100%; }
.form .btn[disabled] { opacity: .5; cursor: wait; }
.form-status { margin: 0; min-height: 1.4em; font-weight: 500; }
.form-status.ok { color: var(--lime); }
.form-status.erro { color: var(--danger); }
.privacidade { margin: 0; color: var(--muted); font-size: .88rem; }

/* Rodapé */
.rodape { border-top: 1px solid var(--line); padding-block: 48px 40px; }
.rodape-in { display: grid; grid-template-columns: auto 1fr auto; gap: 20px 40px; align-items: center; }
.logo-f { display: block; width: 170px; }
.logo-f img { display: block; width: 100%; height: auto; }
.rodape .tag { margin: 0; color: var(--muted); }
.rodape ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.rodape a { color: var(--fg-soft); } .rodape a:hover { color: var(--fg); }
.rodape nav a { display: inline-block; padding: 10px 0; }
.rodape .copy { grid-column: 1 / -1; margin: 12px 0 0; color: var(--muted); font-size: .88rem; }

/* ===== Responsivo ===== */
@media (min-width: 1101px) { .p-grid .plano .pd { min-height: 1.4em; } .p-grid .plano .pt { min-height: 6.2em; } }
@media (max-width: 1100px) {
  .etapas { grid-template-columns: 1fr; gap: 0; padding-left: 36px; }
  .etapas::before, .etapas::after { left: 6px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .etapas::before { background: linear-gradient(180deg, #92e734, #00b8f4); transform: scaleY(var(--prog)); transform-origin: top; }
  .etapas li { padding: 0 0 32px; }
  .etapas li::before { left: -36px; top: 4px; }
  .etapas li > * { max-width: 28em; }
}
@media (max-width: 900px) {
  .sobre-grid, .mercado-grid, .publico-grid, .contato-grid { grid-template-columns: 1fr; }
  .s-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "drone drone" "a b" "c d" "e e"; }
  .s-drone { min-height: 300px; }
  .rodape-in { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav ul { display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 100%; flex-direction: column; gap: 0; background: rgba(0, 0, 0, .96); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 20px; }
  .nav ul.open { display: flex; }
  .nav ul a { padding: 14px 0; font-size: 17px; }
  .nav ul a::after { display: none; }
  .nav ul li + li { border-top: 1px solid var(--line); }
  .hero-mark { width: 112vw; right: -42%; top: 40%; opacity: .3; }
}
@media (max-width: 640px) {
  .p-grid { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .s-grid { grid-template-columns: 1fr; grid-template-areas: "drone" "a" "b" "c" "d" "e"; }
  .nav-in > .btn { display: none; }
  .btn { flex: 1 1 100%; }
  .rec { left: 34px; font-size: 12px; }
}

/* Funil WhatsApp */
.wa-ic { width: 1.2em; height: 1.2em; flex: none; }
.btn .wa-ic { margin-right: 2px; }
.form-sub { margin: 0; color: var(--muted); font-size: var(--fs-small); }
.zap a { color: var(--fg); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--green); }
.zap a:hover { color: var(--lime); }
.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: var(--z-nav); display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 18px; border-radius: var(--r-pill); background: var(--grad); color: var(--on-brand); font-weight: 700; font-size: 1rem; box-shadow: 0 10px 30px rgba(0, 184, 244, .28); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.fab:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(73, 207, 148, .4); }
.fab:active { transform: scale(.97); }
.fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 640px) { .fab span { display: none; } .fab { padding: 0 16px; } .fab .wa-ic { width: 1.5em; height: 1.5em; } }
.fab.off { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* CTA do contato e popup de conversa */
.cta-wa { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 18px; justify-items: start; }
.cta-wa h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.cta-wa p { margin: 0; color: var(--fg-soft); font-size: var(--fs-lead); max-width: 30em; }
html.modal-open { overflow: hidden; }
.modal { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--fg); overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.modal::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in var(--dur) var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-form { position: relative; display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); }
.modal-form h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.025em; padding-right: 48px; }
.modal-form .btn { width: 100%; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer; transition: border-color var(--dur) var(--ease); }
.modal-x svg { width: 16px; height: 16px; }
.modal-x:hover { border-color: var(--green); }
.modal-x:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }
.modal-form h2 { margin: 0; } .modal-form .form-status:empty { display: none; }

/* Galeria vertical */
.galeria { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.g-card { position: relative; display: block; width: 100%; aspect-ratio: 9 / 15; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); color: var(--fg); cursor: pointer; text-align: left; font: inherit; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.g-card:hover { border-color: var(--green); transform: translateY(-4px); }
.g-card:active { transform: scale(.98); }
.g-card:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.g-card img, .g-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-card video { opacity: 0; transition: opacity var(--dur-slow) var(--ease); }
.g-card.on video { opacity: 1; }
.g-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .82)); pointer-events: none; }
.g-play { position: absolute; z-index: 2; top: 16px; right: 16px; width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: var(--grad); color: var(--on-brand); }
.g-cap { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; display: grid; gap: 2px; }
.g-cap strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.g-cap span { color: var(--fg-soft); font-size: var(--fs-small); }
.trabalho .fecho { margin-top: clamp(28px, 4vw, 48px); }
.modal-video { width: min(440px, calc(100vw - 32px)); background: #000; }
.mv-in { position: relative; display: grid; }
.mv-in video { display: block; width: 100%; max-height: calc(100dvh - 120px); background: #000; }
.mv-t { margin: 0; padding: 14px 20px 18px; color: var(--fg-soft); font-size: var(--fs-small); }
.modal-video .modal-x { z-index: 3; background: rgba(0, 0, 0, .6); }
@media (max-width: 860px) { .galeria { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; } .galeria li { scroll-snap-align: start; } }
.mv-in video { aspect-ratio: 9 / 16; object-fit: contain; width: auto; max-width: 100%; max-height: calc(100dvh - 130px); margin-inline: auto; }

