/* =========================================================================
   Demarchi Soluções Elétricas e Automação
   Folha de estilos do site (sem dependências, sem etapa de build)
   ========================================================================= */

/* ---------- Fontes (auto-hospedadas, subconjunto latino) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}
/* Fonte de reserva com métricas ajustadas para evitar "pulos" de layout */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 99%;
  ascent-override: 88.7%;
  descent-override: 21.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #06080b;
  --bg-2: #090c11;
  --surface: #0d1218;
  --surface-2: #111821;
  --surface-3: #17212c;
  --line: rgba(150, 175, 205, 0.11);
  --line-2: rgba(150, 175, 205, 0.19);
  --line-3: rgba(150, 175, 205, 0.32);
  --grid: rgba(150, 175, 205, 0.07);

  --text: #edf2f7;
  --text-2: #a9b5c4;
  --text-3: #7d8a9b;

  --brand: #00679e;
  --accent: #3aa0ff;
  --accent-hover: #62b4ff;
  --accent-2: #8fd0ff;
  --accent-deep: #1666c9;
  --accent-ink: #021321;
  --accent-soft: rgba(58, 160, 255, 0.12);
  --accent-line: rgba(58, 160, 255, 0.32);
  --ok: #3ddc97;
  --wa: #25d366;
  --wa-deep: #138a47;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --font-sans: "Archivo", "Archivo Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Textura de granulação sutil sobre toda a página */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
strong { font-weight: 600; color: var(--text); }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 28px; height: 28px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

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

/* Âncoras dos links do site antigo (#quem-somos, #galeria) */
.anchor-alias { display: block; height: 0; }

.section {
  position: relative;
  padding-block: clamp(76px, 9vw, 128px);
}

/* Linha fina no topo de cada seção, como em um desenho técnico */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100% - 2 * var(--gutter), var(--container));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* ---------- Tipografia ---------- */
.h2 {
  font-size: clamp(2rem, 1.3rem + 2.7vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 720;
  font-stretch: 112%;
  color: var(--text);
  text-wrap: balance;
  margin-top: 20px;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

.section-intro {
  max-width: 52ch;
  color: var(--text-2);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow .idx {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}
.eyebrow .idx::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--line-3);
}
.eyebrow .sep { color: var(--line-3); }

.prose p + p { margin-top: 1em; }
.prose { text-wrap: pretty; }

/* ---------- LEDs de status ---------- */
.led {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(58, 160, 255, 0.18), 0 0 12px rgba(58, 160, 255, 0.85);
}
.led-ok {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.18), 0 0 12px rgba(61, 220, 151, 0.85);
}
.led-on { animation: led 2.6s ease-in-out infinite; }

