*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #000;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px;
  background: #111 url("../assets/background.png") center / cover no-repeat;
}

/* Overlay preto 75% — quanto maior, mais apagada fica a imagem */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.loader {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 280px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.loader-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #ffc400;
  animation: loading var(--loading-time, 2500ms) ease-in-out forwards;
}

@keyframes loading {
  to { width: 100%; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.btn {
  position: relative;
  z-index: 1;
  padding: 18px 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  animation: fade-in 0.5s ease-out;
}

.btn:hover,
.btn:focus-visible {
  background: #ffc400;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.btn:active {
  transform: scale(0.98);
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    max-width: 320px;
    padding: 16px 24px;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
    animation: none;
  }
}
