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

:root {
  --bg: #020206;
  --card-bg: #050508;
  --text: #f7f5ee;
  --text-muted: rgba(247, 245, 238, 0.55);
  --radius: 24px;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 16px;
}

.card {
  width: 100%;
  max-width: 390px;
  min-height: 720px;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
}

/* ---------- Background ---------- */

.bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--card-bg);
}

.bg__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
}

.bg__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 3, 6, 0) 30%,
    rgba(3, 3, 6, 0.85) 78%,
    #030306 100%
  );
}

/* ---------- Content ---------- */

.content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 28px 22px 22px;
}

.logo {
  align-self: center;
  width: 62%;
  max-width: 230px;
  height: auto;
}

/* ---------- Links ---------- */

.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-btn {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 123px;
  border-radius: 31px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  isolation: isolate;
  transition: transform 0.2s ease;
}

.link-btn:active {
  transform: scale(0.97);
}

.link-btn__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.link-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.65) 100%);
  z-index: -1;
}

/* 1px gradient trace on the button border */
.link-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 31px;
  padding: 1px;
  background: linear-gradient(135deg, #0059ff, #030306);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.link-btn__label {
  padding: 26px 25px;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */

.footer {
  text-align: center;
  padding: 26px 16px 22px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- Entrance animation ---------- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

/* Perpetual floating animation on the ORÇAMENTOS button */

@keyframes floatBtn {
  0%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-5px);
  }
  75% {
    transform: translateY(5px);
  }
}

.link-btn.link-btn--float {
  animation-name: fadeUp, floatBtn;
  animation-duration: 0.6s, 3.6s;
  animation-timing-function: ease-out, ease-in-out;
  animation-delay: var(--delay, 0s), calc(var(--delay, 0s) + 0.6s);
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    animation: none;
    opacity: 1;
  }

  .link-btn.link-btn--float {
    animation: none;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0;
  }

  .card {
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
  }
}
