/* ═══════════════════════════════════════════════════════════════
   YNCODEX — apresentação narrada pelo Jorginho
   Sem rolagem: a câmera desliza de cena em cena enquanto ela fala.
   Tokens no topo. Tema único preto, deliberado.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --preto:          #000000;
  --superficie:     #0A0A10;
  --superficie-2:   #111119;
  --linha:          rgba(255, 255, 255, .08);
  --linha-2:        rgba(255, 255, 255, .16);

  --violeta:        #5B2FFF;   /* cor da marca */
  --violeta-claro:  #8C6BFF;
  --violeta-palido: #C8BBFF;
  --violeta-fundo:  rgba(91, 47, 255, .14);

  --texto:          #F3F2F8;
  --suave:          #A3A0B8;
  --apagado:        #625F75;
  --ok:             #2BD9A0;

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-texto:   "Geist", "Segoe UI", system-ui, sans-serif;
  --f-mono:    "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --pad-x:      clamp(20px, 6vw, 112px);
  --pad-top:    clamp(80px, 11vh, 120px);
  --pad-bottom: clamp(168px, 21vh, 220px);   /* espaço da legenda + controles */

  /* O Jorginho: grande na abertura, de corpo inteiro no canto depois */
  --orbe:   min(50vh, 38vw);
  --orbe-y: 40vh;
  --lhama-w: clamp(110px, 11.5vw, 200px);
  --lhama-proporcao: 0.797;   /* = largura/altura dos vídeos de corpo inteiro (480×602) */
  --busto: min(38vh, 34vw);   /* quadro de frente, do peito para cima, na borda de baixo */
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }

body {
  margin: 0;
  background: var(--preto);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
::selection { background: var(--violeta); color: #fff; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--violeta-claro); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Palco ─────────────────────────────────────────────────── */
.palco { position: fixed; inset: 0; overflow: hidden; }
.track { display: flex; height: 100%; width: max-content; will-change: transform; }

.cena {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  overflow: hidden;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  display: flex;
  align-items: center;
}

.fundo-palavra {
  position: absolute;
  left: var(--pad-x);
  bottom: -.16em;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(120px, 23vw, 440px);
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
  color: rgba(91, 47, 255, .085);
  transform: translateX(var(--px, 0px));
  pointer-events: none;
  user-select: none;
}

/* ── Tipografia comum ──────────────────────────────────────── */
.etiqueta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--suave);
}
.titulo {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 54px);
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
  max-width: 22ch;
}
.corpo { color: var(--suave); font-size: clamp(15px, 1.1vw, 18px); max-width: 52ch; }

.lista { display: grid; gap: 9px; }
.lista li { display: flex; align-items: baseline; gap: 12px; font-size: clamp(14px, 1vw, 16px); }
.lista li::before {
  content: ""; flex: 0 0 auto; width: 14px; height: 1px;
  background: var(--violeta-claro); transform: translateY(-4px);
}

.texto-col { display: flex; flex-direction: column; gap: clamp(12px, 2.2vh, 24px); min-width: 0; }
.duas-col {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 110px); align-items: center;
}
.col-inversa { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.cabeca { display: flex; flex-direction: column; gap: 16px; }

/* ── Topo ──────────────────────────────────────────────────── */
.hud {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(clamp(18px, 3.4vh, 34px) + env(safe-area-inset-top, 0px)) var(--pad-x) 0;
  pointer-events: none;
}
.hud-marca { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: .06em; }
.hud-marca span { color: var(--violeta); }
.hud-dominio { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--apagado); }

/* ── Jorginho ──────────────────────────────────────────────── */
/* De frente: grande no centro na abertura; nos capítulos, do peito para cima na borda de baixo.
   A posição e o tamanho são controlados pelo app.js. */
