/* W1 Office TV · apresentação (palco fixo 1920 × 1080, escalado para qualquer tela) */

:root {
  --petrol-950: #08161d;
  --petrol-900: #0b1e27;
  --petrol-800: #10303c;
  --petrol-700: #184252;
  --petrol-600: #2b5b6a;
  --ink: #0f2730;
  --mint: #86ddd0;
  --mint-soft: #bff0e7;
  --paper: #edf1f2;
  --slate: #a5b8be;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--petrol-950);
  cursor: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif; color: #fff; }

#viewport { position: fixed; inset: 0; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; }

#stage {
  position: absolute; left: 0; top: 0;
  width: 1920px; height: 1080px;
  transform-origin: 0 0;
  overflow: hidden;
  background: var(--petrol-900);
  --fg: #ffffff;
  --fg-soft: rgba(255, 255, 255, .62);
  --line: rgba(134, 221, 208, .28);
}
#stage[data-theme="light"] { --fg: var(--ink); --fg-soft: rgba(15, 39, 48, .6); --line: rgba(15, 39, 48, .16); }
#stage[data-theme="slate"] { --fg: var(--ink); --fg-soft: rgba(15, 39, 48, .66); --line: rgba(15, 39, 48, .22); }

/* ---------------- Logo (máscara, assume a cor do tema) ---------------- */
.logo {
  background-color: currentColor;
  -webkit-mask: url(../img/w1-logo.png) no-repeat center / contain;
  mask: url(../img/w1-logo.png) no-repeat center / contain;
}

/* ---------------- Moldura fixa ---------------- */
#chrome { position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 10; color: var(--fg); transition: color .9s var(--ease); }

.chrome-logo { position: absolute; left: 120px; top: 74px; width: 112px; height: 55px; transition: opacity .8s var(--ease), transform .8s var(--ease); }

.chrome-title { position: absolute; right: 0; top: 62px; display: flex; align-items: center; gap: 22px; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.chrome-title-text { text-align: right; line-height: 1; }
.chrome-title-text strong { display: block; font-weight: 600; font-size: 34px; letter-spacing: -.01em; }
.chrome-title-text em { display: block; font-style: italic; font-weight: 300; font-size: 34px; margin-top: 4px; color: var(--fg-soft); transition: color .9s var(--ease); }
.chrome-pill {
  height: 74px; padding: 0 70px 0 30px; display: flex; align-items: center;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(90deg, var(--mint) 0%, rgba(134, 221, 208, .55) 60%, rgba(134, 221, 208, 0) 100%);
  color: var(--ink); font-size: 26px; font-weight: 500; letter-spacing: .04em;
}
.chrome-pill span { border-bottom: 1.5px solid rgba(15, 39, 48, .7); padding-bottom: 4px; }

.chrome-line { position: absolute; left: 0; right: 0; top: 976px; height: 2px; background: var(--line); transition: background .9s var(--ease); overflow: hidden; }
.chrome-line-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--mint); transform-origin: 0 50%; transform: scaleX(0); }
#stage[data-theme="light"] .chrome-line-fill { background: var(--petrol-600); }
#stage[data-theme="slate"] .chrome-line-fill { background: var(--petrol-700); }
@keyframes w1-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.chrome-coords { position: absolute; left: 120px; top: 1010px; font-size: 20px; letter-spacing: .08em; color: var(--fg-soft); transition: color .9s var(--ease); }
.chrome-count { position: absolute; right: 120px; top: 1004px; font-size: 24px; font-weight: 500; letter-spacing: .06em; display: flex; align-items: center; gap: 14px; font-variant-numeric: tabular-nums; }
.chrome-count i { display: block; width: 36px; height: 1.5px; background: currentColor; opacity: .5; }
.chrome-count span:last-child { color: var(--fg-soft); }

#stage[data-type="abertura"] .chrome-title { opacity: 0; transform: translateX(60px); }
#stage[data-type="abertura"] .chrome-logo { opacity: 0; transform: translateY(-16px); }

/* ---------------- Slides e transições ---------------- */
#slides { position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; }

.slide {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden;
  opacity: 0; transition: opacity .9s var(--ease);
  color: var(--fg);
}
.slide.is-in { opacity: 1; }

