@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Great+Vibes&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

:root {
  --color-page-bg: #fbf6ec;
  --color-text: #4a2c22;
  --color-primary: #7e252c;
  --color-primary-light: #c73030;
  --color-primary-dark: #7d2727;
  --color-gold: #c8a253;
  --color-gold-light: #f2d98a;
  --color-gold-lighter: #f5e1a4;
  --color-gold-dark: #b8873a;
  --color-card-bg: #fdf6e3;
  --color-card-cream: #fcf9f3;
  --color-cream: #faf3e0;
  --color-green: #22a34a;
  --color-dark-bg: #0e1a1a;
  --color-muted: #f1ede4;
  --color-border: #e4ddcd;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-script: 'Great Vibes', cursive;
  --font-ui: 'Inter', sans-serif;
  --nav-height: 64px;
  --radius: 0.75rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-page-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-page-bg); }
::-webkit-scrollbar-thumb { background: var(--color-gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-gold-dark); }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; color: var(--color-primary); line-height: 1.15; }
.font-script { font-family: var(--font-script); }
.font-serif-display { font-family: var(--font-heading); }
.gold-text {
  background: linear-gradient(135deg, #d4a24a, #f0d78a 50%, #b8873a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.diamond-pattern {
  background-image: linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.15) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.15) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.15) 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-ui); font-weight: 500; border: none; cursor: pointer;
  border-radius: 2rem; transition: all 0.3s ease;
  text-decoration: none; font-size: 0.9rem;
  /* A pill button must never wrap: in the cramped mobile nav "Create yours"
     broke onto two lines and the pill grew to 60px tall. */
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary); color: var(--color-card-cream);
  box-shadow: 0 4px 14px rgba(126,37,44,0.3);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(126,37,44,0.4); }
.btn-outline {
  background: transparent; color: var(--color-primary);
  border: 1.5px solid var(--color-gold);
}
.btn-outline:hover { background: rgba(200,162,83,0.1); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 0.95rem; }

