/* ===========================
   TOKENS
=========================== */

:root {
  --bg: #090909;
  --surface: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.14);
  --foreground: #ffffff;
  --muted: #b9b9b9;
  --brand: #d91f26;
  --radius: 18px;
}

/* ===========================
   RESET
=========================== */

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--foreground);
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  -webkit-tap-highlight-color: transparent;
}

/* ===========================
   FUNDO
=========================== */

.background {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(9, 9, 9, 0.84), rgba(9, 9, 9, 0.95)),
    url("/assets/background.png");
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at 50% -10%,
    rgba(217, 31, 38, 0.32) 0%,
    transparent 55%
  );
  z-index: -1;
}

/* ===========================
   CONTAINER
=========================== */

.container {
  width: 92%;
  max-width: 430px;
  margin-inline: auto;
  padding-block: 48px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
}

/* ===========================
   LOGO / TÍTULO
=========================== */

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  line-height: 1;
}

.wordmark-db {
  font-size: 76px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--brand);
  text-shadow: 0 0 40px rgba(217, 31, 38, 0.45);
}

.wordmark-name {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--foreground);
}

.subtitle {
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-align: center;
}

/* ===========================
   BOTÕES
=========================== */

.buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  width: 100%;
  padding: 17px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.btn-label {
  line-height: 1.2;
}

.btn-sub {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: var(--muted);
  line-height: 1.4;
  transition: color 0.3s ease;
}

.btn:hover .btn-sub,
.btn:focus-visible .btn-sub {
  color: rgba(255, 255, 255, 0.85);
}

.btn-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--brand);
  transition: color 0.3s ease;
}

.btn-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.5;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-4px);
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 30px rgba(217, 31, 38, 0.6);
  outline: none;
}

.btn:hover .btn-icon,
.btn:focus-visible .btn-icon {
  color: var(--foreground);
}

.btn:hover .btn-arrow,
.btn:focus-visible .btn-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 3px;
}

/* ===========================
   RODAPÉ
=========================== */

.footer {
  margin-top: 34px;
  text-align: center;
}

.footer p {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 2px;
}

/* ===========================
   RESPONSIVO
=========================== */

@media (max-width: 480px) {
  .wordmark-db {
    font-size: 64px;
  }

  .wordmark-name {
    font-size: 22px;
    letter-spacing: 4px;
  }

  .btn {
    font-size: 17px;
    padding: 16px 18px;
  }
}

/* ===========================
   ACESSIBILIDADE
=========================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