@keyframes led {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ---------- Botões ---------- */
.btn {
  --h: 48px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.45s var(--ease-out), background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn .icon { width: 1.2em; height: 1.2em; }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px rgba(58, 160, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.5) 50%, transparent 75%);
  transform: translateX(-110%);
  transition: transform 0.9s var(--ease-out);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 16px 40px -12px rgba(58, 160, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}
.btn-primary:hover::after { transform: translateX(110%); }

.btn-ghost {
  color: var(--text);
  background: rgba(13, 18, 24, 0.55);
  border: 1px solid var(--line-3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(32, 42, 54, 0.72);
  border-color: rgba(220, 232, 245, 0.45);
  transform: translateY(-2px);
}
.btn-ghost .icon { transition: transform 0.45s var(--ease-out); }
.btn-ghost:hover .icon { transform: translateX(3px); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s;
}
/* O fundo desfocado fica num pseudo-elemento: backdrop-filter no próprio
   cabeçalho faria dele o bloco de referência do menu mobile (position: fixed). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgba(6, 8, 11, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  transition: opacity 0.35s;
}
.site-header.is-scrolled,
.nav-open .site-header { border-bottom-color: var(--line); }
.site-header.is-scrolled::before,
.nav-open .site-header::before { opacity: 1; }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: block; flex: none; border-radius: 6px; }
.brand-logo { height: 30px; width: auto; overflow: visible; }
.lg-plug, .lg-word { fill: var(--text); }
.lg-dot { fill: var(--accent); filter: drop-shadow(0 0 10px rgba(58, 160, 255, 0.9)); transition: fill 0.3s; }
.brand:hover .lg-dot { fill: var(--accent-2); }

.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list a {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.25s, background-color 0.25s;
}
.nav-list a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-list a[aria-current="true"] { color: var(--text); }
.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transform: translateX(-50%) scale(0);
  transition: transform 0.35s var(--ease-out);
}
.nav-list a[aria-current="true"]::after { transform: translateX(-50%) scale(1); }

.nav-mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.menu-toggle .icon { width: 22px; height: 22px; grid-area: 1 / 1; transition: opacity 0.25s, transform 0.4s var(--ease-out); }
.menu-toggle .icon-close { opacity: 0; transform: rotate(-90deg); }
.nav-open .menu-toggle .icon-open { opacity: 0; transform: rotate(90deg); }
.nav-open .menu-toggle .icon-close { opacity: 1; transform: none; }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-2));
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    opacity: 1;
    animation: progress linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes progress { to { transform: scaleX(1); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px));
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 70% 12%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 55% at 70% 12%, #000 25%, transparent 80%);
}

.hero-glow {
  position: absolute;
  top: -35vw;
  right: -25vw;
  width: 90vw;
  height: 90vw;
  max-width: 1300px;
  max-height: 1300px;
  background: radial-gradient(closest-side, rgba(58, 160, 255, 0.2), rgba(58, 160, 255, 0.07) 45%, transparent);
}

.circuit {
  position: absolute;
  top: 0;
  right: 0;
  width: max(100%, 900px);
  height: auto;
  max-height: 100%;
  -webkit-mask-image: linear-gradient(270deg, #000 25%, rgba(0, 0, 0, 0.5) 55%, transparent 85%), linear-gradient(180deg, #000 45%, transparent 78%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(270deg, #000 25%, rgba(0, 0, 0, 0.5) 55%, transparent 85%), linear-gradient(180deg, #000 45%, transparent 78%);
  mask-composite: intersect;
}
.circuit path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.circuit-traces path { stroke: rgba(150, 175, 205, 0.16); stroke-width: 1.5; }
.circuit-glow path,
.circuit-pulses path {
  stroke-dasharray: 70 1000;
  stroke-dashoffset: 70;
  animation: pulse 5.5s linear infinite;
}
.circuit-glow path { stroke: rgba(58, 160, 255, 0.28); stroke-width: 7; }
.circuit-pulses path { stroke: var(--accent-2); stroke-width: 1.8; }
.circuit-glow path:nth-child(2), .circuit-pulses path:nth-child(2) { animation-delay: -1.4s; animation-duration: 6.2s; }
.circuit-glow path:nth-child(3), .circuit-pulses path:nth-child(3) { animation-delay: -3.1s; animation-duration: 5s; }
.circuit-glow path:nth-child(4), .circuit-pulses path:nth-child(4) { animation-delay: -4.2s; animation-duration: 6.8s; }
.circuit-glow path:nth-child(5), .circuit-pulses path:nth-child(5) { animation-delay: -2.2s; animation-duration: 7.4s; }
.circuit-glow path:nth-child(6), .circuit-pulses path:nth-child(6) { animation-delay: -5s; animation-duration: 5.8s; }
.circuit-nodes circle { fill: var(--bg); stroke: rgba(150, 175, 205, 0.4); stroke-width: 1.5; }
.circuit-nodes circle:nth-child(odd) { animation: node 5.5s ease-in-out infinite; }
.circuit-nodes circle:nth-child(3) { animation-delay: -3.1s; }
.circuit-nodes circle:nth-child(5) { animation-delay: -1.8s; }
.circuit-nodes circle:nth-child(7) { animation-delay: -4.4s; }

@keyframes pulse { to { stroke-dashoffset: -1000; } }
@keyframes node {
  0%, 70%, 100% { stroke: rgba(150, 175, 205, 0.4); fill: var(--bg); }
  80% { stroke: var(--accent-2); fill: var(--accent); }
}

/* Pausa animações do topo quando ele não está visível (classe aplicada via JS) */
.hero.is-paused .circuit *,
.hero.is-paused .hud-scan,
.hero.is-paused .marquee-track { animation-play-state: paused; }

.hero-inner { position: relative; }

.hero-eyebrow { flex-wrap: wrap; row-gap: 6px; color: var(--text-2); }

.hero-title {
  margin-top: 26px;
  max-width: 21ch;
  font-size: clamp(2.35rem, 1.1rem + 3.9vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-weight: 760;
  font-stretch: 116%;
  color: var(--text);
  text-wrap: balance;
}
.hero-title .hl {
  background: linear-gradient(95deg, var(--accent-2) 0%, var(--accent) 45%, #2f7cf0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-row {
  display: grid;
  gap: 28px;
  margin-top: clamp(24px, 3.5vw, 40px);
}
.hero-lead { max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-media {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.hero-media picture { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: saturate(0.92) contrast(1.04);
  animation: hero-zoom 1.8s var(--ease-out) both;
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: none; } }

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 8, 11, 0.55) 0%, rgba(6, 8, 11, 0) 26%, rgba(6, 8, 11, 0) 50%, rgba(6, 8, 11, 0.88) 100%),
    linear-gradient(90deg, rgba(6, 8, 11, 0.35), transparent 30%, transparent 70%, rgba(6, 8, 11, 0.35));
}

.hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hud-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid rgba(237, 242, 247, 0.75);
}
.hero-media .hud-bl, .hero-media .hud-br { display: none; }
.hud-tl { top: 16px; left: 16px; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: 4px; }
.hud-tr { top: 16px; right: 16px; border-top-width: 1.5px; border-right-width: 1.5px; border-top-right-radius: 4px; }
.hud-bl { bottom: 16px; left: 16px; border-bottom-width: 1.5px; border-left-width: 1.5px; border-bottom-left-radius: 4px; }
.hud-br { bottom: 16px; right: 16px; border-bottom-width: 1.5px; border-right-width: 1.5px; border-bottom-right-radius: 4px; }

.hud-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(58, 160, 255, 0.07) 80%, rgba(143, 208, 255, 0.28) 99%, rgba(143, 208, 255, 0.6));
  mix-blend-mode: screen;
  transform: translateY(-110%);
  animation: scan 7s var(--ease-in-out) infinite 1.2s;
}
@keyframes scan {
  0% { transform: translateY(-110%); }
  55%, 100% { transform: translateY(300%); }
}

