/* Velvet Invite — core styles */
:root {
  --bg: #14080e;
  --bg-2: #1e0f18;
  --text: #f7efe8;
  --muted: rgba(247, 239, 232, 0.68);
  --gold: #d4af37;
  --gold-soft: #f0d78c;
  --rose: #b23a5a;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(178, 58, 90, 0.28), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(212, 175, 55, 0.16), transparent 50%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 40%, #0c0609);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.optional { opacity: 0.6; font-weight: 400; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.container.narrow { width: min(720px, calc(100% - 2rem)); }
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  padding: 0 1.25rem;
  background: rgba(12, 6, 9, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--text); }
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--gold) 45%, var(--rose));
  box-shadow: 0 0 20px rgba(212,175,55,0.35);
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.site-nav { display: flex; align-items: center; gap: 1.1rem; }
.site-nav a { color: var(--muted); font-size: 0.92rem; }
.site-nav a:hover { color: var(--text); }
.nav-toggle {
  display: none; background: none; border: 0; width: 42px; height: 42px;
  flex-direction: column; justify-content: center; gap: 6px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 22px; background: var(--text); margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 1px solid transparent; border-radius: 999px;
  padding: 0.75rem 1.35rem; font: inherit; font-weight: 500;
  cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:active { transform: scale(0.98); }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.02rem; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-gold {
  background: linear-gradient(135deg, #e8c76a, var(--gold) 45%, #a67c1a);
  color: #1a1005; border-color: rgba(255,255,255,0.2);
}
.btn-gold:hover { color: #1a1005; filter: brightness(1.05); }
.btn-outline {
  background: transparent; color: var(--text);
  border-color: rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-ghost {
  background: rgba(255,255,255,0.06); color: var(--text);
  border-color: rgba(255,255,255,0.12);
}
.btn-danger {
  background: rgba(160, 40, 60, 0.25); color: #ffb3c1;
  border-color: rgba(255,120,140,0.35);
}

/* Forms */
label { display: grid; gap: 0.4rem; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.9rem; }
input, select, textarea {
  width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.28); color: var(--text);
  padding: 0.75rem 0.9rem; font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(212,175,55,0.65);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
textarea { resize: vertical; min-height: 90px; }
.stack { display: grid; gap: 0.2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.alert { padding: 0.8rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.alert-error { background: rgba(160,40,60,0.25); border: 1px solid rgba(255,120,140,0.35); }
.flash {
  width: min(900px, calc(100% - 2rem)); margin: 1rem auto 0;
  padding: 0.85rem 1rem; border-radius: 12px;
  background: rgba(212,175,55,0.15); border: 1px solid rgba(212,175,55,0.35);
}
.flash-error { background: rgba(160,40,60,0.25); border-color: rgba(255,120,140,0.35); }

/* Hero home */
.hero-home {
  position: relative; min-height: calc(100svh - var(--header-h));
  display: grid; place-items: center; padding: 3rem 1.25rem 4rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(178,58,90,0.35), transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(212,175,55,0.12), transparent 45%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  width: min(820px, 100%);
  animation: fadeUp 1.1s var(--ease) both;
}
.brand-hero {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  color: var(--gold-soft);
  margin: 0 0 0.35rem;
  text-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  margin-bottom: 0.85rem;
}
.hero-sub {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--muted);
  max-width: 34rem; margin-inline: auto 1.5rem;
  margin: 0 auto 1.75rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

.flower-layer, .petal-layer { position: absolute; inset: 0; overflow: hidden; }
.particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.section { padding: 5rem 0; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-lead { color: var(--muted); font-size: 1.05rem; }
.feature-rail {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem;
}
.feature-item {
  padding: 1.5rem 1.35rem;
  border-top: 1px solid rgba(212,175,55,0.35);
}
.feature-item h3 { font-size: 1.35rem; }
.feature-item p { color: var(--muted); margin: 0; }

.theme-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem;
}
.theme-swatch {
  min-height: 120px; border-radius: 16px; display: grid; place-items: end start;
  padding: 1rem; border: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-display); font-size: 1.15rem;
}
.theme-romantic-rose { background: linear-gradient(145deg, #3a1422, #8b1e3f 60%, #d4af37); }
.theme-luxury-gold { background: linear-gradient(145deg, #1a1408, #c9a227 70%, #f5e6c8); color: #1a1005; }
.theme-pink-birthday { background: linear-gradient(145deg, #2a1020, #e85a8c, #ffd6e7); }
.theme-midnight-love { background: linear-gradient(145deg, #0a0614, #6b5b95, #e8d5ff); }
.theme-white-elegant { background: linear-gradient(145deg, #ebe4da, #f7f3ee, #c9a87c); color: #2d2a26; }
.theme-floral-garden { background: linear-gradient(145deg, #1b2e24, #2d6a4f, #f4a261); }

.cta-panel { text-align: center; padding: 3rem 1.5rem; }
.cta-final { padding-bottom: 6rem; }

.auth-page {
  min-height: calc(100svh - var(--header-h) - 120px);
  display: grid; place-items: center; padding: 2rem 1rem;
}
.auth-card { width: min(440px, 100%); padding: 2rem 1.5rem; }
.auth-card h1 { font-size: 2rem; }
.auth-switch { margin-top: 1.25rem; color: var(--muted); font-size: 0.92rem; }

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 1rem; text-align: center;
}
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 0.35rem; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(12,6,9,0.96); padding: 1rem;
    transform: translateY(-120%); transition: transform .35s var(--ease);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: 0.85rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .feature-rail, .theme-grid, .grid-2 { grid-template-columns: 1fr; }
}
