:root {
  --bg: #050507;
  --bg-2: #0b0912;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.10);
  --border-hi: rgba(192, 132, 252, 0.45);
  --text: #f4f2fa;
  --muted: #a39fb4;
  --dim: #6f6a82;
  --purple: #a855f7;
  --purple-hi: #c084fc;
  --purple-lo: #7c3aed;
  --glow: 0 0 0 1px rgba(168, 85, 247, 0.25), 0 10px 40px -10px rgba(168, 85, 247, 0.45);
  --ok: #4ade80;
  --danger: #f87171;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
/* fundo com manchas roxas para o vidro ter o que desfocar */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  background:
    radial-gradient(40vmax 40vmax at 15% 10%, rgba(124, 58, 237, 0.28), transparent 60%),
    radial-gradient(35vmax 35vmax at 90% 30%, rgba(192, 132, 252, 0.16), transparent 60%),
    radial-gradient(45vmax 45vmax at 50% 110%, rgba(88, 28, 135, 0.30), transparent 60%),
    var(--bg);
  animation: drift 30s var(--ease) infinite alternate;
}
@keyframes drift { to { transform: translate3d(2vmax, -2vmax, 0) scale(1.05); } }

a { color: var(--purple-hi); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: #e9d5ff; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 4vw, 1.7rem); font-weight: 650; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--muted); }
.hidden { display: none !important; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
main { flex: 1; padding: 24px 0 64px; }

/* ---------- vidro ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}
.panel { padding: 24px; }
@media (min-width: 720px) { .panel { padding: 36px; } }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand-dot {
  width: 22px; height: 22px; border-radius: 8px;
  background: linear-gradient(135deg, var(--purple-hi), var(--purple-lo));
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.7);
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a.link { display: none; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: .92rem; }
.nav a.link:hover, .nav a.link.active { color: var(--text); background: var(--glass-strong); }
@media (min-width: 760px) { .nav a.link { display: inline-block; } }
.btn.menu-btn { display: inline-flex; }
@media (min-width: 760px) { .btn.menu-btn { display: none; } }
.mobile-nav {
  margin-top: 8px;
  padding: 8px;
  display: grid;
  gap: 2px;
  border-radius: var(--r-md);
  transform-origin: top;
  animation: pop .25s var(--ease);
}
.mobile-nav a { padding: 12px 14px; border-radius: var(--r-sm); color: var(--text); }
.mobile-nav a:hover { background: var(--glass-strong); }
@media (min-width: 760px) { .mobile-nav { display: none !important; } }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(-4px); } }

/* ---------- botões ---------- */
.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass-strong);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-align: center;
}
.btn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.95), rgba(124, 58, 237, 0.95));
  border-color: rgba(233, 213, 255, 0.35);
  box-shadow: var(--glow);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.5), 0 14px 50px -8px rgba(168, 85, 247, 0.7); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; }

/* ---------- hero ---------- */
.hero { padding: 28px 22px; margin-bottom: 24px; text-align: center; }
@media (min-width: 720px) { .hero { padding: 56px 40px; } }
.hero p { max-width: 560px; margin: 0 auto 1.4em; font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: rgba(168, 85, 247, 0.12);
  color: var(--purple-hi);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- grid de produtos ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--r-md);
  color: var(--text);
  transition: transform .35s var(--ease), border-color .3s var(--ease), box-shadow .35s var(--ease);
  animation: rise .5s var(--ease) both;
}
.card:hover { color: var(--text); transform: translateY(-3px); border-color: var(--border-hi); box-shadow: var(--glow); }
.card .thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-sm);
  background:
    radial-gradient(circle at 30% 30%, rgba(192, 132, 252, 0.45), transparent 60%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(10, 10, 15, 0.6));
  border: 1px solid var(--border);
}
.card h3 { margin: 4px 0 0; }
.card p { margin: 0; font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.price { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.price-lock { font-size: .85rem; color: var(--dim); display: inline-flex; align-items: center; gap: 6px; }
.price-lock::before { content: ""; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid currentColor; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.cta { margin-top: 22px; padding: 26px 22px; text-align: center; border-color: var(--border-hi); box-shadow: var(--glow); }
.cta p { margin-bottom: 1.2em; }

/* ---------- produto ---------- */
.product { display: grid; gap: 22px; }
@media (min-width: 860px) { .product { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.product .thumb { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.product .buy { display: grid; gap: 12px; margin-top: 18px; }
.product .price { font-size: 2rem; }
.desc { white-space: pre-line; }

/* ---------- formulários ---------- */
.auth-wrap { max-width: 440px; margin: 16px auto 0; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .88rem; color: var(--muted); font-weight: 500; }
.input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* evita zoom no iOS */
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.18); }
textarea.input { min-height: 96px; padding: 12px 16px; resize: none; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; }
.form-msg { min-height: 1.4em; font-size: .9rem; margin: 4px 0 10px; color: var(--danger); }
.form-alt { text-align: center; margin-top: 16px; font-size: .92rem; }

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade .25s var(--ease);
}
@media (min-width: 600px) { .modal { align-items: center; } }
.modal .sheet {
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  padding: 24px;
  background: rgba(20, 16, 30, 0.72);
  animation: up .35s var(--ease);
}
.modal .sheet h2 { margin-bottom: .3em; }
.qr {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 16px auto;
  padding: 12px;
  border-radius: var(--r-md);
  background: #fff;
}
.status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin: 14px 0;
  border-radius: var(--r-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  font-size: .92rem;
  color: var(--muted);
}
.spinner { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid rgba(192, 132, 252, 0.25); border-top-color: var(--purple-hi); animation: spin 1s linear infinite; }
.success-mark {
  width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: var(--ok); font-size: 30px;
}
.notice {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-hi);
  background: rgba(168, 85, 247, 0.10);
  color: var(--text);
  font-size: .92rem;
  margin: 12px 0;
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- páginas de texto ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.steps { display: grid; gap: 12px; counter-reset: s; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r-md); }
.steps li::before {
  content: counter(s);
  flex: none; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 700; color: var(--text);
  background: linear-gradient(135deg, var(--purple-hi), var(--purple-lo));
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
}
.steps strong { color: var(--text); display: block; margin-bottom: 2px; }
.contact-list { display: grid; gap: 12px; }
@media (min-width: 640px) { .contact-list { grid-template-columns: 1fr 1fr; } }
.contact-list .card p { -webkit-line-clamp: unset; }

/* ---------- footer ---------- */
.site-footer { padding: 0 0 24px; }
.site-footer .inner { padding: 22px; border-radius: var(--r-md); display: grid; gap: 14px; text-align: center; }
@media (min-width: 760px) { .site-footer .inner { grid-template-columns: auto 1fr; text-align: left; align-items: center; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: .88rem; }
@media (min-width: 760px) { .site-footer nav { justify-content: flex-end; } }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--text); }

/* ---------- toast / skeleton ---------- */
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 200;
  transform: translateX(-50%);
  padding: 12px 18px; border-radius: 999px;
  background: rgba(20, 16, 30, 0.85);
  border: 1px solid var(--border-hi);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: .92rem;
  animation: up .3s var(--ease);
}
.skeleton { min-height: 220px; position: relative; overflow: hidden; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.05) 50%, transparent 80%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.empty { text-align: center; padding: 40px 20px; }

/* ---------- ícones e níveis ---------- */
.thumb-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--glass);
}
.product-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
}
.tier {
  align-self: flex-start;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: rgba(168, 85, 247, 0.12);
  color: var(--purple-hi);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

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