/* ==========================================================================
   PWN Studio — a página de venda (/software/studio/)
   --------------------------------------------------------------------------
   Só esta página carrega este arquivo. Vem DEPOIS de tech.css e reaproveita
   os tokens do style.css; nenhuma cor é escrita na mão fora dos degradês.

   Tudo aqui é ENFEITE: o texto e os números moram no HTML. Sem JavaScript a
   página está inteira, e com "reduzir movimento" ela para — as animações são
   todas CSS, então não dependem do efeitos.js.
   ========================================================================== */

.studio-body {
  --st-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
  --st-linha: rgba(255, 255, 255, .08);
  --st-vidro: linear-gradient(158deg, rgba(32, 32, 40, .62), rgba(16, 16, 21, .70));
}

/* ==========================================================================
   1. O MAESTRO — o desenho que explica o produto em um olhar
   --------------------------------------------------------------------------
   A missão entra em cima, o maestro reparte, cada agente pega a parte dele e
   devolve. É DESENHO, não captura de tela: por isso cada agente aqui é o que
   vem configurado de fábrica no programa (plugin/hooks/perfis.ts), e nada
   mais. Número inventado em desenho de venda vira promessa que o programa
   não cumpre.
   ========================================================================== */
.maestro {
  position: relative;
  display: grid;
  gap: 0;
  justify-items: center;
  padding: 10px 0 4px;
}

/* ---- a missão que entra ---- */
.maestro__missao {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 13px 18px;
  font-family: var(--st-mono);
  font-size: .92rem;
  color: var(--color-text);
  background: var(--st-vidro);
  border: 1px solid var(--st-linha);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 44px -26px rgba(0, 0, 0, .9);
}
.maestro__missao b { color: var(--color-primary); font-weight: 700; }
.maestro__cursor {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  background: var(--color-primary);
  vertical-align: text-bottom;
  animation: st-piscar 1.1s steps(1) infinite;
}
@keyframes st-piscar { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---- o tronco que desce da missão até o maestro ---- */
.maestro__tronco {
  position: relative;
  width: 2px;
  height: 46px;
  background: var(--st-linha);
  overflow: hidden;
}
/* A fagulha que desce: é ela que dá a sensação de "a missão foi". */
.maestro__tronco::after {
  content: "";
  position: absolute;
  inset-inline: -1px;
  height: 18px;
  background: linear-gradient(180deg, transparent, var(--color-primary));
  animation: st-descer 2.6s cubic-bezier(.5, 0, .5, 1) infinite;
}
@keyframes st-descer {
  0% { top: -20px; opacity: 0; }
  12% { opacity: 1; }
  42%, 100% { top: 100%; opacity: 0; }
}

/* ---- o maestro ---- */
.maestro__no {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 20px 12px 14px;
  background: var(--st-vidro);
  border: 1px solid rgba(230, 20, 46, .34);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(230, 20, 46, .05), 0 18px 40px -24px rgba(230, 20, 46, .6);
}
.maestro__no strong { font-family: var(--font-heading); font-size: 1rem; }
.maestro__no small { display: block; font-size: .76rem; color: var(--color-text-light); }
.maestro__hex {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--color-primary);
}
/* Pulso do maestro: uma onda só, no mesmo compasso da fagulha. */
.maestro__no::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--color-primary);
  opacity: 0;
  animation: st-onda 2.6s ease-out infinite;
}
@keyframes st-onda {
  0%, 38% { transform: scale(1); opacity: 0; }
  46% { opacity: .55; }
  100% { transform: scale(1.14); opacity: 0; }
}

/* ---- os três galhos ---- */
.maestro__galhos {
  position: relative;
  width: min(100%, 560px);
  height: 54px;
}
.maestro__galhos svg { display: block; width: 100%; height: 100%; overflow: visible; }
.maestro__galhos path { fill: none; stroke: var(--st-linha); stroke-width: 2; }
/* O traço vermelho que corre por cada galho, um depois do outro. */
.maestro__galhos .corre {
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-dasharray: 26 180;
  stroke-dashoffset: 206;
  animation: st-correr 2.6s cubic-bezier(.45, 0, .55, 1) infinite;
}
.maestro__galhos .corre--2 { animation-delay: .1s; }
.maestro__galhos .corre--3 { animation-delay: .2s; }
@keyframes st-correr {
  0%, 38% { stroke-dashoffset: 206; }
  70%, 100% { stroke-dashoffset: 0; }
}

