/* Layout: página escura em coluna única, brilho lilás que segue o cursor na abertura */
:root {
  --noite: #0D0B17;
  --veludo: #16122A;
  --borda: #2A2444;
  --nevoa: #ECE8F6;
  --nevoa-suave: #A49DBD;
  --lilas: #C9B3FF;
  --roxo: #8462F0;
  --azul: #5E8BFF;
  --brilho: rgba(132, 98, 240, 0.28);

  --fonte-titulo: "Gloock", Georgia, "Times New Roman", serif;
  --fonte-texto: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fonte-mono: "DM Mono", ui-monospace, Consolas, monospace;

  --raio: 14px;
  color-scheme: dark;
}

/* Segredo: "acender a luz" */
.luz-acesa {
  --noite: #F6F3FC;
  --veludo: #FFFFFF;
  --borda: #DDD5F0;
  --nevoa: #1A1430;
  --nevoa-suave: #5D5579;
  --lilas: #6A47D9;
  --roxo: #6A47D9;
  --azul: #3B67D9;
  --brilho: rgba(132, 98, 240, 0.16);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--noite);
  color: var(--nevoa);
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  transition: background 0.6s, color 0.6s;
}

img { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.5rem; }

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--lilas);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
}

.etiqueta {
  font-family: var(--fonte-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lilas);
}

/* Botões e links */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--lilas);
  color: #120E22;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.luz-acesa .botao { color: #FFFFFF; }

.botao:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--brilho);
}

.botao-pequeno { padding: 8px 18px; font-size: 0.9375rem; }

.link-seta {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--borda);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.link-seta::after { content: " →"; }

.link-seta:hover { color: var(--lilas); border-color: var(--lilas); }

.acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* Cabeçalho */
.topo {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--noite) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borda);
}

.topo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.marca {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.marca-selo {
  display: flex;
  color: var(--lilas);
  cursor: pointer;
  transition: transform 0.3s;
}

.marca-selo:hover { transform: rotate(-12deg); }

@keyframes piscar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.marca-nome {
  font-family: var(--fonte-titulo);
  font-size: 1.375rem;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.menu a:not(.botao) {
  text-decoration: none;
  color: var(--nevoa-suave);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.menu a:not(.botao):hover { color: var(--nevoa); }

/* Abertura */
.abertura {
  --x: 70%;
  --y: 40%;
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 14vw, 180px) clamp(56px, 8vw, 100px);
  background: radial-gradient(520px circle at var(--x) var(--y), var(--brilho), transparent 70%);
}

.abertura-inner {
  display: grid;
  gap: clamp(40px, 7vw, 88px);
}

.abertura h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.abertura h1 span {
  display: block;
  color: var(--lilas);
}

.abertura-dica {
  justify-self: start;
  font-family: var(--fonte-mono);
  font-size: 0.875rem;
  color: var(--nevoa-suave);
  text-decoration: none;
  transition: color 0.2s;
}

.abertura-dica:hover { color: var(--lilas); }

/* Seções */
.secao { padding-block: clamp(64px, 9vw, 112px); }

.secao-faixa {
  background: var(--veludo);
  border-block: 1px solid var(--borda);
}

.secao-topo {
  display: grid;
  gap: 14px;
  margin-bottom: 48px;
  max-width: 640px;
}

.secao-texto { color: var(--nevoa-suave); }

/* Projetos */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filtro {
  font-family: var(--fonte-mono);
  font-size: 0.8125rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--borda);
  background: transparent;
  color: var(--nevoa-suave);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.filtro:hover { color: var(--nevoa); }

.filtro.ativo {
  border-color: var(--lilas);
  color: var(--lilas);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  overflow: hidden;
  background: var(--veludo);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.card a:hover {
  transform: translateY(-4px);
  border-color: var(--roxo);
  box-shadow: 0 18px 40px var(--brilho);
}

.card img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--borda);
}

.card-info {
  display: grid;
  gap: 4px;
  padding: 18px 20px 22px;
}

.card-tipo {
  font-family: var(--fonte-mono);
  font-size: 0.75rem;
  color: var(--lilas);
}

.card-nome {
  font-family: var(--fonte-titulo);
  font-size: 1.375rem;
}

.card-nome::after {
  content: " ↗";
  font-family: var(--fonte-texto);
  font-size: 1rem;
  color: var(--nevoa-suave);
}

.card-texto {
  font-size: 0.9375rem;
  color: var(--nevoa-suave);
  line-height: 1.5;
}

/* Pacotes */
.pacotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pacote {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
}

.pacote > p:not(.preco):not(.pacote-selo) {
  color: var(--nevoa-suave);
  font-size: 1rem;
  flex: 1;
}

.pacote-destaque {
  border-color: var(--roxo);
  background: linear-gradient(160deg, color-mix(in srgb, var(--roxo) 14%, transparent), transparent 60%);
}

.pacote-selo {
  position: absolute;
  top: -12px;
  left: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--roxo);
  color: #FFFFFF;
  font-family: var(--fonte-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preco {
  font-family: var(--fonte-titulo);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--lilas);
  font-variant-numeric: tabular-nums;
}

.pacote-dados {
  display: flex;
  gap: 24px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--borda);
  font-size: 0.875rem;
}

.pacote-dados dt {
  font-family: var(--fonte-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nevoa-suave);
}

.pacote-dados dd { margin: 0; }

.pacotes-fluxo {
  margin-top: 40px;
  display: grid;
  gap: 6px;
  color: var(--nevoa-suave);
}

.pacotes-fluxo span {
  font-family: var(--fonte-mono);
  font-size: 0.9375rem;
  color: var(--nevoa);
}

