/* ═══════════════════════════════════
   WOVORI — Design System
═══════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Palette */
  --bg:          #FAFAF8;
  --bg-2:        #F4F2EE;
  --surface:     #FFFFFF;
  --border:      rgba(0,0,0,0.07);
  --border-md:   rgba(0,0,0,0.12);
  --text-1:      #111110;
  --text-2:      #5C5B57;
  --text-3:      #9B9A96;

  /* Brand */
  --rose:        #C8715A;
  --rose-light:  #F2EAE7;
  --rose-mid:    #D98B76;
  --sage:        #4A6741;
  --sage-light:  #EAF0E8;
  --warm:        #E8C99A;

  /* Gradient */
  --grad-hero:   linear-gradient(135deg, #FDF6F2 0%, #F7F0F8 40%, #EEF4F2 100%);
  --grad-text:   linear-gradient(135deg, #C8715A 0%, #9B5EA3 50%, #4A6741 100%);
  --grad-card:   linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5));

  /* Spacing */
  --nav-h:       64px;
  --r-sm:        10px;
  --r-md:        16px;
  --r-lg:        24px;
  --r-xl:        32px;

  /* Type */
  --serif:       'Instrument Serif', Georgia, serif;
  --sans:        'Plus Jakarta Sans', system-ui, sans-serif;
}

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

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
}

/* ═══════════════════════════════════
   NAV
═══════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  transition: background 0.3s, box-shadow 0.3s;
}
#nav.stuck {
  background: rgba(250,250,248,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.45rem; font-style: italic;
  color: var(--text-1); letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rose); margin-top: 2px;
  flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 6px;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-2);
  padding: 6px 14px; border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--bg-2); color: var(--text-1); }
.nav-cta {
  padding: 9px 20px !important;
  background: var(--text-1) !important;
  color: var(--bg) !important;
  border-radius: 10px !important;
  font-weight: 500 !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.85 !important; background: var(--text-1) !important; }
.nav-mobile-btn {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--border-md);
  border-radius: 8px; background: var(--surface);
  cursor: pointer; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  z-index: 600;
}
.nav-mobile-btn span {
  display: block; width: 16px; height: 1.5px;
  background: var(--text-1); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-mobile-btn.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-mobile-btn.open span:nth-child(2) { opacity: 0; }
.nav-mobile-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* mobile dropdown menu */
#mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(250,250,248,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 499;
  flex-direction: column; gap: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  font-size: 1rem; font-weight: 500; color: var(--text-1);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.2s;
}
#mobile-menu a:last-child { border-bottom: none; }
#mobile-menu a:hover { color: var(--rose); }
#mobile-menu .mob-cta {
  margin-top: 12px;
  padding: 14px 24px;
  background: var(--text-1); color: var(--bg) !important;
  border-radius: var(--r-md); text-align: center;
  border-bottom: none !important;
  font-weight: 600;
}

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
#hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 80px) 24px 80px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
}

/* mesh gradient blobs */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.45; pointer-events: none;
}
.blob-1 { width: 600px; height: 600px; top: -100px; left: -100px; background: radial-gradient(circle, #F2C8BE, transparent 70%); }
.blob-2 { width: 500px; height: 500px; top: 10%; right: -80px;  background: radial-gradient(circle, #D4C8F0, transparent 70%); }
.blob-3 { width: 400px; height: 400px; bottom: 0; left: 30%;    background: radial-gradient(circle, #C8DFC2, transparent 70%); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--surface); border: 1px solid var(--border-md);
  border-radius: 100px; font-size: 0.78rem; font-weight: 500;
  color: var(--text-2); margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  opacity: 0; animation: fadeUp 0.7s 0.2s ease forwards;
}
.hero-badge-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), #9B5EA3);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
}
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.08; letter-spacing: -0.02em;
  color: var(--text-1); max-width: 820px;
  opacity: 0; animation: fadeUp 0.8s 0.35s ease forwards;
}
.hero-h1 .grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}
.hero-sub {
  max-width: 520px; margin: 24px auto 0;
  font-size: 1.05rem; color: var(--text-2);
  line-height: 1.75; font-weight: 400;
  opacity: 0; animation: fadeUp 0.8s 0.5s ease forwards;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center; margin-top: 40px;
  opacity: 0; animation: fadeUp 0.8s 0.65s ease forwards;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600;
  border-radius: var(--r-md); cursor: pointer;
  border: none; transition: all 0.2s; font-size: 0.9rem;
  text-decoration: none;
}
.btn-dark {
  padding: 13px 24px;
  background: var(--text-1); color: var(--bg);
}
.btn-dark:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-outline {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border-md);
  color: var(--text-2);
}
.btn-outline:hover { background: var(--surface); color: var(--text-1); transform: translateY(-1px); }

