/* ==========================================================================
   Proposta comercial · deck navegável
   Palco fixo de 1920x1080 escalado para caber na janela.
   ========================================================================== */

:root {
  --ink: #0f0c1f;
  --ink-80: rgba(15, 12, 31, .8);
  --ink-60: rgba(15, 12, 31, .6);
  --ink-30: rgba(15, 12, 31, .3);
  --dark: #1e1e1e;
  --lime: #f0fe09;
  --lime-soft: #eefe3c;
  --lime-pale: #fdffe6;
  --lime-stroke: #adb800;
  --lime-icon: #d5e235;
  --line: #d6d6d6;
  --font: 'Quicksand', 'Nunito', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bar: 72px; /* faixa fixa da navegação, fora do palco */
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: #141414;
  font-family: var(--font);
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }

/* ---------- Palco ---------- */
#stage {
  --s: 1;
  position: absolute;
  left: 50%; top: calc(50% - var(--bar) / 2);
  width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--s));
  transform-origin: center;
  overflow: hidden;
  background: var(--dark);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .5);
}

.slide {
  position: absolute; inset: 0;
  overflow: hidden;
  opacity: 0; visibility: hidden;
  transform: translateX(70px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s .6s;
}
#stage[data-dir="back"] .slide { transform: translateX(-70px); }
#stage .slide.leaving { transform: translateX(-70px); }
#stage[data-dir="back"] .slide.leaving { transform: translateX(70px); }
/* O estado ativo vem por último e com a mesma especificidade máxima: nunca pode perder para as regras de direção */
#stage[data-dir] .slide.active, #stage .slide.active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.slide.light { background: #fff; }
.slide.dark { background: var(--dark); color: #fff; }

/* Reveal escalonado dentro do slide ativo */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0s) + .15s); }
.slide.active .rv { opacity: 1; transform: none; }

/* ---------- Peças recorrentes ---------- */
.hd {
  position: absolute; left: 80px; right: 80px; top: 71px; height: 41px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 22px; line-height: 41px; color: var(--ink-60);
}
.hd-logo { position: absolute; left: 50%; top: -15px; width: 70px; height: 70px; margin-left: -35px; border-radius: 12px; }

.pg { display: none; }
.pg::before { content: ""; position: absolute; right: 16px; top: 0; width: 1px; height: 110px; background: var(--ink-30); }
.pg span { position: absolute; right: 0; bottom: 20px; font-size: 26px; color: var(--ink-60); }

.ttl {
  position: absolute; left: 178px; top: 212px;
  font-size: 72px; font-weight: 500; line-height: 84px; letter-spacing: -.01em;
  color: var(--ink); white-space: nowrap;
}
.hl {
  position: relative; display: inline-block;
  padding: 0 8px; margin: 0 4px 0 -8px;
  background: rgba(240, 254, 9, .10); color: inherit;
  outline: 1px dashed var(--lime-stroke); outline-offset: 0;
}
.hl::before, .hl::after, .hl b::before, .hl b::after {
  content: ""; position: absolute; width: 9px; height: 9px;
  background: #fff; border: 1px solid var(--lime-stroke);
}
.hl::before { left: -5px; top: -5px; }
.hl::after { right: -5px; top: -5px; }
.hl b::before { left: -5px; bottom: -5px; }
.hl b::after { right: -5px; bottom: -5px; }
.hl b { position: absolute; inset: 0; pointer-events: none; }
.cur { position: absolute; width: 44px; height: 48px; }
.cur-r { right: -66px; top: -2px; }
.cur-l { left: -72px; top: 8px; }

.lead { font-size: 29px; line-height: 46px; color: var(--ink-80); font-weight: 400; }
.lead strong { font-weight: 700; color: var(--ink); }
.lead.wide { position: absolute; left: 181px; top: 351px; width: 1556px; }

.diamond { display: inline-block; width: 22px; height: 22px; margin-right: 14px; vertical-align: -3px;
  background: var(--lime-icon); clip-path: polygon(50% 0, 100% 35%, 50% 100%, 0 35%); }