.hud-chip,
.hud-meta {
  position: absolute;
  top: 24px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hud-chip {
  left: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(6, 8, 11, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hud-meta { right: 52px; top: 31px; color: rgba(237, 242, 247, 0.72); }

.hero-cards {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.glass-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  color: var(--text);
  background: rgba(8, 11, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  animation: rise 1s var(--ease-out) both 0.6s;
}
.glass-card .icon { color: var(--accent-2); }
.glass-card > span { display: grid; line-height: 1.3; }
.glass-card strong { font-weight: 650; font-size: 0.975rem; }
.glass-card small { font-size: 0.8125rem; color: var(--text-2); }
.glass-card--stat { display: grid; gap: 2px; animation-delay: 0.75s; }
.stat-inline { font-size: 1.5rem; font-weight: 760; font-stretch: 118%; letter-spacing: -0.02em; line-height: 1.1; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Marcas (letreiro) ---------- */
.brands {
  margin-top: clamp(48px, 7vw, 88px);
  padding-block: 28px 32px;
  border-top: 1px solid var(--line);
}
.brands-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 22px;
}
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  position: relative;
  white-space: nowrap;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: -0.015em;
  color: rgba(169, 181, 196, 0.62);
  transition: color 0.3s;
}
.marquee-track li:hover { color: var(--text); }
.marquee-track li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -35px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent-line);
  transform: translateY(-50%) rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Quem somos ---------- */
.about-grid {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}
.about-copy .prose { margin-top: 28px; max-width: 60ch; }

.callout {
  display: flex;
  gap: 18px;
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-line);
  background: linear-gradient(135deg, rgba(58, 160, 255, 0.13), rgba(58, 160, 255, 0.02) 65%);
}
.callout-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: var(--accent-2);
  background: rgba(58, 160, 255, 0.12);
  border: 1px solid var(--accent-line);
}
.callout-title {
  font-size: 1.125rem;
  font-weight: 680;
  font-stretch: 108%;
  color: var(--text);
  margin-bottom: 6px;
}
.callout p { font-size: 0.975rem; }

.about-media { position: relative; padding: 0 0 14% 12%; }

.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .hud-corner { width: 18px; height: 18px; }
.frame .hud-tl { top: 12px; left: 12px; }
.frame .hud-br { bottom: 12px; right: 12px; }