.jorginho-frente {
  position: fixed; z-index: 21; left: 0; top: 0;
  width: var(--busto); aspect-ratio: 1;
  pointer-events: none; will-change: transform;
}
.jorginho-frente::before {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -6%; height: 14%;
  background: radial-gradient(closest-side, rgba(91, 47, 255, .45), rgba(91, 47, 255, 0));
  filter: blur(6px); opacity: 0; transition: opacity .6s ease;
}
.jorginho-frente.centro::before { opacity: 1; }
/* no centro o quadro termina no peito: some aos poucos em vez de cortar numa linha */
.jorginho-frente.centro canvas { -webkit-mask-image: linear-gradient(#000 72%, transparent 98%); mask-image: linear-gradient(#000 72%, transparent 98%); }
/* de corpo inteiro, só enquanto anda de um capítulo ao outro */
.jorginho-corpo {
  position: fixed; z-index: 21; left: 0;
  bottom: calc(clamp(60px, 9vh, 82px) + env(safe-area-inset-bottom, 0px));
  width: var(--lhama-w); aspect-ratio: var(--lhama-proporcao);
  pointer-events: none; visibility: hidden; will-change: transform;
}
.jorginho-corpo::before {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -2%; height: 14%;
  background: radial-gradient(closest-side, rgba(91, 47, 255, .45), rgba(91, 47, 255, 0));
  filter: blur(6px);
}
.jorginho-frente canvas, .jorginho-corpo canvas { position: relative; display: block; width: 100%; height: 100%; }
.sem-lhama .jorginho-frente, .sem-lhama .jorginho-corpo { display: none; }

/* "puf" da troca de roupa */
.puf {
  position: fixed; z-index: 22; width: 220px; height: 220px; margin: -110px 0 0 -110px;
  border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(140, 107, 255, .7) 35%, rgba(91, 47, 255, 0));
}
.puf-brilho {
  position: fixed; z-index: 22; width: 10px; height: 10px; margin: -5px 0 0 -5px; pointer-events: none;
  background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  box-shadow: 0 0 12px var(--violeta-claro);
}
/* o vídeo da abertura corta no peito: some aos poucos em vez de terminar numa linha */
.jorginho-intro canvas { -webkit-mask-image: linear-gradient(#000 72%, transparent 98%); mask-image: linear-gradient(#000 72%, transparent 98%); }
.sem-lhama .jorginho-intro, .sem-lhama .jorginho-corpo, .sem-lhama .jorginho-rosto { display: none; }

/* ── Legenda ───────────────────────────────────────────────── */
.legenda {
  position: fixed; z-index: 20;
  left: calc(var(--pad-x) + var(--lhama-w) * .92);
  right: var(--pad-x);
  bottom: calc(clamp(62px, 9vh, 84px) + env(safe-area-inset-bottom, 0px));
  max-width: 900px;
  display: flex; flex-direction: column; gap: 5px;
  pointer-events: none;
  opacity: 0;
}
/* quando o Jorginho está na metade direita, a legenda fica à esquerda dele, alinhada nele */
.legenda[data-lado="e"]:not(.grande) { align-items: flex-end; text-align: right; }
.legenda-nome { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--violeta-claro); }
.legenda-texto {
  font-size: clamp(15px, 1.22vw, 20px); line-height: 1.45; color: var(--texto);
  min-height: 2.9em;
}
/* a frase se escreve conforme ele fala: cada palavra só surge quando é dita */
.legenda-texto .w {
  display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(5px);
  transition: opacity .28s ease, transform .35s cubic-bezier(.2, .8, .2, 1), filter .3s ease;
}
.legenda-texto .w.on { opacity: 1; transform: none; filter: none; }
.legenda-texto .w.marca { color: var(--violeta-claro); font-weight: 600; }

.legenda.grande {
  left: 50%; right: auto;
  width: min(1040px, calc(100vw - 2 * var(--pad-x)));
  max-width: none;
  transform: translateX(-50%);
  bottom: auto;
  top: calc(var(--orbe-y) + var(--orbe) / 2 + 3vh);
  align-items: center; text-align: center; gap: 12px;
}
.legenda.grande .legenda-texto {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(19px, 2vw, 36px); line-height: 1.32; letter-spacing: -.015em;
  min-height: 2.64em;
  text-wrap: balance;
}
.legenda.grande .w.marca { font-weight: 700; }

/* ── Entrada ───────────────────────────────────────────────── */
.portao {
  position: fixed; z-index: 40; inset: 0;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding-top: calc(var(--orbe-y) + var(--orbe) / 2 + 4vh);
  text-align: center;
  opacity: 0;
}
.portao:focus-visible { outline: none; }
.portao:focus-visible .portao-chamada { text-decoration: underline; text-decoration-color: var(--violeta); text-underline-offset: 8px; }
.portao-chamada {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(18px, 1.8vw, 30px); letter-spacing: -.01em;
  animation: respirar 2.6s ease-in-out infinite;
}
.portao-sub { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--apagado); }
@keyframes respirar { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.chip-som {
  position: fixed; z-index: 31;
  top: calc(clamp(58px, 9vh, 84px) + env(safe-area-inset-top, 0px));
  right: var(--pad-x);
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--violeta); background: var(--violeta-fundo);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  animation: respirar 2.6s ease-in-out infinite;
}

/* ── Controles ─────────────────────────────────────────────── */
.controles {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: clamp(10px, 1.2vw, 16px);
  padding: 0 var(--pad-x) calc(clamp(16px, 3vh, 30px) + env(safe-area-inset-bottom, 0px));
  opacity: 0;
}
.ctl {
  flex: 0 0 auto; width: 36px; height: 36px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--linha-2); background: rgba(0, 0, 0, .55);
  transition: border-color .25s, background .25s;
}
.ctl:hover { border-color: var(--violeta-claro); }
.ctl svg { width: 14px; height: 14px; fill: currentColor; }
.ctl .i-play, .ctl .i-replay, .ctl .i-mudo { display: none; }
.ctl[data-estado="pausado"] .i-pausa, .ctl[data-estado="fim"] .i-pausa { display: none; }
.ctl[data-estado="pausado"] .i-play { display: block; }
.ctl[data-estado="fim"] .i-replay { display: block; }
.ctl[data-mudo="true"] .i-som { display: none; }
.ctl[data-mudo="true"] .i-mudo { display: block; }

