/* =========================================================
   Backbone · Site institucional
   Tokens extraídos da proposta "Backbone · Proposta de Site"
   ========================================================= */

:root {
  /* Cores da marca */
  --navy-900: #00152b;   /* rodapé */
  --navy-850: #00172f;   /* seção "Quem somos" */
  --navy-800: #001d3d;   /* fundo principal */
  --navy-600: #003566;   /* superfícies */
  --teal-500: #00A08A;   /* acento */
  --teal-300: #6FD6C8;
  --teal-700: #0B7F72;
  --teal-ink: #00574B;
  --teal-50:  #E6F5F2;
  --paper:    #F8F9FA;
  --white:    #FFFFFF;
  --ink:      #333333;
  --ink-2:    #4A5462;
  --ink-3:    #5B6573;
  --line-l:   #DCE2E8;
  --line-l2:  #E4E8EC;
  --mist-1:   #D5DEE8;   /* texto secundário em fundo escuro */
  --mist-2:   #C9D4E0;
  --mist-3:   #B8C6D4;
  --mist-4:   #8FA3B8;

  /* Tipografia */
  --font: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1440px;
  --gutter: clamp(20px, 5.6vw, 80px);
  --sec-pad: clamp(64px, 7.8vw, 112px);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-800);
  color: var(--paper);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--teal-500); }
a:hover { color: var(--paper); }
section[id], main[id] { scroll-margin-top: 16px; }

a:focus-visible,
button:focus-visible,
.f-in:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--teal-500); color: var(--navy-800);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

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

.accent { color: var(--teal-500); }

/* ---------- Tipografia ---------- */
h1 {
  font-size: clamp(38px, 4.2vw + 8px, 68px);
  font-weight: 600; line-height: 1.06; letter-spacing: -.025em;
}
h2 {
  font-size: clamp(28px, 2.2vw + 14px, 46px);
  font-weight: 600; line-height: 1.14; letter-spacing: -.02em;
}
.h2-md { font-size: clamp(28px, 1.9vw + 13px, 40px); line-height: 1.17; }
.h2-lg { font-size: clamp(32px, 2.6vw + 14px, 52px); line-height: 1.08; letter-spacing: -.025em; }
h3 { font-weight: 600; }

.lead {
  font-size: clamp(16px, .3vw + 15px, 18px);
  font-weight: 300; line-height: 1.7; color: var(--ink-2);
}
.lead-dark { color: var(--mist-1); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(11px, .1vw + 10.5px, 12px);
  font-weight: 600; letter-spacing: .2em; line-height: 1.5;
  text-transform: uppercase;
}
.eyebrow::before {
  content: ""; flex-shrink: 0;
  width: 4px; height: 20px; border-radius: 2px;
  background: var(--teal-500);
}
.eyebrow-light { color: var(--paper); }
.eyebrow-dark  { color: var(--navy-600); }
.eyebrow-teal  { color: var(--teal-500); }

.kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase;
}
.kicker-teal  { color: var(--teal-500); }
.kicker-muted { color: var(--ink-3); letter-spacing: .16em; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 24px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.btn svg { transition: transform .3s ease; flex-shrink: 0; }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn-lg { height: 60px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--teal-500); color: var(--navy-800); }
.btn-primary:hover { background: var(--paper); color: var(--navy-800); }

.btn-ghost { border-color: rgba(248,249,250,.45); color: var(--paper); font-weight: 500; }
.btn-ghost:hover { background: rgba(248,249,250,.1); border-color: var(--paper); color: var(--paper); }

.btn-dark { background: var(--navy-800); color: var(--paper); height: 54px; }
.btn-dark:hover { background: var(--navy-600); color: var(--paper); }

.go {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-size: 15px; font-weight: 600; color: var(--paper); text-decoration: none;
}
.go span { display: inline-block; transition: transform .3s ease; }
.go:hover span, .card-lift:hover .go span { transform: translateX(6px); }

