/* ===================================================================
   SEMENTE CÓSMICA / CIGANA ESMERALDA — DESIGN SYSTEM & ESTILOS 2026
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Cores Principais */
  --bg-deep: #080519;
  --bg-space-1: #0f0a28;
  --bg-space-2: #19123b;
  --bg-space-3: #261b54;
  
  /* Gradientes Espaciais */
  --grad-cosmic: linear-gradient(135deg, #0b071e 0%, #15103c 40%, #21134a 70%, #0d0726 100%);
  --grad-gold: linear-gradient(135deg, #fef08a 0%, #fbbf24 50%, #d97706 100%);
  --grad-pink: linear-gradient(135deg, #f472b6 0%, #ec4899 50%, #be185d 100%);
  --grad-emerald: linear-gradient(135deg, #6ee7b7 0%, #10b981 50%, #047857 100%);
  --grad-cta-pink: linear-gradient(135deg, #ec4899 0%, #e11d48 50%, #be123c 100%);
  --grad-cta-green: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);

  /* Cores de Texto */
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-pink: #f472b6;
  --text-gold: #fbbf24;
  --text-emerald: #34d399;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-glow: rgba(236, 72, 153, 0.15);
  
  /* Fontes */
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

/* RESET E BASE */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
  height: 100%;
}

body {
  min-height: 100vh;
  position: relative;
  background: var(--grad-cosmic);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* CANVAS DE ESTRELAS DE FUNDO */
#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

/* EFEITOS DE NEBULOSA EM CAMADAS */
.nebula-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.nebula-1 {
  width: 450px;
  height: 450px;
  top: -100px;
  left: -100px;
  background: rgba(236, 72, 153, 0.12);
}
.nebula-2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -100px;
  background: rgba(16, 185, 129, 0.10);
}
.nebula-3 {
  width: 350px;
  height: 350px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(139, 92, 246, 0.12);
}

/* CONTAINER PRINCIPAL WRAPPER */
.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* LOGO */
.logo-container {
  margin-bottom: 24px;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.logo-container:hover {
  transform: translateY(-2px) scale(1.02);
}
.logo-img {
  width: min(280px, 75vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.25));
}

/* TIPOGRAFIA HEADLINES */
.headline {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4.5vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  background: linear-gradient(180deg, #ffffff 0%, #f472b6 60%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
  max-width: 840px;
  margin: 0 auto 16px;
  letter-spacing: -0.01em;
}

.headline highlight {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subheadline {
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 500;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.55;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* PÍLULA CONTADOR DINÂMICO */
.pill {
  display: inline-block;
  text-align: center;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.95);
  color: #db2777;
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px dashed #ec4899;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  margin: 0 auto 34px;
  max-width: 92%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pill b {
  color: #db2777;
  font-weight: 800;
}

.pill.bump {
  animation: pillBump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pillBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); box-shadow: 0 0 25px rgba(236, 72, 153, 0.7); }
  100% { transform: scale(1); }
}

/* GRID DE CARTAS DE TARÔ (3D FLIP) */
.cards-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 32px;
  perspective: 1200px;
}

.card {
  aspect-ratio: 3 / 5;
  cursor: pointer;
  position: relative;
  border-radius: 14px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease, filter 0.6s ease;
  user-select: none;
}

.card:not(.flipped):not(.dimmed):hover {
  transform: translateY(-10px) scale(1.05);
}

.card:not(.flipped):not(.dimmed):active {
  transform: scale(0.96);
}

.card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 14px;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.card-back {
  background: #120c2b;
}
.card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-front {
  transform: rotateY(180deg);
  background: #f7f0dd;
  border: 2px solid #ec4899;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f7f0dd;
}

.card.flipped {
  cursor: default;
}
.card.flipped .card-face {
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.6), inset 0 0 15px rgba(251, 191, 36, 0.4);
}

.card.dimmed {
  opacity: 0.35;
  filter: grayscale(0.8) blur(1px);
  pointer-events: none;
}

/* ETAPA 2 — ALERTA DE REVELAÇÃO */
.stage2 {
  display: none;
  width: 100%;
  margin-top: 20px;
}

.stage2.show {
  display: block;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.alert-box {
  background: rgba(15, 10, 40, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #f1f5f9;
  border: 1.5px solid rgba(244, 114, 182, 0.4);
  border-radius: 24px;
  max-width: 680px;
  margin: 0 auto 32px;
  padding: 36px 32px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(236, 72, 153, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.alert-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ec4899, #fbbf24, #10b981, #ec4899);
  background-size: 300% 100%;
  animation: alertBar 4s linear infinite;
}

@keyframes alertBar {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

.alert-warn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 50%;
  font-size: 28px;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.alert-box h2 {
  font-family: var(--font-serif);
  color: #f43f5e;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
}

.alert-box p {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.65;
  margin-bottom: 18px;
  color: #e2e8f0;
}

.alert-box p b {
  color: var(--text-gold);
  font-weight: 700;
}

.alert-box p b.highlight-pink {
  color: var(--text-pink);
}

/* BOTÃO DE REVELAÇÃO (CTA ROSA) */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--grad-cta-pink);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 20px 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  box-shadow: 0 0 35px rgba(236, 72, 153, 0.6), 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  animation: pulsePink 2.4s ease-in-out infinite;
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 50px rgba(236, 72, 153, 0.85), 0 15px 30px rgba(0, 0, 0, 0.5);
}

@keyframes pulsePink {
  0%, 100% { box-shadow: 0 0 25px rgba(236, 72, 153, 0.5), 0 8px 20px rgba(0, 0, 0, 0.4); }
  50% { box-shadow: 0 0 50px rgba(236, 72, 153, 0.9), 0 12px 28px rgba(0, 0, 0, 0.5); transform: scale(1.02); }
}

/* ETAPA 3 — VSL SECTION */
#stage-vsl {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.vsl-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 30px;
}
.vsl-container > * {
  max-width: 100%;
}

/* BOTÃO VERDE DE CHECKOUT (CTA FINAL VSL) */
.cta-green {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--grad-cta-green);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 22px 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.5), 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  margin-top: 12px;
}

.cta-green.show {
  display: inline-flex;
  animation: fadeUp 0.7s ease both, greenBreath 2.8s ease-in-out 0.7s infinite;
}

.cta-green:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 55px rgba(16, 185, 129, 0.8), 0 15px 30px rgba(0, 0, 0, 0.5);
}

@keyframes greenBreath {
  0%, 100% { transform: scale(1); box-shadow: 0 0 25px rgba(16, 185, 129, 0.4), 0 8px 20px rgba(0, 0, 0, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 50px rgba(16, 185, 129, 0.8), 0 12px 28px rgba(0, 0, 0, 0.5); }
}

/* RODAPÉ */
.footer {
  margin-top: 50px;
  font-size: 14px;
  color: var(--text-muted);
  opacity: 0.75;
  letter-spacing: 0.05em;
}

.hidden {
  display: none !important;
}

/* RESPONSIVIDADE MOBILE (SMARTPHONES E TABLETS) */
@media (max-width: 768px) {
  .wrap {
    padding: 16px 12px 48px;
  }
  .pill {
    padding: 10px 18px;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 999px;
  }
  .cards-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 440px;
  }
  .alert-box {
    padding: 28px 20px 24px;
    border-radius: 20px;
  }
  .cta-btn {
    width: 100%;
    padding: 18px 20px;
    font-size: 16px;
  }
  .cta-green.show {
    width: 100%;
    padding: 18px 20px;
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .headline {
    font-size: 22px;
  }
  .subheadline {
    font-size: 14px;
  }
  .cards-container {
    gap: 8px;
  }
}