.linha-tempo { position: relative; flex: 1; height: 24px; }
.linha-tempo::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--linha-2);
}
.lt-fill {
  position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: var(--violeta); box-shadow: 0 0 12px rgba(91, 47, 255, .8);
  transform-origin: left center; transform: scaleX(0);
}
.lt-cap {
  position: absolute; top: 50%; width: 9px; height: 9px; padding: 0;
  margin: -4.5px 0 0 -4.5px; border-radius: 50%; cursor: pointer;
  background: var(--preto); border: 1px solid var(--apagado);
  transition: background .3s, border-color .3s, transform .3s;
}
.lt-cap::before { content: ""; position: absolute; inset: -9px; }
.lt-cap:hover { transform: scale(1.4); border-color: var(--violeta-claro); }
.lt-cap.passou { background: var(--violeta); border-color: var(--violeta); }
.lt-cap::after {
  content: attr(data-rotulo);
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; pointer-events: none;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; background: var(--superficie-2); border: 1px solid var(--linha-2);
  opacity: 0; transition: opacity .2s;
}
.lt-cap:hover::after, .lt-cap:focus-visible::after { opacity: 1; }
.cap-atual {
  flex: 0 0 auto; min-width: 15ch;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--suave); white-space: nowrap;
}

/* ═══ 01 · INTRO ═════════════════════════════════════════════ */
.kw {
  position: absolute; z-index: 1;
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(14px, 1.3vw, 22px); letter-spacing: -.01em; color: var(--texto);
  white-space: nowrap;
}
.kw::after, .kw-2::before {
  content: ""; width: clamp(28px, 3vw, 56px); height: 1px;
  background: linear-gradient(90deg, rgba(140, 107, 255, 0), var(--violeta-claro));
}
.kw-2::after { display: none; }
.kw-2::before { background: linear-gradient(90deg, var(--violeta-claro), rgba(140, 107, 255, 0)); }
.kw-1 { top: calc(var(--orbe-y) - var(--orbe) * .3);  right: calc(50% + var(--orbe) * .58); }
.kw-2 { top: calc(var(--orbe-y) - .7em);              left:  calc(50% + var(--orbe) * .58); }
.kw-3 { top: calc(var(--orbe-y) + var(--orbe) * .22); right: calc(50% + var(--orbe) * .58); }