.slide-bg { position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; }
.waves {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px;
  background-color: currentColor;
  -webkit-mask: url(../img/waves.svg) no-repeat 0 0 / 1920px 1080px;
  mask: url(../img/waves.svg) no-repeat 0 0 / 1920px 1080px;
  transition: transform 6s linear;
}
.slide.is-in .waves { transform: translateX(-24px); }

/* elementos animados: .a com atraso --d */
.a { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.a.from-left { transform: translateX(-60px); }
.a.from-right { transform: translateX(120px); }
.a.zoom { transform: scale(.86); }
.slide.is-in .a { opacity: 1; transform: none; }
.slide.is-out .a { opacity: 0; transform: translateY(-22px); transition: opacity .38s var(--ease-in), transform .45s var(--ease-in); transition-delay: 0s; }
.slide.is-out .a.from-right { transform: translateX(80px); }

.bar { position: relative; height: 12px; border-radius: 12px; background: rgba(15, 39, 48, .1); overflow: hidden; }
.bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 12px;
  transform-origin: 0 50%; transform: scaleX(0);
  transition: transform 1.4s var(--ease); transition-delay: var(--d, .4s);
}
.slide.is-in .bar-fill { transform: scaleX(var(--p, 0)); }

.kicker { font-size: 28px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft); }
.italic { font-style: italic; font-weight: 300; }
.rule { width: 180px; height: 2px; background: currentColor; opacity: .35; }
.nowrap { white-space: nowrap; }