/* ---------- Capa e final ---------- */
.dark::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1300px 380px at 62% -8%, rgba(240, 254, 9, .30), rgba(240, 254, 9, 0) 70%);
  pointer-events: none;
}
.final::before { background: radial-gradient(1100px 440px at 48% -10%, rgba(240, 254, 9, .30), rgba(240, 254, 9, 0) 70%); }
.mark { position: absolute; left: 850px; top: 110px; width: 1300px; height: 1227px; fill: none; overflow: visible; pointer-events: none; }
.mark-lime { stroke: url(#g-lime); stroke-width: 2px; }
.mark-white { stroke: url(#g-white); stroke-width: 1.5px; opacity: .35; }

.brand { position: absolute; left: 190px; top: 120px; display: flex; align-items: center; gap: 43px; font-size: 28px; font-weight: 500; color: #fff; }
.brand img { width: 84px; height: 84px; border-radius: 16px; }

/* Logo da capa: o quadrado lima pula para dentro e o CR se desenha em traço, depois preenche */
.cr-badge { width: 84px; height: 84px; overflow: visible; }
.cr-badge .bg { transform-origin: 42px 42px; transform: scale(.3); opacity: 0; }
.cr-badge .cr-mark path { fill-opacity: 0; stroke-width: 36; stroke-dasharray: 1; stroke-dashoffset: 1; }
.slide.active .cr-badge .bg { animation: badge-in .75s cubic-bezier(.34, 1.56, .64, 1) .25s forwards; }
.slide.active .cr-badge .cr-mark path { animation: badge-draw 1s cubic-bezier(.4, 0, .2, 1) .85s forwards, badge-fill .5s ease 1.95s forwards; }
.slide.active .cr-badge .cr-mark path:nth-child(2) { animation-delay: 1.15s, 2.15s; }
@keyframes badge-in { to { transform: scale(1); opacity: 1; } }
@keyframes badge-draw { to { stroke-dashoffset: 0; } }
@keyframes badge-fill { to { fill-opacity: 1; } }
.brand em { font-style: normal; color: var(--lime); }
.brand-center { left: 780px; top: 78px; gap: 37px; font-size: 24px; }
.brand-center img { width: 74px; height: 74px; border-radius: 14px; }

.cover-kicker { position: absolute; left: 190px; top: 440px; font-size: 42px; font-weight: 300; color: rgba(255, 255, 255, .5); }
.cover-title { position: absolute; left: 190px; top: 495px; font-size: 89px; font-weight: 600; line-height: 104px; color: #fff; letter-spacing: -.005em; }
.cover-client { position: absolute; left: 190px; top: 916px; height: 66px; display: flex; align-items: center;
  font-size: 30px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.cover-client img { height: 66px; width: auto; }

.final-title { position: absolute; left: 0; right: 0; top: 385px; text-align: center; font-size: 89px; font-weight: 600; line-height: 104px; color: #fff; }
.final-box { position: absolute; left: 472px; top: 508px; width: 976px; height: 120px; border: 1px solid var(--lime); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; padding: 8px 24px; font-size: 36px; color: rgba(255, 255, 255, .8); text-align: center; white-space: nowrap; }
.final-contact { position: absolute; left: 0; right: 0; top: 922px; display: flex; justify-content: center; align-items: center; gap: 46px;
  font-size: 29px; color: rgba(255, 255, 255, .7); }
.final-contact > * + * { position: relative; padding-left: 46px; }
.final-contact > * + *::before { content: ""; position: absolute; left: 0; top: 50%; height: 44px; width: 1px; transform: translateY(-50%); background: rgba(255, 255, 255, .3); }
.final-contact a { transition: color .3s var(--ease); }
.final-contact a:hover { color: var(--lime); }
.social { display: inline-flex; align-items: center; gap: 14px; }
.badge { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 5px; background: var(--lime); color: var(--ink); font-size: 16px; font-weight: 700; }
.badge:hover { color: var(--ink); background: #fff; }

/* ---------- Minha trajetória ---------- */
.about-text { position: absolute; left: 180px; top: 348px; width: 840px; }
.about-text p { font-size: 29px; line-height: 41px; color: var(--ink-80); margin-bottom: 38px; }
.about-text .label { font-size: 20px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-80); margin: 52px 0 26px; }
.skills li { font-size: 29px; line-height: 60px; color: var(--ink-80); padding-left: 62px; position: relative; }
.skills li::before { content: ""; position: absolute; left: 0; top: 19px; width: 24px; height: 22px; background: var(--lime-icon);
  clip-path: polygon(25% 0, 75% 0, 100% 35%, 50% 100%, 0 35%); }

.portrait { position: absolute; left: 1100px; top: 200px; width: 720px; height: 760px; }
.portrait-glow { position: absolute; left: -260px; top: -260px; width: 1200px; height: 1200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 254, 9, .18) 0, rgba(240, 254, 9, .08) 38%, rgba(240, 254, 9, 0) 65%); }
.portrait-circle { position: absolute; left: 95px; top: 174px; width: 528px; height: 529px; border-radius: 50%; background: #eef0e2; }
.mark-outline { left: 54px; top: 154px; width: 596px; height: 563px; stroke: var(--lime-icon); stroke-width: 3px; }
.portrait-photo { position: absolute; left: 110px; top: 24px; width: 498px; height: auto;
  -webkit-mask: radial-gradient(circle 264px at 249px 414px, #000 99%, transparent 100%), linear-gradient(#000, #000) 0 0 / 100% 414px no-repeat;
  mask: radial-gradient(circle 264px at 249px 414px, #000 99%, transparent 100%), linear-gradient(#000, #000) 0 0 / 100% 414px no-repeat; }
.chip { position: absolute; border-radius: 12px; color: #fff; font-weight: 500; box-shadow: 0 10px 30px rgba(15, 12, 31, .18); }
.chip-name { left: 55px; top: 557px; padding: 8px 18px; font-size: 29px; background: #3b3b3f; }
.chip-city { left: 133px; top: 618px; padding: 6px 14px; font-size: 20px; background: #6f6f74; }

/* ---------- Parceiros ---------- */
.partners .ttl { top: 219px; line-height: 84px; }
.partners-logos { position: absolute; left: 204px; top: 481px; width: 1512px; height: auto; }
.partners-strip { position: absolute; left: -70px; top: 827px; width: 2052px; height: auto; }

/* ---------- Cases ---------- */
.case-copy { position: absolute; left: 178px; top: 212px; width: 560px; }
.kicker { font-size: 20px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-60); margin-bottom: 26px; }
.case .ttl { position: static; white-space: normal; line-height: 84px; margin-bottom: 30px; }
.case .ttl .cur-l { top: 8px; }
.case .lead { font-size: 26px; line-height: 42px; margin-bottom: 34px; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tags li { font-size: 19px; line-height: 40px; padding: 0 18px; border: 1px solid var(--lime-stroke); border-radius: 999px; color: var(--ink-80); background: rgba(240, 254, 9, .08); }

.case-media { position: absolute; left: 820px; top: 150px; width: 1020px; height: 880px; }
.hint { position: absolute; left: 0; right: 0; top: 880px; text-align: center; font-size: 18px; color: var(--ink-60); }

.browser { position: absolute; left: 0; top: 0; width: 1020px; height: 870px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: 0 30px 80px rgba(15, 12, 31, .16); }
.browser-bar { height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid var(--line); background: #f6f6f6; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d9d9d9; }
.browser-bar span { margin-left: 14px; flex: 1; height: 28px; line-height: 28px; padding: 0 14px; border-radius: 8px; background: #fff; font-size: 15px; color: var(--ink-60); }
.theme-dark .browser { background: #06051a; border-color: #2b2b34; }
.theme-dark .browser-bar { background: #15151c; border-color: #2b2b34; }
.theme-dark .browser-bar i { background: #3a3a44; }
.theme-dark .browser-bar span { background: #06051a; color: rgba(255, 255, 255, .55); }

.screen { position: absolute; left: 0; right: 0; top: 46px; bottom: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(15, 12, 31, .25) transparent; }
.screen::-webkit-scrollbar { width: 6px; }
.screen::-webkit-scrollbar-thumb { background: rgba(15, 12, 31, .25); border-radius: 3px; }
.screen img { width: 100%; height: auto; transition: opacity .38s var(--ease); }

.phones { position: absolute; left: 0; top: 0; width: 1020px; height: 880px; display: flex; justify-content: center; align-items: flex-start; gap: 34px; }
.phone { position: relative; width: 300px; height: 650px; border-radius: 40px; background: #141416; padding: 12px; box-shadow: 0 30px 70px rgba(15, 12, 31, .22), inset 0 0 0 2px #2a2a2e; }
.phone:nth-child(1) { margin-top: 110px; }
.phone:nth-child(2) { margin-top: 30px; }
.phone:nth-child(3) { margin-top: 150px; }
.phone::before { content: ""; position: absolute; left: 50%; top: 22px; width: 84px; height: 24px; margin-left: -42px; border-radius: 12px; background: #141416; z-index: 2; }
.phone .screen { position: absolute; inset: 12px; border-radius: 30px; background: #fff; }
.phone .screen img { width: 100%; }

/* ---------- Proposta de trabalho ---------- */
.steps { position: absolute; left: 181px; top: 609px; width: 1556px; display: grid; grid-template-columns: repeat(4, 317px); column-gap: 96px; }
.steps li { position: relative; }
.steps li + li::before { content: ""; position: absolute; left: -48px; top: -4px; width: 1px; height: 500px; background: var(--line); }
.steps img { width: 56px; height: 52px; }
.steps h3 { margin-top: 17px; font-size: 40px; font-weight: 600; line-height: 53px; color: var(--ink-80); }
.steps p { margin-top: 28px; font-size: 22px; line-height: 37px; color: var(--ink-80); }

/* ---------- Do briefing à entrega ---------- */
.cards { position: absolute; left: 181px; top: 520px; display: grid; grid-template-columns: repeat(4, 369px); column-gap: 26px; }
.cards li { height: 389px; border-radius: 24px; border: 1px solid var(--ink-30); padding: 56px 48px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.slide.active .cards li:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(15, 12, 31, .12); }
.cards li.pale { background: var(--lime-pale); border-color: transparent; }
.cards li.lime { background: var(--lime-soft); border-color: transparent; }
.cards h3 { font-size: 33px; font-weight: 600; line-height: 40px; color: var(--ink-80); min-height: 120px; }
.cards li:nth-child(3) h3 { font-size: 30px; }
.cards p { margin-top: 21px; font-size: 20px; line-height: 34px; color: var(--ink-80); }

/* ---------- Formato de contratação ---------- */
.hiring .ttl { top: 209px; line-height: 93px; }
.note { position: absolute; left: 1241px; top: 219px; width: 727px; height: 174px; background: #f8f8f8; border-radius: 24px 0 0 24px; padding: 41px 129px 41px 63px; font-size: 30px; line-height: 46px; color: var(--ink-80); }
.hiring .lead.wide { top: 475px; }
.hire-body { position: absolute; left: 181px; top: 470px; width: 1558px; }
.stages li { display: grid; grid-template-columns: 1fr 137px; align-items: center; column-gap: 40px; padding: 26px 0;
  border-bottom: 1px solid var(--line); font-size: 25px; line-height: 34px; font-weight: 600; color: var(--ink-80); }
.stages li b { font-weight: 600; color: var(--ink); }
.stages .st-head { padding: 0 0 16px; font-size: 18px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-80); }
.stages .st-head span:last-child, .stages .days { text-align: right; }
.stages .pk { display: flex; gap: 8px; }
.stages .pk i { width: 34px; height: 34px; border-radius: 50%; background: var(--lime-soft); display: grid; place-items: center;
  font-style: normal; font-size: 17px; font-weight: 700; color: var(--ink); }
.stages li.only { margin: 12px -20px 0; padding: 22px 20px; border: 1px solid var(--lime-stroke); border-radius: 12px; background: var(--lime-pale); }
.totals { margin-top: 40px; }
.totals div { display: flex; align-items: baseline; gap: 16px; padding: 26px 0; }
.totals .tk { flex: 1; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-80); }
.totals strong { font-size: 31px; font-weight: 600; color: var(--ink-80); }
.note { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.note-kicker { font-size: 18px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-60); line-height: 1.2; }
.note strong { font-size: 38px; font-weight: 600; line-height: 1.1; color: var(--ink); }

/* ---------- Barra fixa de navegação (fora do palco) ---------- */
.controls { position: fixed; left: 0; right: 0; bottom: 0; height: var(--bar); z-index: 10; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.controls .bar { pointer-events: auto; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.controls button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.controls button:hover { background: var(--lime); color: var(--ink); transform: translateY(-1px); }
.controls button:active { transform: translateY(0) scale(.96); }
.controls button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.controls svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#counter { min-width: 74px; text-align: center; font-size: 14px; letter-spacing: .1em; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.controls .sep { width: 1px; height: 22px; margin: 0 2px; background: rgba(255, 255, 255, .18); }
#progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: var(--lime); transition: width .6s var(--ease); z-index: 10; }

.keyhint { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); margin: 0; font-size: 13px; color: rgba(255, 255, 255, .5); opacity: 0; transition: opacity .8s var(--ease) 1.5s; pointer-events: none; }
body.on-first.ready .keyhint { opacity: 1; }

/* ---------- Bloqueio em celular ---------- */
.mobile-gate { display: none; position: fixed; inset: 0; z-index: 50; overflow: hidden; background: var(--dark); color: #fff;
  flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 28px; }
.mobile-gate::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120vw 42vh at 60% -10%, rgba(240, 254, 9, .32), rgba(240, 254, 9, 0) 70%); }
.mobile-gate .mark { left: auto; right: -46vw; top: 18vh; width: 120vw; height: auto; aspect-ratio: 1300 / 1227; opacity: .8; }
.gate-logo { position: relative; width: 72px; height: 72px; border-radius: 14px; margin-bottom: 18px; }
.gate-kicker { position: relative; margin: 0 0 40px; font-size: 17px; font-weight: 500; }
.gate-kicker em { font-style: normal; color: var(--lime); }
.gate-text { position: relative; margin: 0; max-width: 300px; font-size: 22px; line-height: 1.45; font-weight: 400; color: rgba(255, 255, 255, .85); }
@media (max-width: 820px), (max-height: 480px) {
  .mobile-gate { display: flex; }
  #stage, .controls, #progress, .keyhint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .rv, .cards li { transition-duration: .01s !important; }
  .cr-badge .bg { transform: none; opacity: 1; animation: none !important; }
  .cr-badge .cr-mark path { fill-opacity: 1; stroke-dashoffset: 0; animation: none !important; }
}
