/* =========================================================================
   Sistema On Brasil — landing hero
   Portado do canvas de design (.dc.html) para HTML/CSS/JS standalone.
   ========================================================================= */

/* ------------------------------------------------- fontes (self-hosted) */
/* Variáveis (eixo wght), subset latin — cobre todo o texto em PT-BR.     */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../assets/fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Sora 800 estática com sobreposições removidas: só para o título vazado —
   o text-stroke desenha limpo, sem riscos nos traçados internos. */
@font-face {
  font-family: "Sora Outline";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/sora-800-outline.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:            #02070f;
  --bg-radial:     #051228;
  --text:          #e8f1ff;
  --text-soft:     #a9bfdd;
  --text-muted:    #8ea6c7;
  --link:          #c7d9f2;
  --accent:        #3fe0ff;
  --accent-soft:   #bfe4ff;
  --blue:          #3f9fff;   /* azul de marca (bordas, cards) */
  --btn-neon:      #3b82f6;   /* linha de neon dos botões (Botao.txt) */

  --nav-pad-x:     clamp(24px, 4.5vw, 64px);
  /* Breakpoint: 940px — manter em sincronia com CONFIG.breakpoint em js/main.js */
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}
html { scroll-behavior: smooth; }

body {
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover { color: var(--accent); }

::selection {
  background: rgba(63, 224, 255, 0.28);
  color: #ffffff;
}

img { display: block; max-width: 100%; }

/* Foco visível e acessível (não aparece no clique de mouse). */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(63, 224, 255, 0.55); }
  50%      { box-shadow: 0 0 0 7px rgba(63, 224, 255, 0); }
}
@keyframes spinRing {
  to { transform: rotate(360deg); }
}

/* ------------------------------------------------------- fundo neural ---- */
/* Fixo atrás do site inteiro: o shader já pinta a base escura opaca, então
   custa os mesmos pixels de antes (sempre foi do tamanho da viewport). */
.site-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  /* tinta translúcida — o fundo neural fixo aparece por trás */
  background: radial-gradient(90% 90% at 30% 10%, rgba(5, 18, 40, 0.5) 0%, rgba(2, 7, 15, 0) 62%);
  color: var(--text);
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(1100px 760px at 16% 38%, rgba(2, 7, 15, 0.5), rgba(2, 7, 15, 0) 62%);
  pointer-events: none;
  z-index: 1;
}
.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
}
.hero__fade--top {
  top: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(2, 7, 15, 0.72), rgba(2, 7, 15, 0));
}
.hero__fade--bottom {
  bottom: 0;
  height: 190px;
  background: linear-gradient(to top, rgba(2, 7, 15, 0.88), rgba(2, 7, 15, 0));
}

/* ------------------------------------------------------------------- robô */
.hero__robot {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 56%;
  z-index: 2;
  display: none;                 /* JS ativa em telas largas quando o robô carrega */
}
.hero__robot-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__robot.is-ready .hero__robot-canvas { opacity: 1; }

.robot-loader {
  position: absolute;
  top: 50%;
  left: 56%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero__robot.is-ready .robot-loader { display: none; }
.robot-loader__ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(63, 224, 255, 0.14);
  border-top-color: rgba(63, 224, 255, 0.85);
  animation: spinRing 0.9s linear infinite;
}
.robot-loader__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(160, 196, 235, 0.75); /* ≥4.5:1 sobre o fundo (WCAG AA) */
}

/* --------------------------------------------------------------- conteúdo */
.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  pointer-events: none;          /* deixa o robô ao fundo receber o ponteiro */
}
/* Só os blocos de conteúdo reais capturam o ponteiro — o miolo do <main>
   fica transparente para o robô 3D atrás continuar interativo. */
.nav,
.hero__copy,
.features { pointer-events: auto; }

/* ------------------------------------------------------------------- nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(13px, 2.3vh, 22px) var(--nav-pad-x);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
}
.brand:hover { color: inherit; }
.brand__mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
/* Logo transparente, flutuando sobre o fundo escuro (sem caixa branca). */
.brand__mark img {
  height: clamp(44px, 6vh, 58px);
  width: auto;
  filter: drop-shadow(0 4px 18px rgba(34, 180, 255, 0.4));
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.brand__line-1 {
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.13em;
  color: #f2f7ff;
}
.brand__line-2 {
  font-family: Sora, sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.42em;
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__links .btn { flex-shrink: 0; }

/* Botão hamburguer — só aparece no mobile */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(150, 182, 224, 0.25);
  border-radius: 11px;
  background: rgba(8, 26, 52, 0.5);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.nav__toggle-bar {
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--accent-soft);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------- hero main */
.hero__main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(14px, 2.8vh, 40px) var(--nav-pad-x);
}
.hero__copy {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(13px, 2.4vh, 30px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(63, 224, 255, 0.22);
  /* fundo opaco no lugar de backdrop-filter: blur sobre canvas animado
     forçava re-filtragem a cada frame */
  background: rgba(8, 26, 52, 0.82);
  animation: fadeUp 0.8s ease both;
}
.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2.2s ease infinite;
}
.badge__text {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-soft);
}