/* ---- os agentes ---- */
.maestro__agentes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 560px);
}
.agente {
  padding: 14px 13px;
  text-align: left;
  background: var(--st-vidro);
  border: 1px solid var(--st-linha);
  border-radius: var(--radius-md);
  animation: st-acender 2.6s ease-out infinite;
}
.agente:nth-child(2) { animation-delay: .1s; }
.agente:nth-child(3) { animation-delay: .2s; }
@keyframes st-acender {
  0%, 55% { border-color: var(--st-linha); }
  68% { border-color: rgba(230, 20, 46, .55); }
  100% { border-color: var(--st-linha); }
}
.agente__nome {
  display: block;
  font-family: var(--st-mono);
  font-size: .92rem;
  font-weight: 600;
  color: var(--color-text);
}
.agente__modelo {
  display: inline-block;
  margin: 7px 0 8px;
  padding: 2px 8px;
  font-family: var(--st-mono);
  font-size: .72rem;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: 999px;
}
.agente__funcao { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--color-text-light); }
.agente__so-le {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  font-size: .7rem;
  color: var(--color-text-light);
  border: 1px solid var(--st-linha);
  border-radius: 999px;
}

/* ==========================================================================
   2. AS IAS — a grade de quem o programa conversa
   ========================================================================== */
.ias-grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.ia-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Altura igual para todos: "GitHub Copilot" e "Llama (local)" quebram em
     duas linhas e, sem isto, ficam mais altos que os vizinhos da fileira. */
  min-height: 64px;
  padding: 13px 14px;
  font-family: var(--st-mono);
  font-size: .88rem;
  color: var(--color-text);
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--st-linha);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.ia-chip:hover { border-color: rgba(230, 20, 46, .4); background: rgba(230, 20, 46, .05); transform: translateY(-2px); }
.ia-chip i {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--color-primary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ==========================================================================
   3. OS TRÊS MODOS
   ========================================================================== */
.modos { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 16px; }
.modo {
  padding: 22px 20px;
  background: var(--st-vidro);
  border: 1px solid var(--st-linha);
  border-radius: var(--radius-md);
}
.modo h3 { margin: 0 0 4px; font-size: 1.08rem; }
.modo h3 span { font-family: var(--st-mono); font-size: .8rem; color: var(--color-primary); }
.modo p { margin: 10px 0 0; font-size: .92rem; line-height: 1.6; color: var(--color-text-light); }
/* O desenho de cada modo: três quadradinhos que se arrumam diferente. */
.modo__desenho { display: flex; gap: 5px; align-items: center; height: 26px; margin-top: 14px; }
.modo__desenho i {
  display: block;
  width: 20px;
  height: 7px;
  background: var(--color-primary);
  border-radius: 2px;
  opacity: .9;
}
/* Maestro: uma barra larga que vira três pequenas — a missão sendo repartida. */
.modo__desenho--maestro i:first-child { width: 30px; height: 12px; }
.modo__desenho--maestro i:not(:first-child) { width: 12px; }
/* Todas: três barras em pé, lado a lado, do mesmo tamanho. */
.modo__desenho--todas i { height: 20px; width: 7px; }
/* Corrente: a mesma barra passando adiante, perdendo força. */
.modo__desenho--corrente i:nth-child(2) { opacity: .6; }
.modo__desenho--corrente i:nth-child(3) { opacity: .32; }

/* ==========================================================================
   4. O GASTO — a faixa de números que o programa mostra
   ========================================================================== */
.gasto-nota {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 15px 17px;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--color-text-light);
  background: rgba(255, 255, 255, .03);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-sm);
}
.gasto-nota b { color: var(--color-text); }

/* ==========================================================================
   5. COMO CONSEGUIR — as duas portas
   ========================================================================== */
