/* ============================================================
   Músicas por IA — design system (dark premium + glass)
   ============================================================ */
:root {
  --bg: #07070d;
  --bg-2: #0d0d18;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --borda: rgba(255, 255, 255, 0.10);
  --borda-forte: rgba(255, 255, 255, 0.18);
  --texto: #f5f5fb;
  --texto-suave: #a6a6bd;
  --texto-fraco: #71718a;
  --roxo: #8b5cf6;
  --indigo: #6366f1;
  --rosa: #ec4899;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #ec4899 100%);
  --grad-suave: linear-gradient(135deg, rgba(99,102,241,.16), rgba(236,72,153,.16));
  --sombra: 0 24px 60px rgba(0, 0, 0, 0.45);
  --glow: 0 10px 40px rgba(139, 92, 246, 0.45);
  --raio: 20px;
  --raio-sm: 12px;
  --fonte: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fonte-titulo: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--roxo) var(--bg-2); }

/* Barra de rolagem (Chrome/Edge/Safari) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--indigo), var(--roxo)); border-radius: 999px; border: 3px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--roxo), var(--rosa)); }

body {
  font-family: var(--fonte);
  color: var(--texto);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 22px; }

/* ---------- Aurora de fundo ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(99,102,241,.10), transparent 70%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.blob-1 { width: 520px; height: 520px; background: #6d28d9; top: -160px; left: -120px; animation: flutua 18s ease-in-out infinite; }
.blob-2 { width: 460px; height: 460px; background: #db2777; top: 10%; right: -160px; animation: flutua 22s ease-in-out infinite reverse; }
.blob-3 { width: 420px; height: 420px; background: #4f46e5; bottom: -180px; left: 30%; animation: flutua 20s ease-in-out infinite; }
@keyframes flutua {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

/* ---------- Header ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 7, 13, 0.6);
  border-bottom: 1px solid var(--borda);
}
.topo-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.marca { display: flex; align-items: center; gap: 10px; font-family: var(--fonte-titulo); font-weight: 700; font-size: 19px; color: var(--texto); text-decoration: none; letter-spacing: -.02em; }
.marca-ia { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.marca-badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; box-shadow: var(--glow); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--fonte); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--raio-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn-primario { background: var(--grad); color: #fff; box-shadow: var(--glow); background-size: 160% 160%; }
.btn-primario:hover { transform: translateY(-2px); box-shadow: 0 16px 46px rgba(139,92,246,.6); }
.btn-ghost { background: var(--surface); color: var(--texto); border-color: var(--borda); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--borda-forte); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-bloco { width: 100%; padding: 16px 24px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 84px 0 40px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--grad-suave); border: 1px solid var(--borda); color: #d9d0ff;
  margin-bottom: 26px;
}
.badge .ponto { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
.hero h1 {
  font-family: var(--fonte-titulo); font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(38px, 7vw, 66px); line-height: 1.04; margin-bottom: 20px;
}
.hero h1 .destaque { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .sub { font-size: clamp(16px, 2.4vw, 20px); color: var(--texto-suave); max-width: 620px; margin: 0 auto 34px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Equalizer ---------- */
.eq { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 68px; margin: 46px auto 0; max-width: 320px; }
.eq span { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--grad); opacity: .85; animation: pulso 1.1s ease-in-out infinite; }
.eq span:nth-child(odd) { animation-duration: 1.4s; }
.eq span:nth-child(3n) { animation-duration: .9s; }
.eq span:nth-child(1){animation-delay:-.2s} .eq span:nth-child(2){animation-delay:-.5s}
.eq span:nth-child(3){animation-delay:-.1s} .eq span:nth-child(4){animation-delay:-.7s}
.eq span:nth-child(5){animation-delay:-.3s} .eq span:nth-child(6){animation-delay:-.9s}
.eq span:nth-child(7){animation-delay:-.4s} .eq span:nth-child(8){animation-delay:-.6s}
.eq span:nth-child(9){animation-delay:-.15s} .eq span:nth-child(10){animation-delay:-.8s}
.eq span:nth-child(11){animation-delay:-.35s} .eq span:nth-child(12){animation-delay:-.55s}
@keyframes pulso { 0%, 100% { height: 22%; } 50% { height: 100%; } }