.frame-main { aspect-ratio: 4 / 5; }
.frame-main picture { height: 100%; }
.frame-float {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56%;
  aspect-ratio: 4 / 3;
  border-color: var(--line-3);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.9);
}
.frame-float picture { height: 100%; }
.frame-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(6, 8, 11, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.frame-tag .led { width: 6px; height: 6px; }

/* Números */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(64px, 9vw, 112px);
  border-top: 1px solid var(--line-2);
}
.stat {
  --num: clamp(2.6rem, 1.9rem + 3vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 28px 20px 8px;
  border-left: 1px solid var(--line);
}
.stat:nth-child(odd) { border-left: 0; padding-left: 0; }
.stat dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.stat dd {
  order: -1;
  display: flex;
  align-items: flex-end;
  min-height: var(--num);
  gap: 2px;
  color: var(--text);
}
.stat-num {
  font-size: var(--num);
  font-weight: 760;
  font-stretch: 120%;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-suffix { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem); font-weight: 700; line-height: 1.15; color: var(--accent); }
.stat-text { font-size: clamp(1.5rem, 0.9rem + 1.55vw, 2.35rem); line-height: 1.05; letter-spacing: -0.02em; font-stretch: 112%; }
.stat-text .amp { color: var(--accent); margin-inline: 0.12em; font-weight: 500; }

/* ---------- Serviços ---------- */
.services { background: linear-gradient(180deg, var(--bg-2), var(--bg) 70%); }

.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.card {
  --mx: 50%;
  --my: -20%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(13, 18, 24, 0.55) 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), border-color 0.4s, background-color 0.4s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(480px circle at var(--mx) var(--my), rgba(58, 160, 255, 0.13), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s;
}
/* Borda iluminada que acompanha o cursor */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(143, 208, 255, 0.75), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card:hover::before, .card:hover::after { opacity: 1; }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 44px;
}
.card-icon {
  width: 48px;
  height: 48px;
  padding: 11px;
  border-radius: 13px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.6s var(--ease-out), box-shadow 0.4s, color 0.3s;
}
.card:hover .card-icon {
  transform: rotate(-6deg) scale(1.06);
  color: #fff;
  box-shadow: 0 0 24px rgba(58, 160, 255, 0.45);
}
.card-idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.card-title {
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 660;
  font-stretch: 108%;
  letter-spacing: -0.012em;
  color: var(--text);
  margin-bottom: 10px;
}
.card p { font-size: 0.975rem; line-height: 1.6; text-wrap: pretty; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 24px;
}
.tags li {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.card--accent {
  border-color: var(--accent-line);
  background: linear-gradient(160deg, rgba(58, 160, 255, 0.16), rgba(58, 160, 255, 0.03) 55%), var(--surface);
}
.card--accent .tags li { border-color: var(--accent-line); color: var(--accent-2); }

/* ---------- Segmentos (módulo de entradas) ---------- */
.segments-grid {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}
.segments-copy .section-intro { margin-top: 24px; }
.frame-segment { margin-top: 40px; aspect-ratio: 16 / 11; }
.frame-segment picture { height: 100%; }

.io-module {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%),
    var(--surface);
  box-shadow: 0 40px 100px -50px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.io-module::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 79px;
  width: 1px;
  background: var(--line);
}
.io-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.015);
}
.io-row {
  position: relative;
  display: grid;
  grid-template-columns: 44px 12px 1fr;
  align-items: center;
  gap: 18px 26px;
  padding: clamp(18px, 2.4vw, 26px) 22px;
  border-bottom: 1px solid var(--line);
}
.io-row:last-child { border-bottom: 0; }
.io-addr {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.io-led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #18212b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background-color 0.35s, box-shadow 0.35s;
}
.io-name {
  font-size: clamp(1.3rem, 0.95rem + 1.3vw, 2.1rem);
  line-height: 1.12;
  font-weight: 680;
  font-stretch: 112%;
  letter-spacing: -0.025em;
  color: var(--text);
  transition: color 0.4s;
}
.io-row--more .io-name { font-weight: 500; color: var(--text-2); }

.io-module.is-in .io-led {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.14), 0 0 16px rgba(61, 220, 151, 0.75);
}
.io-module.is-in .io-row:nth-child(1) .io-led { transition-delay: 0.5s; }
.io-module.is-in .io-row:nth-child(2) .io-led { transition-delay: 0.75s; }
.io-module.is-in .io-row:nth-child(3) .io-led { transition-delay: 1s; }
.io-module.is-in .io-row:nth-child(4) .io-led { transition-delay: 1.25s; }
.io-module.is-in .io-row:nth-child(5) .io-led { transition-delay: 1.5s; }
.io-module.is-in .io-row:nth-child(6) .io-led { transition-delay: 1.75s; }
.io-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(61, 220, 151, 0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}
.io-row:hover::after { opacity: 1; }

