/* cria um contexto de empilhamento previsível na página */
body{
  /* ...existing code... */
  isolation: isolate;
}

/* FUNDO: sempre atrás de tudo */
.home__fundo{
  position: fixed;
  inset: 0;
  z-index: -1; /* antes: 0 (podia competir com overlays) */

  /* Preenche a largura (sem bordas laterais) */
  width: 100vw;
  height: 100%;
  min-height: 100vh;

  object-fit: cover;
  object-position: center;

  pointer-events: none;
  user-select: none;

  /* encolhe/aumenta na vertical (mantém largura) */
  transform: scaleY(0.86);
  transform-origin: bottom;
}

.home__mulher-gato{
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 5;
  max-width: 40vw;
  max-height: 55vh;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.botao-entre{
  position: fixed;
  bottom: 140px;
  left: calc(10vw + 8px);
  z-index: 6;

  max-width: 22vw;
  max-height: 22vh;
  width: auto;
  height: auto;
  object-fit: contain;

  pointer-events: auto;
  user-select: none;
}

.botao-entre .botao__img{
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

/* ajuste aqui se a altura real da topbar mudar */
:root{
  --topbar-h: 120px;
}

/* Topo e texto sempre acima do fundo */
.topbar{
  /* ...existing code... */
  position: relative;
  z-index: 10;
}

/* Texto principal fixado logo abaixo dos botões/topbar */
.hero-text{
  position: fixed;
  top: var(--topbar-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  margin: 0;            /* remove margin-top antigo */
  padding: 18px 16px 0; /* controla distância do topo */

  text-align: center;
  font-family: 'Inter', sans-serif;

  /* não atrapalha cliques nos botões */
  pointer-events: none;
  z-index: 9; /* garante acima do fundo */
}

.hero-text h1{
  font-size: 36px; /* era 54px */
  font-weight: 600;
  background: linear-gradient(180deg, #ffffff 0%, #dfe9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  margin: 0 0 30px;

  text-shadow:
    0 0 8px rgba(255,255,255,0.25),
    0 0 20px rgba(0,140,255,0.15);
}

.hero-text h2{
  font-size: 44px;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 20px;

  text-shadow:
    0 0 6px rgba(255,255,255,0.2),
    0 0 15px rgba(0,140,255,0.1);
}

.hero-text p{
  font-size: 22px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.5px;
  margin: 0;
}

/* evita qualquer “tampa” accidental do main */
.page{
  padding-top: 0;   /* antes: calc(var(--topbar-h) + 160px) */
  height: 0;        /* não cria área rolável */
  min-height: 0;
  position: relative;
  z-index: 1;
}

/* ==================================================
   RESPONSIVO: evitar sobreposição em telas menores
   ================================================== */

@media (max-width: 1200px){
  .home__mulher-gato{
    max-width: 46vw;
    max-height: 52vh;
  }

  .hero-text{
    margin-top: 14px;
    max-width: min(78vw, 880px);
  }

  .hero-text h1{ font-size: 40px; } /* era 46px */
  .hero-text h2{ font-size: 36px; }
  .hero-text p{ font-size: 20px; }
}

@media (max-width: 900px){
  /* fundo sem "achatar" muito (melhor leitura) */
  .home__fundo{
    transform: none;
  }

  /* mulher gato menor para não invadir a área central */
  .home__mulher-gato{
    max-width: 44vw;
    max-height: 45vh;
  }

  /* traz a mensagem mais para o centro e um pouco para cima */
  .hero-text{
    margin-top: 12px;
    max-width: min(86vw, 760px);
  }

  .hero-text h1{ font-size: 34px; } /* era 38px */
  .hero-text h2{ font-size: 30px; }
  .hero-text p{ font-size: 18px; }

  /* botão mais central e menor para não sobrepor a mensagem */
  .botao-entre{
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%);
    max-width: min(70vw, 380px);
    max-height: 18vh;
  }
}

@media (max-width: 600px){
  .hero-text{
    margin-top: 10px;
    max-width: 92vw;
  }

  .hero-text h1{ font-size: 28px; } /* era 32px */
  .hero-text h2{ font-size: 26px; }
  .hero-text p{ font-size: 16px; }

  .botao-entre{
    bottom: 70px;
    max-width: 84vw;
  }

  .home__mulher-gato{
    max-width: 52vw;
    max-height: 38vh;
  }
}
