/* =============================================
   DESIRE TYPE — CSS Design System
   ============================================= */

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

/* ---- Tokens ---- */
:root {
  --bg:         #0d0b0f;
  --bg2:        #15111a;
  --bg3:        #1e1825;
  --surface:    rgba(255,255,255,0.04);
  --surface-h:  rgba(255,255,255,0.09);
  --border:     rgba(255,255,255,0.08);
  --borderac:   rgba(201,169,110,0.45);
  --gold:       #c9a96e;
  --gold-light: #e8cfa0;
  --rose:       #7c2d49;
  --rose-light: #a83d62;
  --text:       #f0ebe5;
  --muted:      #8a7f7a;
  --dimmed:     #4a4048;
  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 8px 40px rgba(0,0,0,0.55);
  --glow-gold:  0 0 40px rgba(201,169,110,0.18);
  --glow-rose:  0 0 60px rgba(124,45,73,0.30);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Page System ---- */
.page {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(.4,0,.2,1), transform 0.55s cubic-bezier(.4,0,.2,1);
  z-index: 1;
}
.page.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
  z-index: 2;
}
.page.exit {
  opacity: 0;
  transform: translateY(-24px);
  pointer-events: none;
  z-index: 1;
}

/* ---- Background Aura ---- */
.aura {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.aura-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(124,45,73,0.22) 0%, transparent 70%); top: -150px; right: -150px; }
.aura-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(201,169,110,0.12) 0%, transparent 70%); bottom: -100px; left: -100px; }
.aura-3 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(80,30,100,0.20) 0%, transparent 70%); top: 40%; left: 30%; }

/* =============================================
   LANDING PAGE
   ============================================= */
#page-landing {
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
}

.landing-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose) 0%, var(--gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  box-shadow: var(--glow-rose), var(--glow-gold);
  animation: pulse-logo 3s ease-in-out infinite;
}

@keyframes pulse-logo {
  0%, 100% { box-shadow: var(--glow-rose), var(--glow-gold); }
  50% { box-shadow: 0 0 60px rgba(124,45,73,0.5), 0 0 60px rgba(201,169,110,0.3); }
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

.landing-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--text);
  letter-spacing: -0.01em;
}
.landing-headline em {
  font-style: italic;
  color: var(--gold-light);
}

.landing-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.landing-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 480px;
  font-weight: 300;
}

.landing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}
.feature-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 11px 20px;
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 300;
}
.feature-pill .icon {
  font-size: 16px;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--rose) 0%, #9e3558 60%, var(--rose-light) 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 17px 44px;
  font-family: 'Inter', sans-serif;
  font-size: 0.975rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 30px rgba(124,45,73,0.45);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 44px rgba(124,45,73,0.6);
}
.btn-primary:active { transform: translateY(0) scale(0.99); }

.btn-arrow { font-size: 18px; transition: transform 0.2s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.landing-note {
  font-size: 0.78rem;
  color: var(--dimmed);
  letter-spacing: 0.02em;
}

/* =============================================
   QUIZ PAGE
   ============================================= */
#page-quiz {
  justify-content: flex-start;
  min-height: 100vh;
  padding: 0 24px 60px;
}

