/* NovArc site. Tokens, base and motion primitives come from the redesign canvas
   (docs/design/2026-10-06-redesign-canvas.html). Section CSS is added by each set below its own header. */

/* ---------- fontes (latin, woff2, variaveis onde existe) ---------- */
@font-face { font-family: "Sora"; src: url(fonts/sora-latin.woff2) format("woff2"); font-weight: 400 700; font-style: normal; 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: "IBM Plex Mono"; src: url(fonts/ibm-plex-mono-400-latin.woff2) format("woff2"); font-weight: 400; font-style: normal; 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: "IBM Plex Mono"; src: url(fonts/ibm-plex-mono-500-latin.woff2) format("woff2"); font-weight: 500; font-style: normal; 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: "JetBrains Mono"; src: url(fonts/jetbrains-mono-latin.woff2) format("woff2"); font-weight: 400 700; font-style: normal; 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; }
/* Space Grotesk: somente a secao MCPlace */
@font-face { font-family: "Space Grotesk"; src: url(fonts/space-grotesk-latin.woff2) format("woff2"); font-weight: 400 700; font-style: normal; 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; }

/* ---------- tokens NovArc (copiados do :root do canvas) ---------- */
:root {
  /* colors.css */
  --navy-900: #04122e; --navy-700: #0b2350; --navy-500: #1b3e78; --navy-300: #5b7ba6; --navy-100: #b9c6da;
  --signal-600: #0554cc; --signal-500: #0a6cff; --signal-300: #6ba6ff; --signal-100: #d3e4ff; --signal-50: #eef4ff;
  --gray-900: #1f2937; --gray-700: #374151; --gray-600: #4b5563; --gray-500: #6b7280; --gray-300: #cbd5e1; --gray-200: #e5e7eb; --gray-100: #eef0f3; --gray-50: #f4f5f7; --white: #ffffff;
  --success-600: #047857; --danger-600: #b91c1c; --warning-600: #b45309;
  --text-strong: var(--navy-900); --text-body: var(--gray-700); --text-muted: var(--gray-500);

  /* typography.css */
  --font-sans: "Sora", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --font-terminal: "JetBrains Mono", "IBM Plex Mono", Menlo, monospace;

  /* effects.css */
  --radius-control: 8px; --radius-card: 12px; --radius-panel: 16px; --radius-pill: 999px;
  --border-soft: rgba(4, 18, 46, 0.09); --border-soft-hover: rgba(4, 18, 46, 0.16);
  --border-on-dark: rgba(255, 255, 255, 0.10);
  --shadow-card: 0 1px 2px rgba(4, 18, 46, 0.06), 0 8px 24px -12px rgba(4, 18, 46, 0.10);
  --shadow-raised: 0 2px 4px rgba(4, 18, 46, 0.08), 0 18px 40px -16px rgba(4, 18, 46, 0.18);
  --shadow-overlay: 0 24px 64px rgba(4, 18, 46, 0.22);
  --shadow-accent: 0 1px 2px rgba(5, 84, 204, 0.30), 0 10px 24px -8px rgba(10, 108, 255, 0.45);
  --sheen-dark: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --shadow-focus: 0 0 0 3px rgba(10, 108, 255, 0.28);
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); }
/* rolagem suave so depois do load (site.js liga .smooth): na carga direta em /#secao o salto e instantaneo e exato */
@media (prefers-reduced-motion: no-preference) { html.smooth { scroll-behavior: smooth; } }
/* ancoras param abaixo da barra fixa */
[id] { scroll-margin-top: 60px; }
/* ancora de secao: o conteudo para 32 px abaixo da barra fixa (60 px), nao 96 px; as vitrines fixas (.dev) ficam
   no topo da secao no desktop, que e o inicio do percurso fixo. Valores por largura nos blocos de tablet e celular abaixo */
.sec[id]:not(.dev, .hero-dark) { scroll-margin-top: -4px; } /* 60 - 96 + 32 */
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: 4px; }
img, svg, canvas { max-width: 100%; }

/* container queries: o mesmo markup vira tablet (641 a 1100) e celular (ate 640) */
.site { overflow-x: clip; color-scheme: light; container-type: inline-size; width: 100%; font-family: var(--font-sans); color: var(--text-body); font-size: 16px; line-height: 1.62; background: var(--white); }
.site * { min-width: 0; }
.site h1, .site h2, .site h3 { color: var(--text-strong); margin: 0; text-wrap: balance; }
.site p { margin: 0; text-wrap: pretty; }
/* telas largas: o fundo segue de ponta a ponta, o conteudo para em 1440 px no centro */
.wrap { padding-inline: max(80px, calc((100cqi - 1440px) / 2)); }
.sec { position: relative; padding-block: 96px; }
.sec.muted { background: var(--gray-50); }
.sec.inverse { background: var(--navy-900); color: var(--navy-100); }
.sec.inverse h1, .sec.inverse h2, .sec.inverse h3 { color: var(--white); }
.slash { display: inline-block; width: 4px; height: .95em; background: var(--signal-500); transform: skewX(-14deg); vertical-align: -0.1em; margin-right: 10px; }
.kicker { font: 500 12px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--signal-600); display: flex; align-items: center; }
/* Em superficie escura o navy-300 da marca (#5b7ba6) fica em 4,27:1 sobre navy-900, abaixo do AA.
   Dentro das superficies escuras ele sobe para #7090ba: 5,65:1 sobre navy-900 e 4,66:1 sobre navy-700. */
.inverse, .bigfoot, .sbar, .fcard.feat, .xcase.xnext, .ask { --navy-300: #7090ba; }
.inverse .kicker { color: var(--navy-100); } /* sobre os brilhos do fundo escuro o --navy-300 cai para 3,2:1 */
.display { font-size: 56px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.title { font-size: 32px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
.subtitle { font-size: 20px; line-height: 1.35; letter-spacing: -0.015em; }
.small { font-size: 14px; line-height: 1.5; }
.hl { background: var(--signal-500); color: var(--white); padding: 0 .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.assure { font-size: 14px; color: var(--navy-300); margin: 0; }
.sec-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 40px; }
.sh { display: grid; gap: 16px; max-width: 46em; margin-bottom: 48px; }
.sh .subtitle { color: var(--text-body); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* botoes e pills */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--radius-control); font: 600 16px var(--font-sans); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
.btn.primary { background: var(--signal-500); color: var(--white); box-shadow: var(--shadow-accent); }
.btn.secondary { background: var(--white); color: var(--navy-900); border-color: var(--border-soft-hover); }
.btn.ghost { background: transparent; color: var(--navy-900); }
.btn.outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.22); }
.btn.outline-dark { background: transparent; color: var(--navy-900); border-color: var(--border-soft-hover); }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-control); }
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 22%; background: rgba(255,255,255,.28); transform: translateX(-180%) skewX(-14deg); transition: transform 600ms var(--ease); }
.btn.primary:hover::after { transform: translateX(600%) skewX(-14deg); }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); font: 500 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; background: var(--gray-100); color: var(--gray-700); white-space: nowrap; }
.pill.blue { background: var(--signal-100); color: var(--signal-600); }
.pill.ok { background: #e3f3ec; color: var(--success-600); }
.pill.warn { background: #fbefe2; color: var(--warning-600); }
.pill.dark { background: rgba(255,255,255,.08); color: var(--navy-100); }

/* Componentes compartilhados entre conjuntos (orquestracao). Nenhum conjunto redefine estes. */
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.more { color: var(--signal-500); font-weight: 600; font-size: 14px; text-decoration: none; }
.more::after { content: ""; display: inline-block; width: 3px; height: 12px; background: var(--signal-500); transform: skewX(-14deg); margin-left: 8px; vertical-align: -1px; }
.more.on-dark { color: var(--signal-300); }
.more.on-dark::after { background: var(--signal-300); }
.vtag { position: absolute; left: 14px; bottom: 10px; font: 500 10px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--navy-300); }
/* no fundo cinza o cinza medio e o azul de sinal ficam abaixo de 4,5:1 */
.assure.dark, .vtag.dark { color: var(--gray-600); }
.muted .more { color: var(--signal-600); }
.slash.big { width: 16px; height: 64px; margin: 0; }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } }

/* ---------- cabecalho (dentro do heroi) ---------- */
.nav { display: flex; align-items: center; gap: 40px; height: 76px; border-bottom: 1px solid var(--border-soft); position: relative; z-index: 1; }
.nav > a:first-child { display: flex; flex: none; }
.nav svg { width: 120px; height: auto; flex: none; }
.nav .links { display: flex; gap: 28px; font-size: 15px; color: var(--gray-700); flex: 1; }
.nav .links a:hover { color: var(--white); }
.nav .btn { height: 40px; font-size: 14px; padding: 0 16px; }
.nav .menu { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border-radius: var(--radius-control); border: 1px solid var(--border-soft-hover); background: var(--white); flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.nav .menu i { display: block; width: 16px; height: 2px; background: var(--navy-900); }
/* .sec.hero-dark: no canvas o padding das container queries vencia e a nav descia no tablet e celular */
.sec.hero-dark { padding-top: 0; overflow: hidden; }
.hero-dark .nav { border-bottom-color: var(--border-on-dark); margin-bottom: 72px; }
.hero-dark .nav .links { color: var(--navy-100); }
.hero-dark .nav .menu { background: transparent; border-color: var(--border-on-dark); }
.hero-dark .nav .menu i { background: var(--white); }

/* menu do tablet e celular: folha com os mesmos links */
.sheet-menu { margin: 0 0 0 auto; height: 100%; max-height: none; width: min(360px, 100%); padding: 20px 24px 32px; border: 0; background: var(--navy-900); color: var(--navy-100); font-family: var(--font-sans); box-shadow: var(--shadow-overlay); }
.sheet-menu::backdrop { background: rgba(4, 18, 46, .55); }
.sheet-menu[open] { display: flex; flex-direction: column; gap: 24px; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; }
.sheet-top svg { width: 104px; height: auto; }
.sheet-close { width: 44px; height: 44px; border-radius: var(--radius-control); border: 1px solid var(--border-on-dark); background: transparent; color: var(--white); font: 400 28px/1 var(--font-sans); cursor: pointer; }
.sheet-menu nav { display: grid; }
.sheet-menu nav a { display: flex; align-items: center; min-height: 52px; font-size: 18px; color: var(--white); border-bottom: 1px solid var(--border-on-dark); }
.sheet-menu .btn { width: 100%; }

/* barra fixa e progresso: irmaos de .site, porque container-type prende position: fixed */
.pbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--signal-500); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); z-index: 53; }
.sbar { position: fixed; top: 0; left: 0; right: 0; z-index: 52; height: 60px; padding: 0 max(24px, calc((100vw - 1440px) / 2)); padding-top: env(safe-area-inset-top, 0px); display: flex; align-items: center; justify-content: space-between; background: rgba(4,18,46,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-on-dark); transform: translateY(calc(-100% - 32px)); transition: transform 280ms var(--ease); font-family: var(--font-sans); }
.sbar.on { transform: none; }
.sbar > a:first-child { display: flex; }
.sbar svg { width: 96px; height: auto; }
.sbar .btn { height: 40px; font-size: 14px; padding: 0 16px; }

