/* LisbIA V2 — "Lisbon Signal". Mobile-first; breakpoints 640 / 1024 / 1440. */

@font-face {
  font-family: "Geist";
  src: url("/v2/fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  src: url("/v2/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/v2/fonts/geist-mono-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/v2/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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: #070b14;
  --surface-1: #0d1424;
  --surface-2: #131c31;
  --line: #1f2b45;
  --line-ui: #6b7fa6;
  --text: #e8eef9;
  --text-muted: #9aa8c2;
  --text-subtle: #6f7f9c;
  --accent: #2dd4f0;
  --accent-ink: #04121a;
  --accent-2: #a5b4fc;
  --focus: #7de3f7;
  --success: #4ade80;
  --error: #ff8a8a;
  --wa: #25d366;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --r-input: 6px;
  --r-btn: 10px;
  --r-card: 14px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-hover: 150ms;
  --t-enter: 300ms;
  --t-reveal: 600ms;

  --pad: 20px;
  --header-h: 64px;
  --section-y: clamp(64px, 8vw, 128px);
  --max: 100%;
  --cookie-h: 0px;
}

@media (min-width: 640px) {
  :root { --pad: 32px; }
}
@media (min-width: 1024px) {
  :root { --pad: 40px; --header-h: 72px; --max: 1120px; }
}
@media (min-width: 1440px) {
  :root { --pad: 48px; --max: 1240px; }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.mono { font-family: var(--font-mono); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

/* Foco visível em tudo */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
main:focus { outline: none; }

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-radius: var(--r-btn);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Tipografia ---------- */
h1 {
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
}
h2 {
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
}
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; }
.lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 56ch;
}
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  transition: background-color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px -8px rgba(45, 212, 240, 0.45);
}
.btn-primary:hover { background: #4fddf4; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-ui);
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
.btn[disabled] { opacity: 0.75; cursor: progress; }
.icon { width: 24px; height: 24px; flex: none; }
.icon-wa { width: 22px; height: 22px; color: var(--wa); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(7, 11, 20, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: border-color var(--t-enter) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line-ui); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  position: relative;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent);
  mask-image: radial-gradient(closest-side, #000 70%, transparent);
}
.brand-ia { color: var(--accent); }

.main-nav { display: none; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t-hover) var(--ease);
}
.nav-link:hover, .nav-link[aria-current] { color: var(--text); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-enter) var(--ease);
}
.nav-link[aria-current]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-select { display: none; position: relative; }
.lang-select select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  padding: 0 32px 0 12px;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239AA8C2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--line-ui);
  border-radius: var(--r-input);
  font-size: 1rem;
  font-weight: 500;
}
.lang-select select:hover { border-color: var(--accent); }
.header-cta { display: none; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-ui);
  border-radius: var(--r-btn);
  color: var(--text);
}
.menu-btn:hover { border-color: var(--accent); }
.menu-ico-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-ico-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-ico-close { display: inline-flex; }

@media (min-width: 640px) {
  .lang-select, .header-cta { display: block; }
  .header-cta { display: inline-flex; }
}
@media (min-width: 1024px) {
  .main-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; margin-right: 8px; }
  .menu-btn { display: none; }
}

