* { box-sizing: border-box; margin: 0; padding: 0; }
/* fonte Syncopate (Google Fonts, licença OFL), salva no projeto */
@font-face { font-family: "Syncopate"; font-weight: 400; font-display: swap; src: url("assets/fonts/syncopate-400.woff2") format("woff2"); }
@font-face { font-family: "Syncopate"; font-weight: 700; font-display: swap; src: url("assets/fonts/syncopate-700.woff2") format("woff2"); }
:root {
  --green: #00c96b;
  --lime: #7ed321;
  --logo-green: #1ed41a; /* verde do anel da logo */
  /* divisão GIF → base: cores do logo VI (azul → roxo → rosa → laranja) */
  --black: #000;
  --white: #fff;
  --font: "Syncopate", "Segoe UI", system-ui, sans-serif; /* parecida com a Axis */
  --ease: cubic-bezier(.16, 1, .3, 1);   /* expo-out */
  --mx: 0; --my: 0;                      /* posição do mouse (-1..1), via app.js */
}
body {
  background: var(--black); color: var(--white); font-family: var(--font);
  overflow-x: hidden;
}
/* primeira tela: fundo + pílula ocupam exatamente a altura da tela */
.hero { height: 100svh; display: flex; flex-direction: column; }

/* ================= Abertura ================= */
.intro {
  position: fixed; inset: 0; z-index: 50; background: var(--black);
  display: grid; place-items: center;
  animation: intro-out .9s var(--ease) .3s forwards;
}
@keyframes intro-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* ================= Palco ================= */
.stage {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  /* fundo cinza, um pouco mais claro no centro */
  background: radial-gradient(ellipse at 50% 40%, #4a4a4f 0%, #333337 55%, #232326 100%);
}

.slides {
  position: absolute; inset: -20px; z-index: 0;
  transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -10px), 0);
  animation: bg-in 1.6s var(--ease) 1.1s both;
}
@keyframes bg-in {
  from { opacity: 0; filter: blur(14px) brightness(.35); scale: 1.25; }
  to   { opacity: 1; filter: blur(0) brightness(1); scale: 1; }
}
.slide {
  position: absolute; inset: 0; background: center / cover no-repeat;
  opacity: 0; transition: opacity 1.2s ease;
}
.slide.active { opacity: 1; }

/* granulado de filme */
.grain {
  position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .6s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-6%, 4%); }
  50% { transform: translate(4%, -6%); } 75% { transform: translate(-3%, -2%); }
  100% { transform: translate(0, 0); }
}

/* vinheta + degradê para o preto */
.stage::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 60%, #1c1c1f 100%),
    radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.45) 100%);
}

/* ================= Logo ================= */
/* bloco central: logo × VI */
.collab {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  transform: translate(calc(-50% + var(--mx) * 10px), calc(-50% + var(--my) * 7px));
  display: flex; align-items: center; gap: 36px;
  pointer-events: none;
}
.x {
  font-size: 52px; font-weight: 400; line-height: 1; color: var(--white);
  text-shadow: 0 0 18px rgba(30,212,26,.8);
  animation: x-in .9s var(--ease) 2.55s both;
}
@keyframes x-in {
  from { opacity: 0; transform: scale(.2) rotate(-180deg); }
  to   { opacity: 1; transform: none; }
}
.center-logo {
  width: 220px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.55));
  pointer-events: none;
}
.center-logo .icon {
  width: 66%; height: auto;
  animation:
    icon-in 1.1s var(--ease) 2s both,
    icon-glow 3.2s ease-in-out 3.2s infinite;
}
@keyframes icon-in {
  from { opacity: 0; transform: scale(.4) rotate(-120deg); filter: blur(10px); }
  to   { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); }
}
@keyframes icon-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(126,211,33,0)); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 22px rgba(126,211,33,.75)); transform: scale(1.04); }
}
.center-logo .wordmark {
  width: 100%; height: auto;
  animation: word-in 1s var(--ease) 2.4s both;
}
@keyframes word-in {
  from { clip-path: inset(0 100% 0 0); opacity: 0; transform: translateY(8px); }
  to   { clip-path: inset(0 0 0 0); opacity: 1; transform: translateY(0); }
}