/* ─── Navigation ─────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(251,246,236,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,162,83,0.15);
  height: var(--nav-height);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo { display: flex; align-items: center; gap: 0.4rem; text-decoration: none; }
.nav-logo-icon { font-size: 1.3rem; }
.nav-logo-text {
  font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700;
  color: var(--color-primary);
}
.nav-logo-text em { font-style: italic; color: var(--color-gold); }
.nav-links { display: flex; gap: 1.8rem; }
.nav-link {
  font-family: var(--font-ui); font-size: 0.88rem; font-weight: 500;
  color: var(--color-text); transition: color 0.3s;
}
.nav-link:hover { color: var(--color-primary); }
.nav-demo { display: inline-flex; align-items: center; gap: 0.35rem; }
button.nav-demo, button.open-demo { background: none; border: none; cursor: pointer; }
button.btn.open-demo { cursor: pointer; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; flex-direction: column; gap: 5px; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: 0.3s; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Hero ───────────────────────────────────────── */
.hero {
  min-height: 100vh; padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 3rem; position: relative; overflow: hidden;
}
.hero-content {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-text { max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(200,162,83,0.12); border: 1px solid rgba(200,162,83,0.25);
  padding: 0.4rem 1rem; border-radius: 2rem; margin-bottom: 1.5rem;
}
.badge-icon { font-size: 0.9rem; }
.badge-text {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; color: var(--color-gold-dark);
}
.hero-title {
  font-size: 3.2rem; color: var(--color-text); margin-bottom: 1.2rem;
  font-family: var(--font-body); font-weight: 400; font-style: italic;
}
.hero-title-accent {
  font-family: var(--font-heading); font-style: italic; font-weight: 700;
  color: var(--color-primary);
}
.hero-subtitle {
  font-family: var(--font-body); font-size: 1.15rem; color: rgba(74,44,34,0.7);
  line-height: 1.7; margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-features { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero-feature {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-ui); font-size: 0.82rem; color: rgba(74,44,34,0.65);
}

/* Phone Mockup */
.hero-phone {
  position: relative; display: flex; justify-content: center;
  animation: phone-float 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes phone-float {
  0%, 100% { transform: translateY(0) rotate(-0.8deg); }
  50%      { transform: translateY(-14px) rotate(0.8deg); }
}
.hero-phone-frame {
  width: 280px; border-radius: 2.4rem; overflow: hidden;
  border: 8px solid var(--color-text); background: var(--color-gold);
  box-shadow: 0 20px 60px -15px rgba(125,39,39,0.35);
  position: relative;
}
.hero-phone-screen {
  /* 9/16 read as a stubby tablet. Modern handsets are ~9/19.5, which is also
     the aspect the invitation screenshot was captured at, so the shot now
     fills the screen instead of being cropped. */
  background: var(--color-gold); aspect-ratio: 9/19.5;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; position: relative; padding: 1.5rem;
}
/* Real invitation screenshot variant */
.hero-phone-screen--shot { padding: 0; background: #fff; overflow: hidden; }
.hero-phone-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.hero-phone-cta {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-family: var(--font-ui); font-size: 0.6rem; letter-spacing: 0.25em;
  color: #fff; background: rgba(125,39,39,0.85); padding: 0.5rem 0.9rem;
  border-radius: 999px; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25); cursor: pointer;
}
.phone-dots { display: flex; gap: 4px; position: absolute; top: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(199,48,48,0.5); }
.dot.active { background: var(--color-primary-light); }
.phone-card {
  width: 100%; flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; position: relative;
  background-color: rgba(200,162,83,0.3);
}

/* Wax Seal */
.wax-seal {
  width: 80px; height: 80px; border-radius: 50%; background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(125,39,39,0.35);
  cursor: pointer; position: relative; z-index: 2;
}
.seal-letter {
  font-family: var(--font-heading); font-size: 2rem; color: var(--color-gold-light);
  font-weight: 700;
}
.phone-tap-text {
  font-family: var(--font-ui); font-size: 0.65rem; letter-spacing: 0.25em;
  color: rgba(125,39,39,0.5); margin-top: 1rem; text-transform: uppercase;
}
.phone-invited-text {
  font-family: var(--font-ui); font-size: 0.6rem; letter-spacing: 0.35em;
  color: rgba(125,39,39,0.4); padding: 0.8rem 0; text-transform: uppercase;
}

/* Door panels */
.door-panel {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: var(--color-gold); z-index: 1;
  backface-visibility: hidden; transition: transform 1.6s cubic-bezier(0.7,0,0.3,1);
}
.door-left { left: 0; transform-origin: left center; }
.door-right { right: 0; transform-origin: right center; }
.door-open .door-left { transform: perspective(1200px) rotateY(-105deg); }
.door-open .door-right { transform: perspective(1200px) rotateY(105deg); }

.marigold-deco {
  position: absolute; top: -10px; right: -30px; font-size: 5rem;
  animation: gentleFloat 3s ease-in-out infinite;
}

/* ─── Section Styling ────────────────────────────── */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-label {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.25em; color: var(--color-gold-dark); text-transform: uppercase;
  text-align: center; margin-bottom: 0.75rem;
}
.section-label-dark {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.25em; color: var(--color-gold); text-transform: uppercase;
  text-align: center; margin-bottom: 0.75rem;
}
.section-title {
  font-size: 2.2rem; text-align: center; margin-bottom: 1rem; color: var(--color-primary);
}
.section-title-dark {
  font-size: 2.2rem; text-align: center; margin-bottom: 0.75rem; color: var(--color-gold-light);
}
.section-subtitle {
  font-family: var(--font-body); font-size: 1.1rem; text-align: center;
  color: rgba(74,44,34,0.65); max-width: 500px; margin: 0 auto 3rem;
}
.section-subtitle-dark {
  font-family: var(--font-body); font-size: 1.1rem; text-align: center;
  color: rgba(245,225,164,0.6); max-width: 500px; margin: 0 auto 3rem;
}

/* ─── Features ───────────────────────────────────── */
.features { background: var(--color-page-bg); padding: 5rem 0; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem;
}
.feature-card {
  background: var(--color-card-cream); border: 1px solid var(--color-border);
  border-radius: 1rem; padding: 2rem 1.5rem; text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(125,39,39,0.1); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-title { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--color-primary); }
.feature-desc { font-family: var(--font-body); font-size: 0.95rem; color: rgba(74,44,34,0.7); }

/* ─── Festivities ────────────────────────────────── */
.festivities {
  background: var(--color-dark-bg); padding: 5rem 0;
  position: relative;
}
.festivities::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(200,162,83,0.08) 0%, transparent 50%);
}
.festivities-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; z-index: 1;
}
.festivity-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(200,162,83,0.15);
  border-radius: 1.25rem; overflow: hidden; transition: all 0.4s ease;
  opacity: 0; transform: translateY(30px);
}
.festivity-card.visible { opacity: 1; transform: translateY(0); }
.festivity-card:hover { border-color: rgba(200,162,83,0.4); box-shadow: 0 10px 40px rgba(200,162,83,0.1); }

