/* Atlas Core WebSystems · estilo.css
   Conceito: estrutura. O cubo do símbolo Atlas Core organiza a página.
   Fundo marinho dominante, muito respiro, ciano em doses raras (CTA, foco, destaques).
   Design escuro por decisão de marca (brief, seção 17). */

/* Fonte Inter hospedada no próprio site (licença SIL OFL, ver assets/fontes/OFL.txt).
   Arquivo recortado: pesos 400 a 700, caracteres latinos usados em português. */
@font-face {
  font-family: "Inter";
  src: url("../fontes/inter-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta do brief, extraída da prancha do painel */
  --bg: #01101F;
  --bg-2: #0F1C2A;
  --superficie: #1C2B3F;
  --ciano: #28C8F0;
  --ciano-claro: #7FE3FA;
  --ciano-hover: #62D8F6;
  --ciano-escuro: #1478B8;
  --violeta: #5850D8;          /* só decorativo: 3,2:1, não serve para texto */
  --verde: #50E090;            /* estado: medição feita */
  --texto: #F5F7FA;
  --texto-2: #8D9EA8;          /* 6,9:1 sobre o fundo */
  --linha: rgba(141, 158, 168, .16);
  --linha-forte: rgba(141, 158, 168, .34);
  --contorno: #C9D6E3;
  --pendente: #F2C94C;         /* marcador de pendência, só no preview */

  /* Tipografia: Inter, conforme o brief */
  --fonte: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(2.35rem, 1.2rem + 4.4vw, 4.4rem);
  --fs-h2: clamp(1.85rem, 1.2rem + 2.3vw, 2.85rem);
  --fs-h3: 1.1875rem;
  --fs-lead: clamp(1.0625rem, .98rem + .35vw, 1.25rem);
  --fs-corpo: 1.0625rem;
  --fs-peq: .9375rem;
  --fs-rotulo: .75rem;

  /* Ritmo */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --largura: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --secao: clamp(84px, 11vw, 148px);
  --topo-h: 72px;
  --raio: 14px;

  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html {
  background: var(--bg);
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: var(--fonte);
  font-size: var(--fs-corpo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Ambiente fixo: treliça isométrica quase invisível + brilho suave no topo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 70% -10%, rgba(40, 200, 240, .09), transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(88, 80, 216, .07), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0v32.3M0 16.2l28 16.1 28-16.1M0 80.8l28-16.1 28 16.1M28 64.7V97M0 16.2v64.6M56 16.2v64.6' fill='none' stroke='%238D9EA8' stroke-opacity='.05' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.2) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.2) 100%);
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

::selection { background: rgba(40, 200, 240, .3); color: var(--texto); }

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

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

.container {
  width: 100%;
  max-width: calc(var(--largura) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.secao { padding-block: var(--secao); scroll-margin-top: var(--topo-h); }
.faixa { background: var(--bg-2); }

.rotulo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: var(--fs-rotulo);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ciano);
  line-height: 1.4;
}
.rotulo::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.abertura {
  max-width: 60ch;
  margin-top: 22px;
  font-size: var(--fs-lead);
  color: var(--texto-2);
  line-height: 1.6;
}

.pular {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ciano);
  color: var(--bg);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.pular:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

main:focus { outline: none; }

/* Marcadores de pendência (somem antes de publicar) */
.pendente {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--pendente);
  border: 1px dashed rgba(242, 201, 76, .55);
  border-radius: 6px;
  background: rgba(242, 201, 76, .06);
}
p .pendente, .rodape .pendente { margin-top: 0; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 10px;
  font: inherit;
  font-size: var(--fs-peq);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primario {
  background: var(--ciano);
  color: var(--bg);
  box-shadow: 0 0 0 0 rgba(40, 200, 240, 0);
}
.btn-primario:hover {
  background: var(--ciano-hover);
  box-shadow: 0 8px 30px -8px rgba(40, 200, 240, .55);
  transform: translateY(-1px);
}
.btn-primario:active { transform: translateY(0); }
.btn-grande { min-height: 54px; padding: 15px 26px; font-size: 1rem; }
.btn-icone { width: 20px; height: 20px; flex: none; }

.link-seta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: var(--fs-peq);
  font-weight: 500;
  color: var(--texto);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease);
}
.link-seta span { transition: transform .25s var(--ease); }
.link-seta:hover { color: var(--ciano); }
.link-seta:hover span { transform: translateX(4px); }

.nota { margin-top: 18px; font-size: var(--fs-peq); color: var(--texto-2); }

/* ---------- Cabeçalho ---------- */

.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(1, 16, 31, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.topo.rolado { border-bottom-color: var(--linha); background: rgba(1, 16, 31, .86); }

.topo-interno {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--topo-h);
  max-width: calc(1280px + 2 * var(--gutter));   /* um pouco mais largo que o conteúdo, para o menu caber com folga */
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--texto);
  flex: none;
}
.marca-simbolo { width: 34px; height: 34px; flex: none; }
.marca-texto { display: inline-flex; align-items: center; gap: 12px; }
.marca-nome {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: .3em;
  margin-right: -.3em;
  line-height: 1;
}
.marca-sub {
  padding-left: 12px;
  border-left: 1px solid var(--linha-forte);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--texto-2);
  line-height: 1.2;
}