/* ---------- Como trabalhamos ---------- */
.process { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }

.steps {
  position: relative;
  display: grid;
  gap: 36px;
  padding-left: 0;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: var(--line-2);
}
.steps::after {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform-origin: 50% 0;
  transform: scaleY(0);
  transition: transform 1.8s var(--ease-out) 0.2s;
  box-shadow: 0 0 12px rgba(58, 160, 255, 0.8);
}
.steps.is-in::after { transform: none; }

.step { position: relative; padding-left: 72px; }
.step-node {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-2);
  transition: border-color 0.5s, color 0.5s, box-shadow 0.5s;
}
.steps.is-in .step-node {
  border-color: var(--accent);
  color: var(--accent-2);
  box-shadow: 0 0 0 5px rgba(58, 160, 255, 0.1), 0 0 22px rgba(58, 160, 255, 0.35);
}
.steps.is-in .step:nth-child(2) .step-node { transition-delay: 0.45s; }
.steps.is-in .step:nth-child(3) .step-node { transition-delay: 0.9s; }
.steps.is-in .step:nth-child(4) .step-node { transition-delay: 1.35s; }
.step-title {
  font-size: 1.3rem;
  font-weight: 660;
  font-stretch: 108%;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 8px 0 8px;
}
.step p { font-size: 0.975rem; max-width: 34ch; }

/* ---------- Projetos (galeria) ---------- */
.projects .container { container-type: inline-size; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.25s, background-color 0.25s, border-color 0.25s;
}
.filter:hover { color: var(--text); border-color: var(--line-3); }
.filter.is-active { color: var(--bg); background: var(--text); border-color: var(--text); }
.filter-count { font-family: var(--font-mono); font-size: 0.6875rem; opacity: 0.65; }

.gallery {
  --cols: 2;
  --gap: 10px;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: 190px;
  grid-auto-rows: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols) * 0.75);
  grid-auto-flow: dense;
}
.g-item { position: relative; min-width: 0; }
.g-item--tall { grid-row: span 2; }
.g-item--wide { grid-column: span 2; grid-row: span 2; }
.g-item--pano { grid-column: span 2; }
.gallery.is-filtered .g-item { grid-column: auto; grid-row: auto; }
.g-item figure { position: relative; height: 100%; }
.g-item.is-entering { animation: g-in 0.6s var(--ease-out) both; }
@keyframes g-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

.g-link {
  position: relative;
  display: block;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.g-link picture { height: 100%; }
.g-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter 0.6s;
  filter: saturate(0.9);
}
.g-link:hover img { transform: scale(1.06); filter: saturate(1.05); }
.g-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(143, 208, 255, 0);
  transition: box-shadow 0.4s;
}
.g-link:hover::after, .g-link:focus-visible::after { box-shadow: inset 0 0 0 1px rgba(143, 208, 255, 0.55); }

.g-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text);
  background: rgba(6, 8, 11, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
}
.g-zoom .icon { width: 16px; height: 16px; }
.g-link:hover .g-zoom, .g-link:focus-visible .g-zoom { opacity: 1; transform: none; }

.g-item figcaption {
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 1px;
  display: grid;
  gap: 4px;
  padding: 36px 14px 12px;
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
  background: linear-gradient(180deg, transparent, rgba(6, 8, 11, 0.9));
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  pointer-events: none;
}
.g-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--text);
  background: rgba(4, 6, 9, 0.94);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.55); }