/* ---------- rodape grande ---------- */
.bigfoot { background: var(--navy-900); color: var(--navy-300); padding-block: 96px 32px; display: grid; gap: 64px; border-top: 1px solid var(--border-on-dark); }
.bf-cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.site .bf-cta h2 { color: var(--white); max-width: 20em; }
.bf-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 48px; border-top: 1px solid var(--border-on-dark); }
.bf-cols div { display: grid; gap: 10px; align-content: start; font-size: 14px; color: var(--navy-100); }
.bf-cols a:hover { color: var(--white); }
.bf-cols b { font: 500 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--navy-300); }
.bf-logo svg { width: 100%; height: auto; display: block; }
.bf-base { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.bf-base [data-top] { color: var(--signal-300); }

/* ---------- movimento ligado a rolagem ----------
   Estado inicial do CSS e o estado final (--q = 1): sem JS a pagina esta completa.
   site.js escreve --q em [data-q] e liga .live em .site quando o movimento e permitido. */
.rv { transform: perspective(1200px) translateY(calc((1 - var(--q, 1)) * 90px)) rotateX(calc((1 - var(--q, 1)) * 55deg)) translateZ(calc((1 - var(--q, 1)) * -120px)); opacity: calc(.1 + var(--q, 1) * .9); transform-origin: 50% 100%; }
.rv-z { transform: perspective(900px) translateZ(calc((1 - var(--q, 1)) * -600px)) rotateY(calc((1 - var(--q, 1)) * -35deg)); opacity: var(--q, 1); }
.rv-x { transform: translateX(calc((1 - var(--q, 1)) * 60px)); opacity: var(--q, 1); }
.tilt-wrap { perspective: 1600px; }
.rv-tilt { transform: rotateY(calc(-10deg - (1 - var(--q, 1)) * 35deg)) rotateX(calc(4deg + (1 - var(--q, 1)) * 10deg)) translateZ(calc((1 - var(--q, 1)) * -200px)); transform-origin: 100% 50%; }
.sh > * { transform: translateY(calc((1 - var(--q, 1)) * 30px)); opacity: var(--q, 1); }
.sh > :nth-child(2) { transform: translateY(calc((1 - var(--q, 1)) * 60px)); }
.sh > :nth-child(3) { transform: translateY(calc((1 - var(--q, 1)) * 90px)); }
.tags.pop .pill { transform: scale(calc(.6 + var(--q, 1) * .4)); opacity: var(--q, 1); }
[data-tilt] { transition: rotate 300ms var(--ease); }
[data-type].typing::after { content: ""; display: inline-block; width: 2px; height: 1em; background: currentColor; margin-left: 2px; vertical-align: -.15em; animation: blink 900ms steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
/* brilho periodico so nos CTAs do heroi e de secao; o canvas anima left, aqui vira transform */
.live .hero .btn.primary::after, .live .sec-cta .btn.primary::after { animation: shine 4.5s 2s infinite; }
@keyframes shine { 0% { transform: translateX(-180%) skewX(-14deg); } 22%, 100% { transform: translateX(600%) skewX(-14deg); } }

/* ---------- tablet (641 a 1100 px) ---------- */
@container (min-width: 641px) and (max-width: 1100px) {
  .sec[id]:not(.hero-dark) { scroll-margin-top: 12px; } /* 60 - 80 + 32 */ /* aqui .dev nao e fixa */
  .wrap { padding-inline: 40px; }
  .sec { padding-block: 80px; }
  .nav { gap: 16px; }
  .nav .links { display: none; }
  .nav .btn { margin-left: auto; }
  .nav .menu { display: flex; margin-left: 0; }
  .bf-cols { grid-template-columns: 1fr 1fr; }
  .bf-cta { display: grid; }
}

/* ---------- celular (ate 640 px) ---------- */
@container (max-width: 640px) {
  .sec[id]:not(.hero-dark) { scroll-margin-top: 28px; } /* 60 - 64 + 32 */ /* aqui .dev nao e fixa */
  .wrap { padding-inline: 20px; }
  .sec { padding-block: 64px; }
  .nav { height: 64px; }
  .nav .links, .nav .btn { display: none; }
  .nav .menu { display: flex; }
  .nav svg { width: 104px; }
  .hero-dark .nav { margin-bottom: 40px; }
  .display { font-size: 32px; line-height: 1.15; letter-spacing: -0.025em; }
  .title { font-size: 32px; }
  .bf-cols { grid-template-columns: 1fr 1fr; }
  .bf-cta { display: grid; }
}
@media (max-width: 640px) {
  .sbar { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* secao longe da tela (site.js marca .off): lacos param onde estao e seguem quando ela volta */
.sec.off *, .sec.off *::before, .sec.off *::after { animation-play-state: paused !important; }

/* ---------- secoes (S2 a S7 acrescentam abaixo, cada uma sob o proprio cabecalho) ---------- */

/* ---------- S2 hero ---------- */
.sec.hero-dark > .hero { position: relative; z-index: 1; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-copy { display: grid; gap: 24px; }
.hero .lead { font-size: 20px; line-height: 1.5; letter-spacing: -0.015em; max-width: 34em; color: var(--navy-100); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
/* campo de barras de corte: cobre o heroi inteiro; a mascara some com ele sob a coluna de texto */
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, rgba(0,0,0,.45) 50%, #000 68%); mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, rgba(0,0,0,.45) 50%, #000 68%); }
/* telas largas: o campo acompanha a coluna de 1440 px em vez de esticar por baixo do titulo, e some nas duas pontas */
@container (min-width: 1761px) {
  .hero-field { left: 0; right: 0; margin-inline: auto; width: 1760px; -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, rgba(0,0,0,.45) 50%, #000 68%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, rgba(0,0,0,.45) 50%, #000 68%, #000 86%, transparent 100%); }
}
.hero-space { position: relative; min-height: 480px; }
/* entrada: estados iniciais so com movimento permitido; se o usuario ligar movimento reduzido no meio da visita,
   a regra global desliga as animacoes e tudo fica no estado final */
@media (prefers-reduced-motion: no-preference) {
  /* titulos [data-words]: hero.js divide em palavras e poe .in quando o titulo entra na tela;
     ate la as palavras esperam escondidas, depois sobem em 3D, 60 ms entre elas */
  .live .w { display: inline-block; transform-origin: 50% 100%; }
  .live [data-words]:not(.in) .w { opacity: 0; }
  .live [data-words].in .w { animation: rise 800ms cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 60ms + 150ms); }
  /* destaque do heroi cresce da esquerda para a direita depois das palavras: camada em scaleX, so transform */
  .live .hero .hl { position: relative; z-index: 0; background: none; }
  .live .hero .hl::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--signal-500); transform: scaleX(0); transform-origin: 0 50%; }
  .live .hero .in .hl::before { animation: hlgrow 700ms 1100ms var(--ease) forwards; }
  /* lead, CTAs e garantia entram cedo: o botao principal visivel em menos de 1 s */
  .live .hero-copy > :not(.kicker):not(h1) { animation: fadeup 500ms var(--ease) both; animation-delay: 400ms; }
}
@keyframes rise { from { opacity: 0; transform: perspective(600px) translateY(.5em) rotateX(-70deg); } }
@keyframes hlgrow { to { transform: scaleX(1); } }
/* @keyframes fadeup ja existe no bloco de componentes compartilhados do S1 (integracao 02be945): nao redefinir */

@container (min-width: 641px) and (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-space { min-height: 240px; }
  /* --fs: fim da coluna de texto, medido por hero.js; o campo so aparece abaixo dos CTAs */
  .hero-field { -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent var(--fs, 48%), #000 calc(var(--fs, 48%) + 160px)); mask-image: linear-gradient(180deg, transparent 0, transparent var(--fs, 48%), #000 calc(var(--fs, 48%) + 160px)); }
}
@container (max-width: 640px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero .lead { font-size: 16px; line-height: 1.62; }
  .ctas .btn { flex: 1 1 100%; }
  .hero-space { min-height: 200px; }
  .hero-field { -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent var(--fs, 52%), #000 calc(var(--fs, 52%) + 140px)); mask-image: linear-gradient(180deg, transparent 0, transparent var(--fs, 52%), #000 calc(var(--fs, 52%) + 140px)); }
}

/* ---------- S3 setores, treinamentos, consultoria ---------- */
/* setores: faixa branca com letreiro infinito. Pausa no hover; com movimento reduzido a regra global do S1 para a animacao.
   .sec.strip e composto para vencer o padding-block das container queries de .sec */
.sec.strip { padding-block: 20px; border-bottom: 1px solid var(--border-soft); }
.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); }
.mq-track { display: flex; width: max-content; animation: s3-marquee 32s linear infinite; }
/* pausa no hover e no foco de teclado; o anel de foco vai para dentro da faixa, porque a mascara apagaria um anel externo */
.marquee:hover .mq-track, .marquee:focus .mq-track { animation-play-state: paused; }
.marquee:focus-visible { outline: none; }
.sec.strip:has(.marquee:focus-visible) { box-shadow: inset var(--shadow-focus); }
.mq-set { display: flex; }
/* o espaco entre itens e padding, nao gap: as duas metades tem a mesma largura e o -50% fecha o laco sem salto */
.mq-set span { display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; font: 500 13px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--navy-900); white-space: nowrap; }
.mq-set span::after { content: ""; width: 4px; height: 14px; background: var(--signal-500); transform: skewX(-14deg); }
.mq-set .mq-k { color: var(--signal-600); }
@keyframes s3-marquee { to { transform: translateX(-50%); } }
/* movimento reduzido: o letreiro parado esconderia a maior parte dos setores; vira uma lista estatica que quebra linha */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .mq-track { width: auto; }
  .mq-set { flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding-inline: 20px; }
  .mq-set span { white-space: normal; padding-right: 0; gap: 16px; }
  .mq-set[aria-hidden="true"] { display: none; }
}

/* duas colunas compartilhadas por treinamentos e consultoria */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split-copy { display: grid; gap: 32px; }
.split-copy .sh { margin: 0; }
.split-copy .sec-cta { margin-top: 0; }

/* treinamentos: formatos, areas e a agenda de exemplo */
.formats { display: grid; gap: 12px; }
.fmt { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 20px; background: var(--white); border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--border-soft); font-size: 14px; line-height: 1.5; }
.fmt b { color: var(--navy-900); font-size: 16px; }
/* .tags vem do bloco de componentes compartilhados da integracao; nao redefinir aqui */
.agenda { border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-raised), 0 0 0 1px var(--border-soft); overflow: hidden; }
.agenda .mock-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--navy-900); color: var(--white); font: 500 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; box-shadow: var(--sheen-dark); }
/* .mock-h leva .inverse no HTML: herda o --navy-300 claro das superficies escuras (5,65:1 sobre navy-900) */
.agenda .mock-h > span:last-child { color: var(--navy-300); }
.agenda .slash { height: 12px; }
.agenda ol { list-style: none; margin: 0; padding: 0; }
.agenda li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.agenda time { font: 500 14px var(--font-mono); color: var(--signal-600); font-variant-numeric: tabular-nums; padding-top: 2px; }
.agenda li b { display: block; color: var(--navy-900); }
.agenda li span { font-size: 14px; line-height: 1.5; }
.agenda-foot { display: flex; gap: 2px; align-items: baseline; padding: 16px 20px; background: var(--gray-50); font-size: 14px; line-height: 1.5; color: var(--navy-900); }
/* linha "agora": caixa invisivel de 6% a 82% da trilha, movida por transform; a linha e o ::after no topo.
   --q vem herdado da .agenda[data-q], como no canvas (que animava top) */