.menu { display: flex; align-items: center; gap: 22px; }
.menu-lista { display: flex; align-items: center; gap: 20px; }
.menu-lista a {
  font-size: var(--fs-peq);
  font-weight: 500;
  color: var(--texto-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.menu-lista a:hover { color: var(--texto); }
.btn-topo { min-height: 42px; padding: 9px 16px; }
/* Atalho de contato no topo quando o menu está recolhido (tablet e notebook estreito) */
.btn-topo-atalho { display: none; min-height: 42px; padding: 9px 16px; margin-left: auto; }
@media (min-width: 720px) and (max-width: 1319px) { .btn-topo-atalho { display: inline-flex; } }

.menu-botao {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--texto);
  cursor: pointer;
  border-radius: 10px;
}
.menu-botao-linha {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-botao-linha:first-child { top: 17px; }
.menu-botao-linha:last-child { top: 25px; }
.menu-botao[aria-expanded="true"] .menu-botao-linha:first-child { top: 21px; transform: rotate(45deg); }
.menu-botao[aria-expanded="true"] .menu-botao-linha:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1319px) {
  .menu-botao { display: inline-block; }
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px var(--gutter) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--linha);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .menu.aberto {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
  }
  .menu-lista { flex-direction: column; align-items: stretch; gap: 0; }
  .menu-lista a {
    display: flex;
    align-items: center;
    min-height: 52px;
    font-size: 1.0625rem;
    color: var(--texto);
    border-bottom: 1px solid var(--linha);
  }
  .btn-topo { margin-top: 16px; min-height: 52px; }
}

/* Em telas estreitas, "WebSystems" desce para baixo de ATLAS */
@media (max-width: 520px) {
  .marca-texto { flex-direction: column; align-items: flex-start; gap: 5px; }
  .marca-sub { padding-left: 0; border-left: 0; font-size: .6875rem; letter-spacing: .1em; line-height: 1; }
}

@media (max-width: 420px) {
  .marca { gap: 10px; }
  .marca-nome { font-size: 1rem; }
  .marca-simbolo { width: 30px; height: 30px; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(48px, 8vw, 112px) clamp(72px, 10vw, 136px); }

.hero-grade {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.hero-texto { min-width: 0; order: 2; }
.hero-simbolo { order: 1; }

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.032em;
  max-width: 16ch;
}
.destaque { color: var(--ciano); }

.lead {
  max-width: 58ch;
  margin-top: 28px;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--texto-2);
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 40px;
}

.hero-simbolo {
  position: relative;
  width: 120px;
  aspect-ratio: 1;
  max-width: 100%;
}
.simbolo-vivo { width: 100%; height: 100%; overflow: visible; display: block; }

@media (min-width: 900px) {
  .hero-grade { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; }
  .hero-texto { order: 1; }
  .hero-simbolo { order: 2; width: min(100%, 400px); justify-self: end; }
  .hero-simbolo::before {
    content: "";
    position: absolute;
    inset: -22%;
    z-index: -1;
    background: radial-gradient(circle, rgba(40, 200, 240, .12), transparent 62%);
  }
}

