/* Caixa da apresentação do hero: conversa, editor de código e peças comuns das cenas. */
.showcase { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 620px; justify-self: end; height: min(720px, calc(100vh - 118px)); min-height: 600px;
  background: rgba(10, 28, 52, .88); border: 1px solid rgba(60, 208, 210, .42); border-radius: 18px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 0 0 1px rgba(60, 208, 210, .12),
    0 24px 64px rgba(0, 0, 0, .62),
    0 0 46px rgba(60, 208, 210, .16);
  opacity: 0; transform: translateY(22px); pointer-events: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
  transition: opacity .9s ease, transform .9s ease, box-shadow .25s, border-color .25s; }
body.ready .showcase { opacity: 1; transform: none; pointer-events: auto; }

.sc-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: rgba(5, 14, 28, .55); font-size: 13px; color: var(--muted); }
.sc-bar i { width: 10px; height: 10px; border-radius: 50%; background: #33506b; }
.sc-bar i:nth-child(1) { background: rgba(255, 95, 86, .78); }
.sc-bar i:nth-child(2) { background: rgba(255, 189, 46, .78); }
.sc-bar i:nth-child(3) { background: rgba(39, 201, 63, .78); }
.sc-bar b { margin-left: 8px; font-weight: 600; color: #e6f4f8; }
.sc-dica { margin-left: auto; font-size: 11px; color: var(--muted); opacity: .75; }
.sc-pause { display: none; margin-left: auto; align-items: center; gap: 6px; padding: 3px 12px 3px 9px; border-radius: 999px; background: var(--grad); color: #04121f;
  font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 0 18px rgba(60, 208, 210, .55); }
.sc-pause svg { width: 11px; height: 11px; fill: #04121f; }
.showcase.pausado .sc-dica { display: none; }
.showcase.pausado .sc-pause { display: inline-flex; animation: sc-selo .2s ease-out; }
@keyframes sc-selo { from { opacity: 0; transform: scale(.85); } }
/* pausado: brilho turquesa na borda da caixa (não cobre o conteúdo) e as animações em CSS também param */
.showcase:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.showcase.pausado { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 2px var(--acc), 0 0 38px rgba(60, 208, 210, .38), 0 24px 64px rgba(0, 0, 0, .65); }
.showcase.pausado *, .showcase.pausado *::before, .showcase.pausado *::after { animation-play-state: paused !important; }

.sc-view { position: relative; flex: 1; overflow: hidden; }
.sc-ph { position: absolute; inset: 0; transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .5s; }
.sc-chat { padding: 20px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.sc-build { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; transform: translateX(105%); }
.sc-view.mostra-criacao .sc-chat { transform: translateX(-105%); opacity: 0; }
.sc-view.mostra-criacao .sc-build { transform: none; }

/* conversa: cliente à esquerda, assistente Decron à direita */
.msg { max-width: 80%; padding: 11px 15px; border-radius: 14px; line-height: 1.45; }
.msg::before { content: attr(data-quem); display: block; margin-bottom: 3px; font-size: 11px; font-weight: 600; letter-spacing: .04em; opacity: .7; }
.msg.cliente { align-self: flex-start; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.msg.assistente { align-self: flex-end; background: rgba(60, 208, 210, .12); border: 1px solid rgba(60, 208, 210, .45); }
.msg.assistente::before { color: var(--acc); opacity: 1; }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1em; background: currentColor; margin-left: 2px; vertical-align: -2px; animation: piscar 1s steps(2) infinite; }
pre.caret::after { width: 7px; height: 13px; background: var(--acc); }
@keyframes piscar { 50% { opacity: 0; } }
.pontos span { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--acc); animation: ponto 1s infinite; }
.pontos span:nth-child(2) { animation-delay: .15s; }
.pontos span:nth-child(3) { animation-delay: .3s; }
@keyframes ponto { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.passos { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.passos li { opacity: 0; transform: translateY(4px); transition: .4s; display: flex; gap: 8px; align-items: center; font-size: 14.5px; color: #cfe3ee; }
.passos li.show { opacity: 1; transform: none; }
.passos li::before { content: "✓"; color: var(--acc); font-weight: 700; }

/* editor de código */
.ed { background: #06111f; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; flex: none; }
.ebar { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-bottom: 1px solid var(--line); font: 500 11px 'JetBrains Mono', monospace; color: var(--muted); }
.ebar i { width: 8px; height: 8px; border-radius: 50%; background: #33506b; }
.ebar b { margin-left: 6px; font-weight: 400; }
.ed pre { margin: 0; padding: 9px 14px; height: 146px; overflow: hidden; font: 400 11.5px/1.55 'JetBrains Mono', monospace; color: #cfe3ee; white-space: pre-wrap; }
.k { color: #7fdde0; } .s { color: #f2c879; } .cm { color: #6c8399; }

/* peças comuns das criações */
.pv { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.rv { opacity: 0; transform: translateY(6px); transition: .5s; }
.rv.show { opacity: 1; transform: none; }
.no-ar { position: absolute; right: 8px; bottom: 6px; font: 600 11px Inter, sans-serif; background: rgba(37, 211, 102, .15); color: #5ff09a;
  border: 1px solid rgba(37, 211, 102, .5); padding: 3px 10px; border-radius: 999px; }

/* rodapé: bolinhas de navegação e aviso */
.sc-foot { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-top: 1px solid var(--line); background: rgba(5, 14, 28, .45); }
.sc-dots { display: flex; gap: 8px; }
.sc-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 6px; background: rgba(159, 179, 200, .35); cursor: pointer; transition: .3s; }
.sc-dots button.on { width: 26px; background: var(--acc); box-shadow: 0 0 10px rgba(60, 208, 210, .5); }
.sc-dots button:hover { background: #9ff; }
.sc-note { font-size: 12px; color: var(--muted); line-height: 1.3; }
.sc-mais { margin-left: auto; flex: none; font-size: 12.5px; font-weight: 600; color: var(--acc); padding: 5px 12px; border: 1px solid rgba(60, 208, 210, .4); border-radius: 999px; white-space: nowrap; transition: background .2s, box-shadow .2s; }
.sc-mais:hover { background: rgba(60, 208, 210, .15); box-shadow: 0 0 14px rgba(60, 208, 210, .25); }
.sc-mais[hidden] { display: none; }

@media (max-width: 860px) { .showcase { height: 500px; min-height: 0; max-width: none; justify-self: stretch; } }
@media (max-width: 600px) { .sc-note { display: none; } }
@media (max-width: 560px) {
  .showcase { height: 410px; border-radius: 16px; }
  .showcase.showcase-servico { height: auto; min-height: 360px; }
  .showcase.showcase-servico .sc-view { flex: none; min-height: 210px; aspect-ratio: 16 / 9; }
  .sc-bar { padding: 8px 12px; font-size: 11.5px; }
  .sc-foot { padding: 9px 12px; gap: 10px; }
}

/* modo ideias (páginas de serviço): sem conversa, com legenda e o nome da demonstração */
.showcase[data-modo="ideias"] .sc-chat { display: none; }
.showcase[data-modo="ideias"] .sc-build { transform: none; }
.sc-legenda { flex: none; min-height: 62px; padding: 12px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; font-size: 15px; line-height: 1.45; color: #dcecf4; background: rgba(8, 22, 43, .55); }
.sc-legenda.troca { animation: sc-legenda .5s ease; }
@keyframes sc-legenda { from { opacity: 0; transform: translateY(4px); } }
.sc-nome { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* narração opcional */
.sc-ouvir { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 4px 11px 4px 9px; border: 1px solid rgba(60, 208, 210, .45); border-radius: 999px; background: rgba(60, 208, 210, .08); color: var(--acc); font: 600 11.5px Inter, sans-serif; cursor: pointer; transition: background .2s; }
.sc-ouvir:hover, .sc-ouvir[aria-pressed="true"] { background: rgba(60, 208, 210, .2); }
.sc-ouvir svg { width: 14px; height: 14px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sc-ouvir + .sc-expandir { margin-left: 8px; }

/* ampliar a apresentação (páginas de serviço): a caixa vai para o centro da tela, maior, por cima da página */
.sc-expandir { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 4px 11px 4px 9px; border: 1px solid rgba(60, 208, 210, .45); border-radius: 999px; background: rgba(60, 208, 210, .08); color: var(--acc); font: 600 11.5px Inter, sans-serif; cursor: pointer; transition: background .2s; }
.sc-expandir:hover { background: rgba(60, 208, 210, .18); }
.sc-expandir svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-expandir + .sc-dica, .sc-expandir ~ .sc-pause { margin-left: 12px; }
.sc-fundo { position: fixed; inset: 0; z-index: 990; background: rgba(4, 10, 20, .55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.sc-fundo.on { opacity: 1; pointer-events: auto; }
html.sc-travado { overflow: hidden; }
.showcase.expandida { position: fixed !important; z-index: 1000; left: 50%; top: 50%; width: min(1180px, 92vw) !important; max-width: none !important; height: min(860px, 88vh) !important;
  transform: translate(-50%, -50%) !important; display: flex; flex-direction: column; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 1px rgba(60, 208, 210, .35), 0 40px 120px rgba(0, 0, 0, .75), 0 0 60px rgba(60, 208, 210, .2); animation: sc-amplia .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes sc-amplia { from { opacity: .4; transform: translate(-50%, -48%) scale(.94); } }
.showcase.expandida[data-modo] .sc-view { flex: 1 1 auto !important; height: auto !important; min-height: 0; }
.sc-lugar { width: 100%; }
@media (max-width: 760px) { .showcase.expandida { width: 96vw !important; height: 90vh !important; } }