/* ---------------- Tema escuro ---------------- */
.t-dark .slide-bg {
  background:
    radial-gradient(1200px 800px at 18% 12%, rgba(40, 92, 112, .55), rgba(40, 92, 112, 0) 70%),
    linear-gradient(135deg, #133847 0%, #0d2834 48%, #0a1d26 100%);
}
.t-dark .waves { color: rgba(170, 230, 222, .07); }

/* ---------------- Tema claro ---------------- */
.t-light .slide-bg { background: linear-gradient(120deg, #f4f7f7 0%, #e9eff0 60%, #dfe8ea 100%); }
.t-light .waves { color: rgba(23, 66, 82, .08); }

/* ---------------- Tema ardósia ---------------- */
.t-slate .slide-bg {
  background:
    radial-gradient(900px 700px at 80% 30%, rgba(214, 230, 233, .5), rgba(214, 230, 233, 0) 70%),
    linear-gradient(135deg, #b3c5ca 0%, #a3b7bd 55%, #95abb2 100%);
}
.t-slate .waves { color: rgba(15, 39, 48, .1); }

/* ================= TELA 1 · ABERTURA ================= */
.s-abertura .ab-content { position: absolute; left: 150px; top: 270px; width: 1100px; }
.s-abertura .ab-kicker { font-size: 56px; font-style: italic; font-weight: 300; color: rgba(255, 255, 255, .7); }
.s-abertura .ab-kicker .ab-mark { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--mint); margin-right: 22px; vertical-align: middle; position: relative; top: -4px; }
.s-abertura .ab-title { font-size: 230px; font-weight: 700; line-height: .95; letter-spacing: -.035em; margin-top: 18px; white-space: nowrap; }
.s-abertura .ab-tagline { font-size: 64px; font-style: italic; font-weight: 300; margin-top: 34px; margin-left: 74px; line-height: 1.15; color: #fff; }

.s-abertura .ab-band { position: absolute; right: 0; width: 520px; background: linear-gradient(90deg, rgba(8, 22, 29, 0) 0%, rgba(8, 22, 29, .92) 45%, #08161d 100%); }
.s-abertura .ab-band.b1 { top: 92px; height: 212px; }
.s-abertura .ab-band.b2 { top: 330px; height: 24px; opacity: .6; }
.s-abertura .ab-band.b3 { top: 680px; height: 220px; }
.s-abertura .ab-logo { position: absolute; right: 120px; top: 150px; width: 210px; height: 103px; color: #fff; }
.s-abertura .ab-pill {
  position: absolute; right: 0; top: 470px; width: 760px; height: 196px;
  border-radius: 34px 0 0 34px;
  background: linear-gradient(90deg, #8ee0d4 0%, #6fc6ba 22%, rgba(76, 150, 145, .55) 62%, rgba(40, 92, 100, 0) 100%);
  display: flex; align-items: center; padding-left: 74px;
  color: var(--ink);
}
.s-abertura .ab-pill span { font-size: 66px; font-weight: 400; letter-spacing: -.01em; border-bottom: 2px solid rgba(15, 39, 48, .8); padding-bottom: 8px; }

/* ================= TELA 2 · CONSULTOR ================= */
.s-consultor .co-left { position: absolute; left: 120px; top: 210px; width: 760px; }
.s-consultor .co-head { display: flex; align-items: center; gap: 44px; margin-top: 44px; }
.avatar {
  flex: none; border-radius: 50%; overflow: hidden; background: var(--petrol-800); color: var(--mint);
  display: flex; align-items: center; justify-content: center; font-weight: 600; letter-spacing: .02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-consultor .avatar { width: 210px; height: 210px; font-size: 76px; box-shadow: 0 0 0 10px rgba(134, 221, 208, .35); }
.s-consultor .co-name { font-size: 120px; font-weight: 700; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.s-consultor .co-level { font-size: 46px; margin-top: 14px; color: var(--fg-soft); }
.s-consultor .co-next { margin-top: 70px; display: flex; align-items: center; gap: 34px; }
.s-consultor .co-next .kicker { font-size: 24px; line-height: 1.35; }
.s-consultor .co-next-pill {
  height: 110px; padding: 0 56px; border-radius: 22px; display: flex; align-items: center;
  background: linear-gradient(90deg, var(--mint) 0%, rgba(134, 221, 208, .45) 100%);
  font-size: 64px; font-weight: 600; letter-spacing: .01em; color: var(--ink); white-space: nowrap;
}
.s-consultor .co-overall { margin-top: 64px; display: flex; align-items: baseline; gap: 28px; }
.s-consultor .co-overall b { font-size: 150px; font-weight: 700; letter-spacing: -.04em; line-height: .9; font-variant-numeric: tabular-nums; }
.s-consultor .co-overall b small { font-size: 80px; font-weight: 500; }
.s-consultor .co-overall > span { font-size: 40px; line-height: 1.2; color: var(--fg-soft); }

.s-consultor .co-right { position: absolute; left: 1000px; right: 120px; top: 200px; bottom: 150px; display: flex; flex-direction: column; justify-content: center; }
.s-consultor .ind { padding: 30px 0 34px; border-top: 1.5px solid rgba(15, 39, 48, .14); }
.s-consultor .ind:first-child { border-top: 0; }
.s-consultor .ind-top { display: flex; justify-content: space-between; align-items: baseline; }
.s-consultor .ind-label { font-size: 28px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); }
.s-consultor .ind-pct { font-size: 40px; font-weight: 600; font-variant-numeric: tabular-nums; }
.s-consultor .ind-mid { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 22px; }
.s-consultor .ind-value { font-size: 96px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.s-consultor .ind-value em { font-size: 46px; font-weight: 300; letter-spacing: 0; margin-left: 14px; color: var(--fg-soft); }
.s-consultor .ind-left { font-size: 32px; font-style: italic; font-weight: 300; color: var(--fg-soft); }
.s-consultor .ind-left b { font-style: normal; font-weight: 600; color: var(--fg); }
.s-consultor .ind .bar { height: 14px; }
.s-consultor .ind .bar-fill { background: linear-gradient(90deg, var(--petrol-700), var(--petrol-600) 60%, #4f9b9b); }
.s-consultor .ind.done .bar-fill { background: linear-gradient(90deg, #4fb0a5, var(--mint)); }
.s-consultor .ind.done .ind-left { font-style: normal; font-weight: 600; color: var(--petrol-700); }
.s-consultor .ind.done .ind-left::before { content: ''; display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: #4fb0a5; margin-right: 12px; position: relative; top: -2px; }

.s-consultor .co-right.n4 .ind { padding: 20px 0 24px; }
.s-consultor .co-right.n4 .ind-value { font-size: 76px; }
.s-consultor .co-right.n4 .ind-mid { margin-bottom: 16px; }
.s-consultor .co-right.n1 .ind-value, .s-consultor .co-right.n2 .ind-value { font-size: 120px; }

/* ================= TELA 3 · CAMPANHA ================= */
.s-campanha .cp-left { position: absolute; left: 150px; top: 230px; width: 1060px; }
.s-campanha .cp-kicker { font-size: 50px; font-style: italic; font-weight: 300; color: rgba(255, 255, 255, .72); }
.s-campanha .cp-kicker .ab-mark { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--mint); margin-right: 20px; vertical-align: middle; position: relative; top: -4px; }
.s-campanha .cp-name { font-size: 124px; font-weight: 700; letter-spacing: -.03em; line-height: 1.02; margin-top: 22px; }
.s-campanha .cp-desc { font-size: 40px; font-weight: 300; line-height: 1.35; color: rgba(255, 255, 255, .72); margin-top: 34px; max-width: 980px; }
.s-campanha .cp-goal { margin-top: 46px; display: flex; align-items: baseline; gap: 26px; }
.s-campanha .cp-goal .kicker { font-size: 24px; color: var(--mint); }
.s-campanha .cp-goal strong { font-size: 54px; font-weight: 600; }

.s-campanha .cp-count { position: absolute; right: 0; top: 250px; width: 640px; height: 440px; display: flex; flex-direction: column; justify-content: center; padding-left: 74px; }
.s-campanha .cp-count::before {
  content: ''; position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; border-radius: 40px 0 0 40px;
  background: linear-gradient(90deg, rgba(134, 221, 208, .18) 0%, rgba(134, 221, 208, .06) 60%, rgba(134, 221, 208, 0) 100%);
  border-left: 3px solid var(--mint);
}
.s-campanha .cp-count > * { position: relative; }
.s-campanha .cp-days { font-size: 230px; font-weight: 700; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.s-campanha .cp-days.word { font-size: 150px; }
.s-campanha .cp-days-label { font-size: 38px; font-style: italic; font-weight: 300; margin-top: 18px; }
.s-campanha .cp-date { font-size: 24px; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); margin-top: 26px; }

.s-campanha .cp-progress { position: absolute; left: 150px; right: 120px; top: 810px; }
.s-campanha .cp-progress-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.s-campanha .cp-progress-top .v { font-size: 64px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.s-campanha .cp-progress-top .v em { font-size: 38px; font-weight: 300; margin-left: 12px; color: rgba(255, 255, 255, .65); letter-spacing: 0; }
.s-campanha .cp-progress-top .p { font-size: 64px; font-weight: 300; font-variant-numeric: tabular-nums; }
.s-campanha .cp-progress .bar { height: 16px; background: rgba(255, 255, 255, .1); }
.s-campanha .cp-progress .bar-fill { background: linear-gradient(90deg, #3f8f8b, var(--mint)); }

.s-campanha.no-count .cp-left { width: 1500px; }

/* ================= TELA 4 · RANKING ================= */
.s-ranking .rk-head { position: absolute; left: 120px; top: 186px; }
.s-ranking .rk-kicker { font-size: 34px; font-weight: 500; }
.s-ranking .rk-title { font-size: 96px; font-weight: 600; letter-spacing: -.025em; line-height: 1.05; margin-top: 8px; }
.s-ranking .rk-podium { position: absolute; left: 0; right: 0; bottom: 142px; display: flex; justify-content: center; align-items: flex-end; gap: 70px; }
.s-ranking .rk-col { width: 440px; text-align: center; }
.s-ranking .rk-pos { font-size: 42px; font-weight: 500; margin-bottom: 18px; }
.s-ranking .rk-col .avatar { width: 170px; height: 170px; font-size: 62px; margin: 0 auto; }
.s-ranking .rk-val { font-size: 40px; font-weight: 500; margin-top: 26px; padding-bottom: 14px; border-bottom: 1.5px solid rgba(15, 39, 48, .35); font-variant-numeric: tabular-nums; }
.s-ranking .rk-name { font-size: 42px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; margin-top: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }
.s-ranking .rk-level { font-size: 32px; font-style: italic; font-weight: 300; margin-top: 6px; color: var(--fg-soft); }

.s-ranking .rk-col.first .rk-pos { font-size: 56px; font-weight: 700; margin-bottom: 14px; }
.s-ranking .rk-col.first .avatar { width: 220px; height: 220px; font-size: 80px; box-shadow: 0 0 0 12px var(--mint), 0 30px 60px rgba(8, 22, 29, .25); }
.s-ranking .rk-col.first .rk-val { font-size: 52px; font-weight: 700; border-bottom-color: var(--ink); }
.s-ranking .rk-col.first .rk-val > span { background: linear-gradient(90deg, var(--mint), rgba(134, 221, 208, .2)); padding: 4px 26px; border-radius: 14px; }
.s-ranking .rk-col.first .rk-name { font-size: 50px; font-weight: 600; }