/* Formação do símbolo pela luz (uma vez, ao abrir a página)
   0,15 s  um ponto de luz surge no topo do círculo
   0,35 s  ele pulsa três vezes, cada vez mais forte, acumulando energia
   0,85 s  dois rastros saem do ponto em sentidos opostos e desenham o círculo (1,2 s)
   0,95 s  as linhas internas surgem do centro para fora: cubo, núcleo, hexágono interno, raios, hexágono externo
   2,05 s  os rastros se encontram embaixo; o ponto do sentido horário continua em órbita
   O estado sem animação é o símbolo completo (movimento reduzido ou navegador sem animação). */
.s-anel, .s-halo { stroke-dasharray: 100 0; stroke-dashoffset: 0; }
.s-hex { stroke-dasharray: 100; stroke-dashoffset: 0; }
.s-raio { stroke-dasharray: 1; stroke-dashoffset: 0; }
.s-halo { opacity: .3; }
.s-nucleo { opacity: .45; }
.s-interno, .s-cubo, .s-orbita, .s-cabeca, .s-luz, .s-luz-halo { transform-box: view-box; }
.s-interno, .s-cubo, .s-orbita, .s-cabeca { transform-origin: 60px 60px; }
.s-luz, .s-luz-halo { transform-origin: 60px 8px; }

/* Rastro curto atrás do ponto: três arcos, cada vez mais apagados */
.s-rastro { fill: none; stroke: var(--ciano); stroke-width: 1.6; stroke-linecap: round; }
.s-rastro-1 { stroke-dasharray: 14 86; stroke-dashoffset: 14; opacity: .1; }
.s-rastro-2 { stroke-dasharray: 8 92; stroke-dashoffset: 8; opacity: .16; }
.s-rastro-3 { stroke-dasharray: 3.5 96.5; stroke-dashoffset: 3.5; opacity: .26; }
.s-cabeca .s-rastro { stroke-dashoffset: 0; }   /* o segundo ponto gira ao contrário: rastro do outro lado */
.s-luz { fill: var(--ciano-claro); }
.s-cabeca { opacity: 0; }                         /* existe só durante a formação */