.portas { display: grid; grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); gap: 16px; }
.porta {
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  background: var(--st-vidro);
  border: 1px solid var(--st-linha);
  border-radius: var(--radius-lg);
}
.porta--destaque { border-color: rgba(230, 20, 46, .34); box-shadow: 0 0 0 5px rgba(230, 20, 46, .045); }
.porta__num {
  font-family: var(--st-mono);
  font-size: .78rem;
  letter-spacing: .05em;
  color: var(--color-primary);
}
.porta h3 { margin: 8px 0 10px; font-size: 1.16rem; }
.porta p { margin: 0 0 18px; font-size: .93rem; line-height: 1.65; color: var(--color-text-light); }
.porta .btn { margin-top: auto; }

/* ==========================================================================
   6. Celular
   ========================================================================== */
@media (max-width: 720px) {
  .maestro__agentes { grid-template-columns: 1fr; }
  .maestro__missao { font-size: .82rem; padding: 11px 13px; }
  .ias-grade { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }

  /* Empilhado, o leque de três galhos aponta para o nada: só o primeiro
     cartão fica embaixo dele. Vira um tronco reto, igual ao de cima. */
  .maestro__galhos { width: 2px; height: 28px; background: var(--st-linha); overflow: hidden; }
  .maestro__galhos svg { display: none; }
  .maestro__galhos::after {
    content: "";
    position: absolute;
    inset-inline: -1px;
    height: 12px;
    background: linear-gradient(180deg, transparent, var(--color-primary));
    animation: st-descer 2.6s cubic-bezier(.5, 0, .5, 1) infinite;
    animation-delay: .5s;
  }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .maestro__galhos::after { top: 0; height: 100%; }
}

/* ==========================================================================
   7. Reduzir movimento: o desenho fica parado, e completo
   --------------------------------------------------------------------------
   Nada aqui some quando a animação para — o traço vermelho fica inteiro e as
   bordas ficam acesas, que é o estado que explica o desenho.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .studio-body *, .studio-body *::before, .studio-body *::after {
    animation: none !important;
    transition: none !important;
  }
  .maestro__tronco::after { top: 0; height: 100%; opacity: 1; }
  .maestro__galhos .corre { stroke-dasharray: none; stroke-dashoffset: 0; }
  .maestro__no::before { opacity: .4; }
  .agente { border-color: rgba(230, 20, 46, .4); }
  .maestro__cursor { opacity: 1; }
}

/* ==========================================================================
   8. A BANCADA EM MOVIMENTO — a cena animada
   --------------------------------------------------------------------------
   ENFEITE PURO. A cena inteira é `aria-hidden`: nada que importa mora aqui.
   O que ela encena (uma missão, o maestro repartindo, três agentes com o
   modelo de cada um) está escrito em texto de verdade no diagrama logo
   abaixo, e o leitor de tela lê de lá.

   É DESENHO, e a moldura diz isso em cima ("ilustração"). Não é gravação de
   tela: as linhas que correm nos terminais são encenação do fluxo, por isso
   não há aqui nenhum número de tempo, de token ou de preço — número em
   cena encenada vira promessa de desempenho que o programa não fez.

   Um ciclo de 22s, tudo em CSS: sem JavaScript a cena roda igual, e com
   "reduzir movimento" ela congela no fim, com os três agentes prontos.
   ========================================================================== */
.bancada { position: relative; }
.bancada__moldura {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--st-linha);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(230, 20, 46, .10), transparent 70%),
    linear-gradient(170deg, #121217, #0a0a0d 70%);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .95);
}
/* quadriculado de fundo, bem apagado */
.bancada__moldura::before {
  content: "";
  position: absolute; inset: 0;
  --l: rgba(255, 255, 255, .022);
  background:
    linear-gradient(var(--l) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(90deg, var(--l) 1px, transparent 1px) 0 0 / 38px 38px;
}

.bancada__barra {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  padding: 11px 16px;
  font-family: var(--st-mono); font-size: .76rem; letter-spacing: .02em;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--st-linha);
  background: rgba(0, 0, 0, .35);
}
.bancada__barra i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, .13);
}
.bancada__barra i:first-of-type { background: var(--color-primary); }
.bancada__selo { margin-left: auto; opacity: .62; }

.bancada__palco { position: relative; padding: 22px 20px 18px; }

