:root {
  --bg: #0B0B0D;
  --bg-edge: #050506;
  --card: #151518;
  --card-hover: #1E1E23;
  --line: #26262B;
  --line-hover: #3A3A42;
  --accent: #FF2D87;
  --accent-hover: #E0156F;
  --accent-soft: rgba(255, 45, 135, .08);
  --text: #F5F5F7;
  --text-2: #A1A1AA;
  --text-3: #71717A;
  --f-title: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg-edge); }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-edge);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background: radial-gradient(circle at 88% 8%, #4A0F2C 0%, var(--bg) 52%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow: clip;
}

/* Brilho ambiente que respira devagar */
.shell::before,
.shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}
.shell::before {
  width: 420px; height: 420px;
  right: -160px; top: -140px;
  background: radial-gradient(circle, rgba(255, 45, 135, .22), transparent 65%);
  animation: drift 14s ease-in-out infinite alternate;
}
.shell::after {
  width: 360px; height: 360px;
  left: -180px; bottom: -160px;
  background: radial-gradient(circle, rgba(74, 15, 44, .7), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 50px) scale(1.15); }
}

/* Topo */
.progress {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 3px;
  background: var(--line);
  width: 100%;
}
.progress__bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 45, 135, .7);
  border-radius: 0 999px 999px 0;
  transition: width .6s var(--ease);
}
.progress.is-hidden .progress__bar { width: 0 !important; }

.top {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 16px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 56px;
}
.logo {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .16em;
  color: #FFFFFF;
  text-decoration: none;
}
.logo img { height: 22px; width: auto; display: block; }
.back {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: var(--text-3);
  font-family: var(--f-body);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 10px 8px 0;
  transition: color .2s, opacity .3s, transform .3s var(--ease);
}
.back:hover { color: var(--text-2); transform: translateX(-2px); }
.back.is-hidden { opacity: 0; pointer-events: none; }
.counter {
  grid-column: 3;
  justify-self: end;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--text-3);
  transition: opacity .3s;
}

/* Telas */
.stage {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  display: grid;
}
.screen {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding-bottom: 8vh;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity .45s var(--ease), transform .55s var(--ease), filter .45s var(--ease);
}
.screen.from-back { transform: translateY(-28px); }
.screen.is-in { opacity: 1; transform: none; filter: none; }
.screen.is-out { opacity: 0; transform: translateY(-28px); filter: blur(6px); pointer-events: none; }
.screen.is-out.to-back { transform: translateY(28px); }
.screen--top { justify-content: flex-start; padding-bottom: 24px; }

/* Entrada escalonada dos elementos */
.screen .stagger {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms + 120ms);
}
.screen.is-in .stagger { opacity: 1; transform: none; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.title-wrap { position: relative; margin-bottom: 28px; }
.title-wrap::before {
  /* Quadrado para o círculo do brilho caber inteiro, sem bordas visíveis */
  content: "";
  position: absolute;
  left: -90px;
  top: 50%;
  width: 360px;
  height: 360px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(255, 45, 135, .16), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.title {
  position: relative;
  z-index: 1;
  font-family: var(--f-title);
  font-weight: 600;
  font-size: clamp(24px, 6.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text);
  text-wrap: balance;
}
.title--big { font-weight: 700; font-size: clamp(26px, 7.4vw, 38px); }
.lead-in {
  position: relative;
  z-index: 1;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 36px;
  text-wrap: pretty;
}
.hint { color: var(--text-3); font-size: 14px; margin-top: -16px; margin-bottom: 24px; position: relative; z-index: 1; }

/* Opções */
.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px 16px 14px;
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.option__key {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-hover);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-3);
  transition: background .25s, border-color .25s, color .25s;
}
.option__text { flex: 1; }
.option__check {
  flex: none;
  width: 22px; height: 22px;
  opacity: 0;
  transform: scale(.4);
  transition: opacity .25s, transform .4s var(--ease);
  color: var(--accent);
}
@media (hover: hover) {
  .option:hover { background: var(--card-hover); border-color: var(--line-hover); transform: translateX(4px); }
  .option:hover .option__key { border-color: var(--text-3); color: var(--text-2); }
}
.option:active { transform: scale(.985); }
.option.is-selected,
.option.is-selected:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(255, 45, 135, .06), 0 8px 30px -12px rgba(255, 45, 135, .5);
  transform: none;
}
.option.is-selected .option__key { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.option.is-selected .option__check { opacity: 1; transform: scale(1); }
.options.is-locked .option:not(.is-selected) { opacity: .45; transition: opacity .3s; }

.option:focus-visible, .btn:focus-visible, .back:focus-visible, .ask__ok:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Botões */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(255, 45, 135, .6);
  transition: background .2s, transform .3s var(--ease), box-shadow .3s;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(255, 45, 135, .7); }
.btn:active { background: var(--accent-hover); transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--line-hover);
  box-shadow: none;
}
.btn--ghost:hover, .btn--ghost:active { background: var(--card-hover); border-color: var(--text-3); box-shadow: none; }