@media (prefers-reduced-motion: no-preference) {
  .s-luz-grupo { animation: surgir .2s var(--ease) .15s both; }
  .s-luz, .s-luz-halo { animation: pulsar .5s ease-in-out .35s both; }
  .s-anel { animation: formar-anel 1.2s var(--ease-io) .85s both, surgir .1s linear .85s both; }
  .s-halo { animation: formar-anel 1.2s var(--ease-io) .85s both, respirar 7s ease-in-out 2.05s infinite; }
  .s-rastros { animation: surgir .25s var(--ease) .85s both; }
  .s-orbita { animation: formar-ponto 1.2s var(--ease-io) .85s both, orbitar 5.6s linear 2.05s infinite; }
  .s-cabeca { animation: formar-ponto-inv 1.2s var(--ease-io) .85s both, cabeca-luz 1.5s linear .85s both; }
  .s-cubo { animation: montar-cubo .7s var(--ease) .95s both; }
  .s-nucleo { animation: surgir .8s var(--ease) 1.05s both; }
  .s-interno { animation: expandir .6s var(--ease) 1.15s both; }
  .s-raio { animation: desenhar-raio .55s var(--ease) 1.35s both; }
  .s-hex { animation: desenhar .6s var(--ease-io) 1.6s both; }
  /* Hero fora da tela: tudo para (aba escondida: regra body.pausado) */
  .js .hero:not(.vivo) .simbolo-vivo * { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .s-orbita, .s-cabeca { display: none; }
}

@keyframes surgir { from { opacity: 0; } }
@keyframes pulsar {
  0%, 100% { transform: scale(1); }
  16% { transform: scale(1.6); }
  33% { transform: scale(1); }
  50% { transform: scale(2); }
  66% { transform: scale(1); }
  83% { transform: scale(2.4); }
}
/* O traço cresce a partir do topo (meio do caminho) para os dois lados ao mesmo tempo */
@keyframes formar-anel {
  from { stroke-dasharray: 0 100; stroke-dashoffset: -50; }
  to { stroke-dasharray: 100 0; stroke-dashoffset: 0; }
}
@keyframes formar-ponto { from { transform: rotate(0deg); } to { transform: rotate(180deg); } }
@keyframes formar-ponto-inv { from { transform: rotate(0deg); } to { transform: rotate(-180deg); } }
@keyframes cabeca-luz { 0% { opacity: 0; } 10% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
@keyframes montar-cubo { from { opacity: 0; transform: scale(.55) rotate(-30deg); } to { opacity: 1; transform: none; } }
@keyframes expandir { from { opacity: 0; transform: scale(.3); } }
@keyframes desenhar { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes desenhar-raio { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes respirar { 0%, 100% { opacity: .3; } 50% { opacity: .5; } }
/* Órbita: começa embaixo (onde os rastros se encontram). 70% da volta nos primeiros 40% do tempo,
   os 30% restantes devagar até 94%, e uma pausa curta até 100%. As curvas de cada trecho
   foram calculadas para a velocidade não dar salto na passagem de um trecho para o outro. */
@keyframes orbitar {
  0% { transform: rotate(180deg); animation-timing-function: cubic-bezier(.25, 0, .7, .82); }
  40% { transform: rotate(432deg); animation-timing-function: cubic-bezier(.2, .378, .45, 1); }
  94% { transform: rotate(540deg); }
  100% { transform: rotate(540deg); }
}

/* ---------- 3. Problema ---------- */

.problema-titulo {
  font-size: var(--fs-h2);
  max-width: 22ch;
  line-height: 1.14;
}
.problema-titulo .linha { display: block; }
.problema-titulo .apagada { color: var(--texto-2); }

.sinais {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 56px;
  margin-top: 56px;
}
.sinal {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 20px;
  padding-block: 28px;
  border-top: 1px solid var(--linha);
}
.sinal-icone { width: 32px; height: 32px; color: var(--ciano); grid-row: span 2; margin-top: 2px; }
.sinal h3 { font-size: var(--fs-h3); }
.sinal p { margin-top: 8px; color: var(--texto-2); max-width: 46ch; }

@media (min-width: 760px) {
  .sinais { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.fechamento {
  margin-top: 56px;
  font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--texto-2);
  text-wrap: balance;
}
.fechamento strong { color: var(--texto); font-weight: 650; }

/* ---------- 4. Consultoria ---------- */

.duas-colunas {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.coluna-titulo h2 { font-size: var(--fs-h2); max-width: 18ch; }
.coluna-texto { display: grid; gap: 22px; align-content: start; }
.coluna-texto p { max-width: 58ch; color: var(--texto-2); font-size: var(--fs-lead); }
.coluna-texto .texto-forte { color: var(--texto); font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); line-height: 1.5; letter-spacing: -0.012em; }

@media (min-width: 900px) {
  .duas-colunas { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; }
  .coluna-texto { padding-top: 46px; }
}

/* ---------- 5. Três partes ---------- */

/* A seção 5 continua a 4 no mesmo fundo; uma linha fina separa as duas */
.partes { padding-top: 0; }
.partes > .container { position: relative; padding-top: var(--secao); }
.partes > .container::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--linha);
}

.partes-cabecalho h2 { font-size: var(--fs-h2); }

.partes-grade {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: 56px;
}

.cubo-quadro { width: min(100%, 320px); justify-self: center; }
.cubo { display: block; width: 100%; height: auto; overflow: visible; }

.cubo-contorno { stroke: var(--linha-forte); stroke-width: 1; stroke-dasharray: 3 6; }
.face polygon { stroke: var(--ciano); stroke-width: 1.4; stroke-linejoin: round; transition: fill .4s var(--ease), opacity .4s var(--ease); }
.face text {
  font-family: var(--fonte);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .22em;
  fill: var(--texto);
  text-anchor: middle;
  dominant-baseline: middle;
  transition: opacity .4s var(--ease);
}
.face-website polygon { fill: rgba(40, 200, 240, .2); }
.face-crm polygon { fill: rgba(40, 200, 240, .1); }
.face-operacao polygon { fill: rgba(88, 80, 216, .22); }
.face { transition: opacity .4s var(--ease), transform .9s var(--ease); }
.cubo-juncao { fill: var(--ciano-claro); }
/* Faíscas: criadas pelo site.js dentro do próprio desenho do cubo, nunca por cima do texto */
.faiscas, .cubo-pulso { pointer-events: none; }
.cubo-juncao-brilho { fill: var(--ciano); opacity: .7; }

/* Destaque da parte ativa */
.cubo[data-ativo="website"] .face:not(.face-website),
.cubo[data-ativo="crm"] .face:not(.face-crm),
.cubo[data-ativo="operacao"] .face:not(.face-operacao) { opacity: .3; }
.cubo[data-ativo="website"] .face-website polygon { fill: rgba(40, 200, 240, .42); }
.cubo[data-ativo="crm"] .face-crm polygon { fill: rgba(40, 200, 240, .34); }
.cubo[data-ativo="operacao"] .face-operacao polygon { fill: rgba(88, 80, 216, .5); }

/* Montagem: as três faces se juntam quando a seção aparece */
@media (prefers-reduced-motion: no-preference) {
  .js .cubo.montar:not(.in) .face-website { transform: translate(0, -26px); }
  .js .cubo.montar:not(.in) .face-crm { transform: translate(-22px, 13px); }
  .js .cubo.montar:not(.in) .face-operacao { transform: translate(22px, 13px); }
  .js .cubo.montar:not(.in) .cubo-juncao,
  .js .cubo.montar:not(.in) .cubo-juncao-brilho { opacity: 0; }
  .cubo-juncao, .cubo-juncao-brilho { transition: opacity .6s var(--ease) .7s; }
}

.partes-lista { display: grid; gap: 0; }
.parte {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 18px;
  padding-block: 26px;
  border-top: 1px solid var(--linha);
  position: relative;
  isolation: isolate;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.parte:last-child { border-bottom: 1px solid var(--linha); }

/* Destaque do card: uma moldura com borda e sombra ciano, invisível em repouso.
   Fica por trás do conteúdo e não ocupa espaço, então nada ao redor se move. */
.parte::before {
  content: "";
  position: absolute;
  inset: 0 -14px;
  z-index: -1;
  border: 1px solid rgba(40, 200, 240, .4);
  border-radius: 12px;
  background: rgba(40, 200, 240, .025);
  box-shadow: 0 18px 40px -18px rgba(40, 200, 240, .45), 0 0 22px -6px rgba(40, 200, 240, .18);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
/* Computador: só onde existe mouse de verdade (evita o "hover preso" do toque) */
@media (hover: hover) and (pointer: fine) {
  .parte:hover { transform: translateY(-8px); }
  .parte:hover::before { opacity: 1; }
}
/* Celular: a classe entra no toque e sai sozinha logo depois (site.js) */
.parte.tocado { transform: translateY(-8px); }
.parte.tocado::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .parte:hover, .parte.tocado { transform: none; }
}
.parte h3 { font-size: 1.3125rem; }
.parte p { margin-top: 8px; color: var(--texto-2); max-width: 52ch; }
.parte-marca {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  clip-path: polygon(50% 0, 100% 28%, 50% 56%, 0 28%);
  background: var(--ciano);
}
.marca-website { clip-path: polygon(50% 0, 100% 29%, 50% 58%, 0 29%); background: var(--ciano-claro); }
.marca-crm { clip-path: polygon(0 0, 100% 29%, 100% 100%, 0 71%); background: var(--ciano); }
.marca-operacao { clip-path: polygon(0 29%, 100% 0, 100% 71%, 0 100%); background: var(--violeta); }

.partes-lista[data-ativo] .parte { opacity: .45; }
.partes-lista[data-ativo="website"] .parte[data-face="website"],
.partes-lista[data-ativo="crm"] .parte[data-face="crm"],
.partes-lista[data-ativo="operacao"] .parte[data-face="operacao"] { opacity: 1; }

.partes-fechamento {
  margin-top: 48px;
  max-width: 60ch;
  font-size: var(--fs-lead);
  color: var(--texto);
}

@media (min-width: 900px) {
  .partes-grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
  .cubo-quadro { width: min(100%, 440px); }
}

/* ---------- 6. Como trabalhamos ---------- */

.metodo-cabecalho h2 { font-size: var(--fs-h2); }

.etapas {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  margin-top: 64px;
  counter-reset: etapa;
}
.etapa { position: relative; padding-left: 64px; }
.etapa::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: -36px;
  width: 1px;
  background: linear-gradient(var(--linha-forte), var(--linha));
}
.etapa:last-child::before { display: none; }
.etapa-num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--ciano);
  border: 1px solid rgba(40, 200, 240, .45);
  border-radius: 50%;
  background: var(--bg-2);
}
.etapa h3 { font-size: 1.375rem; padding-top: 8px; }
.etapa p { margin-top: 10px; color: var(--texto-2); max-width: 40ch; }

@media (min-width: 960px) {
  .etapas { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
  .etapa { padding-left: 0; padding-top: 72px; }
  .etapa::before { left: 52px; right: -36px; top: 21px; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, var(--linha-forte), var(--linha)); }
  .etapa h3 { padding-top: 0; }
}

.comeco { margin-top: clamp(72px, 9vw, 112px); }
.comeco-grade {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.comeco-cartao {
  padding: clamp(24px, 3vw, 36px);
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
}
.comeco-cartao h3 { font-size: 1.375rem; }
.comeco-cartao p { margin-top: 12px; color: var(--texto-2); }
.comeco-cartao:first-child { border-color: rgba(40, 200, 240, .35); }
.comeco-seta {
  justify-self: center;
  width: 1px;
  height: 28px;
  background: var(--linha-forte);
  position: relative;
}
.comeco-seta::after {
  content: "";
  position: absolute;
  left: -4px;
  bottom: 0;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--linha-forte);
  border-bottom: 1px solid var(--linha-forte);
  transform: rotate(45deg);
}

@media (min-width: 820px) {
  .comeco-grade { grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); gap: 0; }
  .comeco-seta { align-self: center; width: 28px; height: 1px; }
  .comeco-seta::after { left: auto; right: 0; bottom: -3px; transform: rotate(-45deg); }
}