/* ═══ 02 · MARCA ═════════════════════════════════════════════ */
.c-marca { justify-content: center; }
.grade { position: absolute; inset: 0; pointer-events: none; }
.grade i { position: absolute; display: block; background: var(--linha); }
.g-v { top: 0; bottom: 0; width: 1px; transform-origin: top; }
.g-h { left: 0; right: 0; height: 1px; transform-origin: left; }

.marca-centro { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 4vh, 44px); }
.marca-centro::before {
  content: ""; position: absolute; z-index: -1; inset: -40% -12%;
  background: radial-gradient(ellipse 30% 45% at 88% 42%, rgba(91, 47, 255, .32), rgba(91, 47, 255, 0) 70%);
  pointer-events: none;
}
.wm {
  --wght: 800;
  display: flex; overflow: hidden;
  padding: .04em .02em .08em;
  font-family: var(--f-display);
  font-variation-settings: "wght" var(--wght);
  font-weight: 800;
  font-size: clamp(56px, 12.6vw, 260px);
  line-height: .92; letter-spacing: -.035em;
}
.wm-l { display: inline-block; will-change: transform; }
.wm-x { color: var(--violeta); }
.wm-tag {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(13px, 1.25vw, 21px); letter-spacing: -.01em; color: var(--suave); text-align: center;
}
.wm-tag i { font-style: normal; color: var(--violeta); }