.hero__title {
  margin: 0;
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: clamp(44px, min(6.2vw, 10.5vh), 96px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: #f4f9ff;
  text-wrap: balance;
}
/* Letras VARADAS de verdade: interior transparente (o fundo neural aparece
   através delas), só o contorno branco fino. Usa a "Sora Outline" (estática,
   sem sobreposições internas) pra o text-stroke sair limpo. */
.hero__title-main {
  font-family: "Sora Outline", Sora, sans-serif;
  color: transparent;
  -webkit-text-stroke: 1.25px rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 0 16px rgba(170, 215, 255, 0.18));
}
.hero__title-accent {
  color: var(--accent);
  text-shadow: 0 0 32px rgba(63, 224, 255, 0.4);
}

/* Letras "vazadas" (ref: letrasvaradafundo.txt / GodRays): feixes de luz
   verticais — azul royal, violeta e ciano, com vales escuros — aparecem
   DENTRO das letras (background-clip: text) e deslizam continuamente.
   O "ON." usa raios na família do ciano da marca. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title-accent {
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    background-image:
      /* mesma estrutura do preset, mas na família do ciano da marca */
      radial-gradient(130% 100% at 50% -35%,
        rgba(80, 220, 255, 0.5),
        rgba(31, 182, 238, 0.18) 48%,
        rgba(31, 182, 238, 0) 72%),
      repeating-linear-gradient(90deg,
        #032030 0px,
        #0a7fae 46px,
        #22c4ee 74px,
        #05314d 112px,
        #35d6ff 150px,
        #043048 186px,
        #032030 216px);
    -webkit-background-clip: text;
    background-clip: text;
    animation: titleRaysAccent 11s linear infinite;
    /* Filete ciano da marca na silhueta, como era antes — só que fino. */
    filter:
      drop-shadow(0 0 0.5px rgba(63, 224, 255, 0.95))
      drop-shadow(0 0 1px rgba(63, 224, 255, 0.5))
      drop-shadow(0 0 24px rgba(63, 224, 255, 0.45));
  }
}
/* Desloca exatamente 2 períodos do padrão → loop perfeito, sem "pulo". */
@keyframes titleRaysAccent {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 0, -432px 0; }
}

.hero__lead {
  margin: 0;
  max-width: 54ch;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  font-weight: 500;
  color: var(--text-soft);
  animation: fadeUp 0.8s ease 0.15s both;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  animation: fadeUp 0.8s ease 0.28s both;
}

/* =================================================== botões (neon) ========
   Sistema unificado baseado em Botao.txt: pill, variantes default/solid/ghost
   e a assinatura de linha de neon azul que acende no hover/foco.
   Usado em TODOS os botões do site.
   ========================================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;             /* tamanho padrão */
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  isolation: isolate;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
              transform 0.2s ease, box-shadow 0.2s ease;
}
/* Linhas de neon: topo forte, base suave — acendem no hover/foco. */
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  width: 75%;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(to right, transparent, var(--btn-neon), transparent);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}
.btn::before { top: 0; }
.btn::after  { bottom: -1px; }
.btn:hover::before,
.btn:focus-visible::before { opacity: 1; }
.btn:hover::after,
.btn:focus-visible::after  { opacity: 0.35; }

.btn__arrow { font-family: Sora, sans-serif; font-weight: 600; }

/* Tamanhos (vêm depois da base para sobrescrever o padding padrão). */
.btn--sm { padding: 9px 18px; font-size: 13.5px; gap: 8px; }
.btn--lg { padding: 17px 32px; font-size: 16px; }

/* Variantes */
.btn--default {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(63, 159, 255, 0.3);
  color: #dbe8ff;
}
.btn--default:hover {
  background: rgba(59, 130, 246, 0);
  border-color: rgba(63, 159, 255, 0.6);
  color: #eaf4ff;
}
.btn--solid {
  background: linear-gradient(98deg, #0b63d8 0%, #1fb6ee 100%);
  color: #ffffff;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(26, 150, 235, 0.34);
}
.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(26, 150, 235, 0.5);
  color: #ffffff;
}
/* Fundo em movimento: o gradiente do botão sólido desliza continuamente.
   Período de 260px deslocado em 2 períodos → loop perfeito, sem pulo. */