/* ---------- 7. O padrão ---------- */

.padrao-cabecalho h2 { font-size: var(--fs-h2); }

.compromissos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 48px;
  margin-top: 56px;
}
.compromisso { padding-block: 28px 32px; border-top: 1px solid var(--linha); }
.compromisso-marca { width: 18px; height: 18px; fill: none; stroke: var(--ciano); stroke-width: 1.6; }
.compromisso h3 { margin-top: 18px; font-size: var(--fs-h3); }
.compromisso p { margin-top: 8px; color: var(--texto-2); max-width: 40ch; }

.compromisso .medida {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 8px 12px;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--texto);
  background: rgba(80, 224, 144, .07);
  border: 1px solid rgba(80, 224, 144, .3);
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.compromisso .medida[hidden] { display: none; }
.medida-ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); flex: none; }

@media (min-width: 640px) { .compromissos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .compromissos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 8. Sobre ---------- */

.sobre-grade {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.sobre-id .rotulo { margin-bottom: 26px; }
.sobre-nome { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.sobre-funcao { margin-top: 8px; color: var(--texto-2); }
.sobre-texto {
  max-width: 54ch;
  font-size: clamp(1.15rem, 1.02rem + .55vw, 1.4375rem);
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--texto);
}

@media (min-width: 900px) {
  .sobre-grade { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; }
  .sobre-texto { padding-top: 48px; }
}

/* ---------- 9. Perguntas ---------- */

.perguntas-grade {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}
.perguntas-grade h2 { font-size: var(--fs-h2); }

.faq details { border-top: 1px solid var(--linha); }
.faq details:last-child { border-bottom: 1px solid var(--linha); }
.faq summary {
  position: relative;
  display: block;
  padding: 24px 48px 24px 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ciano); }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 1.6px;
  background: var(--ciano);
  border-radius: 2px;
  transition: transform .3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.resposta { padding: 0 48px 26px 0; }
.resposta p { color: var(--texto-2); max-width: 62ch; }

@media (min-width: 900px) {
  .perguntas-grade { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; }
  .perguntas-grade h2 { position: sticky; top: calc(var(--topo-h) + 40px); align-self: start; max-width: 10ch; }
}

/* ---------- 10. CTA final ---------- */

.cta-final { padding-top: 0; }
.cta-painel {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px);
  background:
    radial-gradient(ellipse 70% 90% at 100% 50%, rgba(40, 200, 240, .14), transparent 65%),
    linear-gradient(160deg, var(--superficie), var(--bg-2) 70%);
  border: 1px solid rgba(40, 200, 240, .22);
  border-radius: calc(var(--raio) + 6px);
}
.cta-simbolo {
  position: absolute;
  right: -60px;
  top: 50%;
  width: 360px;
  height: 360px;
  transform: translateY(-50%);
  opacity: .14;
  pointer-events: none;
}
.cta-texto { position: relative; max-width: 620px; }
.cta-texto h2 { font-size: var(--fs-h2); }
.cta-texto > p:not(.nota) { margin-top: 20px; font-size: var(--fs-lead); color: var(--texto-2); }
.cta-texto .btn { margin-top: 36px; }
.cta-texto .nota { margin-top: 14px; }