.lightbox[open] { display: block; animation: lb-in 0.35s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lb-stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 72px clamp(16px, 7vw, 96px) 24px;
}
.lb-figure {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 100%;
  max-height: 100%;
}
.lb-media { display: grid; place-items: center; min-height: 0; }
.lb-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 180px);
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
  animation: lb-img 0.5s var(--ease-out);
}
@keyframes lb-img { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
.lb-caption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  max-width: 70ch;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.lb-count {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent-2);
}
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
  transition: background-color 0.25s, border-color 0.25s, transform 0.4s var(--ease-out);
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--line-3); }
.lb-btn .icon { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lb-next:hover { transform: translateY(-50%) translateX(2px); }

/* ---------- Chamada (CTA) ---------- */
.cta { padding-block: clamp(24px, 4vw, 48px) clamp(88px, 11vw, 152px); }
.cta-box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 6vw, 80px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(ellipse 60% 80% at 92% 10%, rgba(58, 160, 255, 0.24), transparent 60%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(58, 160, 255, 0.08), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(270deg, #000, transparent 70%);
  mask-image: linear-gradient(270deg, #000, transparent 70%);
}
.cta-copy { position: relative; max-width: 620px; }
.cta-copy .h2 { margin-top: 18px; }
.cta-copy .lead { margin-top: 18px; max-width: 48ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.ladder {
  position: absolute;
  z-index: -1;
  right: clamp(24px, 4vw, 64px);
  top: 50%;
  width: min(480px, 42%);
  transform: translateY(-50%);
  opacity: 0.85;
  display: none;
}
.ladder path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ladder-base path { stroke: rgba(150, 175, 205, 0.28); stroke-width: 2; }
.ladder-labels text {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--text-3);
  text-anchor: middle;
}
.ladder-flow path {
  stroke: var(--accent-2);
  stroke-width: 2.5;
  stroke-dasharray: 160 1000;
  stroke-dashoffset: 160;
  animation: ladder 3.6s linear infinite;
}
.ladder-flow path:nth-child(2) { animation-delay: -1.8s; }
@keyframes ladder { to { stroke-dashoffset: -1000; } }

/* ---------- Contato ---------- */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 80px); }
.contact-copy .section-intro { margin-top: 20px; }
.contact-list { display: grid; gap: 10px; margin-top: 36px; }
.contact-row { position: relative; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.3s, background-color 0.3s, transform 0.45s var(--ease-out);
}
.contact-item:hover { border-color: var(--line-3); background: var(--surface-2); transform: translateX(4px); }
.contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.contact-icon--wa { color: var(--wa); background: rgba(37, 211, 102, 0.1); border-color: rgba(37, 211, 102, 0.3); }
.contact-text { display: grid; min-width: 0; line-height: 1.35; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.contact-value {
  margin-top: 2px;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  font-weight: 620;
  color: var(--text);
  overflow-wrap: anywhere;
}
.contact-sub { font-size: 0.875rem; color: var(--text-3); }
.contact-arrow { margin-left: auto; color: var(--text-3); transition: transform 0.45s var(--ease-out), color 0.3s; }
.contact-item:hover .contact-arrow { color: var(--accent-2); transform: translate(2px, -2px); }

.contact-row .contact-item { padding-right: 104px; }
.contact-row .contact-arrow { position: absolute; right: 20px; top: 50%; translate: 0 -50%; }
.contact-row .contact-item:hover .contact-arrow { transform: translate(2px, -2px); }
.copy-btn {
  position: absolute;
  top: 50%;
  right: 56px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  translate: 0 -50%;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
.copy-btn:hover { color: var(--text); border-color: var(--line-3); }
.copy-btn .icon { width: 17px; height: 17px; grid-area: 1 / 1; transition: opacity 0.2s, transform 0.3s var(--ease-out); }
.copy-btn .icon-check { opacity: 0; transform: scale(0.6); color: var(--ok); }
.copy-btn.is-copied .icon-copy { opacity: 0; transform: scale(0.6); }
.copy-btn.is-copied .icon-check { opacity: 1; transform: none; }
.copy-btn::after {
  content: attr(data-feedback);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  translate: -50% 0;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  color: var(--bg);
  background: var(--text);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.copy-btn.is-copied::after { opacity: 1; }

/* Mapa */
.map {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: var(--surface);
  overflow: hidden;
}
.map-canvas {
  position: relative;
  flex: 1;
  min-height: 300px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(58, 160, 255, 0.16), transparent 45%),
    linear-gradient(var(--grid) 1px, transparent 1px) center / 32px 32px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) center / 32px 32px,
    var(--bg-2);
}
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.road { fill: none; stroke: rgba(150, 175, 205, 0.12); stroke-width: 9; stroke-linecap: round; }
.road-main { stroke: rgba(150, 175, 205, 0.2); stroke-width: 15; }
.road-thin { stroke-width: 4; stroke: rgba(150, 175, 205, 0.16); }
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  color: var(--accent);
}
.map-pin .icon {
  position: relative;
  width: 48px;
  height: 48px;
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 1.3;
  filter: drop-shadow(0 8px 18px rgba(58, 160, 255, 0.55));
}
.map-pulse {
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  translate: -50% 50%;
  background: rgba(58, 160, 255, 0.55);
  animation: ping 2.6s var(--ease-out) infinite;
}
@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(4.5); opacity: 0; }
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.7) contrast(0.92);
}
.map-info {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 22px 24px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.map-title { color: var(--text); font-weight: 650; }
.map-info address { font-size: 0.9375rem; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- Rodapé ---------- */
.site-footer {
  position: relative;
  padding: clamp(64px, 8vw, 104px) 0 calc(96px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 0.9375rem;
}
.footer-grid { display: grid; gap: 40px; }
.footer-brand img { width: 280px; height: auto; }
.footer-brand p { margin-top: 22px; max-width: 38ch; }
.footer-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--text-2); transition: color 0.2s; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--text-3);
}
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); transition: color 0.2s; }
.to-top:hover { color: var(--text); }
.to-top .icon { transition: transform 0.4s var(--ease-out); }
.to-top:hover .icon { transform: translateY(-3px); }

