:root {
  --primary: #5B2EC9;       /* cobalto-violeta — logo, CTA */
  --primary-dark: #3D1E8A;  /* hover, headers */
  --primary-light: #B8A3F0; /* tags, detalhes, glow */

  --accent-red: #C41E3D;    /* vermelho profundo — brilho de fundo */
  --accent-red-soft: #7a1226;

  --bg: #07050F;            /* fundo (bem escuro) */
  --surface: #100B20;      /* cards/inputs */
  --surface-2: #17102E;    /* elevação em foco */

  --text: #FAFAFC;         /* texto principal */
  --text-muted: #9B93AE;   /* texto secundário */
  --border: #2A2340;       /* bordas/divisores */

  --success: #00C48C;
  --error: #FF4D6D;
  --warning: #FFB020;

  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body { height: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse 60% 50% at 80% 82%, rgba(128, 46, 190, 0.18) 0%, transparent 62%),
    radial-gradient(ellipse 55% 50% at 16% 16%, rgba(96, 44, 180, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 40%, #1a1030 0%, #0d0722 55%, #070313 100%);
  background-color: #070313;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 32px 20px;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Fundo 3D (WebGL) ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  opacity: 0.95;
}

/* ---------- Orbes de fundo (bem sutis) ---------- */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
  animation: float 14s var(--ease) infinite;
}
.orb--1 {
  width: 460px; height: 460px;
  background: var(--primary-dark);
  top: -160px; left: -140px;
  opacity: 0.28;
}
.orb--2 {
  width: 380px; height: 380px;
  background: var(--primary);
  bottom: -170px; right: -120px;
  animation-delay: -7s;
  opacity: 0.22;
}

/* ---------- Vinheta cinematográfica ---------- */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 72% at 50% 45%, transparent 45%, rgba(7, 3, 19, 0.8) 100%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(30px, -24px) scale(1.08); }
}

/* ---------- Layout ---------- */
.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  text-align: center;
  gap: 40px;
}

.col { width: 100%; }

.col--intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 520px;
}

.col--form {
  perspective: 1100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 420px;
}

/* lista de destaques */
.feats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.feats li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.feats li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow: 0 0 8px 1px rgba(184, 163, 240, 0.7);
}

.only-wide { display: none; }

/* ---------- Layout largo (2 colunas) ---------- */
@media (min-width: 880px) {
  .wrap {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 72px;
    text-align: left;
    justify-items: stretch;
  }
  .col--intro {
    align-items: flex-start;
    max-width: none;
  }
  .col--form {
    justify-self: end;
  }
  .feats { justify-content: flex-start; }
  .only-wide { display: inline; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}
.brand__logo {
  height: 100px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(139, 92, 246, 0.55));
}
.brand__mark {
  font-weight: 700;
  font-size: 45px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.brand__dot { color: var(--primary-light); }

.tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #a99cd0;
}
/* ponto luminoso */
.tag::before {
  content: "";
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffffff, #b9a3ff 60%);
  box-shadow: 0 0 12px 2px rgba(184, 163, 240, 0.9);
}
/* halo que pulsa em volta do ponto */
.tag::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  margin-top: -3.5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(184, 163, 240, 0.55);
  animation: ping 2.4s var(--ease) infinite;
  pointer-events: none;
}
@keyframes ping {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}

h1 {
  font-size: clamp(34px, 6.8vw, 56px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 30%, #c4b1f2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  max-width: 46ch;
}

/* ---------- Card / Form — Liquid Glass ---------- */
.card {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 34%, rgba(34, 24, 60, 0.34) 100%);
  backdrop-filter: blur(2px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  border: none;
  border-radius: 26px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow:
    0 40px 90px -32px rgba(0, 0, 0, 0.8),
    0 0 70px -40px rgba(130, 90, 230, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -24px 46px -34px rgba(0, 0, 0, 0.55);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.35s var(--ease), transform 0.18s var(--ease);
}
/* borda-vidro: luz forte na quina superior esquerda que some, leve roxo embaixo */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.12) 26%,
    rgba(255, 255, 255, 0) 52%,
    rgba(184, 163, 240, 0.28) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* reflexo especular suave no topo (estático, discreto) */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(140% 70% at 18% -8%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
  z-index: -1;
}
.card.is-success::before { background: var(--success); }
.card.is-error { animation: shake 0.4s var(--ease); }

/* cabeçalho interno do card */
.card__head {
  text-align: left;
  padding-bottom: 15px;
  margin-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.card__head h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.card__head p {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-muted);
}

.field { display: flex; flex-direction: column; gap: 7px; }

.field label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: #b9b1cf;
}

.field input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  text-align: left;
  color: var(--text);
  color-scheme: dark;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 13px 15px;
  box-shadow: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.field input::placeholder { color: rgba(255, 255, 255, 0.4); }

.field input:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background-color: rgba(255, 255, 255, 0.06);
}

.field input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(160, 140, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(139, 110, 255, 0.22);
}