.now-track { position: relative; }
.now { position: absolute; left: 0; right: 0; top: 6%; height: 76%; pointer-events: none; transform: translateY(calc(var(--q, 1) * 100%)); }
.now::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--signal-500); box-shadow: 0 0 12px rgba(10,108,255,.6); }
.now::before { content: ""; position: absolute; left: 12px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--signal-500); z-index: 1; }
/* movimento suave (canvas v9): cartoes sobem 24 px, agenda gira de -16 a -6 graus em Y. Sem giro forte e sem data-tilt.
   As poses ficam sem .live para o estado sem JS e com movimento reduzido ser igual ao quadro final; so as transicoes dependem de .live */
[data-layer="Treinamentos"] .fmt.rv { transform: translateY(calc((1 - var(--q, 1)) * 24px)); opacity: calc(.15 + var(--q, 1) * .85); }
[data-layer="Treinamentos"] .rv-tilt { transform: rotateY(calc(-6deg - (1 - var(--q, 1)) * 10deg)) translateX(calc((1 - var(--q, 1)) * 30px)); }
.live [data-layer="Treinamentos"] .fmt.rv, .live [data-layer="Treinamentos"] .tags.pop .pill, .live [data-layer="Treinamentos"] .sh > * { transition: transform 700ms cubic-bezier(.2, .7, .2, 1), opacity 700ms ease; }
.live [data-layer="Treinamentos"] .rv-tilt { transition: transform 800ms cubic-bezier(.2, .7, .2, 1); }
.live [data-layer="Treinamentos"] .now { transition: transform 700ms cubic-bezier(.2, .7, .2, 1); }

/* consultoria: matriz de oportunidades de exemplo e entregaveis */
.matrix { position: relative; padding: 24px 24px 48px 56px; border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-raised), 0 0 0 1px var(--border-soft); }
.mx-head { margin-bottom: 16px; }
.mx-head .kicker { color: var(--text-muted); }
.mx { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1 / 0.82; max-width: 100%; border-left: 2px solid var(--navy-900); border-bottom: 2px solid var(--navy-900); }
.mx-q { margin: -0.5px; padding: 12px; border: 1px dashed var(--gray-300); font: 500 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.mx-q.start { position: relative; background: var(--signal-50); color: var(--signal-600); border: 1px solid var(--signal-300); }
/* brilho do quadrante: o canvas anima box-shadow; aqui a sombra fica no ::after e so a opacidade anima */
.mx-q.start::after { content: ""; position: absolute; inset: -1px; box-shadow: inset 0 0 0 1px var(--signal-500), 0 0 24px rgba(10,108,255,.25); opacity: 0; pointer-events: none; }
.live .mx-q.start::after { animation: s3-glow 3s ease-in-out infinite; }
@keyframes s3-glow { 50% { opacity: 1; } }
/* pontos e rotulos: posicao por --x/--y; o rotulo quebra linha so quando nao cabe ate a borda do grafico */
.mx .dot { position: absolute; left: var(--x); top: var(--y); width: 12px; height: 12px; border-radius: 50%; background: var(--signal-500); box-shadow: 0 0 0 4px rgba(10,108,255,.18); transform: translate(-50%, -50%) scale(var(--q, 1)); }
.mx .dot.muted { background: var(--navy-300); box-shadow: none; }
.mx em { position: absolute; left: calc(var(--x) + 14px); top: var(--y); transform: translateY(-50%); width: max-content; max-width: calc(100% - var(--x) - 14px); font-style: normal; font-size: 13px; line-height: 1.35; font-weight: 500; color: var(--navy-900); opacity: var(--q, 1); }
/* varredura: o canvas anima left; aqui a caixa inteira anda por transform e a linha e o ::after na borda esquerda */
.mx .sweep { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.mx .sweep::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--signal-300); }
.live .mx .sweep { animation: s3-sweep 4.5s linear infinite; }
@keyframes s3-sweep { 0% { transform: translateX(0); opacity: 0; } 10%, 90% { opacity: .7; } 100% { transform: translateX(100%); opacity: 0; } }
.mx-axes { position: absolute; left: 56px; right: 24px; bottom: 18px; display: flex; justify-content: space-between; font: 500 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.mx-y { position: absolute; left: 14px; top: 50%; transform: rotate(-90deg) translateX(50%); transform-origin: 0 0; font: 500 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.deliv { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--navy-900); }
.deliv li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--border-soft); font-size: 14px; line-height: 1.5; }
.deliv b { color: var(--navy-900); font-size: 16px; }

/* S3 tablet: uma coluna, matriz abaixo do texto */
@container (min-width: 641px) and (max-width: 1100px) {
  .split, .split.rev { grid-template-columns: 1fr; gap: 40px; }
  .split.rev .matrix { order: 2; }
}
/* S3 celular */
@container (max-width: 640px) {
  .split, .split.rev { grid-template-columns: 1fr; gap: 24px; }
  .split.rev .matrix { order: 2; }
  .fmt, .deliv li { grid-template-columns: 1fr; gap: 4px; }
  .matrix { padding: 16px 16px 44px 40px; }
  .mx-axes { left: 40px; right: 16px; }
  .mx-y { left: 8px; }
  .mx em { font-size: 11px; }
}
/* S3 celular estreito: rotulos da matriz em 10 px para nao se tocarem */
@container (max-width: 380px) {
  .mx em { font-size: 10px; }
}

/* ---------- S4 desenvolvimento e agentes ---------- */
/* Vitrines fixas (canvas: data-layer Desenvolvimento e Engenharia de agentes).
   Estado base (sem JS, movimento reduzido, tablet e celular): grade de paineis, cada um com o proprio link,
   cenas paradas no quadro final. .deck (ligado por assets/js/desenvolvimento-agentes.js) no desktop:
   .dev-scroll de 380vh, .dev-pin sticky abaixo da barra fixa (60px) e baralho 3D. .live (motor do S1)
   liga os loops das cenas. Classes genericas ficam sob .dev, .dpanel ou .viz e keyframes levam o
   prefixo dv- para nao colidir com os outros conjuntos; .tags, .more e .vtag vem do bloco compartilhado. */
