:root {
  --rose: #c9506a;
  --rose-light: #e8a0b0;
  --rose-pale: #f5dde3;
  --gold: #c9a84c;
  --gold-light: #e8d5a3;
  --gold-pale: #fdf6e3;
  --cream: #fdf8f0;
  --ink: #3d2b1f;
  --ink-faded: #7a5c4e;
  --parchment: #f7efe0;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: #1c1008;
  background-image:
    radial-gradient(ellipse 90% 85% at 50% 50%, transparent 55%, rgba(10,4,0,0.82) 100%),
    radial-gradient(ellipse 55% 40% at 15% 12%, rgba(180,90,80,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 50% 38% at 85% 88%, rgba(201,168,76,0.14) 0%, transparent 70%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(180,140,80,0.018) 3px,
      rgba(180,140,80,0.018) 4px
    ),
    repeating-linear-gradient(
      47deg,
      transparent,
      transparent 38px,
      rgba(160,110,60,0.025) 38px,
      rgba(160,110,60,0.025) 39px
    ),
    linear-gradient(160deg, #2b1a0e 0%, #1c1008 40%, #241408 70%, #1a0c06 100%);
  min-height: 100vh;
  font-family: 'Cormorant Garamond', serif;
  color: var(--ink);
  overflow-x: hidden;
}

#starCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  position: relative;
  z-index: 1;
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 60px 20px 50px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(245,221,227,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, #e8c97a 50%, var(--gold) 100%);
  color: #3d2b00;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(201,168,76,0.4);
  animation: fadeDown 1s ease both;
}

.hero-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  color: var(--rose-light);
  line-height: 1.1;
  text-shadow:
    0 0 40px rgba(201,80,106,0.5),
    0 2px 4px rgba(0,0,0,0.4);
  animation: fadeUp 1.2s ease 0.2s both;
  margin-bottom: 10px;
}

.hero-sub {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--gold-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeUp 1.2s ease 0.4s both;
  margin-bottom: 24px;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: fadeUp 1.2s ease 0.6s both;
  margin-bottom: 30px;
}

.hero-divider span {
  display: block;
  height: 1px;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.hero-heart {
  color: var(--rose);
  font-size: 1.3rem;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.25); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  56% { transform: scale(1); }
}

.hero-message {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--rose-pale);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
  animation: fadeUp 1.2s ease 0.8s both;
  opacity: 0.9;
}

/* ── SCRAPBOOK CARD ── */
.scrapbook-card {
  background:
    radial-gradient(ellipse 30% 20% at 15% 80%, rgba(160,110,60,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 25% 15% at 85% 20%, rgba(140,90,40,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 60% 90%, rgba(180,140,80,0.05) 0%, transparent 70%),
    linear-gradient(160deg, #f9f0dc 0%, #f4e8ca 40%, #f0e2c0 70%, #ede0be 100%);
  border-radius: 2px;
  padding: 50px 48px 56px;
  position: relative;
  margin: 40px 0;
  box-shadow:
    0 2px 0px rgba(120,80,20,0.4),
    0 4px 6px rgba(0,0,0,0.35),
    0 20px 60px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(160,120,60,0.25),
    inset 0 0 30px rgba(140,100,40,0.06);
  animation: fadeUp 1.2s ease 1s both;
  outline: 1px solid rgba(180,140,70,0.12);
  outline-offset: 6px;
}

.scrapbook-card::before,
.scrapbook-card::after {
  content: '';
  position: absolute;
  width: 64px;
  height: 24px;
  background: linear-gradient(180deg, rgba(232,210,150,0.55) 0%, rgba(210,185,120,0.45) 100%);
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,240,180,0.4);
  border: 1px solid rgba(200,165,90,0.25);
}
.scrapbook-card::before {
  top: -11px; left: 50px;
  transform: rotate(-3deg);
}
.scrapbook-card::after {
  top: -11px; right: 70px;
  transform: rotate(4deg);
}

.corner {
  position: absolute;
  width: 36px;
  height: 36px;
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
}
.corner.tl { top: 10px; left: 12px; }
.corner.tr { top: 10px; right: 12px; text-align: right; }
.corner.bl { bottom: 10px; left: 12px; }
.corner.br { bottom: 10px; right: 12px; text-align: right; }

.card-label {
  font-family: 'Playfair Display', serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose);
  text-align: center;
  margin-bottom: 22px;
}

.card-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--rose);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 1px 2px rgba(201,80,106,0.2);
}

