@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --fundo: #05070c;
  --fundo-2: #0a0f18;
  --papel: rgba(12, 18, 28, 0.85);
  --texto: #e8f0f7;
  --mudo: #8b9bb0;
  --linha: rgba(46, 230, 255, 0.12);
  --linha-forte: rgba(46, 230, 255, 0.28);
  --acento: #2ee6ff;
  --acento-2: #5cff9a;
  --acento-tinta: #031018;
  --alerta: #ff6b4a;
  --max: 1080px;
  --sans: "Space Grotesk", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
}

/* Atmosphere: grid + radial washes */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(46, 230, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(92, 255, 154, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(46, 230, 255, 0.06), transparent 55%),
    linear-gradient(180deg, var(--fundo-2) 0%, var(--fundo) 40%, #030508 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(46, 230, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 230, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 70% at 40% 20%, #000 15%, transparent 80%);
}

a { color: var(--acento); transition: color 0.2s var(--ease); }
a:hover { color: #fff; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible {
  outline: 2px solid var(--acento);
  outline-offset: 3px;
}

.pular {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--acento);
  color: var(--acento-tinta);
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  font-family: var(--mono);
  font-size: 0.85rem;
  text-decoration: none;
  z-index: 20;
}
.pular:focus { top: 1rem; }

.miolo { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

.topo {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(5, 7, 12, 0.78);
  border-bottom: 1px solid var(--linha);
  backdrop-filter: blur(16px) saturate(1.2);
}
.topo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acento), var(--acento-2), transparent);
  opacity: 0.45;
}
.barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.marca {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}
.marca b {
  color: var(--acento);
  font-weight: 700;
  text-shadow: 0 0 24px rgba(46, 230, 255, 0.35);
}
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.85rem; }
nav a {
  color: var(--mudo);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.15rem 0;
  transition: color 0.2s var(--ease);
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--acento);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
nav a[aria-current="page"],
nav a:hover { color: #fff; }
nav a[aria-current="page"]::after,
nav a:hover::after { transform: scaleX(1); }

.hero {
  padding: 3.6rem 0 2.4rem;
  position: relative;
}

.hero-bleed {
  position: relative;
  min-height: min(78vh, 42rem);
  display: flex;
  align-items: flex-end;
  padding: 5.5rem 0 2.8rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
  transform: scale(1.02);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.92) 0%, rgba(5, 7, 12, 0.72) 42%, rgba(5, 7, 12, 0.35) 100%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.55) 0%, rgba(5, 7, 12, 0.2) 35%, rgba(5, 7, 12, 0.88) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 0.4rem;
}
.titulo-jogo {
  display: block;
  font-size: clamp(2.6rem, 7.5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 40px rgba(46, 230, 255, 0.25);
  margin-bottom: 0.45rem;
}
.titulo-jogo b {
  color: var(--acento);
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acento-2);
  border: 1px solid rgba(92, 255, 154, 0.35);
  background: rgba(5, 7, 12, 0.45);
  backdrop-filter: blur(8px);
}
.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--acento-2);
  box-shadow: 0 0 0 0 rgba(92, 255, 154, 0.55);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(92, 255, 154, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(92, 255, 154, 0); }
}

h1 {
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 24ch;
  color: var(--texto);
}
.hero-copy h1 {
  max-width: 18ch;
}
.secao > h1 {
  max-width: none;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
}
.olho {
  margin-top: 1rem;
  max-width: 38rem;
  color: var(--mudo);
  font-size: 1.1rem;
}
.acoes { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

.botao, .compra {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.45rem 1.15rem;
  border-radius: 2px;
  background: var(--acento);
  color: var(--acento-tinta);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: filter 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}
.botao.fantasma, a.fantasma {
  background: transparent;
  color: var(--texto);
  border-color: var(--linha-forte);
  clip-path: none;
  border-radius: 2px;
}
.botao:hover, .compra:hover {
  color: var(--acento-tinta);
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.botao.fantasma:hover, a.fantasma:hover {
  color: #fff;
  border-color: var(--acento);
  background: rgba(46, 230, 255, 0.06);
  filter: none;
}

.grade {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.85rem;
  margin: 1.2rem 0 2rem;
}
.cartao {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: 2px;
  padding: 1.15rem 1.2rem 1.25rem;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cartao::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--acento), var(--acento-2));
  opacity: 0.55;
  transition: opacity 0.25s var(--ease);
}
.cartao::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--acento);
  border-right: 1px solid var(--acento);
  opacity: 0.35;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}
