body {
  margin: 0;
  background-color: var(--cor-escuro);
  color: var(--cor-texto);
  font-family: var(--font-body);
  font-optical-sizing: auto;
}

.menu-superior {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px clamp(16px, 4vw, 40px);
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.96) 0%, rgba(24, 24, 27, 0.78) 68%, rgba(24, 24, 27, 0) 100%);
}

.link-menu,
.btn-entrar,
.btn-cadastrar {
  display: inline-block;
  padding: 10px 20px;
  font: var(--font-padrao);
  color: var(--cor-texto);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--border-radius);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.link-menu {
  padding-inline: 14px;
  background: rgba(250, 250, 250, 0.06);
  border: 1px solid rgba(250, 250, 250, 0.12);
}

.btn-entrar {
  background: rgba(250, 250, 250, 0.08);
  border: 1px solid rgba(250, 250, 250, 0.14);
}

.btn-cadastrar {
  background-color: var(--cor-secundaria);
  border: 1px solid transparent;
}

.link-menu:hover,
.btn-entrar:hover,
.btn-cadastrar:hover {
  transform: translateY(-1px);
}

.hero-inicial {
  position: relative;
  min-height: calc(100vh - 70px);
  margin-top: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-inicial::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(24, 24, 27, 0.16) 0%, rgba(24, 24, 27, 0.5) 48%, rgba(24, 24, 27, 0.84) 100%),
    radial-gradient(circle at top left, rgba(var(--cor-violeta-rgb), 0.34), transparent 36%);
}

.banner {
  --banner-columns: 5;
  --banner-row-size: 120px;
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--banner-columns), minmax(0, 1fr));
  grid-auto-rows: var(--banner-row-size);
  grid-auto-flow: dense;
  gap: 8px;
  padding: 8px;
  box-sizing: border-box;
  overflow: hidden;
}

.card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  cursor: pointer;
  appearance: none;
}

.card--vertical {
  grid-row: span 2;
}

.card--horizontal {
  grid-column: span 2;
}

.card--large {
  grid-column: span 2;
  grid-row: span 2;
}

.card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: end;
  gap: 0.4rem;
  padding: 1rem;
  background:
    radial-gradient(circle at top left, rgba(var(--cor-primaria-rgb), 0.42), transparent 46%),
    linear-gradient(145deg, rgba(24, 24, 27, 0.86), rgba(57, 57, 64, 0.98));
  color: var(--cor-texto);
}

.card-placeholder strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  background: rgba(250, 250, 250, 0.12);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.card-placeholder span {
  font-size: 1rem;
  font-weight: 700;
}

.card-placeholder small {
  color: rgba(250, 250, 250, 0.72);
  font-size: 0.82rem;
}

.overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 14px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.74) 100%);
  color: var(--cor-texto);
  font: 600 0.95rem/1.2 var(--font-heading);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.overlay strong,
.overlay small {
  display: block;
}

.overlay strong {
  font-size: 0.94rem;
}

.overlay small {
  margin-top: 0.25rem;
  color: rgba(250, 250, 250, 0.72);
  font-size: 0.78rem;
}

.card:hover img,
.card:focus-visible img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.card:hover .overlay,
.card:focus-visible .overlay {
  opacity: 1;
  transform: translateY(0);
}

.card:focus-visible {
  outline: 2px solid rgba(250, 250, 250, 0.84);
  outline-offset: 3px;
  z-index: 1;
}

.conteudo {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 0 24px;
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
  color: var(--cor-texto);
  border: 1px solid rgba(250, 250, 250, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.48), rgba(24, 24, 27, 0.76));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

.conteudo h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.95;
}

.conteudo p {
  margin: 16px 0 0;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.6;
  color: rgba(250, 250, 250, 0.88);
}

.banner-status {
  grid-column: 1 / -1;
  align-self: end;
  max-width: min(560px, calc(100% - 24px));
  margin: auto auto 24px 24px;
  padding: 1.15rem 1.25rem;
  border-radius: 22px;
  background: rgba(24, 24, 27, 0.84);
  border: 1px solid rgba(250, 250, 250, 0.12);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
  color: var(--cor-texto);
  z-index: 3;
}

.banner-status strong {
  display: block;
  font-size: 1rem;
}

.banner-status p {
  margin: 0.5rem 0 0;
  color: rgba(250, 250, 250, 0.76);
  line-height: 1.6;
}

.banner-status--error {
  border-color: rgba(var(--cor-primaria-rgb), 0.36);
  background: linear-gradient(180deg, rgba(55, 16, 14, 0.92), rgba(28, 10, 36, 0.94));
}

@media (max-width: 900px) {
  .banner {
    gap: 6px;
    padding: 6px;
  }

  .conteudo {
    width: min(640px, calc(100% - 32px));
    margin: 0;
  }

  .banner-status {
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (max-width: 600px) {
  .menu-superior {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
  }

  .link-menu,
  .btn-entrar,
  .btn-cadastrar {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    padding: 10px 12px;
    font-size: 14px;
    text-align: center;
  }

  .hero-inicial {
    min-height: calc(100vh - 122px);
    margin-top: 122px;
    align-items: flex-end;
  }

  .conteudo {
    margin: 0 16px 20px;
    padding: 22px 18px;
    border-radius: 20px;
  }

  .conteudo h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }
}