/* Pergunta aberta (contato) */
.ask { position: relative; z-index: 1; }
.ask__field {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--line-hover);
  transition: border-color .3s;
}
.ask__field:focus-within { border-color: var(--accent); }
.ask.has-error .ask__field { border-color: var(--accent); animation: shake .4s; }
.ask__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  padding: 12px 0;
  color: var(--text);
  font-family: var(--f-title);
  font-weight: 600;
  font-size: clamp(22px, 6.4vw, 28px);
  letter-spacing: -.01em;
  caret-color: var(--accent);
}
.ask__input::placeholder { color: #3A3A42; }
.ask__error {
  min-height: 22px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--accent);
  opacity: 0;
  transition: opacity .2s;
}
.ask.has-error .ask__error { opacity: 1; }
.ask__actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.ask__actions .btn { width: auto; min-width: 160px; }
.ask__kbd { font-family: var(--f-mono); font-size: 12px; color: var(--text-3); }
.ask__kbd b { font-weight: 400; color: var(--text-2); border: 1px solid var(--line-hover); border-radius: 6px; padding: 2px 6px; margin: 0 2px; }
@media (hover: none) { .ask__kbd { display: none; } .ask__actions .btn { width: 100%; } }

@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Abertura */
.landing { padding-bottom: 4vh; }
.cover {
  position: relative;
  width: 148px;
  aspect-ratio: 640 / 830;
  margin: 0 0 28px 6px;
  transform: rotate(-4deg);
}
.cover img,
.cover__ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
.cover img {
  object-fit: cover;
  border: 1px solid var(--line-hover);
  box-shadow: 0 24px 50px -18px rgba(255, 45, 135, .55), 0 10px 30px -10px rgba(0, 0, 0, .8);
  animation: float 6s ease-in-out infinite;
}
.cover__ghost {
  background: var(--card);
  border: 1px solid var(--line);
  transform: rotate(9deg) translate(14px, 4px);
}
.cover__tag {
  position: absolute;
  right: -26px;
  bottom: 18px;
  transform: rotate(4deg);
  font-family: var(--f-mono);
  font-size: 11px;
  color: #FFFFFF;
  background: var(--accent);
  border-radius: 999px;
  padding: 5px 10px;
  box-shadow: 0 6px 18px -6px rgba(255, 45, 135, .8);
  white-space: nowrap;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.landing .title-wrap { margin-bottom: 14px; }
.landing .lead-in { margin-bottom: 22px; }
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.chips li {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: rgba(21, 21, 24, .6);
  border-radius: 999px;
  padding: 6px 12px;
}

/* Desbloqueio no topo da tela final (~1,2s, sem esperar) */
.unlock {
  position: relative;
  width: 124px;
  aspect-ratio: 640 / 830;
  margin: 4px auto 22px;
}
.unlock__cover {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-hover);
  filter: blur(6px) brightness(.35);
  transform: scale(.94);
  animation: reveal .55s var(--ease) .8s forwards;
}
.unlock__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.unlock__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine .8s ease 1.2s forwards;
}
.unlock__ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 170px; height: 170px;
  margin: -85px 0 0 -85px;
  border-radius: 50%;
  border: 1px solid rgba(255, 45, 135, .6);
  opacity: 0;
  pointer-events: none;
  animation: ring .9s var(--ease) .8s forwards;
}
.spark {
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  margin: -3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  animation: spark .8s var(--ease) .85s forwards;
}

/* Cadeado */
.padlock {
  position: absolute;
  left: 50%; top: 50%;
  width: 112px;
  height: 150px;
  margin: -80px 0 0 -56px;
  scale: .62;
  z-index: 3;
  animation: padFall .4s cubic-bezier(.55, 0, .75, .2) .8s forwards;
}
.padlock__shackle {
  position: absolute;
  left: 0; top: 0;
  width: 112px; height: 80px;
  transform-origin: 88px 78px; /* perna direita da haste */
  animation: shackleOpen .45s var(--ease) .35s forwards;
}
.padlock__body {
  position: absolute;
  left: 0; top: 62px;
  width: 112px; height: 88px;
  border-radius: 20px;
  background: linear-gradient(160deg, #FF5AA2 0%, var(--accent) 45%, var(--accent-hover) 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .35),
    inset 0 -6px 12px rgba(0, 0, 0, .25),
    0 20px 40px -14px rgba(255, 45, 135, .9);
  display: grid;
  place-items: center;
  animation: shake .25s ease .12s;
}
.padlock__keyhole { width: 22px; height: 34px; }

.unlock__badge {
  position: absolute;
  left: 50%; bottom: -12px;
  translate: -50% 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--accent);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
  box-shadow: 0 0 0 4px var(--bg), 0 6px 18px -6px rgba(255, 45, 135, .8);
  transform: scale(0);
  z-index: 4;
  animation: pop .4s var(--ease) 1.1s forwards;
}