@media (min-width: 900px) {
  .cta-simbolo { right: 40px; width: 380px; height: 380px; opacity: .22; }
}

/* ---------- 11. Rodapé ---------- */

.rodape {
  padding-block: 64px calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--linha);
  background: var(--bg);
}
.rodape-grade {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
.rodape-marca p { margin-top: 16px; color: var(--texto-2); font-size: var(--fs-peq); }
.rodape-links ul { display: grid; gap: 4px; }
.rodape-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--texto-2);
  font-size: var(--fs-peq);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.rodape-links a:hover { color: var(--texto); }
.rodape-contato { display: grid; gap: 10px; align-content: start; font-size: var(--fs-peq); color: var(--texto-2); }
.rodape-titulo { color: var(--texto); font-weight: 600; }
.rodape-base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--linha);
  font-size: .875rem;
  color: var(--texto-2);
}

.rodape-simples { padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: .875rem; color: var(--texto-2); }

@media (min-width: 800px) {
  .rodape-grade { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 48px; }
}

/* ---------- Barra fixa de contato (celular) ---------- */

.barra-contato {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(1, 16, 31, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--linha);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.barra-contato .btn { width: 100%; min-height: 50px; }
.barra-contato[data-visivel="true"] { transform: none; }
@media (max-width: 719px) { .barra-contato { display: block; } }

/* ---------- Aviso (preview) ---------- */

.aviso {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--texto);
  background: var(--superficie);
  border: 1px dashed rgba(242, 201, 76, .6);
  border-radius: 10px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6);
  transform: translateX(-50%);
}

/* ---------- Pausa e movimento reduzido ---------- */

body.pausado *, body.pausado *::before, body.pausado *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }
}

/* ---------- Página interna (privacidade, 404) ---------- */

.pagina { padding-block: clamp(56px, 8vw, 104px) var(--secao); }
.pagina-texto { max-width: 68ch; }
.pagina-texto h1 { font-size: var(--fs-h2); }
.pagina-texto .abertura { margin-top: 18px; }
.pagina-texto h2 { margin-top: 48px; font-size: 1.3125rem; }
.pagina-texto p { margin-top: 12px; color: var(--texto-2); }
.pagina-texto p + p { margin-top: 14px; }
.pagina-acoes { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 36px; }
.btn-secundario {
  background: transparent;
  color: var(--texto);
  border: 1px solid var(--linha-forte);
}
.btn-secundario:hover { border-color: var(--ciano); color: var(--ciano); }

/* Pendências sempre visíveis (vence as cores de texto das seções) */
main .pendente, footer .pendente { color: var(--pendente); }
main p.pendente { margin-top: 12px; }