/* ---------- as nuvens das IAs ---------- */
.nuvens { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.nuvem {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-family: var(--st-mono); font-size: .78rem; color: var(--color-text-light);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--st-linha);
  border-radius: 999px;
  animation: nuvemAcende 22s linear infinite;
}
.nuvem:nth-child(2) { animation-delay: .5s; }
.nuvem:nth-child(3) { animation-delay: 1s; }
.nuvem svg { color: var(--color-primary); opacity: .55; }
@keyframes nuvemAcende {
  0%, 14% { border-color: var(--st-linha); color: var(--color-text-light); }
  18%, 70% { border-color: rgba(230, 20, 46, .45); color: var(--color-text); }
  80%, 100% { border-color: var(--st-linha); color: var(--color-text-light); }
}
/* a gotinha que desce da nuvem para o painel */
.nuvem::after {
  content: ""; position: absolute; bottom: -22px; left: 50%;
  width: 2px; height: 18px;
  background: linear-gradient(180deg, var(--color-primary), transparent);
  opacity: 0;
  animation: nuvemPinga 22s linear infinite;
}
.nuvem:nth-child(2)::after { animation-delay: .5s; }
.nuvem:nth-child(3)::after { animation-delay: 1s; }
@keyframes nuvemPinga { 0%, 15% { opacity: 0; } 20% { opacity: .9; } 34%, 100% { opacity: 0; } }
.nuvem { position: relative; }

/* ---------- a missão sendo escrita ---------- */
.bancada__missao {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  max-width: 620px; margin: 26px auto 0;
  padding: 13px 16px;
  font-family: var(--st-mono); font-size: .9rem; color: var(--color-text);
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(230, 20, 46, .3);
  border-radius: var(--radius-md);
}
.bancada__missao > b { color: var(--color-primary); font-weight: 700; }
/* Digitação: a largura cresce em passos, que é o jeito de "escrever" em CSS.
   A conta NÃO é em `ch`: o `ch` é a largura do "0" da fonte, que não bate
   exatamente com as outras letras na pilha de monoespaçadas do sistema — com
   32ch a última letra ficava de fora. A caixa de fora tem a largura do texto
   (`max-content`), então `width: 100%` por dentro é o fim exato da frase,
   seja qual for a fonte que o aparelho usar. */
.bancada__caixa { display: inline-block; width: max-content; max-width: 100%; }
.bancada__texto {
  display: block;
  overflow: hidden; white-space: nowrap;
  border-right: 9px solid var(--color-primary);
  width: 0;
  animation: missaoEscreve 22s steps(32, end) infinite, missaoCursor 1s steps(1) infinite;
}
@keyframes missaoEscreve {
  0% { width: 0; }
  14% { width: 100%; }
  86% { width: 100%; }
  92%, 100% { width: 0; }
}
@keyframes missaoCursor { 0%, 49% { border-color: var(--color-primary); } 50%, 100% { border-color: transparent; } }
/* a tecla Enter piscando no fim da digitação */
.bancada__enter {
  margin-left: auto; padding: 3px 9px;
  font-family: var(--st-mono); font-size: .7rem; color: var(--color-primary);
  border: 1px solid rgba(230, 20, 46, .4); border-radius: 5px;
  opacity: .25;
  animation: enterBate 22s linear infinite;
}
@keyframes enterBate {
  0%, 13% { opacity: .25; background: transparent; }
  15% { opacity: 1; background: rgba(230, 20, 46, .3); }
  19%, 100% { opacity: .25; background: transparent; }
}