/* ---------- Seções ---------- */
.secao { padding: 40px 0; }
.secao-titulo { text-align: center; margin-bottom: 40px; }
.secao-titulo h2 { font-family: var(--fonte-titulo); font-size: clamp(26px, 4vw, 36px); letter-spacing: -.02em; margin-bottom: 10px; }
.secao-titulo p { color: var(--texto-suave); }

/* ---------- Como funciona ---------- */
.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.passo {
  background: var(--surface); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 28px 24px; position: relative; transition: transform .2s ease, border-color .2s;
}
.passo:hover { transform: translateY(-4px); border-color: var(--borda-forte); }
.passo-num { position: absolute; top: 18px; right: 22px; font-family: var(--fonte-titulo); font-size: 40px; font-weight: 700; color: rgba(255,255,255,.06); }
.passo-icone { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--grad-suave); border: 1px solid var(--borda); color: #c4b5fd; margin-bottom: 18px; }
.passo h3 { font-family: var(--fonte-titulo); font-size: 19px; margin-bottom: 8px; }
.passo p { color: var(--texto-suave); font-size: 15px; }

/* ---------- Card / formulário ---------- */
.card {
  background: var(--surface); border: 1px solid var(--borda);
  border-radius: var(--raio); padding: 34px; box-shadow: var(--sombra);
  backdrop-filter: blur(8px);
}
.card-form { max-width: 620px; margin: 0 auto; scroll-margin-top: 90px; }
.form-cabeca { text-align: center; margin-bottom: 26px; }
.form-cabeca h2 { font-family: var(--fonte-titulo); font-size: 28px; letter-spacing: -.02em; }
.form-cabeca p { color: var(--texto-suave); margin-top: 6px; }

.campo { display: block; margin-top: 18px; }
.campo > .rotulo { display: block; font-size: 13px; font-weight: 600; color: var(--texto-suave); margin-bottom: 8px; letter-spacing: .01em; }
.obrig { color: var(--rosa); }
.linha { display: flex; gap: 16px; }
.linha .campo { flex: 1; }

textarea, input[type=text], input[type=email], select {
  width: 100%; padding: 13px 15px; font-size: 15px; font-family: inherit;
  color: var(--texto); background: rgba(0,0,0,.25);
  border: 1px solid var(--borda); border-radius: var(--raio-sm);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
textarea::placeholder, input::placeholder { color: var(--texto-fraco); }
textarea:focus, input:focus, select:focus {
  outline: none; border-color: var(--roxo);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18); background: rgba(0,0,0,.35);
}
select option { background: var(--bg-2); color: var(--texto); }

.check { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--texto-suave); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--roxo); }

.preco-linha { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; }
.preco-linha .valor { font-family: var(--fonte-titulo); font-size: 22px; font-weight: 700; }
.preco-linha .valor small { font-size: 14px; color: var(--texto-suave); font-weight: 500; }
.obs { color: var(--texto-fraco); font-size: 13px; text-align: center; margin-top: 14px; }