/* ---------- Menu mobile ---------- */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px var(--pad) 24px;
  background: var(--bg);
  overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav:not([hidden]) { animation: menu-in 200ms var(--ease); }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 500;
}
.mobile-link .icon { color: var(--accent); }
.mobile-foot { display: grid; gap: 16px; padding-top: 24px; }
.seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-ui);
  border-radius: var(--r-btn);
  overflow: hidden;
}
.seg-btn {
  min-height: 48px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--text-muted);
  font-weight: 600;
}
.seg-btn:last-child { border-right: 0; }
.seg-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.seg-btn:focus-visible { outline-offset: -4px; }
@media (min-width: 1024px) {
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 40px 56px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 70% 20%, rgba(45, 212, 240, 0.16), transparent 70%),
    radial-gradient(50% 50% at 10% 80%, rgba(165, 180, 252, 0.1), transparent 70%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.hero-inner { position: relative; display: grid; gap: 40px; }
.hero-copy { display: grid; gap: 24px; align-content: center; }
.hero-actions { display: grid; gap: 12px; }
.hero-actions .btn { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 12px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-art { display: flex; justify-content: center; }
.hero-visual-full { display: none; }
.hero-visual-compact { width: 100%; max-width: 320px; height: auto; max-height: 240px; }

@media (min-width: 640px) {
  .hero { padding-block: 56px 72px; }
  .hero-actions { display: flex; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
  .hero-visual-compact { display: none; }
  .hero-visual-full { display: block; width: 100%; max-width: 480px; height: auto; }
}
@media (min-width: 1024px) {
  .hero { display: flex; align-items: center; min-height: min(calc(100svh - var(--header-h)), 820px); padding-block: 64px; }
  .hero-inner { grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: center; width: 100%; max-width: var(--max); margin-inline: auto; }
  .hero-copy { grid-column: 1 / 7; }
  .hero-art { grid-column: 7 / 13; }
  .hero-visual-full { max-width: 520px; }
}

/* Visual técnico */
.hv-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.hv-wire { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0.55; }
.hv-flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 0.1 70;
  opacity: 0.9;
}
.hv-core { fill: var(--surface-1); stroke: var(--accent); stroke-width: 1.5; }
.hv-node rect { fill: var(--surface-1); stroke: var(--line-ui); stroke-width: 1; }
.hv-node text { fill: var(--text-muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }
.hv-dot { fill: var(--accent); }

html.anim .hero-visual .hv-wire {
  stroke-dasharray: 1;
  animation: hv-draw 2.2s var(--ease) both;
  animation-delay: calc(var(--i) * 150ms);
}
html.anim .hero-visual .hv-flow {
  animation: hv-flow 5s linear infinite;
  animation-delay: calc(2.4s + var(--i) * 600ms);
}
html.anim .hero-visual .hv-dot { animation: hv-pulse 4s ease-in-out infinite; }
@keyframes hv-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hv-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -80; } }
@keyframes hv-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Faixa de tecnologias ---------- */
.tech { border-block: 1px solid var(--line); background: var(--surface-1); padding-block: 20px; }
.tech-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tech-track { display: flex; width: max-content; animation: tech-scroll 40s linear infinite; }
.tech-marquee:hover .tech-track { animation-play-state: paused; }
.tech-list { display: flex; flex-shrink: 0; gap: 8px; padding-right: 8px; }
.tech-list li { white-space: nowrap; }
@keyframes tech-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tech-list li {
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ---------- Secções ---------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--surface-1); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 64px); }
@media (min-width: 1024px) {
  .section-head { max-width: 62ch; }
}