/* hero envelope mockup */
.hero-visual {
  margin-top: 64px; position: relative; z-index: 1;
  opacity: 0; animation: fadeUp 1s 0.8s ease forwards;
  width: 100%; display: flex; justify-content: center;
}
.invite-preview {
  width: min(520px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 32px 80px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.06);
  overflow: hidden;
  position: relative;
}
.invite-preview-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.bar-dot { width: 10px; height: 10px; border-radius: 50%; }
.bar-dot-r { background: #FF5F57; }
.bar-dot-y { background: #FEBC2E; }
.bar-dot-g { background: #28C840; }
.bar-url {
  flex: 1; margin-left: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 10px;
  font-size: 0.75rem; color: var(--text-3);
  font-family: var(--sans); text-align: center;
}
.invite-preview-body {
  background: linear-gradient(160deg, #1B3020 0%, #0E1A14 100%);
  height: 280px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden; cursor: pointer;
}
.preview-stars { position: absolute; inset: 0; pointer-events: none; }
.preview-env {
  position: relative; width: 200px;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.5));
  transform-style: preserve-3d;
  animation: envHover 4s ease-in-out infinite;
}
@keyframes envHover {
  0%,100% { transform: translateY(0) rotateX(4deg); }
  50%      { transform: translateY(-8px) rotateX(2deg); }
}
.preview-env.opened { animation: none; transform: rotateX(0); }
.penv-body {
  width: 100%; padding-bottom: 62%;
  background: linear-gradient(145deg, #243826, #111A13);
  border-radius: 3px; border: 1px solid rgba(201,165,90,0.25);
  position: relative; overflow: visible;
}
.penv-body::before, .penv-body::after {
  content: ''; position: absolute; top: 0; width: 52%; height: 100%; z-index: 1; pointer-events: none;
}
.penv-body::before { left: 0; background: linear-gradient(to bottom right, rgba(201,165,90,0.07) 49.5%, transparent 50.5%); }
.penv-body::after  { right: 0; background: linear-gradient(to bottom left,  rgba(201,165,90,0.07) 49.5%, transparent 50.5%); }
.penv-flap {
  position: absolute; top: -1px; left: -1px; right: -1px; height: 54%;
  z-index: 10;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s ease;
  transform-origin: top center;
}
.penv-flap.open {
  transform: translateY(-24px) scaleY(0.6);
  opacity: 0;
}
.penv-flap-front { position: absolute; inset: 0; }
.penv-flap-back  { display: none; }
.penv-flap-front-shape {
  width: 100%; height: 100%;
  clip-path: polygon(0% 0%, 100% 0%, 50% 88%);
  background: linear-gradient(160deg, #1F3525, #0E1F14);
  border-top: 1px solid rgba(201,165,90,0.3);
  border-radius: 3px 3px 0 0;
}
.penv-flap-back-shape { display: none; }
.penv-seal {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); z-index: 15;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.penv-seal.gone { transform: translate(-50%,-50%) scale(0.2); opacity: 0; }
.penv-letter {
  position: absolute; left: 7%; right: 7%; bottom: 2%; height: 55%;
  background: linear-gradient(160deg, #FBF4E2, #EDE0B5);
  border-radius: 2px; border: 1px solid rgba(201,165,90,0.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px; z-index: 5;
  transform: translateY(6%) scaleY(0.95); opacity: 0;
  transition: transform 1.2s cubic-bezier(0.2,0.9,0.25,1) 0.2s, opacity 0.6s ease 0.2s;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.4);
}
.penv-letter.risen { transform: translateY(-65%) scaleY(1); opacity: 1; }
.penv-letter-name {
  font-family: 'Instrument Serif', serif;
  font-size: 0.85rem; color: #1B3529; font-style: italic;
}
.penv-letter-tag {
  font-size: 0.42rem; letter-spacing: 4px; text-transform: uppercase;
  color: #8B6840; margin-top: 4px; font-family: var(--sans);
}
.preview-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; color: rgba(201,165,90,0.6); letter-spacing: 3px;
  text-transform: uppercase; font-family: var(--sans);
  animation: hpulse 2s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes hpulse { 0%,100%{opacity:0.5} 50%{opacity:1} }
.preview-chips {
  display: flex; gap: 6px; padding: 12px 14px;
  background: var(--bg); border-top: 1px solid var(--border);
  overflow-x: auto; white-space: nowrap;
  scrollbar-width: none; -ms-overflow-style: none;
  justify-content: center;
}
.preview-chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 100px; flex-shrink: 0;
  font-size: 0.7rem; font-weight: 500;
  border: 1px solid var(--border-md); color: var(--text-2);
  background: var(--surface);
}

/* ═══════════════════════════════════
   MARQUEE
═══════════════════════════════════ */
#marquee-section {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden; background: var(--surface);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0%   { transform: translateZ(0) translateX(0); }
  100% { transform: translateZ(0) translateX(-50%); }
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 32px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-3);
  white-space: nowrap;
}
.marquee-item::after {
  content: '·';
  color: var(--border-md);
  font-size: 1.2rem;
  margin-left: 32px;
}
.marquee-item span { color: var(--text-2); }

/* ═══════════════════════════════════
   BENTO GRID
═══════════════════════════════════ */
#bento { padding: 120px 32px; max-width: 1160px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; color: var(--rose);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-label::before {
  content: ''; display: block;
  width: 16px; height: 1.5px; background: var(--rose);
}
.section-h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15; letter-spacing: -0.02em;
  color: var(--text-1); max-width: 560px;
  margin-bottom: 60px;
}
.section-h2 em { font-style: italic; color: var(--rose); }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}
.bento-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  overflow: hidden; position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
}
.bento-cell:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-2px); }
.bento-cell.span-7 { grid-column: span 7; }
.bento-cell.span-5 { grid-column: span 5; }
.bento-cell.span-4 { grid-column: span 4; }
.bento-cell.span-8 { grid-column: span 8; }
.bento-cell.span-6 { grid-column: span 6; }
.bento-cell.span-12 { grid-column: span 12; }
.cell-tag {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 10px;
}
.cell-h3 {
  font-family: var(--serif); font-size: 1.5rem;
  color: var(--text-1); line-height: 1.25; margin-bottom: 10px;
}
.cell-body {
  font-size: 0.88rem; color: var(--text-2);
  line-height: 1.7; font-weight: 400;
}
.cell-accent { background: var(--rose-light); border-color: rgba(200,113,90,0.15); }
.cell-accent .cell-h3 { color: var(--rose); }
.cell-dark { background: var(--text-1); border-color: transparent; }
.cell-dark .cell-tag { color: rgba(255,255,255,0.4); }
.cell-dark .cell-h3 { color: #fff; }
.cell-dark .cell-body { color: rgba(255,255,255,0.6); }
.cell-sage { background: var(--sage-light); border-color: rgba(74,103,65,0.12); }
.cell-sage .cell-h3 { color: var(--sage); }

.bento-visual {
  margin-top: 20px; border-radius: var(--r-md);
  overflow: hidden; position: relative;
}
.rsvp-demo {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px;
}
.rsvp-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.rsvp-row:last-child { border-bottom: none; }
.rsvp-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rsvp-dot.yes { background: #22C55E; }
.rsvp-dot.no  { background: #EF4444; }
.rsvp-dot.pend{ background: var(--warm); }
.rsvp-name { font-weight: 500; color: var(--text-1); flex: 1; }
.rsvp-count { font-size: 0.75rem; color: var(--text-3); }

.countdown-demo {
  display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap;
}
.cd-box-demo {
  flex: 1; min-width: 56px;
  background: var(--text-1); border-radius: var(--r-sm);
  padding: 14px 8px; text-align: center;
}
.cd-num-demo {
  font-family: var(--serif); font-size: 1.8rem;
  color: #fff; line-height: 1; display: block;
}
.cd-lbl-demo {
  font-size: 0.6rem; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 2px;
  margin-top: 4px; display: block; font-family: var(--sans);
}

.template-stack {
  display: flex; gap: -12px; margin-top: 20px;
  position: relative; height: 100px;
}
.tmpl-thumb {
  width: 70px; height: 90px; border-radius: var(--r-sm);
  border: 2px solid var(--surface);
  position: absolute; box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.tmpl-thumb:nth-child(1) { left: 0; background: linear-gradient(160deg,#1B3020,#0E1810); z-index: 3; }
.tmpl-thumb:nth-child(2) { left: 50px; background: linear-gradient(160deg,#2A1A0E,#1A0E08); z-index: 2; transform: rotate(3deg); }
.tmpl-thumb:nth-child(3) { left: 100px; background: linear-gradient(160deg,#1A1528,#0E0A18); z-index: 1; transform: rotate(6deg); }

/* ═══════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════ */
#how {
  padding: 120px 32px;
  background: var(--text-1);
}
#how .section-label { color: var(--warm); }
#how .section-label::before { background: var(--warm); }
#how .section-h2 { color: #fff; }
#how .section-h2 em { color: var(--warm); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.step-cell {
  padding: 40px 32px;
  background: var(--text-1);
  position: relative;
  transition: background 0.2s;
}
.step-cell:hover { background: #1A1A18; }
.step-num {
  font-family: var(--serif); font-size: 3rem; font-style: italic;
  color: rgba(255,255,255,0.06); line-height: 1;
  position: absolute; top: 20px; right: 24px;
}
.step-icon-wrap {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 20px;
}
.step-title {
  font-family: var(--serif); font-size: 1.2rem;
  color: #fff; margin-bottom: 10px; font-style: italic;
}
.step-body { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* ═══════════════════════════════════
   TEMPLATES
═══════════════════════════════════ */
#templates { padding: 120px 32px; max-width: 1160px; margin: 0 auto; }
.templates-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 60px;
}
.tmpl-card {
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer; position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  min-height: 320px;
}
.tmpl-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.12); }
.tmpl-card-bg {
  width: 100%; min-height: 320px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  padding: 48px 20px 20px; text-align: center; position: relative;
}
.tc-islamic  { background: linear-gradient(160deg,#1A2E1E,#0B120F); }
.tc-southasian{ background: linear-gradient(160deg,#2A1608,#180C04); }
.tc-modern   { background: linear-gradient(160deg,#0A1020,#05080F); }
.tmpl-pill {
  position: absolute; top: 16px; left: 16px;
  padding: 4px 10px; border-radius: 100px;
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; font-family: var(--sans);
}
.pill-green  { background: rgba(74,103,65,0.3); color: #8FBC6A; border: 1px solid rgba(74,103,65,0.4); }
.pill-amber  { background: rgba(200,153,90,0.2); color: #E8B870; border: 1px solid rgba(200,153,90,0.3); }
.pill-blue   { background: rgba(90,110,200,0.2); color: #8FA0E8; border: 1px solid rgba(90,110,200,0.3); }
.tmpl-center {
  display: flex; flex-direction: column; align-items: center;
}
.tmpl-divider { width: 40px; height: 1px; background: rgba(201,165,90,0.4); margin: 14px auto; }
.tmpl-card-name {
  font-family: var(--serif); font-size: 1.6rem; font-style: italic;
  color: #fff; margin-bottom: 6px;
}
.tmpl-card-sub { font-size: 0.72rem; color: rgba(255,255,255,0.4); letter-spacing: 1px; font-family: var(--sans); }
.tmpl-card-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  justify-content: center; width: 100%;
  padding-top: 8px;
}
.tmpl-tag {
  padding: 4px 10px; border-radius: 100px;
  font-size: 0.62rem; font-family: var(--sans);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.1);
}

/* ═══════════════════════════════════
   PRICING
═══════════════════════════════════ */
#pricing {
  padding: 120px 32px;
  background: var(--bg-2);
}
.pricing-inner { max-width: 1160px; margin: 0 auto; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-top: 60px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
}
.price-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); transform: translateY(-3px); }
.price-card.featured {
  background: var(--text-1);
  border-color: transparent;
}
.price-card.featured::before {
  content: 'Most popular';
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--rose), #9B5EA3);
  color: #fff; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 0 0 10px 10px;
  font-family: var(--sans); white-space: nowrap;
}
.price-tier {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 20px;
}
.price-card.featured .price-tier { color: rgba(255,255,255,0.4); }
.price-amount {
  font-family: var(--serif); font-size: 3.5rem; line-height: 1;
  color: var(--text-1); margin-bottom: 4px;
  display: flex; align-items: flex-start; gap: 2px;
}
.price-card.featured .price-amount { color: #fff; }
.price-amount sup { font-size: 1.4rem; margin-top: 8px; font-family: var(--sans); font-weight: 400; }
.price-per { font-size: 0.8rem; color: var(--text-3); margin-bottom: 32px; }
.price-card.featured .price-per { color: rgba(255,255,255,0.35); }
.price-divider { height: 1px; background: var(--border); margin-bottom: 24px; }
.price-card.featured .price-divider { background: rgba(255,255,255,0.08); }
.price-features { list-style: none; margin-bottom: 36px; display: flex; flex-direction: column; gap: 12px; }
.price-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; color: var(--text-2);
}
.price-card.featured .price-features li { color: rgba(255,255,255,0.65); }
.check {
  width: 18px; height: 18px; border-radius: 100px;
  background: var(--rose-light); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.price-card.featured .check { background: rgba(200,113,90,0.2); }
.check::before { content: '✓'; font-size: 0.65rem; color: var(--rose); font-weight: 700; }
.price-btn {
  width: 100%; padding: 13px;
  border-radius: var(--r-md); font-family: var(--sans);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border-md);
  background: transparent; color: var(--text-1);
  transition: all 0.2s;
}
.price-btn:hover { background: var(--bg-2); }
.price-card.featured .price-btn {
  background: #fff; border-color: transparent; color: var(--text-1);
}
.price-card.featured .price-btn:hover { opacity: 0.9; }

/* ═══════════════════════════════════
   WAITLIST
═══════════════════════════════════ */
#waitlist {
  padding: 120px 32px;
  text-align: center;
}
.waitlist-inner { max-width: 560px; margin: 0 auto; }
#waitlist .section-h2 { max-width: 100%; margin-bottom: 16px; }
.waitlist-sub { font-size: 1rem; color: var(--text-2); margin-bottom: 40px; }
.waitlist-form {
  display: flex; gap: 0;
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--r-md);
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.waitlist-form input {
  flex: 1; border: none; background: transparent;
  padding: 10px 14px; font-family: var(--sans);
  font-size: 0.9rem; color: var(--text-1); outline: none;
}
.waitlist-form input::placeholder { color: var(--text-3); }
.waitlist-form .btn-dark {
  padding: 10px 20px; border-radius: var(--r-sm);
  font-size: 0.85rem; white-space: nowrap;
}
.waitlist-ok {
  display: none; font-family: var(--serif);
  font-style: italic; font-size: 1.4rem;
  color: var(--rose); margin-top: 24px;
}
.waitlist-fine { font-size: 0.78rem; color: var(--text-3); margin-top: 14px; }

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
footer {
  background: var(--text-1);
  padding: 64px 32px 40px;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo {
  font-family: var(--serif); font-size: 1.5rem; font-style: italic;
  color: #fff; margin-bottom: 12px;
}
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.35); line-height: 1.6; max-width: 240px; }
.footer-col-title {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 0.875rem;
  color: rgba(255,255,255,0.5); margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom {
  max-width: 1160px; margin: 0 auto;
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.25);
  flex-wrap: wrap; gap: 8px;
}

/* ═══════════════════════════════════
   ANIMATIONS
═══════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 900px) {
  .bento-cell.span-7, .bento-cell.span-5,
  .bento-cell.span-4, .bento-cell.span-8,
  .bento-cell.span-6 { grid-column: span 12; }
  .templates-scroll { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  #hero { padding: calc(var(--nav-h) + 60px) 20px 60px; }
  .bento-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-h1 { font-size: clamp(2.4rem, 8vw, 3.5rem); }
  .hero-visual { margin-top: 40px; }
  .invite-preview { width: min(100%, 92vw); border-radius: var(--r-lg); }
  .invite-preview-body { height: 220px; }
  .preview-env { width: 160px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn-dark { border-radius: var(--r-sm); width: 100%; justify-content: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  #bento { padding: 72px 20px; }
  #how { padding: 72px 20px; }
  #templates { padding: 72px 20px; }
  #pricing { padding: 72px 20px; }
  #waitlist { padding: 72px 20px; }
  .section-h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .preview-chips { justify-content: flex-start; }
  footer { padding: 48px 20px 32px; }
  .footer-inner { padding: 0 0 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-sub { font-size: 0.95rem; }
  .section-label { font-size: 0.72rem; }
}
