@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Rajdhani:wght@400;500;600;700&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #0b101b;
  color: #edf3ff;
  font-family: "Rajdhani", sans-serif;
}

#hero {
  min-height: 100vh;
  padding: 60px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  background-image: url("../Gallery/RegiHero-noite.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: hero-entrada 0.9s both cubic-bezier(0.2, 0.8, 0.2, 1);
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 18% 45%, rgba(102, 139, 216, 0.18), transparent 35%), linear-gradient(90deg, rgba(10, 12, 20, 0.76), rgba(10, 12, 20, 0.22));
  pointer-events: none;
}

.hero-etiqueta {
  margin: 0;
  color: #f0c969;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
}

#hero h1 {
  margin: 0;
  color: #f0c969;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(30px, 5vw, 58px);
  letter-spacing: 5px;
  text-shadow: 0 0 18px rgba(240, 201, 105, 0.28), 4px 4px 0 rgba(10, 15, 26, 0.8);
  animation: logo-aparece 0.9s 0.12s both cubic-bezier(0.2, 0.8, 0.2, 1);
}

#hero h2 {
  margin: 0;
  font-size: 30px;
}

.hero-descricao {
  max-width: 430px;
  margin: 0;
  color: #c0c4d0;
  font-size: 20px;
  line-height: 1.5;
}

/* BOTÃO SLOW START */

.hero-botao {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 16px 26px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #d9c58b 0%, #b9a16a 100%);
  border: 2px solid #f0e2b0;
  border-radius: 4px;
  color: #0b101b;
  font-family: "Press Start 2P", monospace;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  box-shadow:
    0 5px 0 #6b5a34,
    0 10px 24px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s,
    background 0.3s;
}

/* faixa de brilho que atravessa o botão de tempos em tempos */

.hero-botao::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: translateX(-160%) skewX(-20deg);
  animation: brilho-botao 3.6s ease-in-out infinite;
}

/* setinha desenhada com CSS */

.hero-botao::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #0b101b;
  animation: empurrar-seta 1.4s ease-in-out infinite;
}

.hero-botao:hover {
  background: linear-gradient(180deg, #f0dc8c 0%, #d4bb78 100%);
  box-shadow:
    0 9px 0 #6b5a34,
    0 0 26px rgba(102, 139, 216, 0.9),
    0 16px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px);
}

.hero-botao:hover::before {
  animation-duration: 1s;
}

.hero-botao:active {
  box-shadow:
    0 2px 0 #6b5a34,
    0 4px 12px rgba(0, 0, 0, 0.45);
  transform: translateY(2px);
}

.hero-botao:focus-visible {
  outline: 3px solid #668bd8;
  outline-offset: 4px;
}

body.page-exit #hero {
  animation: hero-saida 0.52s both cubic-bezier(0.7, 0, 0.84, 0);
}

body.page-exit .hero-botao {
  pointer-events: none;
  transform: translateY(-2px) scale(0.97);
  filter: brightness(1.2);
}

@keyframes hero-entrada {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes logo-aparece {
  from { opacity: 0; transform: translateY(16px); letter-spacing: 12px; }
  to { opacity: 1; transform: translateY(0); letter-spacing: 5px; }
}

@keyframes hero-saida {
  to { opacity: 0; transform: scale(1.025); filter: blur(4px); }
}

@keyframes brilho-botao {
  0%,
  55% {
    transform: translateX(-160%) skewX(-20deg);
  }
  100% {
    transform: translateX(380%) skewX(-20deg);
  }
}

@keyframes empurrar-seta {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

.hero-rodape {
  position: absolute;
  bottom: 12px;
  left: 8%;
  margin: 0;
  color: #aebbd1;
  font-size: 12px;
  letter-spacing: 2px;
}

/* BOTÃO DO TREINADOR (criar conta ou meu perfil) */

.hero-acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.hero-acoes .hero-botao {
  margin-top: 0;
}

.hero-botao-secundario {
  background: rgba(10, 15, 26, 0.72);
  border-color: #f0c969;
  color: #f6dd8f;
  text-shadow: none;
  box-shadow:
    0 5px 0 #334664,
    0 10px 24px rgba(0, 0, 0, 0.45);
}

.hero-botao-secundario::after {
  border-left-color: #f6dd8f;
}

.hero-botao-secundario:hover {
  background: rgba(102, 139, 216, 0.3);
  box-shadow:
    0 9px 0 #334664,
    0 0 26px rgba(102, 139, 216, 0.9),
    0 16px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
  #hero {
    padding: 45px 25px;
    background-position: 70% center;
  }

  .hero-botao {
    padding: 14px 20px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero,
  #hero h1,
  body.page-exit #hero {
    animation: none !important;
  }
  .hero-botao,
  .hero-botao::before,
  .hero-botao::after {
    animation: none !important;
    transition: none !important;
  }
}
