/* ===== Camada cinematográfica da Vitrine EJK =====
   Tudo aqui é decorativo. Os palcos animados só aparecem quando o JS
   liga a classe .cine no <html>; sem JS o site fica como sempre foi. */

.ejk-root { overflow-x: clip; }
#inicio { position: relative; isolation: isolate; }
#inicio > div:not(.cine-intro) { position: relative; z-index: 1; }

/* cores de cena que acompanham o tema */
.cm-panel, .cm-panelfill { fill: var(--surface); }
.cm-edge { stroke: var(--line-strong); fill: none; }
rect.cm-panel.cm-edge, rect.cm-panel { stroke-width: 1.2; }
.cm-spot { fill: color-mix(in srgb, var(--c-teal) 10%, transparent); }
.s4-text { font: 700 24px 'Sora', sans-serif; fill: #3DF07A; letter-spacing: .04em; }
.s4-small { font: 700 9px 'Manrope', sans-serif; fill: var(--text-3); letter-spacing: .2em; }

/* ---------- palcos só existem com JS ---------- */
.cine-factory, .cine-metodo { display: none; }
html.cine .cine-factory, html.cine .cine-metodo { display: block; }
html.cine-reduced .cine-factory, html.cine-reduced .cine-metodo { display: none; }

/* hero: coluna da direita (fábrica + atalhos) */
.cine-herocol { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cine-herocol > div:last-child { flex: none !important; }
.cine-factory { border: 1px solid var(--line); border-radius: 14px; background:
  radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--c-teal) 10%, transparent), transparent 60%), var(--surface); overflow: hidden; }
.cine-factory svg { display: block; width: 100%; height: auto; }
.cine-factory .cf3d { display: none; width: 100%; height: auto; aspect-ratio: 16 / 11; }
.cine-factory.is-3d .cf3d { display: block; }
.cine-factory.is-3d > svg { display: none; }

/* partículas do hero */
.cine-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; width: 100%; height: 100%; }