.festivity-header { padding: 1.25rem 1.25rem 0.75rem; text-align: center; }
.festivity-emoji { font-size: 1.8rem; display: block; margin-bottom: 0.4rem; }
.festivity-name {
  font-family: var(--font-heading); font-size: 1rem; color: var(--color-gold-light);
  margin-bottom: 0.25rem;
}
.festivity-instruction {
  font-family: var(--font-ui); font-size: 0.72rem; color: rgba(245,225,164,0.5);
  letter-spacing: 0.05em;
}

.festivity-interactive {
  position: relative; margin: 0 1rem; height: 200px;
  border-radius: 0.75rem; overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.festivity-progress { padding: 0.75rem 1.25rem 1.25rem; }
.progress-bar {
  height: 3px; width: 0; background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border-radius: 2px; transition: width 0.3s ease;
}

/* Rub to Reveal */
.rub-container { position: relative; cursor: crosshair; }
.rub-message {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; z-index: 0;
}
.rub-reveal-text { font-family: var(--font-script); font-size: 2rem; color: var(--color-gold); }
.rub-reveal-sub { font-family: var(--font-ui); font-size: 0.75rem; color: var(--color-gold-light); margin-top: 0.3rem; }
.rub-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; touch-action: none; }
.rub-hint {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-ui); font-size: 0.7rem; color: rgba(125,39,39,0.6);
  display: flex; align-items: center; gap: 0.3rem; z-index: 2;
  transition: opacity 0.3s;
}

/* Trace Heart */
.trace-container { cursor: crosshair; }
.trace-canvas { width: 100%; height: 100%; touch-action: none; }
.trace-hint {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-ui); font-size: 0.7rem; color: rgba(200,162,83,0.5);
  display: flex; align-items: center; gap: 0.3rem; z-index: 2;
  transition: opacity 0.3s;
}

/* Dhol */
.tap-container { display: flex; align-items: center; justify-content: center; }
.dhol-wrapper { text-align: center; }
.dhol {
  width: 100px; height: 100px; margin: 0 auto; position: relative; cursor: pointer;
  transition: transform 0.15s;
}
.dhol-body {
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border: 4px solid var(--color-gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(125,39,39,0.4);
}
.dhol-head {
  width: 60%; height: 60%; border-radius: 50%;
  background: radial-gradient(circle, var(--color-gold-light), var(--color-gold));
  border: 2px solid var(--color-gold-dark);
}
.dhol-strap { position: absolute; width: 6px; background: var(--color-gold); border-radius: 3px; }
.dhol-strap-l { left: 8px; top: -10px; bottom: -10px; transform: rotate(-15deg); }
.dhol-strap-r { right: 8px; top: -10px; bottom: -10px; transform: rotate(15deg); }

.dhol-ripples { position: absolute; inset: 0; pointer-events: none; }
.dhol-ripple-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100px; height: 100px; border: 2px solid var(--color-gold);
  border-radius: 50%; opacity: 1;
  animation: rippleExpand 1s ease-out forwards;
}
.beat-counter {
  margin-top: 0.75rem; font-family: var(--font-ui); font-size: 0.8rem;
  color: var(--color-gold-light);
}
.beat-count { font-size: 1.5rem; font-weight: 700; color: var(--color-gold); }
.beat-label { font-size: 0.65rem; color: rgba(245,225,164,0.5); margin-left: 0.2rem; }

.dhol-bounce { animation: dholBounce 0.3s ease; }