/* Serviços */
.group + .group { margin-top: 40px; }
.group-label { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.group-label .mono {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.group-rule {
  position: relative;
  height: 1px;
  flex: 1;
  overflow: hidden;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.5;
}
/* Brilho que percorre a linha da esquerda para a direita, em ciclo */
.group-rule::after {
  content: "";
  position: absolute;
  inset: -1px 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  transform: translateX(-100%);
  animation: rule-glow 3.2s ease-in-out infinite;
}
@keyframes rule-glow { to { transform: translateX(340%); } }

.modules { display: grid; gap: 0; }
.module {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "icon title index" "desc desc desc";
  column-gap: 14px;
  row-gap: 6px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.module-icon {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  color: var(--accent);
  border: 1px solid rgba(107, 127, 166, 0.35);
  border-radius: var(--r-btn);
}
.module-title { grid-area: title; }
.module-index { grid-area: index; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--text-subtle); }
.module-desc { grid-area: desc; font-size: 0.9375rem; color: var(--text-muted); }

@media (min-width: 640px) {
  .modules { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .module, .module:hover, .module:focus-within {
    grid-template-columns: 1fr auto;
    grid-template-areas: "icon index" "title title" "desc desc";
    align-items: start;
    row-gap: 12px;
    padding: 24px;
    background: var(--surface-1);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
  }
  .section-alt .module { background: var(--bg); }
  .module { transition: border-color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease); }
  .module:hover, .module:focus-within { border-color: rgba(45, 212, 240, 0.45); background: var(--surface-2); }
  .module-index { justify-self: end; }
  .module-desc { font-size: 1rem; }
}
@media (min-width: 1024px) {
  .group { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; }
  .group-label { grid-column: 1 / 4; align-self: start; margin: 8px 0 0; }
  .modules { grid-column: 4 / 13; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .group + .group { margin-top: 56px; }
}

/* Parceiros */
.partners { display: grid; gap: 12px; }
.partner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 16px 16px 16px 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  color: var(--text);
  overflow: hidden;
  transition: border-color var(--t-hover) var(--ease);
}
.partner:hover { border-color: rgba(45, 212, 240, 0.45); }
.partner-pattern { align-self: stretch; width: 6px; flex: none; background: var(--accent); opacity: 0.6; }
.partner-body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.partner-domain { font-size: 0.8125rem; color: var(--text-muted); overflow-wrap: anywhere; }
.partner-arrow { color: var(--accent); transition: transform var(--t-hover) var(--ease); }
.partner:hover .partner-arrow { transform: translate(2px, -2px); }

@media (min-width: 640px) {
  .partners { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .partner { display: grid; grid-template-rows: 128px auto; align-items: stretch; gap: 0; padding: 0; min-height: 0; }
  .partner-pattern {
    width: 100%; height: 128px;
    opacity: 1;
    background-color: var(--surface-1);
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px),
      radial-gradient(60% 80% at 80% 20%, rgba(45, 212, 240, 0.14), transparent 70%);
    background-size: 24px 24px, 24px 24px, 100% 100%;
    transition: filter var(--t-enter) var(--ease);
  }
  .partner-pattern-2 { background-size: 32px 32px, 32px 32px, 100% 100%; background-position: 8px 8px, 8px 8px, 0 0; }
  .partner-pattern-3 {
    background-image:
      repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 16px),
      radial-gradient(60% 80% at 20% 30%, rgba(165, 180, 252, 0.16), transparent 70%);
    background-size: auto, 100% 100%;
  }
  .partner-pattern-4 {
    background-image:
      radial-gradient(circle, var(--line-ui) 1.5px, transparent 2px),
      radial-gradient(60% 80% at 80% 70%, rgba(45, 212, 240, 0.14), transparent 70%);
    background-size: 24px 24px, 100% 100%;
  }
  .partner:hover .partner-pattern { filter: brightness(1.5); }
  .partner-body { padding: 20px 56px 20px 20px; }
  .partner-arrow { position: absolute; right: 20px; bottom: 20px; }
}
@media (min-width: 1280px) {
  .partners { grid-template-columns: repeat(4, 1fr); }
}

/* Perguntas frequentes */
.faq-list { display: grid; border-top: 1px solid var(--line); }
.faq-item { display: grid; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq-q { font-size: 1.125rem; }
.faq-a { color: var(--text-muted); max-width: 64ch; }
@media (min-width: 1024px) {
  .faq-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; align-items: start; }
  .faq-inner .section-head { grid-column: 1 / 5; margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
  .faq-list { grid-column: 6 / 13; }
  .faq-item { padding: 28px 0; }
}

/* Contacto */
.contact { position: relative; overflow: hidden; background: var(--surface-1); border-top: 1px solid var(--line); padding-bottom: max(var(--section-y), 112px); }
.contact-glow {
  position: absolute;
  top: 10%; right: -10%;
  width: 60%; height: 70%;
  background: radial-gradient(closest-side, rgba(45, 212, 240, 0.1), transparent);
  pointer-events: none;
}
.contact-inner { position: relative; display: grid; gap: 32px; }
.contact-copy { display: grid; gap: 24px; align-content: start; }
.facts { display: grid; gap: 12px; }
.facts li { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 1.0625rem; }
.facts .icon { color: var(--accent); width: 20px; height: 20px; }
.contact-copy .btn { justify-self: start; }
.contact-card {
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
@media (min-width: 640px) { .contact-card { padding: 32px; } }
@media (min-width: 1024px) {
  .contact-inner { grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: start; }
  .contact-copy { grid-column: 1 / 6; }
  .contact-card { grid-column: 6 / 13; background: var(--surface-1); background: var(--bg); }
}

form { display: grid; gap: 20px; position: relative; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-size: 0.9375rem; font-weight: 500; }
.req { color: var(--accent); }
.control {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-ui);
  border-radius: var(--r-input);
  font-size: 1rem;
  color: var(--text);
  transition: border-color var(--t-hover) var(--ease);
}
textarea.control { resize: vertical; min-height: 128px; }
.control::placeholder { color: var(--text-subtle); opacity: 1; }
.contact-card .control { background: var(--surface-2); }
.control:hover { border-color: var(--text-muted); }
.control:focus { border-color: var(--accent); }
.control[aria-invalid="true"] { border-color: var(--error); }
.field-error { display: flex; gap: 8px; align-items: center; color: var(--error); font-size: 0.875rem; }
.field-error[hidden] { display: none; }
.field-error::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 16px; height: 16px;
  border: 1.5px solid var(--error);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 400; color: var(--text-muted); }
.check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 24px; height: 24px;
  margin: 0;
  background: var(--surface-2);
  border: 1px solid var(--line-ui);
  border-radius: var(--r-input);
  display: grid;
  place-content: center;
  cursor: pointer;
}
.check input::after {
  content: "";
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: translateY(-1px) rotate(-45deg) scale(0);
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input[aria-invalid="true"] { border-color: var(--error); }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(4, 18, 26, 0.3);
  border-top-color: var(--accent-ink);
  border-radius: 50%;
}
form[aria-busy="true"] .spinner { display: inline-block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-msg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: var(--r-btn);
  font-weight: 500;
}
.form-msg[hidden] { display: none; }
.form-msg-success { color: var(--success); border-color: var(--success); background: rgba(74, 222, 128, 0.08); }
.form-msg-error { color: var(--error); border-color: var(--error); background: rgba(255, 138, 138, 0.08); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: 56px 112px;
}
.foot-grid { display: grid; gap: 40px; }
.foot-brand { display: grid; gap: 16px; align-content: start; }
.foot-lockup { display: block; width: min(100%, 240px); min-width: 200px; }
.foot-lockup img {
  display: block;
  width: 100%; height: auto;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent);
  mask-image: radial-gradient(closest-side, #000 72%, transparent);
}
@media (min-width: 1024px) { .foot-lockup { width: 270px; } }
.foot-desc { color: var(--text-muted); max-width: 46ch; }
.foot-title {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-subtle);
}
.foot-links { display: grid; gap: 0; }
.foot-links-services { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.foot-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.foot-link:hover { color: var(--accent); }
.foot-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--text-muted); font-size: 0.875rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 24px;
}
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.foot-credit { flex-basis: 100%; }
.foot-legal-link, .foot-cookie { font-size: 0.875rem; text-decoration: underline; text-underline-offset: 3px; }
.foot-cookie { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.check-link { display: inline-block; margin: 4px 0 0 36px; font-size: 0.875rem; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Página legal (política de privacidade) ---------- */
.legal { max-width: 760px; padding-top: calc(var(--header-h) + clamp(32px, 5vw, 64px)); padding-bottom: var(--section-y); }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); line-height: 1.1; }
.legal .lead { margin-top: 16px; max-width: none; }
.legal h2 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); line-height: 1.2; margin-top: 48px; }
.legal h3 { font-size: 1.125rem; margin-top: 28px; }
.legal p, .legal li { color: var(--text-muted); }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal code { font-family: var(--font-mono); font-size: 0.875em; color: var(--text); overflow-wrap: anywhere; }
.legal-table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-card); }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text-muted); }
.legal th { color: var(--text); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }
@media (min-width: 640px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col-services { grid-column: 1 / 2; }
  .foot-links-services { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
  .site-footer { padding-bottom: 72px; }
  .foot-grid { grid-template-columns: repeat(12, 1fr); gap: 32px; }
  .foot-brand { grid-column: 1 / 6; }
  .foot-col-services { grid-column: 7 / 10; }
  .foot-col-company { grid-column: 10 / 13; }
}

/* ---------- WhatsApp + cookies ---------- */
.wa-pill {
  position: fixed;
  right: 20px;
  bottom: calc(20px + var(--cookie-h));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: var(--wa);
  color: var(--accent-ink);
  border-radius: var(--r-pill);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transition: transform var(--t-hover) var(--ease), bottom var(--t-enter) var(--ease);
}
.wa-pill:hover { transform: translateY(-2px); }
.wa-pill .icon { width: 28px; height: 28px; }

.cookie {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 70;
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-ui);
  border-radius: var(--r-card);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.cookie[hidden] { display: none; }
.cookie-text { font-size: 0.875rem; line-height: 1.5; color: var(--text-muted); }
.cookie-copy { display: grid; gap: 6px; }
.cookie-link { justify-self: start; font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 8px; }
.cookie .btn { flex: 1; }

@media (min-width: 1024px) {
  .wa-pill { right: 32px; bottom: 32px; }
  .cookie {
    left: 32px; right: auto; bottom: 32px;
    width: 520px; max-width: calc(100vw - 160px);
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
  }
  .cookie .btn { flex: none; }
}
@media (max-width: 1023px) {
  /* mantém o WhatsApp acima do cartão de cookies, sem sobreposição */
  .wa-pill { bottom: calc(20px + var(--cookie-h)); }
}

/* ---------- Reveal (só ativo quando o JS o liga) ---------- */
html.reveal-on [data-reveal].rv-wait {
  opacity: 0;
  transform: translateY(12px);
}
html.reveal-on [data-reveal] {
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
  transition-delay: calc(var(--d, 0) * 60ms);
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-property: color, background-color, border-color !important;
    transition-duration: 100ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .partner:hover .partner-arrow, .wa-pill:hover { transform: none; }
  .tech-marquee { -webkit-mask-image: none; mask-image: none; }
  .tech-track { width: auto; flex-direction: column; align-items: center; }
  .tech-list { flex-wrap: wrap; justify-content: center; padding: 0 var(--pad); }
  .tech-list[aria-hidden="true"] { display: none; }
  .group-rule::after { display: none; }
  html.reveal-on [data-reveal].rv-wait { opacity: 1; transform: none; }
}

/* Com o menu aberto, o cartão de cookies não tapa a língua nem o WhatsApp do menu */
body.menu-open .cookie { display: none; }