.link-btn {
  align-self: flex-start; height: 44px; padding: 0; border: 0;
  background: transparent; color: var(--paper);
  font: 500 14px var(--font); text-decoration: underline; cursor: pointer;
}

/* ---------- Cartões com elevação ---------- */
.card-lift, .card-lift-light {
  transition: transform .4s var(--ease-out), border-color .3s ease, box-shadow .4s ease;
}
.card-lift:hover {
  transform: translateY(-6px); border-color: var(--teal-500);
  box-shadow: 0 24px 48px -24px rgba(0,160,138,.45);
}
.card-lift-light:hover {
  transform: translateY(-6px); border-color: var(--teal-500);
  box-shadow: 0 24px 48px -24px rgba(0,53,102,.35);
}

.icon-box {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--radius-md);
  background: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
}
.icon-box-sm { width: 56px; height: 56px; border-radius: 14px; }

/* =========================================================
   CABEÇALHO
   ========================================================= */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  border-bottom: 1px solid rgba(248,249,250,.1);
}
.header-inner {
  height: 88px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand img { width: 138px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.nav-link {
  color: var(--mist-2); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color .2s;
}
.nav-link:hover { color: var(--teal-500); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid rgba(248,249,250,.3); background: transparent;
  color: var(--paper); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: min(900px, max(100svh, 720px));
  display: flex; background: var(--navy-800);
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,29,61,0) 75%, var(--navy-800) 100%),
    linear-gradient(90deg, rgba(0,29,61,.92) 0%, rgba(0,29,61,.72) 48%, rgba(0,29,61,.3) 100%);
}
.deco-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.deco-lines line { stroke-width: 1; vector-effect: non-scaling-stroke; }

/* Pausa do vídeo do hero (WCAG 2.2.2): à vista na primeira tela, no canto superior
   direito do hero, 16 px abaixo do cabeçalho e alinhado à margem do conteúdo.
   O contorno de foco vem da regra geral de button:focus-visible. */
.hero-video-toggle {
  position: absolute; z-index: 4;
  top: calc(88px + 1px + 16px); /* cabeçalho + a borda dele + 16 */
  right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  width: 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(248,249,250,.3); border-radius: 50%;
  background: rgba(0,29,61,.65); color: var(--paper);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.hero-video-toggle:hover { background: rgba(0,29,61,.88); border-color: rgba(248,249,250,.55); }
.hero-video-toggle[hidden] { display: none; }
.hero-video-toggle .icon-play { display: none; }
.hero-video-toggle.is-paused .icon-play { display: block; }
.hero-video-toggle.is-paused .icon-pause { display: none; }

.hero-inner {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
  padding-top: 196px; padding-bottom: 150px;
}
.hero-copy {
  max-width: 760px;
  display: flex; flex-direction: column; gap: 28px;
  align-self: flex-start;
}
.hero-copy .eyebrow { letter-spacing: .2em; }
.hero-copy .eyebrow::before { height: 22px; }
.hero-lead {
  max-width: 640px;
  font-size: clamp(16px, .5vw + 13px, 20px); font-weight: 300; line-height: 1.6;
  color: var(--mist-1);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.hero-proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 18px;
  font-size: 13px; color: var(--mist-2);
}
.hero-proof-strong { font-weight: 600; color: var(--paper); }
.hero-proof-sep { width: 1px; height: 16px; background: rgba(248,249,250,.3); }
.hero-proof-stack { letter-spacing: .14em; }

.status-online {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--teal-500);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,160,138,.6); }
  70%  { box-shadow: 0 0 0 10px rgba(0,160,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,160,138,0); }
}

.status-pill {
  display: none;
  align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(0,29,61,.72); border: 1px solid rgba(248,249,250,.16);
}
.status-stack { font-size: 11px; letter-spacing: .14em; color: var(--mist-2); }