.btn--animated {
  background: repeating-linear-gradient(98deg,
    #0b63d8 0px,
    #1fb6ee 90px,
    #35d6ff 130px,
    #1fb6ee 170px,
    #0b63d8 260px);
  animation: btnFlow 4s linear infinite;
}
@keyframes btnFlow {
  from { background-position: 0 0; }
  to   { background-position: 520px 0; }
}
.btn--ghost {
  background: transparent;
  border-color: rgba(150, 182, 224, 0.3);
  color: #dbe8ff;
}
.btn--ghost:hover {
  border-color: rgba(63, 224, 255, 0.6);
  background: rgba(63, 224, 255, 0.06);
  color: var(--accent);
}

/* ------------------------------------------------------------ features */
.features {
  padding: 0 var(--nav-pad-x) clamp(18px, 2.8vh, 34px);
  animation: fadeUp 0.9s ease 0.42s both;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.feature {
  border-top: 1px solid rgba(140, 175, 215, 0.16);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature__num {
  font-family: Sora, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.feature__title {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #eef5ff;
}
.feature__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
.features__copy {
  margin-top: clamp(12px, 1.8vh, 26px);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #6e86a5; /* tom apagado do design, mas ≥4.5:1 (WCAG AA) */
}

/* ============================================== seção: nossos sistemas ==== */
.systems {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 9vw, 120px) var(--nav-pad-x) clamp(72px, 10vw, 130px);
  /* véu translúcido: escurece o fundo neural pra legibilidade sem escondê-lo */
  background:
    radial-gradient(70% 55% at 82% 0%, rgba(11, 79, 214, 0.14), transparent 60%),
    rgba(2, 7, 15, 0.42);
  border-top: 1px solid rgba(63, 159, 255, 0.12);
  scroll-margin-top: 24px;
}
.systems__head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.systems__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(63, 224, 255, 0.22);
  background: rgba(8, 26, 52, 0.5);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.systems__title {
  margin: 0;
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #f4f9ff;
}
.systems__subtitle {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--text-soft);
}

/* Masonry por colunas: cada card tem a altura do próprio texto — sem os
   buracos vazios que a grade esticada criava. */
.systems__grid {
  columns: 3;
  column-gap: clamp(18px, 2vw, 26px);
  max-width: 1120px;
  margin: 0 auto;
}

/* GlowCard (ref: Cards do nossos sistemas.txt) em azul — versão otimizada:
   --mx/--my são coordenadas LOCAIS do card, setadas via JS só nos cards
   perto do cursor (classe .is-glow). Nada de background-attachment: fixed
   nem backdrop-filter — parado, o custo é zero. */
.system-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  break-inside: avoid;                          /* não quebra entre colunas */
  margin-bottom: clamp(18px, 2vw, 26px);
  padding: 26px 24px 24px;
  border-radius: 18px;
  border: 1px solid rgba(63, 159, 255, 0.35);   /* borda azul (pedido) */
  background:
    radial-gradient(240px 240px at var(--mx, -999px) var(--my, -999px),
      rgba(63, 159, 255, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(7, 19, 38, 0.88), rgba(3, 10, 22, 0.84));
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.system-card:hover {
  border-color: rgba(63, 200, 255, 0.7);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px -16px rgba(11, 99, 216, 0.55);
}
/* Anel de luz na borda: pintado só no aro (máscara border-box menos
   padding-box), centrado no cursor. Aparece apenas com .is-glow.
   IMPORTANTE: fica atrás de @supports — sem suporte real a máscara
   composta, o gradiente pintaria o card INTEIRO e taparia o texto.
   Navegadores antigos ficam só com o hover simples da borda. */
@supports (mask-composite: exclude) {
  .system-card::before,
  .system-card::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: -1px;
    border: 1.5px solid transparent;
    border-radius: 18px;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
    -webkit-mask-clip: padding-box, border-box;
    -webkit-mask-composite: xor;
    mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
    mask-clip: padding-box, border-box;
    mask-composite: exclude;
  }
  .system-card::before {
    background-image: radial-gradient(170px 170px at var(--mx, -999px) var(--my, -999px),
      rgba(63, 180, 255, 0.95), transparent 100%);
  }
  .system-card::after {
    background-image: radial-gradient(85px 85px at var(--mx, -999px) var(--my, -999px),
      rgba(220, 245, 255, 0.95), transparent 100%);
  }
  .system-card.is-glow::before,
  .system-card.is-glow::after { opacity: 1; }
}
.system-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(63, 159, 255, 0.1);
  border: 1px solid rgba(63, 159, 255, 0.25);
  color: var(--accent);
}
.system-card__icon svg { width: 24px; height: 24px; display: block; }
.system-card__name {
  margin: 0;
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #eef5ff;
}
.system-card__name b { color: var(--accent); font-weight: 700; }
.system-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
/* Só o último parágrafo estica — em cards com vários parágrafos o texto
   fica compacto, sem buracos entre eles. */
.system-card__desc:last-of-type { flex: 1; }
.system-card__actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.system-card__actions .btn { flex: 1; padding-left: 12px; padding-right: 12px; }

/* ==================================================== seção: contato ====== */
.contact {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 7vw, 100px) var(--nav-pad-x) clamp(72px, 10vw, 130px);
  background: rgba(2, 7, 15, 0.42); /* véu sobre o fundo neural */
  scroll-margin-top: 24px;
}
.contact__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center; /* intro centralizada na altura do formulário */
}
.contact__intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact__title {
  margin: 0;
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
  color: #f4f9ff;
}
.contact__text {
  margin: 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-soft);
}
.contact__points {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact__points li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--text-muted);
}
.contact__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(63, 159, 255, 0.12);
  border: 1px solid rgba(63, 159, 255, 0.4);
}
.contact__points li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.contact__channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid rgba(63, 159, 255, 0.22);
  background: rgba(9, 24, 48, 0.4);
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.contact__channel:hover {
  border-color: rgba(63, 200, 255, 0.6);
  background: rgba(63, 159, 255, 0.08);
  transform: translateY(-1px);
  color: inherit;
}
.contact__channel-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(63, 159, 255, 0.12);
  border: 1px solid rgba(63, 159, 255, 0.28);
  color: var(--accent);
}
.contact__channel-icon svg { width: 21px; height: 21px; display: block; }
.contact__channel-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact__channel-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact__channel-value {
  font-size: 15px;
  font-weight: 600;
  color: #eaf4ff;
  word-break: break-word;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 20px;
  border: 1px solid rgba(63, 159, 255, 0.28);
  background: linear-gradient(180deg, rgba(9, 24, 48, 0.6), rgba(4, 12, 26, 0.5));
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-soft);
}
.field__opt { color: var(--text-muted); font-weight: 500; }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid rgba(140, 175, 215, 0.22);
  background: rgba(2, 7, 15, 0.5);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: #5f7699; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(63, 200, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(63, 159, 255, 0.14);
  background: rgba(2, 7, 15, 0.7);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: rgba(255, 120, 120, 0.6); }

