/* ============================================================
   WatchMatcher – design system implementation
   Dark luxury with restraint.
   ============================================================ */

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

:root {
  --bg:           #0a0a0a;
  --text:         #f0ece4;
  --gold:         #b8956a;
  --gold-light:   #d4b896;
  --gold-dark:    #96774e;
  --error:        #c97a5a;
  --gold-rgb:     139, 109, 71;     /* base for borders */
  --text-rgb:     240, 236, 228;    /* base for surfaces */
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 0%,   rgba(var(--gold-rgb), 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(var(--gold-rgb), 0.05) 0%, transparent 60%);
}
a { color: var(--gold); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--gold-light); }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--gold); color: var(--bg); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, 0.7);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.10);
}
.nav-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 600; font-size: 22px;
  color: var(--text);
}
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(var(--text-rgb), 0.5);
}
.nav-links a:hover { color: var(--gold); }

/* ---------- Layout ---------- */
.section {
  padding: 120px 40px 72px;
  max-width: 1300px;
  margin: 0 auto;
}
.section-narrow { max-width: 900px; }

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 400; line-height: 1.15; }
.headline-hero    { font-size: clamp(36px, 6vw, 72px); margin-bottom: 24px; }
.headline-section { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.headline-quiz    { font-size: clamp(26px, 4vw, 42px); margin-bottom: 12px; }
.italic-gold      { font-style: italic; color: var(--gold); }

.subtitle { color: rgba(var(--text-rgb), 0.55); font-size: 17px; max-width: 640px; }
.description { color: rgba(var(--text-rgb), 0.45); font-size: 15px; }
.label-tiny {
  font-size: 11px; text-transform: uppercase; letter-spacing: 3px;
  color: var(--gold); font-weight: 500; margin-bottom: 24px;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg);
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 1.5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary::after {
  content: '→'; transition: transform 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(184, 149, 106, 0.3);
}
.btn-primary:hover::after { transform: translateX(4px); }
.btn-primary:disabled {
  opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none;
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: transparent;
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  color: var(--gold);
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 12px;
  text-transform: uppercase; letter-spacing: 1.5px;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-ghost:hover { background: var(--gold); color: var(--bg); }

/* ---------- Hero (landing) ---------- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 40px 80px;
  max-width: 1200px; margin: 0 auto;
}
.hero-inner { max-width: 820px; }
.hero p.subtitle { margin-bottom: 48px; }

/* ---------- Stats strip ---------- */
.stats {
  display: flex; gap: 56px; flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(var(--gold-rgb), 0.15);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 36px; color: var(--gold); display: block;
}
.stat-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
  color: rgba(var(--text-rgb), 0.35); margin-top: 4px;
}

/* ---------- Trust / value props ---------- */
.value-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 48px;
}
.value-card {
  background: rgba(var(--text-rgb), 0.02);
  border: 1px solid rgba(var(--gold-rgb), 0.12);
  padding: 36px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover {
  border-color: rgba(var(--gold-rgb), 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.value-card h3 {
  font-size: 24px; margin-bottom: 12px;
}
.value-card p { color: rgba(var(--text-rgb), 0.45); font-size: 15px; }
.value-card .label-tiny { margin-bottom: 16px; }

/* ---------- Quiz ---------- */
.quiz-wrap {
  min-height: 100vh;
  padding: 100px 40px 80px;
  max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center;
}
.quiz-progress {
  margin-bottom: 64px;
  display: flex; align-items: center; gap: 16px;
}
.progress-track {
  flex: 1; height: 2px;
  background: rgba(var(--gold-rgb), 0.15);
  position: relative;
}
.progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.progress-text {
  font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
  color: rgba(var(--text-rgb), 0.35);
}

.quiz-step { display: none; animation: fadeInUp 0.4s ease both; }
.quiz-step.active { display: block; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quiz-step .label-tiny { margin-bottom: 16px; }
.quiz-step .quiz-sub  { color: rgba(var(--text-rgb), 0.4); margin-bottom: 40px; font-size: 15px; }

.quiz-options {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-bottom: 48px;
}
.quiz-options.single-col { grid-template-columns: 1fr; }
.quiz-options.three-col  { grid-template-columns: repeat(3, 1fr); }

.quiz-option {
  display: block; width: 100%;
  text-align: left;
  padding: 22px 28px;
  background: rgba(var(--text-rgb), 0.03);
  border: 1px solid rgba(var(--gold-rgb), 0.18);
  color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
}
.quiz-option:hover {
  border-color: rgba(var(--gold-rgb), 0.5);
  background: rgba(var(--text-rgb), 0.05);
}
.quiz-option.selected {
  border-color: var(--gold);
  background: rgba(var(--gold-rgb), 0.08);
  color: var(--text);
}
.quiz-option.selected::after {
  content: '✓';
  position: absolute; top: 18px; right: 22px;
  color: var(--gold);
  font-size: 16px;
}
.quiz-option .opt-title {
  display: block; font-weight: 500; margin-bottom: 4px;
}
.quiz-option .opt-meta {
  display: block; font-size: 13px;
  color: rgba(var(--text-rgb), 0.4);
}

.quiz-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px;
}
.quiz-actions .btn-back {
  background: transparent; border: none; color: rgba(var(--text-rgb), 0.4);
  font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px;
  cursor: pointer; transition: color 0.3s ease;
}
.quiz-actions .btn-back:hover { color: var(--gold); }
.quiz-actions .btn-back:disabled { opacity: 0; pointer-events: none; }

/* ---------- Inputs (email gate) ---------- */
.input {
  width: 100%;
  padding: 18px 24px;
  background: rgba(var(--text-rgb), 0.05);
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  transition: border-color 0.3s ease;
}
.input::placeholder { color: rgba(var(--text-rgb), 0.25); }
.input:focus { outline: none; border-color: var(--gold); }

.checkbox-row {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 20px 0;
  font-size: 13px; color: rgba(var(--text-rgb), 0.45);
}
.checkbox-row input[type=checkbox] {
  appearance: none; width: 18px; height: 18px; flex-shrink: 0;
  background: rgba(var(--text-rgb), 0.05);
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  margin-top: 2px;
  display: grid; place-items: center;
  cursor: pointer;
}
.checkbox-row input[type=checkbox]:checked {
  background: var(--gold); border-color: var(--gold);
}
.checkbox-row input[type=checkbox]:checked::after {
  content: '✓'; color: var(--bg); font-size: 12px; font-weight: 700;
}

/* ---------- Results ---------- */
.results-header { text-align: left; margin-bottom: 48px; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
  margin-bottom: 64px;
}

.result-card {
  background: rgba(var(--text-rgb), 0.02);
  border: 1px solid rgba(var(--gold-rgb), 0.12);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; flex-direction: column;
}
.result-card:hover {
  border-color: rgba(var(--gold-rgb), 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.result-image {
  background: rgba(var(--text-rgb), 0.04);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  overflow: hidden; position: relative;
}
.result-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.result-card:hover .result-image img { transform: scale(1.05); }
.result-image-placeholder {
  display: grid; place-items: center; height: 100%;
  font-family: 'Playfair Display', serif; font-style: italic;
  color: rgba(var(--text-rgb), 0.25); font-size: 14px;
}
.result-rank {
  position: absolute; top: 18px; left: 18px;
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 14px; color: var(--gold);
  background: rgba(10, 10, 10, 0.6);
  padding: 6px 14px;
  backdrop-filter: blur(8px);
}

.result-body { padding: 36px; flex: 1; display: flex; flex-direction: column; }
.result-brand {
  font-size: 11px; text-transform: uppercase; letter-spacing: 3px;
  color: var(--gold); font-weight: 500; margin-bottom: 12px;
}
.result-model {
  font-family: 'Playfair Display', serif; font-size: 24px;
  margin-bottom: 8px;
}
.result-ref {
  font-size: 13px; color: rgba(var(--text-rgb), 0.4);
  margin-bottom: 20px;
}
.result-price {
  font-family: 'Playfair Display', serif; font-size: 22px; color: var(--gold);
  margin-bottom: 24px;
}

.result-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(var(--gold-rgb), 0.15);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.15);
  font-size: 13px;
}
.spec-label {
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px;
  color: rgba(var(--text-rgb), 0.35);
}
.spec-value { color: rgba(var(--text-rgb), 0.7); }

.result-reasons {
  margin: 20px 0;
  font-size: 14px;
  color: rgba(var(--text-rgb), 0.55);
}
.result-reasons li {
  list-style: none;
  padding: 8px 0 8px 22px;
  position: relative;
}
.result-reasons li::before {
  content: '✦'; position: absolute; left: 0; top: 8px;
  color: var(--gold); font-size: 12px;
}

.result-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0;
}
.tag {
  padding: 6px 14px;
  background: rgba(var(--gold-rgb), 0.1);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--gold); font-weight: 500;
}

.result-actions {
  margin-top: auto; padding-top: 20px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center; padding: 80px 40px;
  border-top: 1px solid rgba(var(--gold-rgb), 0.15);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.15);
  margin: 80px 0;
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px 40px;
  text-align: center;
  border-top: 1px solid rgba(var(--gold-rgb), 0.10);
  color: rgba(var(--text-rgb), 0.35);
  font-size: 13px;
}
.footer a { color: rgba(var(--text-rgb), 0.55); }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }

  .hero { padding: 120px 24px 60px; min-height: auto; }
  .stats { gap: 32px; }
  .stat-num { font-size: 28px; }

  .section { padding: 80px 24px 48px; }
  .value-grid { grid-template-columns: 1fr; gap: 20px; }
  .value-card { padding: 24px; }

  .quiz-wrap { padding: 90px 24px 60px; }
  .quiz-options { grid-template-columns: 1fr; gap: 12px; }
  .quiz-options.three-col { grid-template-columns: 1fr; }
  .quiz-option { padding: 18px 22px; }

  .results-grid { grid-template-columns: 1fr; gap: 20px; }
  .result-body { padding: 24px; }
  .result-specs { grid-template-columns: 1fr; gap: 8px; }
}