/* ================= Títulos verticais em loop ================= */
.title-slot {
  position: absolute; top: 0; bottom: 0; z-index: 2; display: flex;
  transform: translate(calc(var(--mx) * 18px), calc(var(--my) * 12px));
}
.title-slot.left { left: 50px; }
.title-slot.right { right: 50px; transform: translate(calc(var(--mx) * 26px), calc(var(--my) * 16px)); }
.marquee {
  height: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee.down { animation: drop-in 1.2s var(--ease) 1.6s both; }
.marquee.up   { animation: rise-in 1.2s var(--ease) 1.75s both; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-60px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(60px);  filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.track { writing-mode: vertical-rl; white-space: nowrap; will-change: transform; }
.track span { padding-inline-end: .5em; }
.outline .track {
  font-size: 54px; font-weight: 700; letter-spacing: 2px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--white);
}
.solid .track {
  font-size: 84px; font-weight: 700; letter-spacing: 2px; line-height: 1;
  color: var(--white); text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
/* PC GAMEPLAY alternando: contorno branco / verde da logo */
.outline .track span:nth-child(even) { -webkit-text-stroke-color: var(--logo-green); }
/* XLAUNCHER alternando: branco / verde da logo */
.solid .track span:nth-child(even) { color: var(--logo-green); }
/* cada faixa tem o texto repetido 4x; mover 50% = loop sem emenda */
.down .track { animation: scroll-down 22s linear infinite; }
.up .track   { animation: scroll-up 16s linear infinite; }
@keyframes scroll-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@keyframes scroll-up   { from { transform: translateY(0); }    to { transform: translateY(-50%); } }

/* ================= Pílula de vidro (estilo iPhone) ================= */
.pill-wrap {
  position: absolute; z-index: 3; left: 50%; bottom: 40px;
  width: min(900px, calc(100% - 120px));
  transform: translateX(-50%);
}
.pill {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 6px; border-radius: 999px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.06));
  -webkit-backdrop-filter: blur(20px) saturate(180%);
          backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(255,255,255,.12),
    0 12px 32px rgba(0,0,0,.35);
  animation: pill-in 1s var(--ease) 2.6s both;
}
@keyframes pill-in {
  from { opacity: 0; transform: translateY(40px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
/* bolha de vidro que desliza entre as duas opções */
.pill-thumb {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.1));
  -webkit-backdrop-filter: blur(10px) saturate(180%);
          backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.8),
    inset 0 -2px 6px rgba(0,0,0,.08),
    0 4px 16px rgba(0,0,0,.18);
  transition: transform .65s cubic-bezier(.4, 1.25, .45, 1); /* mola leve, como no iOS */
}
.pill[data-active="1"] .pill-thumb { transform: translateX(100%); }

.pill-left, .pill-right {
  position: relative; z-index: 1;
  font-family: var(--font); font-weight: 700; font-size: 18px; letter-spacing: 2px;
  padding: 12px 20px; text-align: center; text-transform: uppercase;
  color: var(--white); text-shadow: 0 1px 4px rgba(0,0,0,.35);
  cursor: default; user-select: none; text-decoration: none;
}
a.pill-right { cursor: pointer; }

/* ================= Descrição abaixo da logo ================= */
.about {
  width: min(460px, 80vw); flex-shrink: 0; text-align: center;
  font-family: "Segoe UI", system-ui, sans-serif; font-size: 16px; line-height: 1.6;
  color: rgba(255,255,255,.85); text-shadow: 0 1px 8px rgba(0,0,0,.4);
  animation: word-in 1s var(--ease) 2.7s both;
}

/* ================= Botão "receber aviso" (topo, centro) ================= */
.notify-btn {
  position: absolute; z-index: 4; top: 28px; left: 50%; transform: translateX(-50%);
  padding: 12px 24px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font-family: var(--font); font-weight: 700; font-size: 12px; letter-spacing: 2px; color: var(--white);
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.06));
  -webkit-backdrop-filter: blur(20px) saturate(180%);
          backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 10px 28px rgba(0,0,0,.3);
  transition: background .2s, border-color .2s, box-shadow .2s;
  animation: notify-in 1s var(--ease) 2.2s both;
}
.notify-btn:hover { background: rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 24px rgba(30,212,26,.35); }
.notify-btn.on { background: rgba(30,212,26,.35); border-color: rgba(30,212,26,.8); cursor: default; }
@keyframes notify-in { from { opacity: 0; translate: 0 -30px; } to { opacity: 1; translate: 0 0; } }