/* ---------- os feixes que saem para os três painéis ---------- */
.bancada__feixes { position: relative; height: 40px; margin: 0 auto; width: min(100%, 940px); }
.bancada__feixes svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bancada__feixes path { fill: none; stroke: var(--st-linha); stroke-width: 1.6; }
.bancada__feixes .feixe {
  stroke: var(--color-primary); stroke-width: 2;
  stroke-dasharray: 22 300; stroke-dashoffset: 322;
  animation: feixeCorre 22s linear infinite;
}
.bancada__feixes .feixe--2 { animation-delay: .22s; }
.bancada__feixes .feixe--3 { animation-delay: .44s; }
@keyframes feixeCorre {
  0%, 16% { stroke-dashoffset: 322; opacity: 0; }
  17% { opacity: 1; }
  24% { stroke-dashoffset: 0; opacity: 1; }
  26%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ---------- os três terminais ---------- */
.telas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(100%, 940px); margin: 0 auto; }
.tela {
  display: flex; flex-direction: column;
  min-height: 188px;
  background: rgba(0, 0, 0, .5);
  border: 1px solid var(--st-linha);
  border-radius: var(--radius-md);
  overflow: hidden;
  animation: telaAcende 22s linear infinite;
}
.tela--2 { animation-delay: .22s; }
.tela--3 { animation-delay: .44s; }
@keyframes telaAcende {
  0%, 22% { border-color: var(--st-linha); box-shadow: none; }
  26%, 74% { border-color: rgba(230, 20, 46, .4); box-shadow: 0 0 0 4px rgba(230, 20, 46, .045); }
  84%, 100% { border-color: var(--st-linha); box-shadow: none; }
}
.tela__topo {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  font-family: var(--st-mono); font-size: .78rem; color: var(--color-text);
  border-bottom: 1px solid var(--st-linha);
  background: rgba(255, 255, 255, .022);
}
.tela__modelo {
  padding: 1px 7px; font-size: .68rem; color: var(--color-primary);
  background: var(--color-primary-light); border-radius: 999px;
}
/* a luzinha de estado: apagada -> pulsando -> verde */
.tela__luz {
  margin-left: auto; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  animation: luzEstado 22s linear infinite;
}
.tela--2 .tela__luz { animation-delay: .22s; }
.tela--3 .tela__luz { animation-delay: .44s; }
@keyframes luzEstado {
  0%, 22% { background: rgba(255, 255, 255, .16); box-shadow: none; }
  26%, 66% { background: var(--color-primary); box-shadow: 0 0 0 3px rgba(230, 20, 46, .2); }
  70%, 84% { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
  88%, 100% { background: rgba(255, 255, 255, .16); box-shadow: none; }
}

.tela__corpo { flex: 1; padding: 11px 12px; font-family: var(--st-mono); font-size: .72rem; line-height: 1.75; }
.tela__corpo span {
  display: block;
  overflow: hidden; white-space: nowrap;
  width: 0;
  color: var(--color-text-light);
  animation: linhaEscreve 22s steps(30, end) infinite;
}
.tela__corpo .add { color: #22c55e; }
.tela__corpo .rem { color: var(--color-primary); }
.tela__corpo .fim { color: var(--color-text); }
@keyframes linhaEscreve {
  0%, 26% { width: 0; }
  34%, 86% { width: 30ch; }
  90%, 100% { width: 0; }
}
/* cada linha entra um pouco depois da anterior */
.tela__corpo span:nth-child(1) { animation-delay: 0s; }
.tela__corpo span:nth-child(2) { animation-delay: .9s; }
.tela__corpo span:nth-child(3) { animation-delay: 1.8s; }
.tela__corpo span:nth-child(4) { animation-delay: 2.7s; }
.tela__corpo span:nth-child(5) { animation-delay: 3.6s; }
.tela--2 .tela__corpo span:nth-child(1) { animation-delay: .5s; }
.tela--2 .tela__corpo span:nth-child(2) { animation-delay: 1.5s; }
.tela--2 .tela__corpo span:nth-child(3) { animation-delay: 2.5s; }
.tela--2 .tela__corpo span:nth-child(4) { animation-delay: 3.5s; }
.tela--2 .tela__corpo span:nth-child(5) { animation-delay: 4.5s; }
.tela--3 .tela__corpo span:nth-child(1) { animation-delay: 1s; }
.tela--3 .tela__corpo span:nth-child(2) { animation-delay: 2.1s; }
.tela--3 .tela__corpo span:nth-child(3) { animation-delay: 3.2s; }
.tela--3 .tela__corpo span:nth-child(4) { animation-delay: 4.3s; }
.tela--3 .tela__corpo span:nth-child(5) { animation-delay: 5.4s; }

/* ---------- o rodapé da cena ---------- */
/* Os dois recados ocupam a MESMA célula: um apaga enquanto o outro acende.
   Lado a lado (flex), o que está invisível continua ocupando lugar e empurra
   o outro para o canto — no celular isso quebrava o "missão concluída" em
   quatro linhas encostadas na direita. */
.bancada__rodape {
  display: grid; justify-items: center; align-items: center;
  width: min(100%, 940px); margin: 14px auto 0;
  padding: 11px 14px;
  font-family: var(--st-mono); font-size: .78rem; color: var(--color-text-light);
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--st-linha);
  border-radius: var(--radius-sm);
}
.bancada__rodape > span { grid-area: 1 / 1; text-align: center; }
.bancada__pronto { color: #22c55e; opacity: 0; animation: prontoEntra 22s linear infinite; }
@keyframes prontoEntra { 0%, 68% { opacity: 0; } 73%, 86% { opacity: 1; } 90%, 100% { opacity: 0; } }
.bancada__trabalhando { animation: trabalhandoSai 22s linear infinite; }
@keyframes trabalhandoSai { 0%, 20% { opacity: 0; } 25%, 66% { opacity: 1; } 71%, 100% { opacity: 0; } }

/* ---------- o ponteiro ---------- */
.bancada__cursor {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  opacity: 0;
  animation: bcMouse 22s cubic-bezier(.45, 0, .25, 1) infinite;
}
.bancada__cursor svg {
  position: absolute; left: -3px; top: -2px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .7));
  animation: bcAperta 22s linear infinite;
  transform-origin: 3px 2px;
}
@keyframes bcMouse {
  0% { transform: translate(78%, 86%); opacity: 0; }
  4% { opacity: 1; }
  10%, 15% { transform: translate(46%, 30%); }   /* vai ao campo da missão */
  30% { transform: translate(20%, 62%); }        /* olha o 1º terminal */
  45% { transform: translate(50%, 68%); }        /* o do meio */
  60% { transform: translate(79%, 62%); }        /* o 3º */
  74%, 80% { transform: translate(50%, 90%); }   /* desce ao rodapé */
  92% { transform: translate(78%, 86%); opacity: 1; }
  100% { transform: translate(78%, 86%); opacity: 0; }
}
@keyframes bcAperta {
  0%, 13.4% { transform: scale(1); }
  14% { transform: scale(.82); }
  15.4%, 100% { transform: scale(1); }
}
.bancada__clique {
  position: absolute; left: -17px; top: -17px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(230, 20, 46, .4);
  opacity: 0;
  animation: bcClique 22s linear infinite;
}
@keyframes bcClique {
  0%, 13.6% { transform: scale(.3); opacity: 0; }
  14% { transform: scale(.4); opacity: 1; }
  18% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- celular: a cena encolhe, não some ---------- */
@media (max-width: 860px) {
  .telas { grid-template-columns: 1fr; }
  .tela { min-height: 0; }
  .tela__corpo { padding: 9px 11px; }
  .bancada__feixes { display: none; }
  .bancada__cursor { display: none; }
  .nuvens { gap: 7px; }
  .nuvem { padding: 6px 11px; font-size: .72rem; }
  .bancada__palco { padding: 16px 13px 14px; }
  .bancada__missao { font-size: .76rem; }
  /* A tecla não cabe ao lado da frase inteira e ficava cortada na borda. */
  .bancada__enter { display: none; }
  .bancada__texto { animation-timing-function: steps(32, end); }
}

/* ---------- reduzir movimento: a cena congela no fim, com tudo pronto ----- */
@media (prefers-reduced-motion: reduce) {
  .bancada__texto { width: 100%; border-right-color: var(--color-primary); }
  .bancada__enter { opacity: .25; }
  .bancada__feixes .feixe { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 1; }
  .tela { border-color: rgba(230, 20, 46, .4); }
  .tela__luz { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
  .tela__corpo span { width: 30ch; }
  .nuvem { border-color: rgba(230, 20, 46, .45); color: var(--color-text); }
  .nuvem::after { opacity: 0; }
  .bancada__cursor { display: none; }
  .bancada__pronto { opacity: 1; }
  .bancada__trabalhando { display: none; }
}