.obs-panel {
  flex-shrink: 0; width: 340px; padding: 22px; border-radius: 18px;
  background: rgba(0,29,61,.72); border: 1px solid rgba(248,249,250,.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 16px;
}
.obs-head { display: flex; align-items: center; justify-content: space-between; }
.obs-title {
  font-size: 11px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--mist-2);
}
.obs-list { display: flex; flex-direction: column; gap: 10px; }
.obs-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; background: rgba(0,53,102,.7);
}
.obs-bar { width: 3px; height: 22px; border-radius: 2px; background: var(--teal-500); }
.obs-name { flex-grow: 1; font-size: 13px; font-weight: 600; }
.obs-state { font-size: 12px; color: var(--mist-2); }
.obs-foot { font-size: 12px; line-height: 1.5; color: var(--mist-2); }

/* =========================================================
   FAIXA "O QUE DESENVOLVEMOS"
   ========================================================= */
.strip { background: var(--navy-600); }
.strip-inner {
  min-height: 132px; padding-block: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px 40px;
}
.strip-inner p { max-width: 360px; font-size: 15px; font-weight: 500; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips li {
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(248,249,250,.25);
  font-size: 14px; font-weight: 500;
}

/* =========================================================
   SEÇÕES — estrutura comum
   ========================================================= */
.section { position: relative; overflow: hidden; padding-block: var(--sec-pad); }
.section-light { background: var(--paper); color: var(--ink); }
.section-light h2 { color: var(--navy-800); }
.section-dark  { background: var(--navy-800); }
.section-deep  { background: var(--navy-850); }
.section-mid   { background: var(--navy-600); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px;
  margin-bottom: 56px;
}
.section-head > div { display: flex; flex-direction: column; gap: 20px; }
.head-aside { max-width: 520px; font-size: 17px; line-height: 1.65; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* Espinha dorsal: linha teal que atravessa a página e marca cada seção (desktop) */
.spine { position: relative; }
@media (min-width: 1280px) {
  .spine::before {
    content: ""; position: absolute; z-index: 3;
    left: 40px; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(180deg, rgba(0,160,138,.6) 0%, rgba(0,160,138,.25) 100%);
    pointer-events: none;
  }
  .has-marker::before {
    content: ""; position: absolute; z-index: 3;
    left: 36px; top: calc(var(--sec-pad) + 4px);
    width: 9px; height: 9px; border-radius: 3px; background: var(--teal-500);
  }
}

/* =========================================================
   01 · O PROBLEMA
   ========================================================= */
.problem {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 560px);
  grid-template-areas: "head fig" "quote fig";
  grid-template-rows: auto 1fr;
  justify-content: space-between;
  column-gap: 80px; row-gap: 28px;
}
.problem-head { grid-area: head; display: flex; flex-direction: column; gap: 28px; }
.problem-head .lead { font-size: 18px; }
.problem-quote {
  grid-area: quote; align-self: start;
  padding: 20px 24px; border-radius: 14px;
  background: var(--navy-800); color: var(--paper);
  font-size: clamp(17px, .4vw + 14px, 20px); font-weight: 500; line-height: 1.45;
}

.layers {
  grid-area: fig; position: relative;
  display: flex; flex-direction: column; gap: 22px;
  padding-bottom: 48px;
}
.layers-line {
  position: absolute; left: 30px; top: 16px; bottom: 64px; width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--teal-500) 0%, var(--navy-600) 100%);
}
.layer {
  position: relative; margin-left: 64px;
  padding: 20px 24px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--line-l);
  display: flex; align-items: center; gap: 18px;
}
.layer-icon {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: var(--radius-sm);
  background: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
}
.layer > div { display: flex; flex-direction: column; gap: 2px; }
.layer strong { font-size: 18px; color: var(--navy-800); }
.layer div span { font-size: 14px; color: var(--ink-3); }
.layer-gap {
  margin-left: 64px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink);
}
.layer-gap::before { content: ""; flex-grow: 1; border-top: 1px dashed var(--ink); }
.layer-gap::after  { content: ""; width: 40px; border-top: 1px dashed var(--ink); }
.layers figcaption {
  position: absolute; left: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-3);
}
.dash { width: 18px; height: 4px; border-radius: 2px; background: var(--teal-500); flex-shrink: 0; }