/* ---------- Pagamento ---------- */
.tela-centro { max-width: 520px; margin: 60px auto; text-align: center; scroll-margin-top: 90px; }
.tela-centro h1 { font-family: var(--fonte-titulo); font-size: 30px; letter-spacing: -.02em; margin-bottom: 8px; }
.qr-box { display: inline-block; padding: 16px; background: #fff; border-radius: 18px; margin: 24px auto; box-shadow: var(--sombra); }
.qr-box img { display: block; width: 224px; height: 224px; image-rendering: pixelated; }
.rotulo-copia { color: var(--texto-suave); font-size: 14px; margin: 8px 0; }
.copia { display: flex; gap: 8px; }
.copia input { font-size: 12px; font-family: ui-monospace, "Cascadia Code", monospace; }

.status-linha { display: inline-flex; align-items: center; gap: 10px; justify-content: center; margin-top: 22px; color: var(--texto-suave); font-size: 15px; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--roxo); border-radius: 50%; animation: girar .9s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

.selo-check { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--grad); box-shadow: var(--glow); color: #fff; animation: aparece .5s ease; }
@keyframes aparece { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.player { display: flex; align-items: center; gap: 14px; background: var(--surface-2); border: 1px solid var(--borda); border-radius: var(--raio-sm); padding: 14px 18px; margin: 22px 0; text-align: left; }
.player .play { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.player .faixa-nome { font-weight: 600; }
.player .faixa-meta { font-size: 13px; color: var(--texto-suave); }
.mini-eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-left: auto; }
.mini-eq span { width: 3px; background: var(--roxo); border-radius: 3px; animation: pulso 1s ease-in-out infinite; }
.mini-eq span:nth-child(2){animation-delay:-.3s} .mini-eq span:nth-child(3){animation-delay:-.6s} .mini-eq span:nth-child(4){animation-delay:-.15s}

.botao-dev { margin-top: 20px; padding: 9px 16px; border: 1px dashed var(--borda-forte); background: transparent; color: var(--texto-fraco); border-radius: 8px; cursor: pointer; font-size: 13px; font-family: inherit; }
.botao-dev:hover { color: var(--texto-suave); }
.cartao-alt { margin-top: 26px; }
.cartao-ou { display: block; color: var(--texto-fraco); font-size: 13px; margin-bottom: 12px; }

.link-simples { color: var(--roxo); text-decoration: none; font-weight: 500; }
.link-simples:hover { text-decoration: underline; }

/* ---------- Avisos ---------- */
.avisos { margin: 22px auto; }
.aviso { background: rgba(244, 63, 94, .1); border: 1px solid rgba(244, 63, 94, .35); color: #fecdd3; padding: 13px 16px; border-radius: var(--raio-sm); margin-bottom: 8px; }

/* ---------- Rodapé ---------- */
.rodape { border-top: 1px solid var(--borda); margin-top: 70px; padding: 32px 0; text-align: center; color: var(--texto-suave); font-size: 14px; }
.rodape-fine { color: var(--texto-fraco); font-size: 13px; margin-top: 4px; }

/* ---------- Exemplos ---------- */
.exemplos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.exemplo { background: var(--surface); border: 1px solid var(--borda); border-radius: var(--raio); padding: 22px; display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s; }
.exemplo:hover { transform: translateY(-4px); border-color: var(--borda-forte); }
.exemplo-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.exemplo-capa { width: 48px; height: 48px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; flex-shrink: 0; box-shadow: var(--glow); }
.exemplo h3 { font-family: var(--fonte-titulo); font-size: 16px; }
.exemplo .genero { font-size: 13px; color: var(--texto-suave); }

/* Player de áudio customizado (usado nos exemplos) */
.player-audio { display: flex; align-items: center; gap: 14px; margin-top: auto; background: rgba(0,0,0,.28); border: 1px solid var(--borda); border-radius: 14px; padding: 12px 14px; }
.pa-btn { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--glow); transition: transform .15s ease; }
.pa-btn:hover { transform: scale(1.07); }
.pa-btn svg { width: 18px; height: 18px; }
.pa-btn .ic-pause { display: none; }
.player-audio.tocando .pa-btn .ic-play { display: none; }
.player-audio.tocando .pa-btn .ic-pause { display: block; }
.pa-corpo { flex: 1; min-width: 0; }
.pa-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,.12); cursor: pointer; position: relative; }
.pa-progresso { position: absolute; top: 0; left: 0; bottom: 0; width: 0%; background: var(--grad); border-radius: 999px; }
.pa-tempo { display: flex; justify-content: space-between; margin-top: 9px; font-size: 12px; color: var(--texto-suave); font-family: ui-monospace, "Cascadia Code", monospace; }

/* ---------- Depoimentos ---------- */
.depo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.depo { background: var(--surface); border: 1px solid var(--borda); border-radius: var(--raio); padding: 24px; }
.depo .estrelas { color: #fbbf24; letter-spacing: 2px; margin-bottom: 12px; }
.depo p { color: var(--texto); font-size: 15px; margin-bottom: 18px; }
.depo .autor { display: flex; align-items: center; gap: 11px; }
.depo .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-suave); border: 1px solid var(--borda); display: grid; place-items: center; font-weight: 700; color: #c4b5fd; }
.depo .autor-nome { font-weight: 600; font-size: 14px; }
.depo .autor-meta { font-size: 12px; color: var(--texto-suave); }