/* Diya */
.diya-container { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.diyas-row { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; padding-top: 2rem; }
.diya {
  width: 45px; position: relative; cursor: pointer; text-align: center;
  transition: transform 0.3s;
}
.diya:hover { transform: scale(1.1); }
.diya-body {
  width: 40px; height: 24px; margin: 0 auto;
  background: linear-gradient(180deg, var(--color-gold), var(--color-gold-dark));
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  position: relative; border: 1px solid var(--color-gold-dark);
}
.diya-oil {
  position: absolute; top: -3px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 8px; background: var(--color-gold);
  border-radius: 50%; border: 1px solid var(--color-gold-dark);
}
.diya-wick {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 10px; background: #333;
}
.diya-flame-wrapper {
  position: absolute; top: -35px; left: 50%; transform: translateX(-50%);
  opacity: 0; transition: opacity 0.5s;
}
.diya.lit .diya-flame-wrapper { opacity: 1; }
.diya-flame {
  width: 12px; height: 20px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(0deg, #ff6600 0%, #ffcc00 40%, #fff8e1 80%);
  animation: flameFlicker 0.4s ease-in-out infinite alternate;
  box-shadow: 0 0 8px 4px rgba(255,200,0,0.4);
}
.diya-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,0,0.3) 0%, transparent 70%);
  animation: glowPulse 2s ease-in-out infinite;
}
.diya-counter {
  margin-top: 0.5rem; font-family: var(--font-ui); font-size: 0.75rem;
  color: rgba(245,225,164,0.5);
}
.diya-lit-count { color: var(--color-gold); font-weight: 600; }
.diya-spark {
  position: absolute; top: -20px; left: 50%; width: 3px; height: 3px;
  background: var(--color-gold-light); border-radius: 50%;
  animation: sparkFly 0.6s ease-out forwards;
}