.pacotes-nota {
  margin-top: 32px;
  max-width: 62ch;
  color: var(--nevoa-suave);
  font-size: 1rem;
}

/* Sobre */
.sobre {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.sobre-foto {
  position: relative;
  margin: 0;
}

/* Segredo: fantasminha que espia por trás da foto */
.fantasma {
  position: absolute;
  top: -34px;
  right: 18%;
  z-index: 2;
  padding: 0;
  border: 0;
  background: none;
  color: var(--lilas);
  cursor: pointer;
  animation: flutuar 3s ease-in-out infinite;
}

.fantasma svg { display: block; fill: currentColor; filter: drop-shadow(0 0 8px var(--brilho)); }

.fantasma .olho { fill: var(--noite); }

.fantasma:hover { color: var(--nevoa); }

.fantasma.pulando { animation: pular 0.6s ease-out; }

@keyframes flutuar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pular {
  0% { transform: translateY(0) rotate(0); }
  40% { transform: translateY(-40px) rotate(-12deg); }
  70% { transform: translateY(-40px) rotate(12deg); }
  100% { transform: translateY(0) rotate(0); }
}

/* Segredo: foto em 8 bits */
.sobre-foto .foto { cursor: pointer; }

.foto-8bits { image-rendering: auto; }

.jogador {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: var(--noite);
  border: 2px solid var(--lilas);
  font-family: var(--fonte-mono);
  font-size: 0.8125rem;
  color: var(--lilas);
  white-space: nowrap;
}

.jogador::before {
  content: "▶ ";
  animation: piscar 1s steps(1) infinite;
}

.foto {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 200px 200px var(--raio) var(--raio);
  border: 1px solid var(--borda);
}

.sobre-texto {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.sobre-texto p:not(.etiqueta) { color: var(--nevoa-suave); max-width: 60ch; }

.tracos {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tracos li {
  padding: 6px 16px;
  border: 1px solid var(--borda);
  border-radius: 999px;
  font-family: var(--fonte-mono);
  font-size: 0.875rem;
  color: var(--lilas);
}

/* Contato */
.contato-inner {
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}

.contato h2 { max-width: 18ch; }

.contato-lista {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
}

.contato-lista li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 10px;
}

.contato-rotulo {
  font-family: var(--fonte-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nevoa-suave);
}

.contato-valor { user-select: all; overflow-wrap: anywhere; }

.copiar {
  font: inherit;
  font-size: 0.8125rem;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--borda);
  background: transparent;
  color: var(--lilas);
  cursor: pointer;
}

/* Rodapé */
.rodape {
  border-top: 1px solid var(--borda);
  padding-block: 28px;
  font-size: 0.875rem;
  color: var(--nevoa-suave);
}

.rodape-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.rodape-dica {
  font-family: var(--fonte-mono);
  font-size: 0.8125rem;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s, color 0.2s;
}

.rodape-dica:hover { opacity: 1; color: var(--lilas); }

/* Segredos */
.aviso {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 14px 22px;
  border-radius: var(--raio);
  background: var(--veludo);
  border: 1px solid var(--roxo);
  box-shadow: 0 16px 40px var(--brilho);
  font-family: var(--fonte-mono);
  font-size: 0.9375rem;
  text-align: center;
  animation: subir 0.4s ease-out;
}

@keyframes subir {
  from { opacity: 0; transform: translate(-50%, 16px); }
}

.estrelas {
  position: fixed;
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Segredo: Flash */
.flash-brilho {
  position: fixed;
  z-index: 35;
  width: 90px;
  height: 90px;
  margin: -45px 0 0 -45px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0%, var(--lilas) 30%, transparent 70%);
  pointer-events: none;
  animation: brilhar 0.5s ease-out forwards;
}

@keyframes brilhar {
  from { transform: scale(0.2); opacity: 1; }
  to { transform: scale(1.6); opacity: 0; }
}

.fantasma-flash {
  position: fixed;
  z-index: 36;
  width: 36px;
  height: 48px;
  margin: -24px 0 0 -18px;
  fill: var(--lilas);
  filter: drop-shadow(0 0 10px var(--roxo));
  pointer-events: none;
  animation: aparecer 1.8s ease-out forwards;
}

.fantasma-flash .olho { fill: var(--noite); }

@keyframes aparecer {
  0% { opacity: 0; transform: scale(0.4); }
  15% { opacity: 1; transform: scale(1.1); }
  25% { transform: scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* Segredo: faixa de Pentakill */
.pentakill {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-family: var(--fonte-titulo);
  font-size: clamp(3rem, 12vw, 9rem);
  color: var(--lilas);
  text-shadow: 0 0 30px var(--roxo), 4px 4px 0 var(--noite);
  letter-spacing: 0.02em;
  background: radial-gradient(ellipse 60% 30% at center, rgba(13, 11, 23, 0.9), transparent);
}

.pentakill.ativo { animation: pentakill 2.6s ease-out forwards; }

@keyframes pentakill {
  0% { opacity: 0; transform: scale(2.2); }
  15% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 0; transform: scale(1.1); }
}

.fantasma.dancando { animation: dancar 0.5s ease-in-out 5; }

@keyframes dancar {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-10px) rotate(-15deg); }
  50% { transform: translateY(0) rotate(0) scaleX(-1); }
  75% { transform: translateY(-10px) rotate(15deg) scaleX(-1); }
}

/* Celular e tablet */
@media (max-width: 900px) {
  .pacotes { grid-template-columns: 1fr; gap: 28px; }
  .sobre { grid-template-columns: 1fr; gap: 40px; }
  .sobre-foto { max-width: 320px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .menu a:not(.botao) { display: none; }
  .marca-nome { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
