:root {
  --black: #000000;
  --surface: #0f0f0f;
  --card: #141414;
  --border: #222222;
  --muted: #555555;
  --text: #ffffff;
  --sub: #888888;
  --gold: #c9a84c;
  --gold-light: #e8c86a;
  --gold-dim: rgba(201, 168, 76, 0.12);
}

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

html, body {
  height: 100%;
  background: var(--black);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── SCREENS ── */
.screen {
  display: none;
  min-height: 100vh;
}
.screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── LANDING ── */
.landing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  max-width: 480px;
  animation: fadeUp 0.6s ease both;
}

.logo-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 32px;
}

.title {
  font-size: clamp(72px, 18vw, 120px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 32px;
}

.tagline {
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}

.tagline em {
  font-style: italic;
  color: var(--gold);
}

.sub {
  font-size: 15px;
  color: var(--sub);
  line-height: 1.6;
  margin-bottom: 48px;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 16px 40px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 20px;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.question-count {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── QUIZ ── */
#quiz {
  justify-content: flex-start;
  padding: 0;
}

.quiz-header {
  width: 100%;
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.progress-wrap {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0%;
}

.progress-label {
  font-size: 13px;
  color: var(--sub);
  white-space: nowrap;
  min-width: 40px;
  text-align: right;
}

.quiz-body {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.question-text {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  animation: fadeUp 0.3s ease both;
}

.option-btn:active { transform: scale(0.99); }

.option-btn.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.option-key {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}

.option-btn.selected .option-key {
  border-color: var(--gold);
  color: var(--gold);
}

@media (hover: hover) and (pointer: fine) {
  .option-btn:hover {
    border-color: var(--gold);
    background: var(--gold-dim);
  }
  .option-btn:hover .option-key {
    border-color: var(--gold);
    color: var(--gold);
  }
}

.option-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  font-family: 'Inter', sans-serif;
}

/* ── RESULTS ── */
.results-inner {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  animation: fadeUp 0.5s ease both;
}

.results-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 12px;
}

.results-headline {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 48px;
}

.results-headline.single {
  font-size: clamp(32px, 7vw, 52px);
  letter-spacing: -0.03em;
}

.tagline-sub {
  font-size: clamp(16px, 3.5vw, 20px);
  font-weight: 500;
  color: var(--sub);
  margin-bottom: 12px;
}

.tagline-sub em {
  font-style: italic;
  color: var(--gold);
}

/* ── MATCH BARS ── */
.match-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.match-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.match-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.match-pct {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.match-pct.hide { display: none; }

.bar-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  width: 0%;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ── ARCHETYPE ── */
.block-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 10px;
}

.archetype-name {
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.archetype-desc {
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: #aaaaaa;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── TRAITS GRID ── */
.traits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.trait-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}

.strengths-label { color: #4ade80; }
.blindspots-label { color: #f87171; }

.trait-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trait-list li {
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #cccccc;
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}

.trait-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* ── SHARE ── */
.share-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-share {
  flex: 1;
  min-width: 140px;
  padding: 14px 24px;
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-share:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-ghost {
  flex: 1;
  min-width: 120px;
  padding: 14px 24px;
  background: transparent;
  color: var(--sub);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--sub); color: var(--text); }

.share-toast {
  margin-top: 16px;
  font-size: 13px;
  color: #4ade80;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
}
.share-toast.visible { opacity: 1; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.option-btn:nth-child(1) { animation-delay: 0.05s; }
.option-btn:nth-child(2) { animation-delay: 0.10s; }
.option-btn:nth-child(3) { animation-delay: 0.15s; }
.option-btn:nth-child(4) { animation-delay: 0.20s; }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .traits-grid { grid-template-columns: 1fr; gap: 24px; }
  .title { font-size: 72px; }
}