/* Dandelion / Blow */
.blow-container { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.blow-canvas { width: 100%; height: 100%; }
.blow-btn {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  background: rgba(200,162,83,0.2); border: 1px solid rgba(200,162,83,0.3);
  color: var(--color-gold-light); padding: 0.4rem 1rem; border-radius: 2rem;
  font-family: var(--font-ui); font-size: 0.75rem; cursor: pointer;
  display: flex; align-items: center; gap: 0.3rem;
  transition: all 0.3s;
}
.blow-btn:hover { background: rgba(200,162,83,0.3); }

/* Snow Globe */
.globe-container { display: flex; align-items: center; justify-content: center; }
.snow-globe { cursor: pointer; text-align: center; position: relative; }
.globe-glass {
  width: 150px; height: 150px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--color-gold); position: relative;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1), rgba(14,26,26,0.8));
  box-shadow: inset 0 0 30px rgba(200,162,83,0.1), 0 8px 30px rgba(0,0,0,0.3);
}
.globe-canvas { width: 100%; height: 100%; }
.globe-couple {
  position: absolute; bottom: 20%; left: 50%; transform: translateX(-50%);
  font-size: 1.5rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.globe-base {
  width: 80px; height: 20px; margin: -5px auto 0;
  background: linear-gradient(180deg, var(--color-gold), var(--color-gold-dark));
  border-radius: 0 0 8px 8px; display: flex; align-items: center; justify-content: center;
}
.globe-base-text {
  font-family: var(--font-script); font-size: 0.7rem; color: var(--color-card-cream);
}
.snow-globe.shaking { animation: globeShake 0.5s ease; }

/* ─── Templates ──────────────────────────────────── */
.templates { padding: 5rem 0; }
.templates-carousel {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 1rem;
}
.template-card {
  text-align: center; transition: transform 0.3s; cursor: pointer;
}
.template-card:hover { transform: translateY(-6px); }
.template-preview {
  aspect-ratio: 3/4; border-radius: 1rem; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative; border: 2px solid var(--color-border);
  margin-bottom: 0.75rem;
}
.template-pattern { position: absolute; inset: 0; opacity: 0.4; }
.template-initial {
  font-family: var(--font-script); font-size: 2rem; color: white;
  position: relative; z-index: 1; text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.template-royal { background: linear-gradient(135deg, #7e252c, #4a1015); }
.template-golden { background: linear-gradient(135deg, #c8a253, #8a6b2a); }
.template-blush { background: linear-gradient(135deg, #e8a0b0, #c76080); }
.template-nights { background: linear-gradient(135deg, #1a0a30, #3a1060); }
.template-name { font-family: var(--font-heading); font-size: 1rem; color: var(--color-text); margin-bottom: 0.25rem; }
.template-tag {
  font-family: var(--font-ui); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.15em; color: rgba(74,44,34,0.5);
}

/* ─── Testimonials ───────────────────────────────── */
.testimonials { padding: 5rem 0; background: var(--color-cream); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.testimonial-card {
  background: var(--color-card-cream); border: 1px solid var(--color-border);
  border-radius: 1rem; padding: 1.5rem; transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(125,39,39,0.08); }
.testimonial-quote {
  font-family: var(--font-body); font-size: 1rem; font-style: italic;
  color: var(--color-text); margin-bottom: 1.2rem; line-height: 1.6;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-primary); color: var(--color-gold-light);
  font-family: var(--font-ui); font-size: 0.75rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.testimonial-name { font-family: var(--font-heading); font-size: 0.9rem; color: var(--color-primary); }
.testimonial-location { font-family: var(--font-ui); font-size: 0.75rem; color: rgba(74,44,34,0.5); }
.testimonial-stars { color: var(--color-gold); font-size: 0.9rem; }

/* ─── CTA Section ────────────────────────────────── */
.cta-section {
  padding: 6rem 0; text-align: center;
  background: linear-gradient(180deg, var(--color-page-bg), var(--color-cream));
}
.cta-title {
  font-family: var(--font-heading); font-size: 2.8rem; color: var(--color-primary);
  margin-bottom: 1rem; font-style: italic;
}
.cta-subtitle {
  font-family: var(--font-body); font-size: 1.15rem; color: rgba(74,44,34,0.6);
  margin-bottom: 2.5rem;
}
.cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ─── Footer ─────────────────────────────────────── */
.footer {
  padding: 2rem 0; border-top: 1px solid var(--color-border);
  background: var(--color-cream);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-text { font-family: var(--font-ui); font-size: 0.8rem; color: rgba(74,44,34,0.5); }

/* ─── Animations ─────────────────────────────────── */
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes sealPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(125,39,39,0.35); transform: scale(1); }
  50% { box-shadow: 0 12px 34px rgba(125,39,39,0.5); transform: scale(1.05); }
}
.animate-seal-pulse { animation: sealPulse 2.4s ease-in-out infinite; }
.animate-gentle-float { animation: gentleFloat 3s ease-in-out infinite; }

@keyframes petalFall {
  0% { opacity: 0; transform: translateY(-10vh) translateX(0) rotate(0deg); }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(110vh) translateX(var(--drift, 40px)) rotate(720deg); }
}
.petal {
  position: fixed; top: -20px; z-index: 0;
  pointer-events: none; animation: petalFall linear infinite;
}

@keyframes rippleExpand {
  0% { width: 100px; height: 100px; opacity: 0.8; }
  100% { width: 300px; height: 300px; opacity: 0; }
}
@keyframes dholBounce {
  0% { transform: scale(1); }
  30% { transform: scale(0.9); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-3deg); }
  100% { transform: scale(1.05, 0.95) rotate(3deg); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}
@keyframes sparkFly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx, 20px), var(--dy, -30px)) scale(0); opacity: 0; }
}
@keyframes globeShake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(5deg); }
  40% { transform: rotate(-5deg); }
  60% { transform: rotate(3deg); }
  80% { transform: rotate(-2deg); }
}
@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(200px) rotate(720deg); opacity: 0; }
}
.confetti {
  position: absolute; top: 0; width: 6px; height: 6px;
  border-radius: 1px; animation: confettiFall 2s ease forwards;
}

.shake {
  animation: pageShake 0.2s ease;
}
@keyframes pageShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* #petal-container */
#petal-container {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { max-width: 100%; margin: 0 auto; }
  .hero-title { font-size: 2.5rem; }
  .hero-ctas, .hero-features { justify-content: center; }
  .festivities-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .templates-carousel { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-demo { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-links.active {
    display: flex; flex-direction: column; position: absolute;
    top: var(--nav-height); left: 0; right: 0;
    background: rgba(251,246,236,0.98); padding: 1.5rem;
    border-bottom: 1px solid var(--color-border); gap: 1rem;
  }
  .hero-content { padding: 0 1rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-phone-frame { width: 248px; }
  .festivities-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .templates-carousel { grid-template-columns: repeat(2, 1fr); }
  .cta-title { font-size: 2rem; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-phone-frame { width: 232px; }
  /* Nav: shrink logo so "Create yours" pill has room without overlapping.
     The em "Weddings" italic suffix is hidden; only "DeepDreams" stays. */
  .nav-inner { padding: 0 0.75rem; gap: 0; }
  .nav-logo { min-width: 0; flex-shrink: 1; overflow: hidden; }
  .nav-logo-icon { font-size: 1rem; flex-shrink: 0; }
  .nav-logo-text { font-size: 0.88rem; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 130px; }
  .nav-logo-text em { display: none; }
  .nav-actions { flex-shrink: 0; gap: 0.4rem; }
  .mobile-menu-btn { padding: 0.35rem; }
  .btn-sm { padding: 0.45rem 0.85rem; font-size: 0.78rem; }
  .section-title, .section-title-dark { font-size: 1.6rem; }
  .cta-title { font-size: 1.6rem; }
  .templates-carousel { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* ══════════════════════════════════════════════════════
   DEMO MODAL
   ══════════════════════════════════════════════════════ */

/* Overlay */
.demo-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
  /* `visibility:hidden` alone is not enough: `.demo-page-active` re-asserts
     `visibility:visible` on the first page, which makes the seal and doors
     hit-testable through this full-screen z-9999 layer and swallows taps on
     the page beneath (it landed straight on the hero CTAs at phone widths).
     Gate input on the layer itself so descendants can never leak through. */
  pointer-events: none;
}
.demo-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

.demo-modal { position: relative; }

.demo-close {
  position: absolute; top: -40px; right: 0; z-index: 10;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; transition: background 0.3s;
}
.demo-close:hover { background: rgba(255,255,255,0.3); }

/* Phone frame */
.demo-phone {
  width: 360px; max-height: 90vh; border-radius: 2.8rem;
  background: #1a1a1a; padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 2px rgba(200,162,83,0.3);
  position: relative; overflow: hidden;
}
.demo-phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 28px; background: #1a1a1a; border-radius: 0 0 20px 20px; z-index: 10;
}
.demo-phone-screen {
  width: 100%; aspect-ratio: 9/19.5; border-radius: 2.2rem;
  background: var(--color-card-bg); overflow: hidden; position: relative;
}

/* Pages */
.demo-page {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(20px); overflow-y: auto;
}
.demo-page-active { opacity: 1; visibility: visible; transform: translateY(0); }

/* Indicators */
.demo-indicators {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 20;
}
.demo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(200,162,83,0.3); transition: all 0.3s; cursor: pointer;
}
.demo-dot.active { background: var(--color-gold); width: 18px; border-radius: 4px; }

/* ── Page 0: Envelope ── */
.demo-envelope {
  width: 100%; height: 100%; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--color-gold);
}
.demo-env-bg {
  position: absolute; inset: 0; opacity: 0.3;
}
.demo-env-border {
  position: absolute; inset: 16px; border: 2px solid rgba(125,39,39,0.25);
  border-radius: 8px; pointer-events: none;
}
.demo-seal {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--color-primary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(125,39,39,0.4);
  position: relative; z-index: 5;
}
.demo-seal span {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
  color: var(--color-gold-light);
}
.demo-tap-text {
  font-family: var(--font-ui); font-size: 0.65rem; letter-spacing: 0.3em;
  color: rgba(125,39,39,0.4); margin-top: 1.2rem; z-index: 5;
}
.demo-door {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: linear-gradient(135deg, #d4a24a, #c8a253);
  z-index: 3; backface-visibility: hidden;
  transition: transform 1.8s cubic-bezier(0.7,0,0.3,1);
}
.demo-door-left { left: 0; transform-origin: left center; }
.demo-door-right { right: 0; transform-origin: right center; }
.demo-envelope.opened .demo-door-left { transform: perspective(1200px) rotateY(-105deg); }
.demo-envelope.opened .demo-door-right { transform: perspective(1200px) rotateY(105deg); }
.demo-envelope.opened .demo-seal { animation: none; opacity: 0; transition: opacity 0.5s; }
.demo-envelope.opened .demo-tap-text { opacity: 0; transition: opacity 0.3s; }

/* ── Page 1: Welcome ── */
.demo-welcome {
  text-align: center; padding: 2.5rem 1.5rem; width: 100%;
}
.demo-script-accent {
  font-family: var(--font-script); font-size: 1.3rem; color: var(--color-gold);
  margin-bottom: 0.5rem;
}
.demo-couple-names {
  font-family: var(--font-heading); font-size: 2.8rem; font-weight: 700;
  color: var(--color-primary); line-height: 1.1; margin-bottom: 0.5rem;
}
.demo-couple-names span {
  font-family: var(--font-script); font-size: 2rem; color: var(--color-gold);
  display: inline-block; margin: 0.2rem 0;
}
.demo-divider {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin: 0.8rem 0;
}
.demo-divider::before, .demo-divider::after {
  content: ''; height: 1px; width: 40px; background: var(--color-gold);
}
.demo-invite-line {
  font-family: var(--font-body); font-size: 1rem; color: rgba(74,44,34,0.7);
  line-height: 1.6; margin-bottom: 1.2rem;
}
.demo-date-box {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(200,162,83,0.1); border: 1px solid rgba(200,162,83,0.25);
  border-radius: 12px; padding: 0.8rem 1.5rem; margin: 0 auto 1rem;
  max-width: 200px;
}
.demo-date-day {
  font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--color-gold-dark);
}
.demo-date-num {
  font-family: var(--font-heading); font-size: 3rem; font-weight: 700;
  color: var(--color-primary); line-height: 1;
}
.demo-date-month {
  font-family: var(--font-ui); font-size: 0.85rem; font-weight: 500;
  color: var(--color-text);
}
.demo-venue {
  font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600;
  color: var(--color-text); margin-bottom: 0.2rem;
}
.demo-time {
  font-family: var(--font-ui); font-size: 0.8rem; color: rgba(74,44,34,0.5);
  margin-bottom: 1.5rem;
}

/* Next button */
.demo-next-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--color-primary); color: var(--color-card-cream);
  border: none; border-radius: 2rem; padding: 0.6rem 1.4rem;
  font-family: var(--font-ui); font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: all 0.3s; margin-top: 0.5rem;
}
.demo-next-btn:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

