/* =========================================================
   CONFIG: nome do arquivo de imagem de fundo (pasta raiz).
   Para trocar a imagem, edite apenas a linha abaixo.
   ========================================================= */
:root {
  --bg-image: url("./Fundo roxo.png");

  --color-bg: #0a0612;
  --color-purple-900: #2a0f4d;
  --color-purple-700: #6d28d9;
  --color-purple-500: #9333ea;
  --color-purple-glow: rgba(147, 51, 234, 0.9);
  --color-purple-border: rgba(168, 85, 247, 0.35);
  --color-white: #ffffff;
  --color-text-muted: #d9c9f0;
  --color-text-dim: #a893c4;

  --radius-lg: 20px;
  --radius-btn: 16px;

  --font-main: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-main);
  color: var(--color-white);
  background-color: var(--color-bg);
  background-image: var(--bg-image);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  position: relative;
  overflow-x: hidden;
}

/* =========================================================
   AMBIENTAÇÃO DE FUNDO
   fumaça roxa leve no topo + brilho difuso atrás do card +
   vinheta escura suave nas bordas — tudo em uma única camada,
   sem lavar o fundo original.
   ========================================================= */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(55% 30% at 50% 2%, rgba(147, 51, 234, 0.24) 0%, rgba(147, 51, 234, 0) 70%),
    radial-gradient(50% 38% at 50% 48%, rgba(147, 51, 234, 0.11) 0%, rgba(147, 51, 234, 0) 72%),
    radial-gradient(120% 85% at 50% 50%, transparent 52%, rgba(4, 2, 8, 0.55) 100%);
  pointer-events: none;
}

/* textura sutil de grão, quase imperceptível */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 92px;
}

/* =========================================================
   CARD — painel de vidro escuro
   ========================================================= */
.card {
  position: relative;
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: 30px 26px 26px;
  border-radius: var(--radius-lg);
  background: rgba(14, 8, 24, 0.1);
  border: 1px solid var(--color-purple-border);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.5),
    0 8px 32px rgba(147, 51, 234, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -24px 40px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  animation: cardIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* degrade interno do card: preto no topo -> roxo embaixo, sobre o fundo */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #000000 0%, var(--color-purple-500) 100%);
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

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

/* =========================================================
   TIPOGRAFIA
   ========================================================= */
.logo {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--color-text-dim);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 18px;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text-dim);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 999px;
  background: rgba(147, 51, 234, 0.06);
}

.title {
  margin: 0 0 12px;
  font-size: clamp(24px, 6.5vw, 31px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--color-white);
  text-wrap: balance;
}

.subtitle {
  margin: 0 auto 8px;
  max-width: 32ch;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-text-muted);
  text-wrap: balance;
}

.text-small {
  margin: 0 0 26px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-dim);
}

.disclaimer {
  margin: 16px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-dim);
}

.fallback-hint {
  margin: 10px 0 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(217, 201, 240, 0.42);
}

/* =========================================================
   CTA — botão principal com shimmer contínuo
   ========================================================= */
.cta-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, var(--color-purple-700), var(--color-purple-500));
  color: var(--color-white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 10px 24px rgba(76, 29, 149, 0.4),
    0 0 0 rgba(147, 51, 234, 0);
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  animation: ctaPulse 3.2s ease-in-out infinite;
}

.cta-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-main);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* faixa de luz que atravessa o botão continuamente */
.cta-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.32) 42%,
    rgba(255, 255, 255, 0.62) 50%,
    rgba(255, 255, 255, 0.32) 58%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: ctaShimmer 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes ctaShimmer {
  0% {
    left: -70%;
  }
  45%,
  100% {
    left: 130%;
  }
}

@keyframes ctaPulse {
  0%,
  100% {
    box-shadow:
      0 10px 24px rgba(76, 29, 149, 0.4),
      0 0 0 rgba(147, 51, 234, 0);
  }
  50% {
    box-shadow:
      0 10px 26px rgba(76, 29, 149, 0.48),
      0 0 22px rgba(147, 51, 234, 0.35);
  }
}

.cta-button:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.cta-button:active {
  transform: scale(0.98);
  filter: brightness(0.96);
}

.cta-button:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 3px;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (min-width: 480px) {
  .card {
    padding: 38px 34px 30px;
  }

  .fallback-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }
  .cta-button {
    animation: none;
  }
  .cta-button::after {
    animation: none;
    display: none;
  }
}