/* =========================================================
   02 · A PLATAFORMA
   ========================================================= */
.section-dark h2, .section-deep h2, .section-mid h2 { color: var(--paper); }
#plataforma h2 { font-size: clamp(30px, 2.4vw + 14px, 48px); line-height: 1.1; }
.pillar {
  min-height: 380px; padding: 36px; border-radius: var(--radius-lg);
  background: var(--navy-600); border: 1px solid rgba(248,249,250,.1);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.pillar-body { display: flex; flex-direction: column; gap: 12px; }
.pillar h3 { font-size: clamp(22px, .8vw + 16px, 30px); line-height: 1.15; }
.pillar p { font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--mist-1); }

/* =========================================================
   03 · QUEM SOMOS
   ========================================================= */
.about { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 64px; }
.about-copy { max-width: 820px; display: flex; flex-direction: column; gap: 32px; }
.about-copy .lead { max-width: 700px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.stat {
  padding: 22px 24px; border-radius: var(--radius-md);
  border: 1px solid rgba(248,249,250,.14);
  display: flex; flex-direction: column; gap: 6px;
}
.stat strong { font-size: clamp(26px, .8vw + 20px, 34px); font-weight: 600; white-space: nowrap; }
.stat span { font-size: 14px; line-height: 1.45; color: var(--mist-2); }
.stat-accent { background: var(--teal-500); border-color: var(--teal-500); color: var(--navy-800); }
.stat-accent span { color: var(--navy-800); font-weight: 500; }
.cubes { width: 360px; height: 300px; flex-shrink: 0; }

/* =========================================================
   04 · DESENVOLVIMENTO SOB DEMANDA
   ========================================================= */
.dev {
  display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 32px 72px; align-items: start;
}
.dev-copy { display: flex; flex-direction: column; gap: 26px; }
.dev-copy .btn { align-self: flex-start; }
.process {
  border-radius: 22px; background: var(--white); border: 1px solid var(--line-l);
  overflow: hidden; display: flex; flex-direction: column;
}
.process-head {
  padding: 28px 32px; background: var(--navy-800); color: var(--paper);
  display: flex; flex-direction: column; gap: 6px;
}
.process-head strong { font-size: clamp(19px, .5vw + 16px, 24px); font-weight: 600; line-height: 1.3; }
.process-steps {
  padding: 12px 32px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px;
}
.process-steps li { padding: 20px 0; display: flex; flex-direction: column; gap: 8px; }
.process-steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line-l2); }
.step-label {
  font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--navy-600);
}
.process-steps li span:last-child { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.process-foot {
  padding: 20px 32px 24px; border-top: 1px solid var(--line-l2);
  display: flex; flex-direction: column; gap: 12px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 7px 12px; border-radius: 999px;
  background: var(--teal-50); color: var(--teal-ink);
  font-size: 13px; font-weight: 600;
}

/* =========================================================
   05 · INTEGRAÇÃO (hub)
   ========================================================= */
.section-mid .section-head { margin-bottom: 48px; }
.hub {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
}
/* linha central */
.hub::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 4px; margin-top: -2px; border-radius: 2px; background: var(--teal-500);
}
.hub-nodes { display: contents; }
.hub-nodes li {
  position: relative; height: 72px; border-radius: 14px;
  background: var(--navy-800); border: 1px solid rgba(248,249,250,.14);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 12px; font-size: 18px; font-weight: 600;
}
.hub-nodes li:nth-child(-n+3) { grid-row: 1; margin-bottom: 36px; }
.hub-nodes li:nth-child(n+4)  { grid-row: 3; margin-top: 36px; }
.hub-nodes li::after {
  content: ""; position: absolute; left: 50%; width: 2px; height: 36px;
  margin-left: -1px; background: var(--teal-500);
}
.hub-nodes li:nth-child(-n+3)::after { top: 100%; }
.hub-nodes li:nth-child(n+4)::after  { bottom: 100%; }
.hub-node-new { border: 1px dashed var(--teal-500) !important; }
.hub-core {
  grid-row: 2; grid-column: 1 / -1; justify-self: center;
  position: relative; z-index: 1;
  height: 64px; padding: 0 28px; border-radius: var(--radius-md);
  background: var(--paper); box-shadow: 0 0 0 6px var(--navy-600);
  display: flex; align-items: center; gap: 16px;
}
.hub-core img { width: 147px; height: auto; }
.hub-core span {
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--navy-600);
}