.quiz-header {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 640px;
  padding: 20px 0 16px;
  background: linear-gradient(to bottom, var(--bg) 80%, transparent);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.quiz-step-label {
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.quiz-step-frac {
  font-size: 0.78rem;
  color: var(--dimmed);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

.progress-bar {
  width: 100%;
  height: 2px;
  background: var(--bg3);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
}

.quiz-body {
  width: 100%;
  max-width: 640px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.question-card {
  display: none;
  flex-direction: column;
  gap: 24px;
  animation: slide-in 0.4s cubic-bezier(.4,0,.2,1);
}
.question-card.active { display: flex; }

@keyframes slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.question-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
}
.question-sub {
  font-size: 0.84rem;
  color: var(--muted);
  font-style: italic;
  margin-top: -16px;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.option-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.925rem;
  font-weight: 300;
  line-height: 1.5;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.option-btn:hover {
  background: var(--surface-h);
  border-color: var(--borderac);
  transform: translateX(4px);
}
.option-btn.selected {
  background: rgba(201,169,110,0.1);
  border-color: var(--gold);
  color: var(--gold-light);
}
.option-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--dimmed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  color: var(--muted);
}
.option-btn.selected .option-letter {
  background: var(--gold);
  border-color: var(--gold);
  color: #0d0b0f;
}

.quiz-nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--borderac);
  border-radius: 50px;
  padding: 12px 28px;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  opacity: 0.4;
  pointer-events: none;
}
.btn-next.enabled {
  opacity: 1;
  pointer-events: all;
}
.btn-next.enabled:hover {
  background: rgba(201,169,110,0.1);
  transform: translateX(2px);
  box-shadow: 0 0 20px rgba(201,169,110,0.15);
}

/* =============================================
   RESULT PAGE
   ============================================= */
#page-result {
  justify-content: flex-start;
  min-height: 100vh;
  padding: 48px 24px 80px;
}

.result-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,169,110,0.1);
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.result-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  color: var(--text);
}
.result-headline span {
  color: var(--gold-light);
  font-style: italic;
}

.result-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
  max-width: 520px;
  font-weight: 300;
}

/* Image reveal container */
.reveal-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow), var(--glow-rose);
}
.reveal-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  filter: blur(22px) brightness(0.6);
  transform: scale(1.08);
  transition: filter 1.2s ease, transform 1.2s ease;
}
.reveal-img.unlocked {
  filter: blur(0) brightness(1);
  transform: scale(1);
}
.reveal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(13,11,15,0.9));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.lock-icon {
  font-size: 42px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.8));
  animation: float 2.5s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.lock-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 0 20px;
}

/* Offer card */
.offer-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg2);
  border: 1px solid var(--borderac);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow), var(--glow-gold);
}
.offer-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}
.offer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.offer-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 300;
}
.offer-list li::before {
  content: '✦';
  color: var(--gold);
  flex-shrink: 0;
  font-size: 10px;
  margin-top: 4px;
}
.offer-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.offer-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--gold-light);
}
.offer-price-note {
  font-size: 0.8rem;
  color: var(--dimmed);
  font-style: italic;
}

.btn-unlock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, #b8923c 100%);
  color: #0d0b0f;
  border: none;
  border-radius: 50px;
  padding: 17px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 30px rgba(201,169,110,0.35);
  width: 100%;
}
.btn-unlock:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 44px rgba(201,169,110,0.5);
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--dimmed);
}

.traits-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.trait-tag {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

/* =============================================
   SUCCESS STATE
   ============================================= */
.success-banner {
  display: none;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(135deg, rgba(201,169,110,0.12) 0%, rgba(124,45,73,0.12) 100%);
  border: 1px solid rgba(201,169,110,0.4);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--gold-light);
  font-style: italic;
}
.success-banner.show { display: block; }

/* =============================================
   MODAL — Stripe placeholder
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 24px;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-card {
  background: var(--bg2);
  border: 1px solid var(--borderac);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow), 0 0 60px rgba(201,169,110,0.12);
  transform: translateY(20px);
  transition: transform 0.3s;
}
.modal-overlay.open .modal-card { transform: translateY(0); }

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
}
.modal-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
  margin-top: -10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}
.form-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.925rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: var(--dimmed); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, #b8923c 100%);
  color: #0d0b0f;
  border: none;
  border-radius: 50px;
  padding: 16px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 30px rgba(201,169,110,0.35);
  width: 100%;
}
.btn-pay:hover { transform: translateY(-2px); box-shadow: 0 8px 44px rgba(201,169,110,0.5); }

.modal-close {
  background: none;
  border: none;
  color: var(--dimmed);
  font-size: 0.82rem;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--muted); }

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--dimmed); border-radius: 10px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (min-width: 540px) {
  .options-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .offer-card { padding: 24px 20px; }
  .modal-card { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
}