@keyframes shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-6deg); }
  50% { transform: rotate(5deg); }
  75% { transform: rotate(-3deg); }
}
@keyframes shackleOpen {
  0%   { transform: translateY(0) rotate(0); }
  40%  { transform: translateY(-24px) rotate(0); }
  75%  { transform: translateY(-24px) rotate(34deg); }
  100% { transform: translateY(-23px) rotate(28deg); }
}
@keyframes padFall {
  to { opacity: 0; transform: translateY(70px) rotate(16deg); }
}
@keyframes reveal {
  to { filter: none; transform: none; box-shadow: 0 24px 60px -20px rgba(255, 45, 135, .7); }
}
@keyframes shine { to { transform: translateX(120%); } }
@keyframes ring {
  0%   { opacity: .9; transform: scale(.5); }
  100% { opacity: 0; transform: scale(1.4); }
}
@keyframes pop { 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes spark {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.3); }
}

/* Final */
.card-tag {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--accent);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(255, 45, 135, .8);
}

/* Final: acervo (em cima) */
.acervo {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 16px;
  padding: 32px 20px 22px;
  margin-top: 10px;
  margin-bottom: 16px;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(160deg, var(--accent), rgba(255, 45, 135, .25) 40%, var(--line) 70%) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 60px -30px rgba(255, 45, 135, .45);
}
.acervo::before {
  content: "";
  position: absolute;
  left: 50%; top: -60px;
  width: 300px; height: 300px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 45, 135, .16), transparent 65%);
  pointer-events: none;
}
.acervo > *:not(.card-tag) { position: relative; }
.fan {
  position: relative;
  height: 96px;
  width: 200px;
  margin: 0 auto 18px;
}
.fan img {
  position: absolute;
  left: 50%; bottom: 0;
  width: 64px;
  aspect-ratio: 640 / 830;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line-hover);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .9);
  transform-origin: 50% 120%;
  transform: translateX(-50%) rotate(var(--r));
  transition: transform .5s var(--ease);
}
@media (hover: hover) {
  .acervo:hover .fan img { transform: translateX(-50%) rotate(calc(var(--r) * 1.3)) translateY(-4px); }
}
.acervo .label { justify-content: center; }
.acervo__title { font-family: var(--f-title); font-weight: 700; font-size: clamp(22px, 6vw, 26px); line-height: 1.2; letter-spacing: -.01em; margin-bottom: 10px; text-wrap: balance; }
.acervo__text { color: var(--text-2); font-size: 15px; margin: 0 auto 20px; max-width: 420px; text-wrap: pretty; }
.acervo__list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0 auto 22px;
  width: fit-content;
  max-width: 100%;
  text-align: left;
}
.acervo__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.acervo__list svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.acervo__note { font-family: var(--f-mono); font-size: 12px; color: var(--text-3); margin-top: 12px; }

/* Final: download (embaixo) */
.download {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.download__file { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; }
.download__thumb {
  flex: none;
  width: 48px;
  aspect-ratio: 640 / 830;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line-hover);
}
.download__name { font-family: var(--f-title); font-weight: 600; font-size: 16px; line-height: 1.3; }
.download__meta { font-family: var(--f-mono); font-size: 12px; color: var(--text-3); margin-top: 4px; }
.btn--outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--text);
  box-shadow: none;
}
.btn--outline:hover, .btn--outline:active { background: var(--accent-soft); box-shadow: none; }

/* Centralizado, mobile first */
.screen { align-items: center; text-align: center; }
.screen > * { max-width: 100%; }
.title-wrap { width: 100%; }
.title-wrap::before { left: 50%; transform: translate(-50%, -50%); }
.options, .ask, .chips, .btn--hero { width: 100%; }
.ask__input { text-align: center; }
.ask__actions { justify-content: center; flex-wrap: wrap; }
.chips { justify-content: center; }
.cover { margin: 0 auto 28px; }

/* Telas maiores */
@media (min-width: 600px) {
  .stage { padding-top: 40px; }
  .download { flex-direction: row; justify-content: space-between; }
  .download .btn { width: auto; flex: none; }
  .download__file { width: auto; }
  .acervo { padding: 36px 32px 26px; }
  .cover { width: 168px; }
  .lead-in { font-size: 18px; }
}
@media (min-width: 1024px) {
  .stage { padding-top: 56px; }
  .top { padding-top: 24px; }
  .shell::before { width: 640px; height: 640px; right: -200px; top: -220px; }
  .shell::after { width: 560px; height: 560px; }
}
@media (max-width: 360px) {
  .option { padding: 14px 14px 14px 12px; font-size: 15px; }
  .cover { width: 124px; }
  .chips li { font-size: 11px; padding: 5px 10px; }
}
@media (max-height: 700px) {
  .cover { width: 112px; margin-bottom: 20px; }
  .screen { padding-bottom: 2vh; }
}