/* Honeypot — fora da tela, invisível para humanos. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact__submit { align-self: flex-start; margin-top: 4px; }
.contact__status {
  margin: 2px 0 0;
  min-height: 20px;
  font-size: 14px;
  line-height: 1.5;
}
.contact__status.is-ok  { color: #57e0a8; }
.contact__status.is-err { color: #ff9b9b; }

/* Masonry dos cards: 3 → 2 → 1 colunas conforme a largura */
@media (max-width: 1099px) {
  .systems__grid { columns: 2; }
}
@media (max-width: 699px) {
  .systems__grid { columns: 1; }
}

@media (max-width: 820px) {
  .contact__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .contact__submit { align-self: stretch; }
}

/* ============================================= WhatsApp flutuante ======= */
.whatsapp-fab {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b63d8 0%, #1fb6ee 100%);
  color: #ffffff;
  box-shadow:
    0 8px 28px rgba(26, 150, 235, 0.45),
    0 0 0 1px rgba(63, 224, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
/* Pulso via transform/opacity (composto na GPU) — animar box-shadow
   repintava o botão a cada frame. */
.whatsapp-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(63, 224, 255, 0.5);
  animation: fabRing 2.6s ease-out infinite;
  pointer-events: none;
}
.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    0 14px 38px rgba(26, 150, 235, 0.6),
    0 0 0 1px rgba(63, 224, 255, 0.45);
  color: #ffffff;
}
.whatsapp-fab svg {
  width: 30px;
  height: 30px;
  display: block;
}
@keyframes fabRing {
  from { transform: scale(1); opacity: 0.9; }
  to   { transform: scale(1.5); opacity: 0; }
}

/* ======================================================= responsividade */
@media (max-width: 939px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: absolute;
    top: 84px;
    left: var(--nav-pad-x);
    right: var(--nav-pad-x);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(63, 224, 255, 0.18);
    background: rgba(5, 16, 34, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    visibility: hidden; /* fechado: fora da ordem de tabulação e dos leitores de tela */
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    z-index: 5;
  }
  .nav__links.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
  }
  /* No dropdown mobile, cada botão do nav ocupa a largura toda. */
  .nav__links .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__main { padding-top: 24px; padding-bottom: 24px; }
  .hero__copy { gap: 24px; }
}

@media (max-width: 560px) {
  .cta { width: 100%; }
  .cta .btn { flex: 1 1 auto; }
}

/* ================================================ preferências do usuário */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* O robô 3D nem chega a ser carregado (ver js/main.js). */
}