/* ================= Cronômetro ================= */
.cd-title {
  margin-top: 20px; text-align: center;
  font-family: var(--font); font-weight: 700; font-size: 14px; letter-spacing: 4px;
  color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,.35);
  animation: pill-in 1s var(--ease) 2.8s both;
}
.countdown {
  display: flex; justify-content: center; align-items: flex-start; gap: 14px;
  margin-top: 10px;
  animation: pill-in 1s var(--ease) 2.9s both;
}
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 88px; }
.cd-num {
  font-family: var(--font); font-weight: 700; font-size: 40px; line-height: 1;
  color: var(--white); font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.cd-num.tick { animation: tick .45s var(--ease); }
@keyframes tick { from { transform: translateY(-6px); opacity: .4; } to { transform: none; opacity: 1; } }
.cd-label { font-family: var(--font); font-size: 10px; letter-spacing: 2px; color: rgba(255,255,255,.8); }
.cd-sep { font-family: var(--font); font-weight: 700; font-size: 34px; line-height: 1.1; color: rgba(255,255,255,.7); }

/* ================= Card de contribuição ================= */
.support {
  min-height: 80svh; display: grid; place-items: center; padding: 80px 24px;
  /* continua o degradê do fim da primeira tela (laranja) até o preto */
  background: linear-gradient(180deg, #1c1c1f 0%, #111113 60%, #000 100%);
}
.support-card {
  width: min(640px, 100%); padding: 44px 40px; border-radius: 28px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  -webkit-backdrop-filter: blur(20px) saturate(160%);
          backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 20px 60px rgba(0,0,0,.45), 0 0 80px rgba(255,72,160,.18);
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.support-tag {
  font-family: var(--font); font-weight: 700; font-size: 11px; letter-spacing: 4px;
  padding: 6px 16px; border-radius: 999px;
  background: linear-gradient(90deg, #5c60f0, #ff48a0, #ff8a3d); color: var(--white);
}
.support-title { font-family: var(--font); font-weight: 700; font-size: 26px; line-height: 1.35; letter-spacing: 1px; }
.pix { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.pix-label { font-family: var(--font); font-size: 11px; letter-spacing: 3px; color: rgba(255,255,255,.75); }
.pix-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 20px; border-radius: 999px;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.2);
}
.pix-key {
  flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: ui-monospace, Consolas, monospace; font-size: 16px; color: var(--white);
}
.pix-copy {
  flex-shrink: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 10px 18px;
  font-family: var(--font); font-weight: 700; font-size: 11px; letter-spacing: 2px; color: var(--white);
  background: linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,.08));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.7); cursor: pointer; transition: .2s;
}
.pix-copy:hover { background: rgba(255,255,255,.35); }
.pix-copy.done { background: var(--logo-green); border-color: var(--logo-green); }
.support-text { font-family: "Segoe UI", system-ui, sans-serif; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.85); max-width: 46ch; }

/* revelar ao rolar (classe .in via app.js) */
.reveal {
  opacity: 0; transform: translateY(60px) scale(.96); filter: blur(10px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ================= GIF do VI no palco ================= */
.vi-wrap { width: 250px; filter: drop-shadow(0 6px 24px rgba(0,0,0,.55)); }
.vi-gif {
  width: 100%; height: auto; display: block;
  animation: vi-in 1.2s var(--ease) 2.7s both;
}
@keyframes vi-in {
  from { opacity: 0; transform: translateY(40px) scale(.8); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ================= Celular ================= */
@media (max-width: 768px) {
  .slide { background-position: var(--mpos, center); }
  /* no celular: um em cima do outro */
  .collab { flex-direction: column; gap: 10px; }
  .center-logo { width: 150px; gap: 10px; }
  .center-logo .icon { width: 72%; }
  .x { font-size: 40px; }
  .vi-wrap { width: 160px; }
  .title-slot.left { left: 14px; }
  .title-slot.right { right: 14px; }
  .outline .track { font-size: 34px; -webkit-text-stroke: 1.2px var(--white); letter-spacing: 1px; }
  .solid .track { font-size: 54px; letter-spacing: 1px; }
  .pill-wrap { bottom: 22px; width: calc(100% - 44px); }
  .about { font-size: 12px; line-height: 1.55; width: 58vw; padding: 10px 12px; border-radius: 14px; background: rgba(20,20,22,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .notify-btn { top: 20px; padding: 10px 14px; font-size: 9px; letter-spacing: 1px; }
  .support { padding: 60px 16px; }
  .support-card { padding: 32px 20px; gap: 18px; border-radius: 22px; }
  .support-title { font-size: 17px; }
  .pix-key { font-size: 13px; }
  .pix-copy { padding: 9px 12px; font-size: 10px; }
  .support-text { font-size: 14px; }
  .cd-title { margin-top: 14px; font-size: 10px; letter-spacing: 3px; }
  .countdown { gap: 6px; margin-top: 8px; }
  .cd-unit { min-width: 64px; }
  .cd-num { font-size: 28px; }
  .cd-sep { font-size: 24px; }
  .cd-label { font-size: 8px; }
  .pill { padding: 5px; }
  .pill-thumb { top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); }
  .pill-left, .pill-right { font-size: 12px; letter-spacing: 1px; padding: 11px 10px; }
}

/* ================= Menos movimento ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro { display: none; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
