:root {
  --roxo: #3f2a5e;
  --roxo-escuro: #2f1f48;
  --lilas: rgba(236, 216, 240, .9);
  --creme: #f6eadc;
}

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

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
  font-family: "DM Serif Display", Georgia, serif;
  background: #2b1d3d url("img/fundo.jpg") center / cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(43, 29, 61, .15);
  pointer-events: none;
}

.cartao {
  position: relative;
  width: min(440px, 100%);
  padding: 2.25rem 1.25rem 3rem;
  background: var(--lilas);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 999px 999px 0 0;
  box-shadow: 0 25px 60px -20px rgba(20, 10, 35, .6);
  animation: subir .8s cubic-bezier(.22, .8, .3, 1) both;
}

.logo {
  width: 190px;
  aspect-ratio: 1;
  margin: 0 auto 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5a3f80, var(--roxo) 70%);
  box-shadow: 0 10px 25px -10px rgba(47, 31, 72, .7);
}

.logo img { width: 70%; height: auto; display: block; }

.links { display: grid; gap: 1.5rem; }

.botao {
  display: block;
  padding: 1.1rem 1rem;
  background: var(--roxo);
  border: 1px solid rgba(255, 255, 255, .15);
  color: var(--creme);
  font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  animation: subir .7s cubic-bezier(.22, .8, .3, 1) both;
}

.botao:nth-child(1) { animation-delay: .15s; }
.botao:nth-child(2) { animation-delay: .25s; }
.botao:nth-child(3) { animation-delay: .35s; }
.botao:nth-child(4) { animation-delay: .45s; }

.botao:hover, .botao:focus-visible {
  background: var(--roxo-escuro);
  transform: translateY(-3px);
  box-shadow: 0 12px 20px -10px rgba(47, 31, 72, .8);
}

.botao:focus-visible { outline: 3px solid var(--creme); outline-offset: 3px; }

@keyframes subir { from { opacity: 0; transform: translateY(20px); } }

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