/* ---------- Botão flutuante do WhatsApp ---------- */
.fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0;
  height: 58px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(140deg, #22c15e, var(--wa-deep));
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.45s var(--ease-out), box-shadow 0.3s, opacity 0.3s, visibility 0.3s, gap 0.45s var(--ease-out);
}
.fab .icon { width: 26px; height: 26px; }
.fab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--wa);
  animation: fab-ring 3s var(--ease-out) infinite 2s;
}
@keyframes fab-ring {
  0% { transform: scale(1); opacity: 0.5; }
  60%, 100% { transform: scale(1.5); opacity: 0; }
}
.fab-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 650;
  font-size: 0.9375rem;
  transition: max-width 0.5s var(--ease-out);
}
.fab:hover { transform: translateY(-3px); gap: 10px; }
.fab:hover .fab-label { max-width: 140px; }
.nav-open .fab { opacity: 0; pointer-events: none; }
/* Com JavaScript, o botão aparece depois dos botões do topo e some onde
   os mesmos canais já estão na tela (chamada final e contato). */
.reveal-ready .fab:not(.is-shown) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.92);
  pointer-events: none;
}

/* ---------- Revelação ao rolar (somente com JavaScript) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal="zoom"] { transform: scale(0.965); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-delay="1"] { --d: 1; }
[data-delay="2"] { --d: 2; }
[data-delay="3"] { --d: 3; }
.hero-eyebrow[data-reveal] { --d: 0; }
.hero-lead[data-reveal] { --d: 1; }
.hero-actions[data-reveal] { --d: 2; }

/* Se o JavaScript falhar, o conteúdo aparece mesmo assim após alguns segundos */
.js:not(.reveal-ready) [data-reveal] { animation: reveal-fallback 0.6s 2.5s forwards; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

/* ---------- Responsivo ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-media { aspect-ratio: 16 / 9; }
}

@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.15fr 1fr; align-items: end; gap: 64px; }
  .section-head .section-intro { justify-self: end; padding-bottom: 6px; }
  .hero-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }
  .hero-media { aspect-ratio: 2.2 / 1; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat, .stat:nth-child(odd) { border-left: 1px solid var(--line); padding-left: 24px; }
  .stat:first-child { border-left: 0; padding-left: 0; }

  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .steps::before, .steps::after { left: 22px; right: calc((100% - 3 * 28px) / 4 - 22px); top: 22px; bottom: auto; width: auto; height: 1px; }
  .steps::after { background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; transform: scaleX(0); }
  .steps.is-in::after { transform: none; }
  .step { padding-left: 0; padding-top: 76px; }

  .ladder { display: block; }
  .footer-grid { grid-template-columns: 1.7fr 1fr 1.3fr 1fr; }
}

@media (min-width: 1000px) {
  .about-grid { grid-template-columns: 1.05fr 0.95fr; }
  .segments-grid { grid-template-columns: 0.9fr 1.1fr; }
  .segments-copy { position: sticky; top: calc(var(--header-h) + 32px); }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .gallery { --cols: 3; --gap: 14px; }
}

@media (min-width: 1200px) {
  .gallery { --cols: 4; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .header-cta { display: none; }
  .menu-toggle { display: grid; }
  .brand-logo { height: 26px; }

  .js .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 24px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background: rgba(6, 8, 11, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out), visibility 0s linear 0.35s;
  }
  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out), visibility 0s;
  }
  .js .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav-list li { border-bottom: 1px solid var(--line); }
  .js .nav-list a {
    padding: 18px 4px;
    border-radius: 0;
    font-size: 1.75rem;
    font-weight: 700;
    font-stretch: 112%;
    letter-spacing: -0.02em;
    color: var(--text);
  }
  .js .nav-list a:hover { background: none; color: var(--accent-2); }
  .js .nav-list a::after { left: auto; right: 6px; bottom: 50%; transform: translateY(50%) scale(0); width: 8px; height: 8px; }
  .js .nav-list a[aria-current="true"]::after { transform: translateY(50%) scale(1); }
  .nav-mobile-extra { display: grid; gap: 10px; }
  .nav-open { overflow: hidden; }

  /* Sem JavaScript: menu visível como lista simples */
  html:not(.js) .site-header { position: absolute; height: auto; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 14px; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .nav-list { flex-wrap: wrap; }

  .hud-meta { display: none; }
  .hud-chip { left: 44px; top: 20px; }
  .hero-cards { left: 12px; right: 12px; bottom: 12px; }
  .glass-card { padding: 12px 14px; }
  .glass-card--stat { display: none; }
  .glass-card small { display: none; }

  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev:hover, .lb-next:hover { transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb-stage { padding: 64px 12px 88px; }
  .lb-media img { max-height: calc(100dvh - 210px); }
}

@media (max-width: 449px) {
  /* "NR10 & NR12" em duas linhas, na mesma altura dos números (em uma linha, passava da tela) */
  .stat-text { font-size: 1.375rem; line-height: 0.95; }
  .stat-text .stat-line { display: block; }
}

@media (max-width: 520px) {
  .hero-title { font-stretch: 106%; letter-spacing: -0.03em; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-eyebrow .sep { display: none; }
  .card-top { margin-bottom: 28px; }
  .stat { padding-right: 12px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .hero-media { aspect-ratio: 4 / 3.4; }
  .glass-card strong { font-size: 0.875rem; }
  .about-media { padding: 0 0 18% 8%; }
  .io-row { grid-template-columns: 36px 10px 1fr; gap: 14px 16px; padding-inline: 16px; }
  .io-module::before { left: 60px; }
  .io-head { padding-inline: 16px; }
  .contact-item { padding: 14px 16px; gap: 14px; }
  .contact-row .contact-item { padding-right: 92px; }
  .contact-row .contact-arrow { right: 16px; }
  .copy-btn { right: 48px; }
  .fab { height: 54px; padding: 0 14px; }
}

/* ---------- Movimento reduzido ---------- */
/* ---------- Página 404 ---------- */
.notfound {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: clamp(40px, 8vh, 96px);
}
.notfound .hero-grid {
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, #000 20%, transparent 78%);
}
.notfound .hero-glow { top: -30vw; right: auto; left: -30vw; }
.notfound-inner { display: flex; flex-direction: column; align-items: flex-start; }
.notfound-logo { margin-bottom: clamp(56px, 10vh, 112px); border-radius: 6px; }
.notfound-logo img { width: clamp(200px, 30vw, 260px); }
.led-fault {
  background: #ff7a59;
  box-shadow: 0 0 0 3px rgba(255, 122, 89, 0.18), 0 0 12px rgba(255, 122, 89, 0.85);
}
.notfound-num {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: clamp(5rem, 3rem + 10vw, 10.5rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(95deg, var(--accent-2) 0%, var(--accent) 45%, #2f7cf0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound-title {
  margin-top: 18px;
  font-size: clamp(2rem, 1.3rem + 2.7vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 720;
  font-stretch: 112%;
  color: var(--text);
  text-wrap: balance;
}
.notfound .lead { margin-top: 18px; max-width: 46ch; }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 519px) {
  .notfound-actions { flex-direction: column; align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .circuit-glow, .circuit-pulses, .hud-scan, .ladder-flow, .map-pulse, .fab::before { display: none; }
  .marquee-track { animation: none !important; }
  .marquee { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; row-gap: 14px; padding-right: 0; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .card:hover, .contact-item:hover, .btn:hover, .fab:hover { transform: none; }
}
