html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #fbf7f2; color: #1a1623; }
.font-display { font-family: 'Cormorant Garamond', serif; }
.font-script  { font-family: 'Dancing Script', cursive; }

/* gold shimmer text */
.gold-text {
  background: linear-gradient(90deg, #b8893a 0%, #f4d98a 25%, #e7c98a 50%, #b8893a 75%, #f4d98a 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { 0%{background-position:0% 50%} 100%{background-position:200% 50%} }

/* Hero background gradient blocks */
.hero-bg {
  background:
    radial-gradient(ellipse at 15% 20%, #f6e1d4 0%, transparent 45%),
    radial-gradient(ellipse at 90% 80%, #d9e1f0 0%, transparent 45%),
    linear-gradient(135deg, #fbf7f2 0%, #eef2f9 100%);
}

/* phone frame */
.phone {
  width: 260px;
  height: 540px;
  border-radius: 44px;
  background: linear-gradient(145deg, #2a2330 0%, #0f0c14 100%);
  padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(26,22,35,0.55), 0 10px 30px -10px rgba(26,22,35,0.35);
  position: relative;
}
.phone::before {
  content:'';
  position:absolute; inset:-2px;
  border-radius: 46px;
  background: linear-gradient(145deg, rgba(255,255,255,0.25), rgba(255,255,255,0) 40%);
  pointer-events:none;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}
.notch {
  position:absolute; top:10px; left:50%; transform:translateX(-50%);
  width: 88px; height: 24px;
  background:#0a0810; border-radius: 14px; z-index: 5;
}

/* INV 1 — Quinceañera elegante */
.inv-quince {
  background:
    radial-gradient(ellipse at 50% 0%, #efe1ff 0%, #e4d2f5 40%, #d6c0eb 100%);
  color:#3d2960;
}
.quince-wreath {
  position:absolute; top:135px; left:50%; transform:translateX(-50%);
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 1.5px solid #a988c9;
}
.quince-wreath::before,
.quince-wreath::after {
  content:''; position:absolute;
  width:18px; height:18px; border-radius:50%;
  background: radial-gradient(circle, #c9a4e6 30%, #8a5fb3 100%);
}
.quince-wreath::before { top:-6px; left:30px; box-shadow: 110px 10px 0 -2px #b386d8, -8px 90px 0 -3px #a96fcf, 130px 100px 0 -2px #c9a4e6, 50px 150px 0 -3px #b386d8, 0 50px 0 -4px #a96fcf;}
.quince-wreath::after { bottom:0; right:20px; box-shadow: -10px -120px 0 -4px #d9b8ec, 20px -40px 0 -3px #c9a4e6, -120px -30px 0 -3px #a96fcf, -90px -90px 0 -4px #b386d8; }

/* INV 2 — Baile de máscaras */
.inv-masque {
  background:
    radial-gradient(ellipse at 50% 25%, #2a1f2e 0%, #110a14 70%, #050308 100%);
  color:#e7c98a;
}
.masque-stars span {
  position:absolute;
  width:3px; height:3px; border-radius:50%;
  background:#e7c98a;
  box-shadow: 0 0 8px #e7c98a;
  animation: twinkle 2.4s ease-in-out infinite;
}

/* INV 3 — Pixel party / gamer */
.inv-pixel {
  background:
    linear-gradient(180deg, #050a18 0%, #0b1430 60%, #1a2658 100%);
  color:#7ad6ff;
}
.grid-floor {
  position:absolute; bottom:0; left:0; right:0; height:40%;
  background:
    linear-gradient(transparent 0%, transparent 95%, #38b6ff 95%, transparent 100%),
    repeating-linear-gradient(90deg, transparent 0 19px, #1f6bff 19px 20px),
    repeating-linear-gradient(0deg,  transparent 0 19px, #1f6bff 19px 20px);
  background-size: 100% 100%, 20px 100%, 100% 20px;
  transform: perspective(220px) rotateX(55deg);
  transform-origin: center bottom;
  opacity: 0.5;
}
.pixel-cube {
  position:absolute;
  width: 16px; height:16px;
  background:#ff4757;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4) inset, 2px 2px 0 #c0392b;
}

/* envelope CTA inside phones */
.envelope {
  width: 140px; aspect-ratio: 3/2;
  background: linear-gradient(135deg, #d4b378 0%, #b8893a 50%, #d4b378 100%);
  position: relative;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.envelope::before {
  content:'';
  position:absolute; top:0; left:0; right:0; bottom:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 49%, rgba(0,0,0,0.15) 50%);
  clip-path: polygon(0 0, 100% 0, 50% 55%);
}

/* divider ornament */
.ornament {
  display:inline-flex; align-items:center; gap:.75rem;
}
.ornament::before, .ornament::after {
  content:''; width:60px; height:1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}

/* tag chip */
.chip {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.4rem .9rem; border-radius:999px;
  border:1px solid rgba(26,22,35,0.12);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  font-size:.78rem; letter-spacing:.04em; text-transform:uppercase;
  font-weight:500; color:#3d2960;
}

/* marquee */
.marquee { display:flex; gap:3rem; animation: scroll 30s linear infinite; }
@keyframes scroll { from {transform:translateX(0)} to {transform:translateX(-50%)} }

/* faq item */
details[open] summary svg { transform: rotate(45deg); }
summary { list-style: none; cursor:pointer; }
summary::-webkit-details-marker { display:none; }

/* hero floating decorations */
.deco-butterfly { position:absolute; font-size:24px; opacity:0.6; }

/* gradient border button */
.btn-primary {
  background: linear-gradient(135deg, #162a4f 0%, #1f3a6b 50%, #4a6293 100%);
  color: white;
  box-shadow: 0 10px 30px -8px rgba(22,42,79,0.5);
  transition: all .25s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(22,42,79,0.6); }

.btn-gold {
  background: linear-gradient(135deg, #b8893a 0%, #e7c98a 50%, #b8893a 100%);
  background-size: 200% 100%;
  color: #1a1623;
  transition: all .3s ease;
}
.btn-gold:hover { background-position: 100% 0; }

/* theme card hover */
.theme-card { transition: transform .4s ease, box-shadow .4s ease; }
.theme-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(26,22,35,0.3); }

/* preview envelope animation - FIXED POINTER EVENTS */
.demo-envelope { transition: transform .8s cubic-bezier(.7,.0,.3,1), opacity .4s ease; }
.demo-envelope.open { transform: translateY(-120%) rotate(-8deg); opacity:0; pointer-events: none; }
.demo-card { transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .6s ease .2s; opacity:0; transform: translateY(40px) scale(0.95); pointer-events: none; }
.demo-card.show { opacity:1; transform: translateY(0) scale(1); pointer-events: auto; }

/* reveal on scroll */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity:1; transform: translateY(0); }

/* selo "Ver convite" sobe no hover do cartao */
.modelo-card:hover .modelo-selo { transform: translateY(-4px); }
.modelo-selo { transition: transform .3s ease; }