/* ── Ceremony pages shared ── */
.demo-ceremony, .demo-rsvp {
  text-align: center; padding: 1.5rem; width: 100%;
}
.demo-cer-emoji { font-size: 2.5rem; display: block; margin-bottom: 0.3rem; }
.demo-cer-title {
  font-family: var(--font-heading); font-size: 1.4rem; color: var(--color-primary);
  margin-bottom: 0.2rem;
}
.demo-cer-date {
  font-family: var(--font-ui); font-size: 0.75rem; color: rgba(74,44,34,0.5);
  letter-spacing: 0.05em; margin-bottom: 0.3rem;
}
.demo-cer-desc {
  font-family: var(--font-body); font-size: 0.95rem; color: rgba(74,44,34,0.65);
  margin-bottom: 1rem;
}

/* Interactive area */
.demo-interact-area {
  position: relative; width: 100%; height: 160px;
  background: rgba(200,162,83,0.06); border: 1px solid rgba(200,162,83,0.15);
  border-radius: 12px; overflow: hidden; margin-bottom: 0.8rem;
}
.demo-interact-hint {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-ui); font-size: 0.65rem; color: rgba(200,162,83,0.6);
  white-space: nowrap; z-index: 5; transition: opacity 0.3s;
}

/* Rub canvas */
.demo-rub-msg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.demo-rub-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 2; touch-action: none; cursor: crosshair;
}