/* ---------- Perguntas frequentes ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.faq-item { background: var(--surface); border: 1px solid var(--borda); border-radius: var(--raio); padding: 24px; transition: transform .2s ease, border-color .2s; }
.faq-item:hover { transform: translateY(-4px); border-color: var(--borda-forte); }
.faq-item h3 { display: flex; align-items: center; gap: 10px; font-family: var(--fonte-titulo); font-size: 16px; margin-bottom: 10px; letter-spacing: -.01em; }
.faq-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-suave); border: 1px solid var(--borda); display: grid; place-items: center; color: #c4b5fd; flex-shrink: 0; }
.faq-item p { color: var(--texto-suave); font-size: 14px; }

/* ---------- Selos de garantia ---------- */
.selos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.selo { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--borda); border-radius: var(--raio-sm); padding: 15px 18px; }
.selo-icone { width: 38px; height: 38px; border-radius: 10px; background: var(--grad-suave); border: 1px solid var(--borda); display: grid; place-items: center; color: #c4b5fd; flex-shrink: 0; }
.selo b { display: block; font-size: 14px; }
.selo .selo-sub { font-size: 13px; color: var(--texto-suave); }

@media (max-width: 720px) { .exemplos-grid, .depo-grid, .faq-grid, .selos { grid-template-columns: 1fr; } }

/* ---------- Extras do formulário ---------- */
.opcional { font-weight: 400; color: var(--texto-fraco); }

/* Destaque da entrega na landing */
.entrega-destaque { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 30px; padding: 26px 30px; border-radius: var(--raio); background: var(--grad-suave); border: 1px solid var(--borda-forte); }
.entrega-destaque h3 { font-family: var(--fonte-titulo); font-size: 20px; margin-bottom: 6px; }
.entrega-destaque p { color: var(--texto-suave); font-size: 15px; max-width: 540px; }
.entrega-destaque .btn { white-space: nowrap; }

/* ---------- Página de presente (/p/<id>) — estilo Spotify ---------- */
.presente { max-width: 560px; margin: 48px auto; text-align: center; }
.pgift-capa { width: 240px; height: 240px; margin: 0 auto 28px; border-radius: 22px; background: var(--grad); box-shadow: 0 30px 70px rgba(139,92,246,.45); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; overflow: hidden; }
.pgift-nota { width: 82px; height: 82px; color: rgba(255,255,255,.95); }
.eq-capa { width: 132px; height: 46px; margin: 0; gap: 6px; }
.eq-capa span { background: rgba(255,255,255,.85); }
.pgift-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px; font-size: 13px; background: var(--grad-suave); border: 1px solid var(--borda); color: #d9d0ff; margin-bottom: 16px; }
.pgift-titulo { font-family: var(--fonte-titulo); font-size: clamp(28px, 6vw, 46px); letter-spacing: -.02em; line-height: 1.08; }
.pgift-para { color: var(--texto-suave); margin-top: 8px; font-size: 16px; }
.dedicatoria { font-style: italic; color: #d9d0ff; font-size: clamp(17px, 2.6vw, 21px); line-height: 1.6; max-width: 500px; margin: 26px auto 30px; }
.player-spotify { flex-direction: column; gap: 16px; background: transparent; border: none; padding: 0; max-width: 460px; margin: 0 auto; }
.player-spotify .pa-corpo { width: 100%; }
.player-spotify .pa-tempo { margin-top: 10px; }
.pa-btn-grande { width: 62px; height: 62px; }
.pa-btn-grande svg { width: 26px; height: 26px; }
.presente-baixar { display: inline-block; margin-top: 18px; font-size: 14px; }
.letra-box { max-width: 500px; margin: 40px auto 0; text-align: center; }
.letra-box h2 { font-family: var(--fonte-titulo); font-size: 18px; margin-bottom: 14px; color: var(--texto-suave); }
.letra-karaoke { position: relative; max-height: 300px; overflow-y: auto; padding: 8px 4px; scroll-behavior: smooth; -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
.ll { font-size: 19px; line-height: 1.5; font-weight: 600; color: rgba(255,255,255,.28); padding: 5px 0; transition: color .3s, transform .3s; }
.ll.ativa { color: var(--texto); transform: scale(1.04); }
.ll-secao { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--roxo); margin-top: 14px; opacity: .8; }
.ll-vazia { height: 10px; padding: 0; }
.presente-cta { margin-top: 46px; }
.presente-cta p { color: var(--texto-suave); margin-bottom: 14px; }

/* ---------- Confete (página de presente) ---------- */
#confete { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confete-peca { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; opacity: .9; animation: cair linear forwards; }
@keyframes cair {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(106vh) rotate(720deg); opacity: .85; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 720px) {
  .passos { grid-template-columns: 1fr; }
  .linha { flex-direction: column; gap: 0; }
  .card { padding: 24px; }
  .hero { padding: 56px 0 30px; }
}