/* abertura */
.cine-intro { position: absolute; inset: 0; z-index: 5; background: #02040A; overflow: hidden; cursor: pointer; }
.cine-intro svg.ci-circuit { position: absolute; inset: 0; width: 100%; height: 100%; }
.ci-logo { position: absolute; left: 50%; width: min(440px, 72vw); transform: translate(-50%, -50%); }
.ci-logo img { display: block; width: 100%; height: auto; }
.ci-logo .ci-cover { position: absolute; inset: -4% -6%; background: #02040A; transform-origin: right center; }
.ci-orbits { position: absolute; left: 50%; top: 40%; width: 130%; height: 120%; transform: translate(-50%, -50%); pointer-events: none; overflow: visible; }
.ci-skip { position: absolute; right: 18px; bottom: 14px; font: 600 12px 'Manrope', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #7F8BA3; background: none; border: 1px solid #253048; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.ci-skip:hover { color: #E9F2FF; border-color: #3FA2FF; }

/* palavras do título */
.cine-w { display: inline-block; will-change: transform, opacity; }

/* ---------- Método: plano-sequência ---------- */
.cine-metodo { position: relative; }
.cm-stage { position: relative; height: 100vh; min-height: 560px; display: flex; flex-direction: column; justify-content: center; gap: 20px; box-sizing: border-box; padding: 72px 0 24px; }
.cm-hud { display: flex; flex-direction: column; gap: 12px; }
.cm-steps { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 8px; font: 600 13px 'Manrope', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.cm-steps li { display: flex; align-items: center; gap: 8px; transition: color .4s; }
.cm-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background .4s, border-color .4s, box-shadow .4s; }
.cm-steps li.is-on { color: var(--text); }
.cm-steps li.is-on .cm-dot { background: var(--c-teal); border-color: var(--c-teal); box-shadow: 0 0 12px var(--c-teal); }
.cm-bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.cm-bar span { display: block; height: 100%; background: var(--grad); transform-origin: left center; transform: scaleX(0); box-shadow: 0 0 10px #19D3D0; }
.cm-viewport { position: relative; overflow: hidden; flex: 1 1 auto; min-height: 0; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cm-track { position: relative; display: flex; gap: 4vw; padding: 0 calc((100% - min(800px, 72vw)) / 2) 46px; will-change: transform; }
.cm-station { position: relative; z-index: 1; flex: 0 0 min(800px, 72vw); margin: 0; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(160deg, color-mix(in srgb, var(--c-blue) 7%, var(--surface)), var(--surface)); padding: 18px 22px 20px; box-sizing: border-box; opacity: .35; transform: scale(.9); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1), border-color .6s, box-shadow .6s; }
.cm-station.is-on { opacity: 1; transform: scale(1); border-color: color-mix(in srgb, var(--c-teal) 45%, var(--line)); box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--c-teal) 55%, transparent); }
.cm-station svg { display: block; width: 100%; height: auto; max-height: 52vh; }
.cm-station figcaption { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.cm-num { font: 700 14px 'Sora', sans-serif; letter-spacing: .14em; color: var(--c-teal); }
.cm-title { font: 700 26px 'Sora', sans-serif; color: var(--text); }
.cm-sub { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.cm-wire { position: absolute; left: 0; bottom: 0; height: 40px; width: 100%; overflow: visible; z-index: 0; }
.cm-wire-base { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.cm-wire-lit { fill: none; stroke: url(#ejkNeonWire); stroke-width: 2.4; filter: drop-shadow(0 0 4px #19D3D0); }
.cm-wire-nodes circle { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2; transition: fill .4s, stroke .4s; }
.cm-wire-nodes circle.is-on { fill: #3DF07A; stroke: #19D3D0; }

/* celular / sem pin: estações empilhadas */
html.cine-mobile .cm-stage { height: auto; min-height: 0; padding: 0; }
html.cine-mobile .cm-hud, html.cine-mobile .cm-wire { display: none; }
html.cine-mobile .cm-viewport { overflow: visible; -webkit-mask-image: none; mask-image: none; }
html.cine-mobile .cm-track { flex-direction: column; padding: 0; gap: 16px; transform: none !important; }
html.cine-mobile .cm-station { flex: none; width: 100%; opacity: 1; transform: none; padding: 12px 14px 14px; }
html.cine-mobile .cm-title { font-size: 21px; }

/* ---------- corte de luz entre seções ---------- */
.cine-cut { position: absolute; left: 0; right: 0; top: -1px; height: 2px; z-index: 3; pointer-events: none; background: var(--grad); box-shadow: 0 0 18px #19D3D0, 0 0 42px rgba(43,140,255,.5); transform: scaleX(0); transform-origin: left center; opacity: 0; }
html.cine section { position: relative; }

/* ---------- granulação, vinheta, cursor ---------- */
.cine-grain { position: fixed; inset: -24px; z-index: 90; pointer-events: none; opacity: .055; background-size: 160px 160px; animation: cine-grain 1s steps(6) infinite; }
.ejk-root[data-theme="light"] ~ .cine-grain { opacity: .045; }
@keyframes cine-grain { 0%{transform:translate(0,0)} 20%{transform:translate(-14px,9px)} 40%{transform:translate(10px,-13px)} 60%{transform:translate(-9px,-5px)} 80%{transform:translate(13px,12px)} 100%{transform:translate(0,0)} }
.cine-vignette { position: fixed; inset: 0; z-index: 89; pointer-events: none; background: radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,.42) 100%); }
.ejk-root[data-theme="light"] ~ .cine-vignette { background: radial-gradient(ellipse at center, transparent 62%, rgba(10,20,40,.16) 100%); }

html.cine-hidecursor, html.cine-hidecursor * { cursor: none !important; }
.cine-cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; }
.cine-cursor i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #3DF07A; box-shadow: 0 0 10px #3DF07A, 0 0 22px #19D3D0; }
.cine-cursor i.t { background: #19D3D0; box-shadow: none; }
.cine-cursor .ring { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #19D3D0; opacity: 0; transform: scale(.5); transition: opacity .25s, transform .25s; }
.cine-cursor.on-link .ring { opacity: .9; transform: scale(1); }

@media (max-width: 700px) {
  .cm-title { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .cine-grain { display: none; }
}

/* Método em 3D: o canvas entra na estação ativa no lugar do SVG */
.cm-station.is-3d > svg { display: none; }
.cm3d { display: block; margin: 0 auto; border-radius: 14px; }

/* ===== parte 2 ===== */
.cine-bot { display: block; pointer-events: none; user-select: none; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)) drop-shadow(0 0 10px rgba(25,211,208,.18)); }

/* Serviços: robô espiando + contorno que corre */
@property --svc-ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.cine-svc { position: relative; transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s; }
.cine-svc::after { content: ""; position: absolute; inset: -1px; border-radius: 15px; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--svc-ang), transparent 0 62%, #2B8CFF 74%, #19D3D0 84%, #3DF07A 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s; }
.cine-svc.is-lit { transform: translateY(-4px); }
.cine-svc.is-lit::after { opacity: 1; animation: svc-run 1.6s linear infinite; }
@keyframes svc-run { to { --svc-ang: 360deg; } }
.cine-svc.is-lit > div:first-child { filter: brightness(1.35) drop-shadow(0 0 10px currentColor); transition: filter .3s; }
.svc-peek { position: absolute; right: 14px; top: -52px; width: 52px; height: 52px; overflow: hidden; pointer-events: none; }
.svc-bot { width: 52px; height: auto; }

/* Vitrines: empurrador e scanner */
.cine-vitbox { position: relative; }
.vit-pusher { position: absolute; left: 0; top: 30%; width: 110px; height: auto; z-index: 4; }
.vit-beam { position: absolute; top: 0; bottom: 0; width: 70px; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(25,211,208,.08) 55%, rgba(61,240,122,.35) 92%, #E9FBFF 100%);
  box-shadow: 6px 0 22px rgba(25,211,208,.65); }
.vit-scanner { position: absolute; right: 10px; bottom: 8px; width: 62px; height: auto; z-index: 4; }

/* Apps: notebook e celular */
.cine-dev { position: relative; aspect-ratio: 16 / 10.2; container-type: inline-size; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; transform-style: preserve-3d; will-change: transform; }
.cine-dev.is-laptop .cine-screen { width: 100%; box-sizing: border-box; border: 9px solid #0E131C !important; border-bottom-width: 12px !important; border-radius: 14px 14px 6px 6px !important; box-shadow: 0 0 0 1px #2A3446, 0 18px 40px -18px rgba(0,0,0,.7); position: relative; }
.cine-dev-base { display: block; width: 112%; height: 11px; margin-top: -1px; border-radius: 2px 2px 12px 12px; background: linear-gradient(#3A4252, #1B2029); box-shadow: 0 10px 18px -8px rgba(0,0,0,.6); position: relative; }
.cine-dev-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 4px; transform: translateX(-50%); border-radius: 0 0 6px 6px; background: #12161E; }
.cine-dev.is-phone .cine-screen { width: calc(100cqw * 10.2 / 16 * 9 / 18.5) !important; height: auto; aspect-ratio: 9 / 18.5 !important; box-sizing: border-box; border: 7px solid #0E131C !important; border-radius: 26px !important; box-shadow: 0 0 0 1px #2A3446, 0 18px 40px -18px rgba(0,0,0,.7); position: relative; padding: 12px !important; font-size: 12px !important; }
.cine-dev.is-phone .cine-screen::before { content: ""; position: absolute; top: 5px; left: 50%; width: 34%; height: 7px; transform: translateX(-50%); border-radius: 6px; background: #0E131C; }
.cine-boot { position: absolute; inset: 0; z-index: 2; background: #02040A; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.cine-boot img { width: 34%; max-width: 120px; height: auto; opacity: 0; }
.cine-boot i { display: block; width: 40%; height: 3px; border-radius: 3px; background: var(--grad); transform-origin: left center; transform: scaleX(0); box-shadow: 0 0 10px #19D3D0; }
.app-bot { position: absolute; right: -14px; bottom: -6px; width: 68px; height: auto; z-index: 3; }

/* Imagens: ruído digital */
.cine-noise { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; image-rendering: pixelated; pointer-events: none; }
.ejk-iacard figcaption { z-index: 2; }

/* Contato: equipe e pulso */
.cine-crew { display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 2vw, 18px); margin-bottom: -8px; }
.crew-bot { width: clamp(54px, 9vw, 92px); height: auto; }
.cine-pulse { position: relative; overflow: visible; }
.cine-pulse::before, .cine-pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #19D3D0; pointer-events: none; animation: cta-pulse 2.4s ease-out infinite; opacity: 0; }
.cine-pulse::after { animation-delay: 1.2s; }
@keyframes cta-pulse { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(1.32, 1.6); opacity: 0; } }
.cta-bot { position: absolute; left: calc(100% + 10px); bottom: -10px; width: 64px; height: auto; opacity: 0; transform: translateX(14px); transition: opacity .3s, transform .35s cubic-bezier(.2,.7,.2,1); }
.cine-pulse:hover .cta-bot, .cine-pulse:focus-visible .cta-bot { opacity: 1; transform: translateX(0); }

/* Robô guia */
.cine-guide { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 80; width: 74px; pointer-events: none; opacity: 0; }
.guide-bot { width: 100%; height: auto; animation: guide-float 3.2s ease-in-out infinite; }
@keyframes guide-float { 50% { transform: translateY(-5px); } }
.guide-x { position: absolute; top: -6px; right: -10px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font: 600 15px/1 'Manrope', sans-serif; cursor: pointer; pointer-events: auto; display: flex; align-items: center; justify-content: center; padding: 0; }
.guide-x:hover, .guide-x:focus-visible { color: var(--text); border-color: #19D3D0; }
html.cine-mobile .cine-guide { width: 54px; }
@media (prefers-reduced-motion: reduce) { .cine-pulse::before, .cine-pulse::after, .guide-bot { animation: none; } }
@media (max-width: 1279px) { .cine-guide { display: none; } }