/* ═══ 03 · PILARES ═══════════════════════════════════════════ */
.pilares-caixa { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; gap: clamp(28px, 6vh, 72px); }
.pilares-caixa .titulo { max-width: 26ch; }
.pilares { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 56px); }
.pilar { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
.pilar-linha { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--linha-2); transform-origin: left; }
.pilar-linha::after { content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 1px; background: var(--violeta); }
.pilar-n { font-family: var(--f-mono); font-size: 12px; color: var(--violeta-claro); letter-spacing: .1em; }
.pilar h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(17px, 1.55vw, 26px); letter-spacing: -.02em; line-height: 1.2; }
.pilar p { color: var(--suave); font-size: clamp(14px, 1.05vw, 17px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tags li { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--linha-2); color: var(--suave); }

/* ═══ 04 · DADOS ═════════════════════════════════════════════ */
.painel-card {
  display: flex; flex-direction: column; gap: clamp(10px, 1.8vh, 18px);
  padding: clamp(16px, 1.8vw, 24px);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--superficie-2), var(--superficie));
  border: 1px solid var(--linha-2);
  box-shadow: 0 40px 120px -40px rgba(91, 47, 255, .45);
}
.pc-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pc-titulo { font-family: var(--f-mono); font-size: 11.5px; color: var(--suave); letter-spacing: .04em; }
.chip { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; padding: 3px 9px; border-radius: 999px; color: var(--violeta-palido); background: var(--violeta-fundo); }
.fontes { display: flex; flex-wrap: wrap; gap: 6px; }
.fontes li {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--linha-2); color: var(--suave);
}
.fontes li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 11px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--linha); }
.kpi-r { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--apagado); }
.kpi-v { font-family: var(--f-display); font-weight: 600; font-size: clamp(16px, 1.55vw, 27px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-up { color: var(--ok); }
.grafico { display: block; width: 100%; height: clamp(110px, 22vh, 250px); overflow: visible; }
.grafico .g-grade { stroke: var(--linha); stroke-width: 1; vector-effect: non-scaling-stroke; }
.grafico .g-barra { fill: url(#gradBarra); }
.grafico .g-area  { fill: url(#gradArea); }
.grafico .g-linha { fill: none; stroke: var(--violeta-palido); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.meses { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); font-family: var(--f-mono); font-size: 10px; color: var(--apagado); text-align: center; text-transform: uppercase; }

/* ═══ 05 · SOFTWARE · telas de aplicativos SaaS ═══════════ */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); min-width: 0; }
.app {
  display: flex; flex-direction: column; min-width: 0;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, var(--superficie-2), var(--superficie));
  border: 1px solid var(--linha-2);
  box-shadow: 0 30px 80px -40px rgba(91, 47, 255, .55);
}
.app-topo { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--linha); background: rgba(255,255,255,.02); }
.app-topo i { width: 8px; height: 8px; border-radius: 50%; background: var(--superficie-2); border: 1px solid var(--linha-2); }
.app-topo span { margin-left: 6px; font-family: var(--f-display); font-weight: 600; font-size: clamp(11px, .85vw, 14px); letter-spacing: -.01em; }
.app-topo b {
  margin-left: auto; font-family: var(--f-mono); font-weight: 500; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--violeta-palido); background: var(--violeta-fundo); padding: 2px 7px; border-radius: 999px;
}
.app-corpo { display: flex; flex-direction: column; gap: 8px; padding: clamp(10px, 1vw, 14px); flex: 1; }
.app-titulo { font-family: var(--f-mono); font-size: 10.5px; color: var(--suave); letter-spacing: .04em; }
.app-linha {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid var(--linha);
  font-size: clamp(11px, .82vw, 13px);
}
.app-linha span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st { flex: 0 0 auto; font-style: normal; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.st-ok     { color: var(--ok); background: rgba(43, 217, 160, .12); }
.st-info   { color: var(--violeta-palido); background: var(--violeta-fundo); }
.st-alerta { color: #FFD166; background: rgba(255, 209, 102, .12); }
.rota { display: block; width: 100%; height: clamp(40px, 6vh, 56px); }
.produtos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prod { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 7px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid var(--linha); font-size: 11px; }
.prod-img { display: block; height: clamp(26px, 4vh, 40px); border-radius: 6px; }
.p1 { background: linear-gradient(135deg, #5B2FFF, #C8BBFF); }
.p2 { background: linear-gradient(135deg, #2A148A, #8C6BFF); }
.prod span { color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod b { font-family: var(--f-display); font-weight: 600; font-size: 12px; }
.botoes { display: flex; gap: 8px; }
.bt { flex: 1; text-align: center; padding: 6px 0; border-radius: 8px; font-size: 11.5px; font-weight: 500; border: 1px solid var(--linha-2); color: var(--suave); }
.bt-ok { background: var(--violeta); border-color: var(--violeta); color: #fff; }
.selos { display: flex; flex-wrap: wrap; gap: 8px; }
.selos li {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(91, 47, 255, .5); background: var(--violeta-fundo); color: var(--violeta-palido);
}
.selos li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violeta-claro); box-shadow: 0 0 8px var(--violeta-claro); }

/* ═══ 06 · IA · escritório virtual ═══════════════════════════ */
.col-ia { grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); gap: clamp(28px, 4vw, 72px); }
.destaque { font-family: var(--f-display); font-weight: 500; font-size: clamp(15px, 1.3vw, 22px); letter-spacing: -.015em; color: var(--violeta-claro); max-width: 30ch; }

.escritorio {
  position: relative; justify-self: end;
  width: min(100%, calc(60vh * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: 16px; overflow: hidden;
  background: #07061A; border: 1px solid var(--linha-2);
  box-shadow: 0 40px 120px -40px rgba(91, 47, 255, .6);
  container-type: inline-size;
}
.esc-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.esc-tags { position: absolute; inset: 0; pointer-events: none; }

.esc-tag {
  position: absolute; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: .1em;
  padding: .35em .65em; border-radius: 6px;
  background: rgba(6, 5, 20, .88); border: 1px solid rgba(43, 217, 160, .7);
  font-family: var(--f-mono); font-size: clamp(7px, 1.45cqw, 11px); line-height: 1.25; white-space: nowrap;
  opacity: 0; transition: opacity .35s ease;
}
.esc-tag b { font-weight: 500; color: var(--ok); text-transform: uppercase; letter-spacing: .08em; }
.esc-tag span { color: var(--violeta-palido); }
.esc-tag.on { opacity: 1; }
.esc-tag.destaque { border-color: var(--violeta-claro); box-shadow: 0 0 0 1px var(--violeta), 0 0 22px rgba(91, 47, 255, .8); }

/* luz roxa sobre o Jorginho que está sendo citado */
.esc-foco {
  position: absolute; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(140, 107, 255, .55), rgba(91, 47, 255, .18) 55%, rgba(91, 47, 255, 0));
  mix-blend-mode: screen; opacity: 0; transition: opacity .5s ease;
}
.esc-foco.on { opacity: 1; }

.esc-msg {
  position: absolute; transform: translateY(-50%);
  padding: .35em .65em; border-radius: 7px 7px 7px 2px;
  background: var(--violeta); color: #fff;
  font-family: var(--f-mono); font-size: clamp(7px, 1.35cqw, 10.5px); white-space: nowrap;
  box-shadow: 0 6px 20px rgba(91, 47, 255, .55);
  opacity: 0; transition: opacity .3s ease;
}
.esc-msg.on { opacity: 1; }

.esc-status {
  position: absolute; left: 2.5%; bottom: 4%;
  display: flex; align-items: center; gap: .5em;
  padding: .4em .8em; border-radius: 999px;
  background: rgba(6, 5, 20, .82); border: 1px solid var(--linha-2);
  font-family: var(--f-mono); font-size: clamp(7px, 1.3cqw, 10.5px); color: var(--suave); white-space: nowrap;
}
.esc-status i { width: .6em; height: .6em; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.esc-status b { color: var(--ok); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ═══ 07 · PROCESSO ══════════════════════════════════════════ */
.processo-caixa { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; gap: clamp(32px, 7vh, 84px); }
.passos-caixa { position: relative; }
.passos-linha {
  position: absolute; left: 0; right: 0; top: 6px; height: 1px;
  background: linear-gradient(90deg, var(--violeta), var(--violeta-claro) 60%, rgba(140, 107, 255, .15));
  transform-origin: left;
}
.passos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 48px); }
.passo { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 34px; }
.passo-ponto { position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--preto); border: 2px solid var(--violeta); box-shadow: 0 0 16px rgba(91, 47, 255, .7); }
.passo-n { font-family: var(--f-mono); font-size: 12px; color: var(--violeta-claro); letter-spacing: .1em; }
.passo h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(17px, 1.6vw, 28px); letter-spacing: -.02em; }
.passo p { color: var(--suave); font-size: clamp(14px, 1.02vw, 17px); max-width: 30ch; }

/* ═══ 08 · STACK ═════════════════════════════════════════════ */
.stack-caixa { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; gap: clamp(24px, 5vh, 64px); }
.faixas { display: flex; flex-direction: column; gap: clamp(6px, 1.4vh, 16px); margin: 0 calc(-1 * var(--pad-x)); }
.faixa { overflow: hidden; }
.faixa-trilho { display: flex; width: max-content; animation: faixa 46s linear infinite; }
.faixa-reversa .faixa-trilho { animation-direction: reverse; animation-duration: 54s; }
.faixa-item {
  display: inline-flex; align-items: center; gap: clamp(18px, 2.4vw, 40px);
  padding-right: clamp(18px, 2.4vw, 40px);
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(28px, 4.2vw, 78px); line-height: 1.12; letter-spacing: -.03em; white-space: nowrap;
}
.faixa-item::after { content: "/"; color: var(--violeta); font-weight: 200; }
.faixa-contorno .faixa-item { color: var(--violeta-claro); }
@keyframes faixa { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══ 09 · CONTATO ═══════════════════════════════════════════ */
.contato-caixa { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, 2.8vh, 30px); }
.contato-caixa::before {
  content: ""; position: absolute; z-index: -1; left: -10%; top: 10%; width: 90%; height: 60%;
  background: radial-gradient(ellipse at 45% 60%, rgba(91, 47, 255, .24), rgba(91, 47, 255, 0) 65%);
  pointer-events: none;
}
.contato-titulo { font-family: var(--f-display); font-weight: 700; font-size: clamp(48px, 8vw, 160px); line-height: .96; letter-spacing: -.045em; }
.ct-linha { display: block; overflow: hidden; padding-bottom: .06em; }
.ct-linha > span { display: inline-block; }
.ct-violeta { color: var(--violeta); }
.contato-corpo { max-width: 46ch; }
.cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 28px; border-radius: 999px;
  background: var(--violeta); color: #fff; text-decoration: none;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(14px, 1.15vw, 19px); letter-spacing: -.01em;
  box-shadow: 0 18px 60px -12px rgba(91, 47, 255, .8);
  transition: box-shadow .35s, background .35s;   /* transform fica com o GSAP: transição CSS nele trava a animação */
}
.cta:hover { background: #6A42FF; box-shadow: 0 24px 70px -10px rgba(91, 47, 255, 1); }
.cta span { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.cta:hover span { transform: translateX(5px); }
.rodape { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--apagado); }

/* ═══ Telas baixas (notebook 768–820px) ══════════════════════ */
@media (max-height: 820px) {
  :root { --pad-top: 74px; --pad-bottom: 158px; }
  .titulo { font-size: clamp(22px, 2.5vw, 40px); }
  .lista { gap: 6px; }
  .grafico { height: clamp(90px, 17vh, 170px); }
  .contato-titulo { font-size: clamp(44px, 6.6vw, 120px); }
  .pilares-caixa, .processo-caixa { gap: clamp(22px, 4.5vh, 48px); }
}

/* ═══ Retrato / telas estreitas ══════════════════════════════ */
@media (max-width: 860px), (max-aspect-ratio: 4/5) {
  :root { --pad-top: 72px; --pad-bottom: 212px; --orbe: min(40vh, 74vw); --orbe-y: 34vh; --lhama-w: 92px; --busto: min(30vh, 52vw); }
  .cena { align-items: flex-start; }
  .duas-col, .col-inversa, .col-ia { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pilares, .passos { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .passos-linha, .kw, .lista, .tags, .hud-dominio, .cap-atual, .fontes { display: none; }
  .passo { padding-top: 0; padding-left: 28px; }
  .passo-ponto { top: 4px; }
  .escritorio { justify-self: stretch; width: 100%; }
  .app-titulo, .rota, .produtos, .botoes { display: none; }
  .legenda { left: calc(var(--pad-x) + var(--lhama-w) * .9); }
  .c-dados .corpo, .c-software .corpo, .c-ia .corpo { display: none; }
}

/* ═══ Sem GSAP (CDN fora do ar): site estático navegável ═════ */
.estatico .palco { overflow-x: auto; scroll-snap-type: x mandatory; }
.estatico .cena { scroll-snap-align: start; }
.estatico .portao, .estatico .controles, .estatico .legenda, .estatico .jorginho-frente, .estatico .jorginho-corpo, .estatico .chip-som { display: none; }

/* ═══ Movimento reduzido ═════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .faixa-trilho, .portao-chamada, .chip-som { animation: none !important; }
  .legenda-texto .w { transition: none; }
}