/* Trace canvas */
.demo-trace-canvas {
  width: 100%; height: 100%; touch-action: none; cursor: crosshair;
}

/* Demo Dhol */
.demo-tap-area {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem;
}
.demo-dhol {
  width: 80px; height: 80px; position: relative; cursor: pointer;
}
.demo-dhol-body {
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border: 3px solid var(--color-gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(125,39,39,0.4);
  transition: transform 0.15s;
}
.demo-dhol-head {
  width: 50%; height: 50%; border-radius: 50%;
  background: radial-gradient(circle, var(--color-gold-light), var(--color-gold));
  border: 2px solid var(--color-gold-dark);
}
.demo-dhol-ripples { position: absolute; inset: 0; pointer-events: none; }
.demo-dhol.bounce .demo-dhol-body { animation: dholBounce 0.3s ease; }
.demo-beat-count {
  font-family: var(--font-ui); font-size: 0.75rem; color: rgba(74,44,34,0.5);
}
.demo-beat-count span { font-size: 1.3rem; font-weight: 700; color: var(--color-gold); }

/* Demo Diyas */
.demo-diya-area {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.demo-diyas { display: flex; gap: 0.6rem; margin-bottom: 0.5rem; }
.demo-diya-item {
  position: relative; cursor: pointer; text-align: center;
  transition: transform 0.3s;
}
.demo-diya-item:hover { transform: scale(1.15); }
.demo-diya-base {
  width: 32px; height: 18px;
  background: linear-gradient(180deg, var(--color-gold), var(--color-gold-dark));
  border-radius: 0 0 50% 50% / 0 0 100% 100%; margin: 0 auto;
  border: 1px solid var(--color-gold-dark);
}
.demo-diya-flame {
  width: 10px; height: 16px; margin: 0 auto 2px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(0deg, #ff6600 0%, #ffcc00 40%, #fff8e1 80%);
  opacity: 0; transition: opacity 0.4s;
  box-shadow: 0 0 6px 3px rgba(255,200,0,0.35);
}
.demo-diya-item[data-lit="true"] .demo-diya-flame {
  opacity: 1; animation: flameFlicker 0.4s ease-in-out infinite alternate;
}

/* ── RSVP Form ── */
.demo-rsvp-form { text-align: left; padding: 0 0.5rem; margin-top: 1rem; }
.demo-rsvp-group { margin-bottom: 1rem; }
.demo-rsvp-group label {
  display: block; font-family: var(--font-ui); font-size: 0.75rem;
  font-weight: 600; color: var(--color-text); margin-bottom: 0.4rem;
}
.demo-input {
  width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--color-border);
  border-radius: 8px; font-family: var(--font-ui); font-size: 0.85rem;
  background: var(--color-card-cream); color: var(--color-text);
  outline: none; transition: border-color 0.3s;
}
.demo-input:focus { border-color: var(--color-gold); }
.demo-guest-btns { display: flex; gap: 0.5rem; }
.demo-guest-btn {
  flex: 1; padding: 0.5rem; border: 1px solid var(--color-border);
  border-radius: 8px; background: var(--color-card-cream);
  font-family: var(--font-ui); font-size: 0.85rem; cursor: pointer;
  transition: all 0.3s;
}
.demo-guest-btn.active, .demo-guest-btn:hover {
  background: var(--color-gold); color: #fff; border-color: var(--color-gold);
}
.demo-attend-btns { display: flex; gap: 0.5rem; }
.demo-attend-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  padding: 0.6rem 0.5rem; border-radius: 8px; font-family: var(--font-ui);
  font-size: 0.75rem; font-weight: 500; cursor: pointer; transition: all 0.3s; border: 1px solid;
}
.demo-attend-yes { background: rgba(34,163,74,0.1); border-color: rgba(34,163,74,0.3); color: #22a34a; }
.demo-attend-yes:hover { background: #22a34a; color: #fff; }
.demo-attend-no { background: rgba(199,48,48,0.08); border-color: rgba(199,48,48,0.2); color: #c73030; }
.demo-attend-no:hover { background: #c73030; color: #fff; }

/* Ripple for demo dhol */
.demo-ripple-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 80px; height: 80px; border: 2px solid var(--color-gold);
  border-radius: 50%; opacity: 1; pointer-events: none;
  animation: rippleExpand 0.8s ease-out forwards;
}

/* Demo responsive */
@media (max-width: 480px) {
  .demo-phone { width: 92vw; max-width: 360px; }
  .demo-couple-names { font-size: 2.2rem; }
}