a.cartao:hover {
  border-color: var(--linha-forte);
  color: inherit;
  transform: translateY(-3px);
  background: rgba(14, 22, 34, 0.95);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(46, 230, 255, 0.08);
}
a.cartao:hover::before { opacity: 1; }
a.cartao:hover::after { opacity: 0.9; }
.cartao strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.cartao span, .mudo {
  color: var(--mudo);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}
.cartao-foto {
  padding-top: 0;
  gap: 0.55rem;
}
.cartao-foto img {
  display: block;
  width: calc(100% + 2.4rem);
  max-width: none;
  margin: 0 -1.2rem 0.15rem;
  height: 9.5rem;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid var(--linha);
}

.secao { padding: 0.4rem 0 2.4rem; }
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
  font-weight: 650;
}
.texto { max-width: 42rem; }
.texto p, .texto li { margin: 0.7rem 0; }
.texto ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }

.produto {
  display: grid;
  gap: 0.4rem;
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: 2px;
  padding: 1.15rem 1.2rem;
  margin-top: 0.8rem;
  position: relative;
  transition: border-color 0.25s var(--ease);
}
.produto:hover { border-color: var(--linha-forte); }
.produto h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.produto h3::before {
  content: "// ";
  font-family: var(--mono);
  color: var(--acento);
  font-size: 0.85em;
  font-weight: 600;
}
.avisos { margin: 1rem 0 0; color: var(--mudo); font-size: 0.9rem; }

.codigo {
  background: var(--papel);
  border: 1px solid var(--linha);
  border-left: 3px solid var(--acento);
  border-radius: 2px;
  padding: 0.95rem 1.05rem;
  margin-top: 0.7rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.codigo:hover {
  border-color: var(--linha-forte);
  border-left-color: var(--acento-2);
  background: rgba(14, 22, 34, 0.95);
}
.codigo h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.seq {
  color: var(--acento);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
  padding: 0.55rem 0.7rem;
  background: rgba(46, 230, 255, 0.06);
  border: 1px solid rgba(46, 230, 255, 0.15);
  word-break: break-word;
}

.ranking {
  list-style: none;
  margin: 0.85rem 0 1.5rem;
  padding: 0;
  border: 1px solid var(--linha);
  border-radius: 2px;
  overflow: hidden;
  background: var(--papel);
}
.ranking li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.9rem 1.05rem;
  border-top: 1px solid var(--linha);
  transition: background 0.2s var(--ease);
}
.ranking li:first-child { border-top: 0; }
.ranking li:hover { background: rgba(14, 22, 34, 0.95); }
.ranking .pos {
  color: var(--acento);
  font-family: var(--mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ranking strong {
  display: block;
  letter-spacing: -0.02em;
}
.ranking .mudo {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.9rem;
}
.ranking .vel {
  color: var(--acento);
  font-family: var(--mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nota {
  margin: 1rem 0;
  padding: 0.95rem 1.05rem;
  border-radius: 2px;
  background: rgba(255, 107, 74, 0.08);
  border: 1px solid rgba(255, 107, 74, 0.35);
  border-left: 3px solid var(--alerta);
  color: #f0d4cc;
  font-size: 0.98rem;
}

.anuncio {
  margin: 1.2rem 0;
  min-height: 0;
  overflow: hidden;
}
.anuncio[hidden] { display: none !important; }

.rodape {
  border-top: 1px solid var(--linha);
  padding: 1.8rem 0 2.4rem;
  color: var(--mudo);
  font-size: 0.9rem;
  position: relative;
}
.rodape::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acento), transparent);
  opacity: 0.3;
}
.rodape p { margin: 0.35rem 0; }
.rodape nav { margin-bottom: 0.7rem; }
.rodape a { color: var(--texto); }

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cartao, .botao, .compra, nav a::after { transition: none; }
}

@media (max-width: 720px) {
  .barra { align-items: flex-start; flex-direction: column; padding: 0.85rem 0; }
  h1, .secao > h1, .hero-copy h1 { max-width: none; }
  .hero-bleed {
    min-height: min(70vh, 34rem);
    padding: 4.2rem 0 2.2rem;
    align-items: flex-end;
  }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 7, 12, 0.45) 0%, rgba(5, 7, 12, 0.55) 40%, rgba(5, 7, 12, 0.94) 100%),
      linear-gradient(90deg, rgba(5, 7, 12, 0.75), rgba(5, 7, 12, 0.35));
  }
  .cartao-foto img { height: 8.2rem; }
}