.dev { overflow: clip; }
.dev .dev-scroll, .dev .enter { position: relative; z-index: 1; }
.dev-pin { display: grid; grid-template-columns: 1fr; gap: 48px; }
.dev-side .sh { margin: 0; }
.dev .sh .subtitle { color: var(--navy-100); }
.dev-side .sec-cta { margin-top: 32px; }
.dev-list { display: none; }
.dev-stage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dpanel { background: var(--white); border-radius: var(--radius-panel); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06); color: var(--text-body); }
.site .dpanel h3 { color: var(--navy-900); font-size: 20px; line-height: 1.35; letter-spacing: -0.015em; }
.dp-body { padding: 24px; display: grid; gap: 10px; }
.dpanel .fk { font: 500 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--signal-600); }
.dpanel .tags { margin-top: 4px; }
.dpanel .pill.deny { background: #fdecec; color: var(--danger-600); }
.dpanel .more { justify-self: start; }
.dp-cta { margin-top: 6px; }
/* .dev-side sobe a especificidade acima de .sec-cta (display: flex) do S1 */
.dev-side .dyn-cta { display: none; }

/* fundo: faixas inclinadas (Desenvolvimento) e grade de pontos (Agentes); deriva so com .live */
.dev .slashfield { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.dev .slashfield i { position: absolute; top: -20%; height: 140%; background: rgba(10,108,255,.07); transform: skewX(-14deg); }
.dev .slashfield i:nth-child(1) { left: 6%; width: 70px; }
.dev .slashfield i:nth-child(2) { left: 28%; width: 16px; background: rgba(10,108,255,.12); }
.dev .slashfield i:nth-child(3) { left: 55%; width: 120px; background: rgba(10,108,255,.05); }
.dev .slashfield i:nth-child(4) { left: 78%; width: 8px; background: rgba(107,166,255,.14); }
.dev .slashfield i:nth-child(5) { left: 92%; width: 44px; }
.live .dev .slashfield i { animation: dv-drift 18s linear infinite alternate; }
.live .dev .slashfield i:nth-child(odd) { animation-direction: alternate-reverse; }
.live .dev .slashfield i:nth-child(1) { animation-duration: 22s; } .live .dev .slashfield i:nth-child(2) { animation-duration: 16s; }
.live .dev .slashfield i:nth-child(3) { animation-duration: 26s; } .live .dev .slashfield i:nth-child(4) { animation-duration: 14s; }
.live .dev .slashfield i:nth-child(5) { animation-duration: 20s; }
@keyframes dv-drift { from { translate: -120px 0; } to { translate: 120px 0; } }
.dev .dotgrid { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(80% 70% at 70% 40%, #000, transparent); mask-image: radial-gradient(80% 70% at 70% 40%, #000, transparent); }
.live .dev .dotgrid { animation: dv-dotdrift 40s linear infinite; }
@keyframes dv-dotdrift { to { background-position: 26px 26px; } }

/* "Quando o codigo ja existe": quatro passos chegando da profundidade (rv-z do S1) */
.dev .enter { margin-top: 96px; display: grid; gap: 20px; }
.dev .enter > .kicker { color: var(--navy-100); }
.dev .flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.dev .flow::before { content: ""; position: absolute; left: 32px; right: 32px; top: 40px; border-top: 2px dashed rgba(255,255,255,.2); transform-origin: 0 50%; transform: scaleX(var(--q, 1)); }
.dev .step { position: relative; border-radius: var(--radius-card); padding: 24px; display: grid; gap: 10px; align-content: start; background: var(--navy-700); box-shadow: var(--sheen-dark), 0 0 0 1px var(--border-on-dark); }
.dev .step.out { background: rgba(10,108,255,.16); box-shadow: 0 0 0 1px var(--signal-500); }
.dev .step .k { font: 500 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--signal-300); }
.dev .step h3 { font-size: 20px; line-height: 1.35; letter-spacing: -0.015em; }
.dev .step p { font-size: 14px; line-height: 1.5; color: var(--navy-100); }

/* desktop com .deck: vitrine fixa e baralho */
.deck .dev-side .dyn-cta { display: flex; }
.deck .dp-cta { display: none; }
.dyn-cta .btn.swapin { animation: dv-swapin 450ms var(--ease) both; }
@keyframes dv-swapin { from { opacity: 0; transform: translateY(10px); } }
.dev.deck .dev-scroll { height: 380vh; }
.dev.deck .dev-pin { position: sticky; top: 60px; height: calc(100vh - 60px); grid-template-columns: 1fr 1.15fr; align-items: center; gap: 64px; }
.dev.alt.deck .dev-pin { grid-template-columns: 1.15fr 1fr; }
.dev.alt.deck .dev-side { order: 2; }
.dev.deck .dev-list { display: grid; gap: 4px; list-style: none; padding: 0; margin: 28px 0 0; }
.dev.deck .dev-list li { font-size: 16px; color: var(--navy-300); padding: 8px 0 8px 18px; border-left: 2px solid var(--border-on-dark); transition: color 280ms, border-color 280ms; }
.dev.deck .dev-list li.on { color: var(--white); border-left-color: var(--signal-500); }
.dev.deck .dev-stage { display: block; position: relative; height: 440px; perspective: 1600px; transform-style: preserve-3d; }
.dev.deck .dpanel { position: absolute; left: 0; right: 0; top: 0; transform-origin: 50% 100%; transition: transform 650ms var(--ease), opacity 650ms var(--ease), rotate 300ms var(--ease); }
/* telas baixas (notebooks de 650 a 760 px de altura): compacta a coluna lateral para o botao e a nota caberem */
@media (max-height: 760px) {
  .dev.deck .dev-side .sh { gap: 10px; }
  .dev.deck .dev-list { margin-top: 16px; }
  .dev.deck .dev-list li { padding-block: 4px; }
  .dev.deck .dev-side .sec-cta { margin-top: 20px; }
}
/* cenas: base = quadro final, parado (sem JS e com movimento reduzido toda palavra fica visivel).
   Os loops (3 a 7 s) so existem sob .live, que o motor do S1 liga quando o movimento e permitido. */
.viz { position: relative; height: 170px; background: var(--navy-700); overflow: hidden; }
.live .viz { height: 230px; }
/* cenas de texto (linhas de PR e chamadas MCP, terminal): a altura cresce se uma linha quebrar, nunca corta palavra */
.dpanel .viz.v-prs, .dpanel .viz.v-term, .dpanel .viz.v-agent { height: auto; min-height: 170px; }
.live .dpanel .viz.v-prs, .live .dpanel .viz.v-term, .live .dpanel .viz.v-agent { min-height: 230px; }
.viz .caret { display: inline-block; width: 7px; height: 1em; margin-left: 4px; vertical-align: -.15em; background: var(--signal-300); }

/* sistema novo: blocos montando, grafico desenhando, ponteiro andando */
.v-build { display: grid; grid-template-columns: 56px 1fr 1fr 1fr; grid-template-rows: 22px 1fr 1fr; gap: 8px; padding: 16px 16px 34px; }
.v-build i { position: relative; overflow: hidden; background: rgba(255,255,255,.12); border-radius: 4px; }
.v-build .b1 { grid-row: 1 / 4; background: rgba(10,108,255,.4); }
.v-build .b2 { grid-column: 2 / 5; }
.v-build .b6 { grid-column: 2 / 4; }
.v-build .b8 { display: none; }
.v-build .b3::after, .v-build .b4::after, .v-build .b5::after { content: ""; position: absolute; left: 8px; bottom: 8px; height: 6px; border-radius: 3px; background: var(--signal-300); width: 60%; }
.v-build .b6 svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.v-build .b6 path { fill: none; stroke: var(--signal-300); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1000; }
.viz .pointer { position: absolute; left: 70%; top: 70%; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 14px solid var(--white); transform: rotate(-30deg); filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); z-index: 2; }

/* evolucao: branch desenhada, merge, deploy no ar */
.v-git svg { position: absolute; inset: 10px 10px 30px; width: calc(100% - 20px); height: calc(100% - 40px); }
.v-git path { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 3; }
.v-git .gb { stroke: var(--signal-500); stroke-dasharray: 260; }
.v-git circle { fill: var(--navy-300); }
.v-git .br { fill: var(--signal-500); }
.v-git .mg { fill: var(--white); stroke: var(--signal-500); stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.viz .ship { position: absolute; right: 14px; top: 12px; font-style: normal; }

/* time de devs e servidor MCP: linhas de pull request ou de chamada */
.v-prs { padding: 14px 16px 30px; display: grid; gap: 4px; align-content: start; }
.v-prs > div { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding-block: 6px; border-bottom: 1px solid var(--border-on-dark); color: var(--white); font-size: 13px; }
.v-prs i { width: 28px; height: 28px; border-radius: 50%; background: var(--navy-500); display: grid; place-items: center; font: 500 10px var(--font-mono); font-style: normal; color: var(--white); }
.v-prs span { overflow-wrap: anywhere; }
.viz .swap { display: grid; font-style: normal; }
.viz .swap > b { grid-area: 1 / 1; }
.viz .swap > b:first-child { opacity: 0; }
.viz .rcomment { margin: 6px 0 0 38px; font-size: 12px; color: var(--navy-100); background: rgba(255,255,255,.07); border-radius: 8px 8px 8px 2px; padding: 6px 10px; justify-self: start; }
/* MCP: registro de auditoria e etiqueta em duas linhas no fluxo, abaixo das chamadas (no canvas as duas
   dividiam o rodape e se sobrepunham em paineis estreitos) */
.v-mcp { padding-bottom: 14px; }
.viz .audit { font: 500 10px var(--font-mono); color: #8ee0bb; margin-top: 6px; }
.v-mcp .vtag { position: static; }

/* security review: codigo varrido, duas linhas acesas, barras de severidade */
.v-sec { padding: 18px 16px 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-content: start; }
.viz .codebg { grid-row: 1 / 5; position: relative; display: grid; gap: 7px; align-content: start; padding-top: 2px; overflow: hidden; }
.viz .codebg i { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); }
.viz .codebg i:nth-child(2n) { width: 70%; } .viz .codebg i:nth-child(3n) { width: 85%; }
.viz .codebg .hit { background: #f28b82; }
.viz .codebg .band { display: none; position: absolute; left: 0; right: 0; top: -14px; height: 14px; background: rgba(10,108,255,.25); border-top: 2px solid var(--signal-300); }
.viz .scan { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.viz .scan i { display: block; width: 30%; height: 100%; background: var(--signal-500); border-radius: 3px; }
.viz .sev { display: grid; grid-template-columns: 52px 1fr 22px; gap: 10px; align-items: center; color: var(--white); font: 500 12px var(--font-mono); }
.viz .sev i { height: 8px; border-radius: 4px; background: linear-gradient(#f28b82, #f28b82) no-repeat 0 0 / var(--w) 100%, rgba(255,255,255,.08); }
.viz .sev.m i { background-image: linear-gradient(#f5b971, #f5b971); }
.viz .sev.l i { background-image: linear-gradient(var(--signal-300), var(--signal-300)); }
.viz .sev b { text-align: right; }

/* integracoes: pacotes entre os sistemas */
.v-int svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.v-int path { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 3; }
.v-int .pd { stroke: var(--signal-300); stroke-dasharray: 12 300; }
.v-int .n { position: absolute; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--navy-500); color: var(--white); font: 500 11px var(--font-mono); white-space: nowrap; }
.v-int .n.c { left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--signal-500); box-shadow: 0 0 0 6px rgba(10,108,255,.2); }
.viz .sync { position: absolute; left: 50%; top: calc(50% + 22px); transform: translateX(-50%); font: 500 10px var(--font-mono); color: var(--navy-300); white-space: nowrap; }

/* agentes de IA: mensagens e digitacao */
.v-agent { padding: 16px 16px 30px; display: grid; gap: 8px; align-content: start; }
.v-agent .msg { justify-self: start; background: rgba(255,255,255,.09); color: var(--white); font-size: 13px; padding: 8px 12px; border-radius: 10px 10px 10px 2px; }
.v-agent .msg.hu { background: rgba(245,185,113,.18); color: #f8dcb6; }
.viz .dots { display: flex; gap: 4px; padding: 10px 12px; background: rgba(255,255,255,.09); border-radius: 10px 10px 10px 2px; justify-self: start; }
.viz .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--navy-100); }

/* segundo cerebro: grafo percorrido e resposta com fontes */
.v-graph svg { position: absolute; inset: 10px 10px 30px; width: calc(100% - 20px); height: calc(100% - 40px); }
.v-graph path { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 2; }
.v-graph .hot { stroke: var(--signal-300); stroke-width: 3; stroke-dasharray: 320; }
.v-graph circle { fill: var(--navy-300); }
.v-graph circle.on { fill: var(--signal-500); }
.v-graph circle.q { fill: var(--white); stroke: var(--signal-500); stroke-width: 3; }
.viz .answer { position: absolute; right: 14px; top: 12px; font: 500 11px var(--font-mono); color: var(--white); background: var(--signal-500); padding: 4px 10px; border-radius: var(--radius-pill); }

/* hermes e .claude/: linhas de terminal */
.v-term { padding: 16px 16px 30px; display: grid; gap: 4px; align-content: start; }
.v-term .tl { font: 400 12px/1.6 var(--font-terminal); color: var(--navy-100); overflow-wrap: anywhere; }
.v-term time { color: var(--signal-300); margin-right: 10px; }
.v-tree .tl.in { padding-left: 18px; }
.v-tree b { color: var(--white); font-weight: 500; }
.v-tree .tl.okline { color: #8ee0bb; }
.viz .live-dot { position: absolute; right: 14px; bottom: 12px; width: 8px; height: 8px; border-radius: 50%; background: #3fbf8f; box-shadow: 0 0 0 0 rgba(63,191,143,.6); }

/* orquestracao: subagentes, revisor e entrega */
.v-orch { padding: 14px 16px 30px; display: grid; gap: 12px; justify-items: center; align-content: start; }
.viz .o-root, .viz .o-rev, .viz .o-done { font: 500 11px var(--font-mono); padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap; }
.viz .o-root { background: var(--signal-500); color: var(--white); }
.viz .o-rev { background: rgba(63,191,143,.18); color: #b7f0d6; }
.viz .o-done { background: var(--white); color: var(--navy-900); }
.viz .o-kids { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.viz .o-kids div { display: grid; gap: 6px; justify-items: center; }
.viz .o-kids small { font: 500 10px var(--font-mono); color: var(--navy-100); }
.viz .o-kids i { width: 100%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.viz .o-kids i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--signal-300); transform-origin: 0 50%; }

/* evals: barras por versao */
.v-evals { display: flex; align-items: flex-end; gap: 18px; padding: 16px 28px 34px; }
.viz .ev { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.viz .ev b { font: 500 10px var(--font-mono); color: var(--navy-100); }
.viz .ev i { width: 100%; height: var(--h); background: var(--navy-500); border-radius: 4px 4px 0 0; transform-origin: bottom; }
.viz .ev small { font: 500 10px var(--font-mono); color: var(--navy-300); }
.viz .ev.best b { color: var(--white); }
.viz .ev.best i { background: var(--signal-500); box-shadow: 0 0 18px rgba(10,108,255,.5); }

/* loops das cenas (canvas v4 e v8), so com .live. Atrasos usam backwards: o quadro 0% vale durante a espera. */
.live .viz .caret { animation: dv-blink 900ms steps(1) infinite; }
@keyframes dv-blink { 50% { opacity: 0; } }
.live .v-build i { animation: dv-blockin 3.2s ease-in-out infinite backwards; }
.live .v-build i:nth-child(2) { animation-delay: .15s; } .live .v-build i:nth-child(3) { animation-delay: .3s; } .live .v-build i:nth-child(4) { animation-delay: .45s; }
.live .v-build i:nth-child(5) { animation-delay: .6s; } .live .v-build i:nth-child(6) { animation-delay: .75s; } .live .v-build i:nth-child(7) { animation-delay: .9s; }
@keyframes dv-blockin { 0% { opacity: .2; transform: scale(.92); } 25%, 80% { opacity: 1; transform: none; } 100% { opacity: .2; transform: scale(.92); } }
.live .v-build .b3::after, .live .v-build .b4::after, .live .v-build .b5::after { animation: dv-tilefill 3.2s ease-in-out infinite backwards; }
.live .v-build .b4::after { animation-delay: .3s; } .live .v-build .b5::after { animation-delay: .6s; }
@keyframes dv-tilefill { 0%, 20% { width: 0; } 60%, 100% { width: 60%; } }
.live .v-build .b6 path { animation: dv-gdraw-b 3.2s ease-in-out infinite; }
/* com non-scaling-stroke o traco e medido em pixels de tela: 1000 cobre a linha inteira em qualquer largura */
@keyframes dv-gdraw-b { 0% { stroke-dashoffset: 1000; } 50%, 100% { stroke-dashoffset: 0; } }
.live .viz .pointer { animation: dv-pointer 6.4s ease-in-out infinite; }
@keyframes dv-pointer { 0% { left: 70%; top: 70%; } 25% { left: 40%; top: 46%; } 50% { left: 62%; top: 30%; } 75% { left: 82%; top: 62%; } 100% { left: 70%; top: 70%; } }
.live .v-git .gb { animation: dv-gdraw 4s ease-in-out infinite; }
@keyframes dv-gdraw { 0% { stroke-dashoffset: 260; } 50%, 100% { stroke-dashoffset: 0; } }
.live .v-git .mg { animation: dv-mpulse 2s ease-in-out infinite; }
@keyframes dv-mpulse { 50% { transform: scale(1.3); } }
.live .viz .ship { animation: dv-shipin 4s ease-in-out infinite; }
@keyframes dv-shipin { 0%, 55% { opacity: 0; transform: translateY(-6px); } 65%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.live .v-prs > div { animation: dv-rowin 6s ease-in-out infinite backwards; }
.live .v-prs > div:nth-child(2) { animation-delay: .3s; } .live .v-prs > div:nth-child(3) { animation-delay: .6s; }
@keyframes dv-rowin { 0% { opacity: 0; transform: translateX(-12px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.live .viz .swap > b { animation: dv-swapA 6s ease-in-out infinite; }
.live .viz .swap > b + b { animation-name: dv-swapB; }
.live .viz .swap.s2 > b { animation-delay: 1s; animation-fill-mode: backwards; }
@keyframes dv-swapA { 0%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes dv-swapB { 0%, 45% { opacity: 0; } 55%, 100% { opacity: 1; } }
.live .viz .rcomment { animation: dv-rowin 6s ease-in-out 1.4s infinite backwards; }
.live .v-mcp > div:nth-child(2) b { animation: dv-shake 4s ease-in-out infinite; }
@keyframes dv-shake { 0%, 60%, 100% { transform: none; } 64% { transform: translateX(-4px); } 68% { transform: translateX(4px); } 72% { transform: translateX(-3px); } 76% { transform: none; } }
.live .viz .audit { animation: dv-shipin 4s ease-in-out infinite; }
.live .viz .codebg .hit { animation: dv-hit 4s ease-in-out .6s infinite backwards; }
.live .viz .codebg .hit.h2 { animation-delay: 2s; }
@keyframes dv-hit { 0%, 10% { background: rgba(255,255,255,.12); } 15%, 80% { background: #f28b82; } 100% { background: rgba(255,255,255,.12); } }
.live .viz .codebg .band { display: block; animation: dv-band 4s linear infinite; }
@keyframes dv-band { from { top: -14px; } to { top: 100%; } }
.live .viz .scan i { animation: dv-scanmv 1.8s ease-in-out infinite alternate; }
@keyframes dv-scanmv { to { transform: translateX(233%); } }
.live .viz .sev i { animation: dv-sevgrow 4s ease-in-out infinite; }
@keyframes dv-sevgrow { 0% { background-size: 0 100%, auto; } 40%, 100% { background-size: var(--w) 100%, auto; } }
.live .v-int .pd { animation: dv-pdash 2.2s linear infinite; }
@keyframes dv-pdash { from { stroke-dashoffset: 312; } to { stroke-dashoffset: 0; } }
.live .v-int .n { animation: dv-nodeglow 2.2s ease-in-out infinite; }
.live .v-int .n:nth-child(3) { animation-delay: .55s; } .live .v-int .n:nth-child(4) { animation-delay: 1.1s; } .live .v-int .n:nth-child(5) { animation-delay: 1.65s; }
@keyframes dv-nodeglow { 50% { box-shadow: 0 0 0 4px rgba(107,166,255,.35); } }
.live .v-int .n.c { animation: dv-cpulse 2.2s ease-in-out infinite; }
@keyframes dv-cpulse { 50% { box-shadow: 0 0 0 12px rgba(10,108,255,.08); } }
.live .v-agent .msg { animation: dv-msgseq 7s ease-in-out infinite backwards; }
.live .v-agent .msg:nth-child(2) { animation-delay: 1.2s; } .live .v-agent .msg:nth-child(3) { animation-delay: 2.4s; }
@keyframes dv-msgseq { 0% { opacity: 0; transform: translateY(8px); } 8%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
.live .viz .dots i { animation: dv-dot 1s ease-in-out infinite; }
.live .viz .dots i:nth-child(2) { animation-delay: .15s; } .live .viz .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dv-dot { 50% { transform: translateY(-4px); opacity: .4; } }
.live .v-graph .hot { animation: dv-gdraw 3.6s ease-in-out infinite; }
.live .v-graph circle.on { animation: dv-nodeon 3.6s ease-in-out infinite backwards; }
.live .v-graph circle.on:nth-of-type(6) { animation-delay: .3s; } .live .v-graph circle.on:nth-of-type(4) { animation-delay: .6s; } .live .v-graph circle.on:nth-of-type(3) { animation-delay: .9s; }
@keyframes dv-nodeon { 0%, 15% { fill: var(--navy-300); } 30%, 85% { fill: var(--signal-500); } 100% { fill: var(--navy-300); } }
.live .viz .answer { animation: dv-shipin 3.6s ease-in-out infinite; }
.live .v-term .tl { animation: dv-typeline 7s steps(28) infinite backwards; }
.live .v-term .tl:nth-child(2) { animation-delay: .9s; } .live .v-term .tl:nth-child(3) { animation-delay: 1.8s; } .live .v-term .tl:nth-child(4) { animation-delay: 2.7s; } .live .v-term .tl:nth-child(5) { animation-delay: 3.6s; } .live .v-term .tl:nth-child(6) { animation-delay: 4.5s; }
@keyframes dv-typeline { 0% { clip-path: inset(0 100% 0 0); } 12%, 88% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
.live .viz .live-dot { animation: dv-livep 2s ease-out infinite; }
@keyframes dv-livep { to { box-shadow: 0 0 0 10px rgba(63,191,143,0); } }
.live .viz .o-rev { animation: dv-shipin 4.2s ease-in-out infinite; }
.live .viz .o-done { animation: dv-shipin 4.2s ease-in-out .5s infinite backwards; }
.live .viz .o-kids i::after { animation: dv-ofill var(--t) ease-in-out infinite; }
@keyframes dv-ofill { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
.live .viz .ev i { animation: dv-evgrow 4.8s ease-in-out infinite backwards; }
.live .viz .ev:nth-child(2) i { animation-delay: .3s; } .live .viz .ev:nth-child(3) i { animation-delay: .6s; } .live .viz .ev:nth-child(4) i { animation-delay: .9s; }
@keyframes dv-evgrow { 0% { transform: scaleY(.1); } 30%, 85% { transform: none; } 100% { transform: scaleY(.1); } }
/* tablet: sem fixacao, grade de dois paineis, cada um com o proprio link. Os seletores repetem a
   especificidade dos de .deck acima e vem depois deles, entao vencem. */
@container (min-width: 641px) and (max-width: 1100px) {
  .dev-stage { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .dev.deck .dev-scroll { height: auto; }
  .dev.deck .dev-pin { position: static; height: auto; grid-template-columns: 1fr; gap: 40px; }
  .dev.alt.deck .dev-pin { grid-template-columns: 1fr; }
  .dev.alt.deck .dev-side { order: 0; }
  .dev.deck .dev-list, .deck .dev-side .dyn-cta { display: none; }
  .deck .dp-cta { display: inline-flex; }
  .dev.deck .dev-stage { display: grid; height: auto; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .dev.deck .dpanel { position: relative; transform: none !important; opacity: 1 !important; }
  .live .viz { height: 180px; }
  .live .dpanel .viz.v-prs, .live .dpanel .viz.v-term, .live .dpanel .viz.v-agent { height: auto; min-height: 180px; }
}

/* celular: uma coluna, passos do fluxo empilhados com a linha tracejada na vertical */
@container (max-width: 640px) {
  .dev-stage { grid-template-columns: 1fr; gap: 16px; }
  .dev.deck .dev-scroll { height: auto; }
  .dev.deck .dev-pin { position: static; height: auto; grid-template-columns: 1fr; gap: 40px; }
  .dev.alt.deck .dev-pin { grid-template-columns: 1fr; }
  .dev.alt.deck .dev-side { order: 0; }
  .dev.deck .dev-list, .deck .dev-side .dyn-cta { display: none; }
  .deck .dp-cta { display: inline-flex; }
  .dev.deck .dev-stage { display: grid; height: auto; gap: 16px; }
  .dev.deck .dpanel { position: relative; transform: none !important; opacity: 1 !important; }
  .v-sec { grid-template-columns: 1fr; }
  .viz .codebg { display: none; }
  .dev .enter { margin-top: 40px; }
  .dev .flow { grid-template-columns: 1fr; gap: 16px; }
  .dev .flow::before { left: 40px; right: auto; top: 24px; bottom: 24px; border-top: 0; border-left: 2px dashed rgba(255,255,255,.2); transform-origin: 50% 0; transform: scaleY(var(--q, 1)); }
}

/* ---------- S5 mcplace ---------- */
/* MCPlace na marca dele (pino 8): fundo grafite com grade de 46 px, ciano, Space Grotesk.
   Cores de MCPlace apps/dashboard/src/app/tokens.css. Unica secao fora da marca NovArc, de proposito. */
.sec.mcp { background: #0C0B0A; color: #B2ACA4; font-family: "Space Grotesk", system-ui, sans-serif; overflow: hidden; }
/* a mascara fica parada no pai; so o filho anda, por transform, um passo de grade e volta sem salto */
.mcp-grid { position: absolute; inset: 0; overflow: hidden; -webkit-mask-image: radial-gradient(120% 90% at 30% 0%, #000 30%, transparent 78%); mask-image: radial-gradient(120% 90% at 30% 0%, #000 30%, transparent 78%); }
.mcp-grid i { position: absolute; inset: -46px 0 0 -46px; background-image: linear-gradient(#171512 1px, transparent 1px), linear-gradient(90deg, #171512 1px, transparent 1px); background-size: 46px 46px; animation: mcpgrid 24s linear infinite; }
@keyframes mcpgrid { to { transform: translate(46px, 46px); } }
.mcp-wrap { position: relative; padding-inline: max(80px, calc((100cqi - 1440px) / 2)); display: grid; gap: 48px; }
.mcp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mcp-eyebrow { font: 500 11px "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: #918B84; }
.mcp-logo { display: inline-flex; align-items: center; gap: 13px; color: #F5F2EE; font-size: 22px; letter-spacing: -0.035em; }
.mcp-logo > span { font-weight: 400; color: #B2ACA4; }
.mcp-logo b { font-weight: 700; color: #F5F2EE; }
.mcp-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.site .mcp-h { font: 700 40px/1.05 "Space Grotesk", system-ui, sans-serif; letter-spacing: -0.03em; color: #F5F2EE; }
.site .mcp-p { font-size: 16px; line-height: 1.6; color: #B2ACA4; margin-top: 18px; max-width: 34em; }
.mcp-ctas { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.mcp-btn { text-decoration: none; height: 44px; padding: 0 18px; border-radius: 8px; background: #0FB8D4; color: #04222A; font: 600 15px "Space Grotesk", system-ui, sans-serif; display: inline-flex; align-items: center; white-space: nowrap; transition: background-color 150ms; }
.mcp-btn:hover { background: #3ACFE8; }
.mcp-btn.ghost { background: transparent; color: #F5F2EE; box-shadow: inset 0 0 0 1px #2A2724; }
.mcp-btn.ghost:hover { background: #141312; }
.mcp-btn:focus-visible { border-radius: 8px; box-shadow: 0 0 0 3px rgba(15, 184, 212, .45); }
.mcp-perks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 20px; flex-wrap: wrap; font: 400 12px "JetBrains Mono", monospace; color: #918B84; }
.mcp-perks li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 1px; background: #0FB8D4; margin-right: 8px; vertical-align: 1px; }
.mcp-art { position: relative; width: 600px; height: 380px; }
/* largura igual ao viewBox (560): no canvas o svg tinha 600 px e o meet centralizava, deslocando os cabos 20 px dos nos */
.cables { position: absolute; left: 0; top: 0; width: 560px; height: 360px; max-width: none; overflow: visible; }
/* o cabo se desenha com a rolagem: pathLength 1, offset de 1 (vazio) a 0 (cheio) */
.cab { fill: none; stroke: #0FB8D4; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--q, 1)); }
.flowdash { fill: none; stroke: #3ACFE8; stroke-width: 4; stroke-linecap: round; stroke-dasharray: .05 .95; animation: mcpflow 2.4s linear infinite; opacity: var(--q, 1); }
.flowdash.d2 { animation-delay: -1.2s; }
@keyframes mcpflow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.node { position: absolute; height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 9999px; background: #141312; box-shadow: inset 0 0 0 1px #2A2724; color: #F5F2EE; font: 500 13px "JetBrains Mono", monospace; white-space: nowrap; }
.node.store { box-shadow: inset 0 0 0 1px #17414A; }
/* tomada: brilho fixo no proprio elemento, o pulso e a opacidade de um pseudo (o canvas animava box-shadow) */
.plug { position: absolute; width: 80px; height: 80px; border-radius: 22%; background: #0FB8D4; display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(15,184,212,.10), 0 20px 50px rgba(15,184,212,.20); }
.plug::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 14px rgba(15,184,212,.06), 0 20px 60px rgba(15,184,212,.35); opacity: 0; animation: mcpplug 2.4s ease-in-out infinite; }
@keyframes mcpplug { 50% { opacity: 1; } }
.plug svg { position: relative; width: 56px; height: 56px; }
/* palpebras: piscam a cada 5,5 s */
.lid { transform-box: fill-box; transform-origin: center; transform: scaleY(0); animation: mcpblink 5.5s infinite; }
@keyframes mcpblink { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }
.mcp-term { position: absolute; left: 330px; top: 250px; width: 270px; background: #141312; border-radius: 12px; box-shadow: inset 0 0 0 1px #2A2724, 0 24px 64px rgba(0,0,0,.55); transform: translateY(calc((1 - var(--q, 1)) * 40px)); opacity: var(--q, 1); }
.mt-h { display: flex; gap: 6px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #201E1C; }
.mt-h i { width: 8px; height: 8px; border-radius: 50%; background: #2A2724; }
.mt-h span { margin-left: 8px; font: 500 11px "JetBrains Mono", monospace; color: #918B84; }
.mcp-term pre { margin: 0; padding: 12px 14px; font: 400 12px/1.75 "JetBrains Mono", monospace; color: #B2ACA4; white-space: pre-wrap; }
.mcp-term .u { color: #3ACFE8; }
.mcp-term .c { color: #918B84; }
.mcp-term .r { color: #F5F2EE; }
.mcp-term .c, .mcp-term .r, .mcaret { transition: opacity 400ms; }
.mcaret { display: inline-block; width: 7px; height: 14px; background: #0FB8D4; vertical-align: -2px; margin-left: 4px; animation: blink 1.05s steps(1) infinite; }
/* mcplace.js poe .wait so com movimento ligado: chamada e resposta esperam o cabo e a digitacao */
.live .mcp-term pre.wait .c, .live .mcp-term pre.wait .r, .live .mcp-term pre.wait .mcaret { opacity: 0; }
/* movimento reduzido, inclusive se a preferencia mudar com a pagina aberta: quadro final, venha o --q que vier */
@media (prefers-reduced-motion: reduce) {
  .flowdash { display: none; }
  .cab { stroke-dashoffset: 0; }
  .mcp-term { transform: none; opacity: 1; }
  .live .mcp-term pre.wait .c, .live .mcp-term pre.wait .r, .live .mcp-term pre.wait .mcaret { opacity: 1; }
}
/* desktop estreito: ate 1361 px a coluna 1.1fr fica menor que 600 px ((W - 160 - 56) * 1.1 / 2.1 < 600) */
@container (min-width: 1101px) and (max-width: 1361px) {
  .mcp-hero { grid-template-columns: 1fr auto; }
  .mcp-art { zoom: .78; }
}
@container (min-width: 641px) and (max-width: 1100px) {
  .mcp-wrap { padding-inline: 40px; }
  .mcp-hero { grid-template-columns: 1fr; gap: 40px; }
  .mcp-art { zoom: .9; }
}
@container (max-width: 640px) {
  .mcp-wrap { padding-inline: 20px; gap: 32px; }
  .mcp-hero { grid-template-columns: 1fr; gap: 32px; }
  .site .mcp-h { font-size: 28px; }
  .mcp-art { zoom: .56; }
}
/* 360 px: 56% passaria de 320 px de conteudo */
@container (max-width: 380px) { .mcp-art { zoom: .52; } }

/* ---------- S6 projetos, ajuda, processo, faq ---------- */
/* projetos: grade 2 por 2 parada, sem rolagem; so as mini-telas seguem em loop (pin 9) */
.cases-sec { overflow: clip; }
.xgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.xcase { background: var(--white); border-radius: var(--radius-panel); box-shadow: var(--shadow-card), 0 0 0 1px var(--border-soft); overflow: hidden; display: flex; flex-direction: column; }
.xviz { position: relative; height: 220px; background: var(--gray-50); border-bottom: 1px solid var(--border-soft); overflow: hidden; }
.xbody { padding: 28px; display: grid; gap: 14px; }
.xbody .sector { font: 500 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.xbody h3 { font-size: 20px; line-height: 1.35; letter-spacing: -0.015em; }
.xbody dl { margin: 0; display: grid; gap: 12px; font-size: 14px; line-height: 1.5; }
.xbody dt { font: 500 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--signal-600); margin-bottom: 2px; }
.xbody dd { margin: 0; }
.xcase.xnext { background: var(--navy-900); color: var(--navy-100); padding: 48px; justify-content: center; gap: 20px; align-items: flex-start; }
.site .xcase.xnext h3 { color: var(--white); font-size: 32px; line-height: 1.15; letter-spacing: -0.025em; }
/* mini-telas: so transform e opacity; o estado sem animacao e um quadro completo */
.seats { position: absolute; left: 28px; top: 34px; display: grid; grid-template-columns: repeat(6, 18px); gap: 10px; }
.seats i { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--signal-100); }
.seats i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--signal-500); animation: x-seat 4.5s ease-in-out infinite; }
.seats i:nth-child(3n)::after { animation-delay: .3s; } .seats i:nth-child(3n+1)::after { animation-delay: .7s; } .seats i:nth-child(4n)::after { animation-delay: 1.1s; }
@keyframes x-seat { 0%, 10% { opacity: 0; } 35%, 85% { opacity: 1; } 100% { opacity: 0; } }
.prcard { position: absolute; right: 28px; top: 70px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-raised), 0 0 0 1px var(--border-soft); padding: 12px 16px; display: flex; gap: 10px; align-items: center; animation: float2 5s ease-in-out infinite alternate; }
.prcard b { color: var(--navy-900); font-size: 14px; }
.prcard em { font-style: normal; }
@keyframes float2 { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
.sheet { position: absolute; left: 28px; top: 26px; width: 110px; height: 156px; background: var(--white); border-radius: 4px; box-shadow: var(--shadow-card), 0 0 0 1px var(--border-soft); padding: 14px; display: grid; gap: 8px; align-content: start; overflow: hidden; }
.sheet i { height: 6px; background: var(--gray-200); border-radius: 2px; }
.sheet i:nth-child(2) { width: 70%; } .sheet i:nth-child(4) { width: 55%; }
.sheet .draw { position: absolute; left: 10px; right: 10px; top: 10px; height: 36px; background: rgba(10,108,255,.08); border: 2px dashed var(--signal-500); border-radius: 4px; animation: x-scan 3s ease-in-out infinite; }
@keyframes x-scan { 50% { transform: translateY(94px); } }
.arrow { position: absolute; left: 158px; top: 92px; display: flex; gap: 2px; }
.arrow .slash { height: 18px; margin: 0; animation: arrowp 1.2s ease-in-out infinite; }
.arrow .slash:nth-child(2) { animation-delay: .2s; } .arrow .slash:nth-child(3) { animation-delay: .4s; }
@keyframes arrowp { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.qt { position: absolute; right: 28px; top: 26px; width: 240px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-raised), 0 0 0 1px var(--border-soft); overflow: hidden; }
.qt div { display: flex; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--border-soft); font-size: 13px; animation: rowin 6s ease-in-out infinite; }
.qt div:nth-child(2) { animation-delay: .3s; } .qt div:nth-child(3) { animation-delay: .6s; } .qt div:nth-child(4) { animation-delay: .9s; }
@keyframes rowin { 0% { opacity: 0; transform: translateX(-12px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.qt b { font: 500 13px var(--font-mono); color: var(--navy-900); }
.qt .tot { background: var(--navy-900); color: var(--white); border-bottom: 0; }
.qt .tot b { color: var(--signal-300); }
.tiles { position: absolute; left: 24px; right: 24px; top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles div { background: var(--white); border-radius: 10px; box-shadow: var(--shadow-card), 0 0 0 1px var(--border-soft); padding: 10px 12px; display: grid; }
.tiles small { font: 500 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.tiles b { font-size: 22px; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.tiles b.w { color: var(--warning-600); }
.bars { position: absolute; left: 24px; right: 24px; bottom: 34px; height: 80px; display: flex; align-items: flex-end; gap: 10px; }
.bars i { flex: 1; height: var(--h); background: var(--signal-500); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: bargrow 3s ease-in-out infinite alternate; }
.bars i:nth-child(odd) { animation-delay: .4s; background: var(--signal-300); }
@keyframes bargrow { from { transform: scaleY(.55); } to { transform: none; } }

/* como podemos te ajudar: calmo (pin 10). Um fade por cartao, graficos parados, hover levanta e acende a borda. Sem data-tilt. */
.fcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fcard { position: relative; background: var(--white); border-radius: var(--radius-panel); box-shadow: var(--shadow-card), 0 0 0 1px var(--border-soft); padding: 28px; display: grid; gap: 20px; align-content: start; transition: opacity 700ms ease var(--d, 0ms), transform 700ms cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), translate 200ms var(--ease); }
.fcard:nth-child(2) { --d: 80ms; } .fcard:nth-child(3) { --d: 160ms; } .fcard:nth-child(4) { --d: 240ms; }
/* esconder e instantaneo (transition: none no estado .pre); so a volta ao normal anima */
.fcard.pre { opacity: 0; transform: translateY(16px); transition: none; }
/* movimento reduzido ligado com a pagina aberta: o motor do S1 le a preferencia uma vez e deixa --q e rotate onde estavam.
   O estilo inline do motor perde para !important da folha, entao tudo volta ao quadro final. */
@media (prefers-reduced-motion: reduce) {
  .fcard.pre { opacity: 1; transform: none; }
  #processo [data-q], #perguntas [data-q] { --q: 1 !important; }
  #projetos [data-tilt] { rotate: none !important; }
}
/* destaque do hover: sombra e borda acesa num ::after que so muda de opacidade */
.fcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: var(--shadow-raised), 0 0 0 1px var(--signal-300); opacity: 0; transition: opacity 200ms var(--ease); }
.fcard.feat::after { box-shadow: var(--shadow-overlay), 0 0 0 1px var(--signal-500); }
.fcard:hover, .fcard:focus-within { translate: 0 -3px; }
.fcard:hover::after, .fcard:focus-within::after { opacity: 1; }
.fcard.feat { background: var(--navy-900); color: var(--navy-100); box-shadow: var(--shadow-raised); }
.fcard .more { justify-self: start; }
.fhead { display: grid; gap: 12px; }
.ftag { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--white); background: var(--navy-900); padding: 6px 12px; border-radius: var(--radius-pill); }
.ftag::before { content: ""; width: 3px; height: 12px; background: var(--signal-500); transform: skewX(-14deg); }
.fhead h3 { font-size: 20px; line-height: 1.35; letter-spacing: -0.015em; }
.fwhat { margin: 0; }
.fwhat dt { font: 500 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--signal-600); margin-bottom: 4px; }
.fwhat dd { margin: 0; font-size: 14px; line-height: 1.5; }
.fhow { display: grid; }
.fk2 { font: 500 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.frow { display: grid; gap: 2px; padding-block: 10px; border-top: 1px solid var(--border-soft); }
.frow b { color: var(--navy-900); font-size: 15px; }
.frow span { font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.fcard.feat .ftag { background: var(--signal-500); }
.fcard.feat .ftag::before { background: var(--white); }
.site .fcard.feat h3, .fcard.feat .frow b { color: var(--white); }
.fcard.feat .fwhat dt { color: var(--signal-300); }
.fcard.feat .fk2, .fcard.feat .frow span { color: var(--navy-300); }
.fcard.feat .frow { border-top-color: var(--border-on-dark); }
.site .unsure { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
/* graficos no quadro final, sem --q: nada os monta na rolagem */
.hviz { height: 96px; margin-bottom: 8px; position: relative; }
.h-seats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-content: center; }
.h-seats i { aspect-ratio: 1; max-width: 100%; border-radius: 50%; background: var(--gray-200); }
.h-seats i:nth-child(-n+11) { background: var(--signal-500); }
.h-ring { display: flex; align-items: center; }
.h-ring i { width: 88px; height: 88px; border-radius: 50%; background: conic-gradient(var(--signal-500) 300deg, var(--gray-200) 0); -webkit-mask: radial-gradient(farthest-side, transparent 68%, #000 70%); mask: radial-gradient(farthest-side, transparent 68%, #000 70%); }
.h-ring span { position: absolute; left: 44px; top: 50%; transform: translate(-50%, -50%); font: 500 12px var(--font-mono); color: var(--navy-900); }
.h-hours { display: flex; align-items: flex-end; gap: 8px; }
.h-hours i { flex: 1; height: var(--h); background: var(--signal-500); border-radius: 3px 3px 0 0; }
.h-hours i.roll { background: var(--signal-300); }
.h-hours em { position: absolute; left: 0; right: 0; bottom: 80%; border-top: 1px dashed rgba(255,255,255,.5); }
.h-cto { font: 500 10px var(--font-mono); }
.h-cto svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-cto path { fill: none; stroke: var(--gray-300); stroke-width: 2; }
.h-cto span { position: absolute; z-index: 1; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--gray-100); color: var(--navy-900); white-space: nowrap; transform: translateX(-50%); }
.h-cto .c-you { left: 50%; top: 0; }
.h-cto .c-cto { left: 50%; top: 24px; background: var(--signal-500); color: var(--white); box-shadow: 0 0 0 5px rgba(10,108,255,.15); }
.h-cto .c-a { left: 16.7%; top: 70px; } .h-cto .c-b { left: 50%; top: 70px; } .h-cto .c-c { left: 83.3%; top: 70px; }

/* como trabalhamos: a linha enche e os numerais acendem com o --q do motor (sem JS, --q = 1: tudo aceso) */
.track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.track-line { position: absolute; left: 8px; right: 0; top: 79px; height: 2px; background: var(--gray-200); }
.track-line i { position: absolute; inset: 0; background: var(--signal-500); transform-origin: 0 50%; transform: scaleX(var(--q, 1)); }
.tstep { display: grid; gap: 14px; align-content: start; justify-items: start; }
.tnum { font: 700 56px/1 var(--font-sans); letter-spacing: -0.03em; color: var(--signal-500); opacity: calc(.2 + var(--q, 1) * .8); }
.tdot { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 3px var(--gray-300); }
.tdot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--signal-500); transform: scale(var(--q, 1)); box-shadow: 0 0 0 5px rgba(10,108,255,.15); }
.tstep h3 { font-size: 20px; line-height: 1.35; letter-spacing: -0.015em; }
.tstep p { font-size: 14px; line-height: 1.5; }
.tstep em { font-style: normal; }

/* perguntas: details nativo (Enter e Espaco de graca); "+" gira para "x"; cartao lateral sticky so no desktop */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.faq-side { display: grid; gap: 32px; align-content: start; align-self: start; position: sticky; top: 100px; }
.faq-side .sh { margin-bottom: 0; }
.ask { background: var(--navy-900); color: var(--navy-100); border-radius: var(--radius-panel); padding: 28px; display: grid; gap: 12px; justify-items: start; }
.ask b { color: var(--white); font-size: 20px; letter-spacing: -0.015em; }
.faq details { border-bottom: 1px solid var(--border-soft); padding-block: 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; color: var(--navy-900); font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 500 20px/1 var(--font-mono); color: var(--signal-500); transition: transform 280ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--signal-600); }
.faq details p { margin-top: 10px; font-size: 16px; max-width: 46em; }
.faq details[open] p { animation: fadeup 400ms var(--ease) both; }

@container (min-width: 641px) and (max-width: 1100px) {
  .xgrid { grid-template-columns: 1fr; }
  .fcards { grid-template-columns: 1fr 1fr; }
  .track { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .track-line { display: none; }
  .faq { grid-template-columns: 1fr; gap: 40px; }
  .faq-side { position: static; }
}
@container (max-width: 640px) {
  .xgrid { grid-template-columns: 1fr; gap: 16px; }
  .xviz { zoom: .8; }
  /* mini-telas sem sobreposicao: no Varejo o cartao desce para baixo dos assentos; na Engenharia sai a seta e a tabela estreita */
  .x-train .prcard { top: auto; bottom: 34px; }
  .x-pdf .arrow { display: none; }
  .x-pdf .qt { width: 200px; }
  .xcase.xnext { padding: 28px; }
  .fcards { grid-template-columns: 1fr; gap: 16px; }
  .fcard { padding: 24px; }
  .track { grid-template-columns: 1fr; gap: 28px; }
  .track-line { display: none; }
  .faq { grid-template-columns: 1fr; gap: 40px; }
  .faq-side { position: static; }
}

/* ---------- S7 contato ---------- */
.contact-sec { overflow: clip; }
/* barras ao fundo: mesmas do S4, reaproveita @keyframes dv-drift */
.contact-sec .slashfield { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.contact-sec .slashfield i { position: absolute; top: -20%; height: 140%; background: rgba(10,108,255,.07); transform: skewX(-14deg); }
.contact-sec .slashfield i:nth-child(1) { left: 6%; width: 70px; }
.contact-sec .slashfield i:nth-child(2) { left: 28%; width: 16px; background: rgba(10,108,255,.12); }
.contact-sec .slashfield i:nth-child(3) { left: 55%; width: 120px; background: rgba(10,108,255,.05); }
.contact-sec .slashfield i:nth-child(4) { left: 78%; width: 8px; background: rgba(107,166,255,.14); }
.contact-sec .slashfield i:nth-child(5) { left: 92%; width: 44px; }
.live .contact-sec .slashfield i { animation: dv-drift 18s linear infinite alternate; }
.live .contact-sec .slashfield i:nth-child(odd) { animation-direction: alternate-reverse; }
.live .contact-sec .slashfield i:nth-child(1) { animation-duration: 22s; } .live .contact-sec .slashfield i:nth-child(2) { animation-duration: 16s; }
.live .contact-sec .slashfield i:nth-child(3) { animation-duration: 26s; } .live .contact-sec .slashfield i:nth-child(4) { animation-duration: 14s; }
.live .contact-sec .slashfield i:nth-child(5) { animation-duration: 20s; }

#contato .contact { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
#contato .sh { margin: 0; }
/* "o que acontece depois": escopado em #contato (o S6 usa .xcase.xnext) */
#contato .next { list-style: none; margin: 40px 0 0; padding: 0 0 0 30px; display: grid; gap: 22px; position: relative; }
#contato .next::before, #contato .next::after { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: rgba(255,255,255,.15); }
#contato .next::after { background: var(--signal-500); transform-origin: 50% 0; transform: scaleY(var(--q, 1)); }
#contato .next li { position: relative; display: grid; gap: 2px; opacity: calc(.3 + var(--q, 1) * .7); }
#contato .next li::before { content: ""; position: absolute; left: -30px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--navy-900); box-shadow: inset 0 0 0 2px var(--signal-500); z-index: 1; }
#contato .next b { color: var(--white); }
#contato .next span { color: var(--navy-100); font-size: 14px; }

/* cartao: sem display aqui, para o atributo hidden (sem JS) valer */
#contato .form { position: relative; background: var(--white); border-radius: var(--radius-panel); box-shadow: var(--shadow-overlay); padding: 32px; color: var(--text-body); }
#contato .form-body, #contato .nojs { display: grid; gap: 16px; }
#contato .nojs b { color: var(--navy-900); font-size: 20px; }
#contato .field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--navy-900); }
#contato .field input, #contato .field textarea { font: 400 16px var(--font-sans); color: var(--navy-900); border: 1px solid var(--border-soft-hover); border-radius: var(--radius-control); padding: 0 14px; height: 48px; background: var(--white); width: 100%; }
#contato .field textarea { height: 96px; padding: 12px 14px; resize: none; }
#contato .field input:focus, #contato .field textarea:focus { outline: none; border-color: var(--signal-500); box-shadow: var(--shadow-focus); }
#contato .field small { font-weight: 400; color: var(--text-muted); margin-left: 6px; }
#contato .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#contato .interest { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
#contato .interest legend { font-size: 14px; font-weight: 500; color: var(--navy-900); margin-bottom: 6px; padding: 0; }
#contato .interest label { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--border-soft-hover); font-size: 14px; cursor: pointer; color: var(--navy-900); }
#contato .interest input { accent-color: var(--signal-500); margin: 0; }
#contato .interest label:has(input:checked) { background: var(--signal-100); box-shadow: inset 0 0 0 1px var(--signal-300); }
#contato .interest label:has(input:focus-visible) { box-shadow: inset 0 0 0 1px var(--signal-300), var(--shadow-focus); }
#contato .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
#contato .consent input { margin-top: 3px; accent-color: var(--signal-500); }
#contato .consent a, #contato .alt a, #contato .form-status a { color: var(--signal-500); }
#contato .alt { font-size: 14px; text-align: center; color: var(--text-muted); }
/* Turnstile: largura do cartao; o espaco acima so existe quando o widget aparece (desafio ou erro) */
#contato .cf-turnstile.on { margin-top: 12px; }
/* role="alert" fica sempre na arvore (sem display: none) para o leitor de tela anunciar o texto novo */
#contato .form-status { font-size: 14px; color: var(--danger-600); }
#contato .form-status:not(:empty) { margin-top: 12px; }
#contato .form-status a { font-weight: 600; }
#contato .form-body > .btn, #contato .nojs .btn { width: 100%; }
#contato .btn[aria-disabled="true"] { opacity: .7; cursor: progress; transform: none; }

/* "Recebido": cobre o cartao; o form-body fica inert por baixo */
#contato .sent-state { position: absolute; inset: 0; background: var(--white); border-radius: var(--radius-panel); display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 32px; opacity: 0; pointer-events: none; transform: scale(.96); transition: opacity 300ms, transform 300ms; }
#contato .form.sent .sent-state { opacity: 1; pointer-events: auto; transform: none; }
#contato .okmark { width: 64px; height: 64px; border-radius: 50%; background: var(--signal-500); position: relative; box-shadow: var(--shadow-accent); }
#contato .okmark::after { content: ""; position: absolute; left: 24px; top: 14px; width: 14px; height: 26px; border: solid var(--white); border-width: 0 4px 4px 0; transform: rotate(45deg); }
#contato .form.sent .okmark { animation: s7-pop 500ms var(--ease) both; }
@keyframes s7-pop { from { transform: scale(.4); opacity: 0; } }
#contato .sent-state b { color: var(--navy-900); font-size: 20px; outline: none; }

/* entrada suave do cartao: 28 px, 800 ms, sem rotacao (substitui o .rv do S1 aqui) */
#contato .form.rv { transform: translateY(calc((1 - var(--q, 1)) * 28px)); opacity: calc(.1 + var(--q, 1) * .9); }
.live #contato .form.rv { transition: transform 800ms cubic-bezier(.2, .7, .2, 1), opacity 800ms ease; }
.live #contato .next li, .live #contato .sh > * { transition: transform 700ms cubic-bezier(.2, .7, .2, 1), opacity 700ms ease; }
.live #contato .next::after { transition: transform 900ms cubic-bezier(.2, .7, .2, 1); }

@container (max-width: 1100px) {
  #contato .contact { grid-template-columns: 1fr; gap: 40px; }
}
@container (max-width: 640px) {
  #contato .form { padding: 24px; }
  #contato .row2 { grid-template-columns: 1fr; }
}

/* paginas de apoio: privacidade e 404 */
.legal-top { display: flex; align-items: center; height: 76px; border-bottom: 1px solid var(--border-soft); }
.legal-top svg { width: 120px; height: auto; }
.legal-body { max-width: calc(760px + 160px); padding-block: 64px 96px; display: grid; gap: 14px; }
.legal-body h2 { font-size: 20px; line-height: 1.3; margin-top: 24px; }
.legal-body ul { margin: 0; padding-left: 22px; }
.legal-body a:not(.more) { color: var(--signal-500); font-weight: 600; }
.legal-body .updated { font-size: 13px; color: var(--text-muted); }
.nf { min-height: 100vh; display: grid; place-content: center; justify-items: start; gap: 20px; }
.nf svg { width: 140px; height: auto; margin-bottom: 24px; }
@container (max-width: 640px) { .legal-top { height: 64px; } .legal-body { padding-block: 40px 64px; } }