/* ---------- Select customizado (combina com os inputs) ---------- */
.select { position: relative; }
.select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 13px 15px;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.select__trigger:hover { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }
.select.is-open .select__trigger {
  border-color: rgba(160, 140, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(139, 110, 255, 0.22);
}
.select__value[data-empty="true"] { color: rgba(255, 255, 255, 0.4); }
.select__arrow { flex: none; color: #b9b1cf; transition: transform 0.2s var(--ease); }
.select.is-open .select__arrow { transform: rotate(180deg); }

.select__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(40, 33, 64, 0.98), rgba(21, 16, 38, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 55px -18px rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  max-height: 264px;
  overflow-y: auto;
}
.select.is-open .select__menu { opacity: 1; transform: none; pointer-events: auto; }
.select__option {
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 14.5px;
  color: #d6d0e6;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.select__option:hover,
.select__option.is-active {
  background: rgba(139, 110, 255, 0.24);
  color: #fff;
}

.field input:user-invalid {
  border-color: var(--error);
}

/* mata o fundo branco/amarelo do autofill do navegador */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px rgba(26, 19, 44, 0.92) inset;
  box-shadow: 0 0 0 1000px rgba(26, 19, 44, 0.92) inset;
  border-color: rgba(170, 150, 255, 0.5);
  transition: background-color 9999s ease-out;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  margin-top: 7px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, #6b3fe0, var(--primary-dark));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  padding: 15px 18px;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s;
  box-shadow: 0 12px 30px -12px rgba(91, 46, 201, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
/* varredura de brilho */
.cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}
.cta:hover::after { left: 130%; }
.cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.cta:active { transform: translateY(0); }
.cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(184, 163, 240, 0.45);
}
.cta:disabled { cursor: default; opacity: 0.75; transform: none; }

.cta__spinner {
  display: none;
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--warning);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.cta.is-loading .cta__label { visibility: hidden; }
.cta.is-loading .cta__spinner { display: block; }
.cta.is-done { background: var(--success); box-shadow: none; }

/* ---------- Status ---------- */
.status {
  font-size: 13.5px;
  line-height: 1.4;
  min-height: 1em;
  transition: color 0.2s;
}
.status.is-error { color: var(--error); }
.status.is-success { color: var(--success); }
.status.is-warning { color: var(--warning); }

.foot {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- Toast estilo notificação de venda ---------- */
.sale-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(540px, calc(100vw - 32px));
  padding: 18px 26px 18px 18px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(38, 32, 62, 0.9), rgba(18, 14, 34, 0.92));
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 40px 90px -28px rgba(0, 0, 0, 0.85),
    0 0 80px -30px rgba(62, 224, 143, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: var(--text);
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: transform 0.55s var(--ease), opacity 0.45s var(--ease);
}
.sale-toast.is-in { transform: translate(-50%, -50%) scale(1); opacity: 1; }

/* estado de confirmação: some TUDO (card, logo, título) — fica só a notificação */
body.is-submitted .wrap {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

/* brilho pulsante da notificação */
.sale-toast.is-in { animation: toastGlow 2.6s var(--ease) infinite; }
@keyframes toastGlow {
  0%, 100% {
    box-shadow:
      0 40px 90px -28px rgba(0, 0, 0, 0.85),
      0 0 70px -34px rgba(62, 224, 143, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }
  50% {
    box-shadow:
      0 40px 90px -28px rgba(0, 0, 0, 0.85),
      0 0 120px -24px rgba(62, 224, 143, 0.7),
      inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }
}
.sale-toast__icon {
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 15px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6);
}
.sale-toast__icon img { width: 44px; height: 44px; display: block; }
.sale-toast__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sale-toast__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #3ee08f;
}
.sale-toast__sub {
  font-size: 14px;
  color: #9a93ad;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sale-toast__note {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #8f88a3;
}
.sale-toast__amount {
  margin-left: auto;
  align-self: center;
  padding-left: 16px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #3ee08f;
  white-space: nowrap;
}

/* ---- mobile: APROVADO! desce pra uma linha própria ---- */
@media (max-width: 560px) {
  .sale-toast {
    flex-wrap: wrap;
    gap: 12px 14px;
    padding: 16px 18px;
    width: min(400px, calc(100vw - 24px));
  }
  .sale-toast__icon { width: 48px; height: 48px; border-radius: 13px; }
  .sale-toast__icon img { width: 36px; height: 36px; }
  .sale-toast__body { flex: 1 1 0; min-width: 0; }
  .sale-toast__title { font-size: 15px; }
  .sale-toast__note { font-size: 12px; }
  .sale-toast__amount {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    padding-top: 12px;
    text-align: center;
    font-size: 21px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }
}

/* ---------- Animações ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.6s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; opacity: 1; transform: none; }
  .orb { animation: none; }
  .tag::after { animation: none; opacity: 0; }
  .card { transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease); }
  .card.is-error { animation: none; }
  .cta::after { display: none; }
  .cta__spinner { animation-duration: 1.2s; }
}