.card-gold-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 22px;
  justify-content: center;
}
.card-gold-line hr {
  flex: 1; border: none;
  border-top: 1px solid var(--gold-light);
  max-width: 120px;
}
.card-gold-line .ornament {
  color: var(--gold);
  font-size: 1rem;
}

.card-text {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--ink-faded);
  line-height: 1.9;
  text-align: center;
  font-style: italic;
}

/* ── PDF VIEWER ── */
.viewer-wrapper {
  margin: 0 0 40px;
  animation: fadeUp 1.2s ease 1.2s both;
}

.viewer-header {
  background: linear-gradient(135deg, var(--rose) 0%, #a03050 100%);
  border-radius: 8px 8px 0 0;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 -2px 20px rgba(201,80,106,0.3);
}

.viewer-header-dots {
  display: flex; gap: 7px;
}
.viewer-header-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: block;
}
.viewer-header-dots span:nth-child(1) { background: #ff6b6b; }
.viewer-header-dots span:nth-child(2) { background: #ffd93d; }
.viewer-header-dots span:nth-child(3) { background: #6bcb77; }

.viewer-header-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.1em;
  flex: 1;
  text-align: center;
}

.viewer-header-hearts {
  font-size: 1rem;
  letter-spacing: 4px;
}

.pdf-frame-wrap {
  background: #1a0f0f;
  border: 3px solid var(--gold);
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(201,168,76,0.1);
  position: relative;
}

.pdf-frame-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(201,168,76,0.05) 0%,
    transparent 5%,
    transparent 95%,
    rgba(201,168,76,0.05) 100%
  );
  pointer-events: none;
  z-index: 1;
}

iframe {
  display: block;
  width: 100%;
  height: 700px;
  border: none;
}

/* ── FOOTER ── */
.footer {
  text-align: center;
  padding: 40px 20px 60px;
  animation: fadeUp 1.2s ease 1.4s both;
}

.footer-hearts {
  font-size: 2rem;
  letter-spacing: 10px;
  margin-bottom: 16px;
  animation: heartbeat 2s ease-in-out infinite;
  display: block;
}

.footer-text {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--rose-light);
  text-shadow: 0 0 20px rgba(201,80,106,0.4);
  margin-bottom: 10px;
}

.footer-small {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ── GOLD BORDER FRAME ── */
.gold-border-frame {
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 6px;
  padding: 4px;
  margin: 0 0 40px;
}

.gold-border-inner {
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 4px;
  padding: 30px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 80%),
    linear-gradient(160deg, rgba(249,240,220,0.07) 0%, rgba(230,200,140,0.04) 100%);
}

.stat-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: 'Great Vibes', cursive;
  font-size: 3.5rem;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 20px rgba(201,168,76,0.4);
}

.stat-label {
  font-family: 'Playfair Display', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-top: 4px;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── GOLDEN DIVIDER ── */
.golden-divider {
  width: 100%;
  max-width: 500px;
  margin: 18px auto 18px;
  animation: fadeUp 1.2s ease 0.35s both;
  opacity: 0.92;
}
.golden-divider svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(232,201,122,0.45));
}

/* ── ROSES ROW ── */
.roses-row {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 6px;
  color: var(--rose-light);
  margin: 10px 0 30px;
  animation: fadeUp 1s ease 0.5s both;
  opacity: 0;
}

/* Wax seal */
.wax-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle at 35% 35%, #e06080 0%, #c9506a 40%, #8a2040 100%);
  border-radius: 50%;
  box-shadow:
    0 4px 15px rgba(201,80,106,0.5),
    inset 0 -3px 6px rgba(0,0,0,0.25),
    inset 0 3px 6px rgba(255,200,200,0.25);
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  color: rgba(255,240,245,0.95);
  margin: 20px auto 30px;
  position: relative;
  animation: fadeUp 1.2s ease 1s both;
}

.wax-seal::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255,200,210,0.3);
}

/* Responsive */
@media (max-width: 600px) {
  .scrapbook-card { padding: 36px 24px 40px; }
  iframe { height: 520px; }
  .stat-grid { gap: 24px; }
}