/* =========================================================
   06 · CONFIANÇA
   ========================================================= */
.section-dark > .container > .eyebrow { margin-bottom: 48px; }
.trust {
  min-height: 360px; padding: 40px; border-radius: 22px;
  background: var(--navy-600); border: 1px solid rgba(248,249,250,.1);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.trust-body { display: flex; flex-direction: column; gap: 18px; }
.trust h3 { font-size: clamp(22px, .6vw + 18px, 28px); line-height: 1.2; }
.trust p { font-size: 16px; font-weight: 300; line-height: 1.65; color: var(--mist-1); }

/* =========================================================
   07 · CONTATO
   ========================================================= */
.contact {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 600px);
  justify-content: space-between; gap: 40px 72px; align-items: start;
}
.contact-copy { display: flex; flex-direction: column; gap: 28px; }
.dash-list { margin-top: 8px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: var(--mist-1); }
.dash-list li { display: flex; align-items: center; gap: 12px; }
.dash-list li::before { content: ""; width: 18px; height: 4px; border-radius: 2px; background: var(--teal-500); flex-shrink: 0; }
.contact-mail { font-size: 15px; color: var(--mist-2); }
.contact-mail a { font-weight: 600; overflow-wrap: anywhere; }

.form-card {
  border-radius: var(--radius-xl); background: var(--navy-600);
  border: 1px solid rgba(248,249,250,.12); overflow: hidden;
}
.form-card-bar { height: 4px; background: var(--teal-500); }
.contact-form { padding: 36px 40px; display: flex; flex-direction: column; gap: 18px; }
.contact-form[hidden] { display: none; }
.contact-form h3 { margin-bottom: 4px; font-size: clamp(20px, .6vw + 16px, 26px); }
.form-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; color: var(--mist-1); }
.optional { color: var(--mist-4); }
.f-in {
  width: 100%; height: 52px; padding: 0 16px;
  border-radius: var(--radius-sm); border: 1px solid rgba(248,249,250,.22);
  background: rgba(0,29,61,.55); color: var(--paper);
  font: 400 15px var(--font); transition: border-color .2s;
}
.f-in::placeholder { color: var(--mist-4); }
.f-in:focus { outline: none; border-color: var(--teal-500); }
textarea.f-in { height: 104px; padding: 14px 16px; resize: vertical; min-height: 104px; }
.f-in[aria-invalid="true"] { border-color: #FF8A80; }
.field-error { min-height: 0; font-size: 12px; color: #FFB4AB; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-legal { font-size: 12px; line-height: 1.5; color: var(--mist-3); }
.form-status {
  padding: 12px 14px; border-radius: 10px;
  background: rgba(255,138,128,.12); border: 1px solid rgba(255,138,128,.4);
  font-size: 13px; line-height: 1.5; color: #FFDAD6;
}
.btn-submit { height: 56px; font-size: 16px; gap: 10px; }
.btn-submit[aria-busy="true"] { opacity: .7; cursor: progress; }

.form-success {
  min-height: 560px; padding: 40px;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.success-icon {
  width: 64px; height: 64px; border-radius: 18px; background: var(--teal-500);
  display: flex; align-items: center; justify-content: center;
}
.form-success h3 { font-size: clamp(24px, .6vw + 20px, 30px); }
.success-text { font-size: 16px; font-weight: 300; line-height: 1.65; color: var(--mist-1); }

/* =========================================================
   RODAPÉ
   ========================================================= */
.site-footer {
  background: var(--navy-900); border-top: 1px solid rgba(248,249,250,.08);
  padding-block: 64px 48px;
}
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px 48px; }
.footer-top img { width: 162px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.footer-bottom {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(248,249,250,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 28px;
  font-size: 13px; color: var(--mist-4);
}
.footer-bottom .nav-link { font-size: 13px; }
.footer-legal { display: flex; gap: 28px; }

/* =========================================================
   UTILITÁRIOS DE VISIBILIDADE
   ========================================================= */
.show-mobile { display: none; }

/* =========================================================
   RESPONSIVO
   ========================================================= */

/* Notebook / tablet largo */
@media (max-width: 1199px) {
  .cubes { display: none; }
  .obs-panel { display: none; }
  .problem { column-gap: 48px; }
  .dev { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact-copy { max-width: 640px; }
  .form-card { max-width: 720px; }
}

/* Menu recolhido */
@media (max-width: 1099px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--gutter) 24px;
    background: var(--navy-800); border-bottom: 1px solid rgba(248,249,250,.1);
    box-shadow: 0 24px 40px -24px rgba(0,0,0,.6);
  }
  .main-nav.is-open { display: flex; }
  .main-nav .nav-link {
    min-height: 48px; display: flex; align-items: center;
    font-size: 16px; color: var(--paper);
    border-bottom: 1px solid rgba(248,249,250,.08);
  }
  .main-nav .btn { margin-top: 12px; height: 52px; }
}

/* Tablet */
@media (max-width: 991px) {
  .problem {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "fig" "quote";
    grid-template-rows: auto;
  }
  .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pillar { min-height: 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .about-copy { max-width: none; }
}

/* Mobile */
@media (max-width: 767px) {
  .hide-mobile { display: none; }
  .show-mobile { display: inline-flex; }

  .header-inner { height: 64px; }
  .brand img { width: 105px; }

  .hero { min-height: 0; }
  .hero-shade {
    background: linear-gradient(180deg, rgba(0,29,61,.55) 0%, rgba(0,29,61,.88) 45%, var(--navy-800) 100%);
  }
  .hero-lines { display: none; }
  .hero-inner { padding-top: 150px; padding-bottom: 64px; }
  .hero-video-toggle { top: calc(64px + 1px + 16px); }
  .hero-copy { gap: 20px; }
  .hero-copy .eyebrow { font-size: 11px; letter-spacing: .18em; }
  .hero-actions { flex-direction: column; gap: 12px; margin-top: 0; }
  .hero-actions .btn { width: 100%; white-space: normal; text-align: center; }
  .hero-actions .btn-primary { height: 56px; font-size: 16px; }
  .hero-actions .btn-ghost { height: 52px; font-size: 15px; }
  .hero-proof { display: none; }
  .status-pill { display: flex; }

  .strip-inner { flex-direction: column; align-items: flex-start; min-height: 0; }
  .chips { gap: 8px; }
  .chips li { padding: 8px 14px; font-size: 13px; }

  .section-head { margin-bottom: 24px; gap: 16px; }
  .section-head > div { gap: 16px; }
  .eyebrow::before { height: 18px; }
  .problem { row-gap: 20px; }
  .problem-head { gap: 20px; }
  .problem-head .lead { font-size: 16px; }

  /* Camadas em versão compacta */
  .layers { gap: 10px; padding: 0 0 0 28px; margin-top: 8px; }
  .layers-line { left: 8px; top: 8px; bottom: 8px; }
  .layer { margin-left: 0; padding: 14px 16px; border-radius: 14px; }
  .layer-icon { display: none; }
  .layer strong { font-size: 16px; }
  .layer div span { font-size: 13px; }
  .layer-gap {
    margin-left: 0; padding-top: 6px; border-top: 1px dashed var(--ink);
    font-size: 11px; letter-spacing: .14em;
  }
  .layer-gap::before, .layer-gap::after { display: none; }
  .layers figcaption { display: none; }
  .problem-quote { margin-top: 8px; padding: 18px 20px; }

  .pillar { padding: 24px; border-radius: 18px; gap: 12px; }
  .pillar .icon-box { width: 52px; height: 52px; border-radius: 14px; }
  .pillar .icon-box svg { width: 26px; height: 26px; }
  .pillar .kicker { font-size: 11px; letter-spacing: .16em; }
  .pillar p { font-size: 15px; }

  .about-copy { gap: 20px; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 0; }
  .stat { flex-direction: row; align-items: baseline; gap: 14px; padding: 18px 20px; border-radius: 14px; }
  .stat strong { font-size: 26px; }
  .stat span { font-size: 13px; line-height: 1.4; }

  .dev { gap: 20px; }
  .dev-copy { gap: 20px; }
  .process { border-radius: 18px; }
  .process-head { padding: 20px; }
  .process-steps { grid-template-columns: minmax(0, 1fr); padding: 4px 20px; }
  .process-steps li { padding: 14px 0; gap: 6px; border-bottom: 1px solid var(--line-l2); }
  .process-steps li:last-child { border-bottom: 0; }
  .step-label { font-size: 11px; letter-spacing: .14em; }
  .process-steps li span:last-child { font-size: 14px; line-height: 1.5; }
  .process-foot { padding: 16px 20px 20px; }
  .process-foot .kicker { display: none; }
  .tags li { padding: 6px 10px; font-size: 12px; }
  .btn-dark.btn-block { height: 52px; }

  /* Integração: espinha dorsal vertical */
  .head-aside { font-size: 15px; }
  .hub { display: flex; flex-direction: column; gap: 10px; }
  .hub::before { display: none; }
  .hub-core {
    justify-self: auto; box-shadow: none;
    height: auto; padding: 16px 20px; justify-content: space-between; gap: 12px;
  }
  .hub-core img { width: 131px; }
  .hub-core span { font-size: 10px; }
  .hub-nodes {
    display: flex; flex-direction: column; gap: 10px;
    position: relative; padding-left: 40px;
  }
  .hub-nodes::before {
    content: ""; position: absolute; left: 18px; top: -10px; bottom: 26px;
    width: 4px; border-radius: 2px; background: var(--teal-500);
  }
  .hub-nodes li,
  .hub-nodes li:nth-child(-n+3),
  .hub-nodes li:nth-child(n+4) {
    margin: 0; height: 52px; border-radius: var(--radius-sm); border: 0;
    justify-content: flex-start; padding: 0 16px; font-size: 15px; text-align: left;
  }
  .hub-nodes li::after,
  .hub-nodes li:nth-child(-n+3)::after,
  .hub-nodes li:nth-child(n+4)::after {
    top: 50%; bottom: auto; left: -20px; margin: -1px 0 0;
    width: 20px; height: 2px;
  }

  .section-dark > .container > .eyebrow { margin-bottom: 16px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .trust { min-height: 0; padding: 24px; border-radius: 18px; gap: 14px; }
  .trust-body { gap: 14px; }
  .trust .icon-box { width: 52px; height: 52px; }
  .trust .icon-box svg { width: 26px; height: 26px; }
  .trust p { font-size: 15px; }
  .trust:first-child .go { display: none; }
  .go { font-size: 14px; }

  .contact-copy { gap: 18px; }
  .contact-copy .lead { font-size: 15px; }
  .dash-list { display: none; }
  .form-card { border-radius: 18px; }
  .contact-form { padding: 22px 20px; gap: 14px; }
  .form-row-2 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .f-in { padding: 0 14px; }
  textarea.f-in { padding: 14px; }
  .form-success { min-height: 0; padding: 32px 20px; gap: 16px; }
  .success-icon { width: 56px; height: 56px; border-radius: 16px; }

  .site-footer { padding-block: 40px; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-top img { width: 130px; }
  .footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; width: 100%; }
  .footer-nav .nav-link { min-height: 40px; display: flex; align-items: center; }
  .footer-bottom { margin-top: 0; padding-top: 18px; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 12px; }
  .footer-legal { gap: 20px; }
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .card-lift:hover, .card-lift-light:hover { transform: none; }
  .btn:hover svg, .go:hover span, .card-lift:hover .go span { transform: none; }
}
