/* ─────────────────────────────────────────────────────────────────────────
   PMP Tutor — "The War Room" Design System
   Dark luxury. Editorial precision. Built for serious professionals.
   ───────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=IBM+Plex+Mono:wght@400;500;600&family=DM+Sans:opsz,wght@9..40,300;400;500;600&display=swap');

/* ── TOKENS ────────────────────────────────────────────────────────────── */
:root {
  --bg:          #0D1117;
  --bg-2:        #161B22;
  --bg-3:        #1C2128;
  --bg-4:        #21262D;
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.12);

  --text:        #E8E0D5;
  --text-2:      #8B949E;
  --text-3:      #484F58;

  --amber:       #F59E0B;
  --amber-dim:   rgba(245,158,11,0.12);
  --amber-mid:   rgba(245,158,11,0.25);
  --green:       #3FB950;
  --green-dim:   rgba(63,185,80,0.12);
  --red:         #F85149;
  --red-dim:     rgba(248,81,73,0.12);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  --radius:    8px;
  --radius-lg: 14px;
  --transition: 180ms cubic-bezier(0.4,0,0.2,1);

  --nav-width: 240px;
}

/* ── RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }

/* ── LAYOUT ─────────────────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR NAV ────────────────────────────────────────────────────────── */
.nav {
  width: var(--nav-width);
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  padding: 0 0 24px;
}

.nav-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.nav-logo-mark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-mark .dot {
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-section {
  padding: 0 12px;
  flex: 1;
}
.nav-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 8px 12px 6px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 400;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.nav-link:hover { background: var(--bg-3); color: var(--text); }
.nav-link.active {
  background: var(--amber-dim);
  color: var(--amber);
  font-weight: 500;
}
.nav-link .badge {
  margin-left: auto;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 99px;
}
.nav-icon { width: 16px; height: 16px; opacity: 0.7; flex-shrink: 0; }
.nav-link.active .nav-icon { opacity: 1; }

.nav-footer {
  padding: 12px 12px 0;
  border-top: 1px solid var(--border);
  margin: 0 0;
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 0.82rem;
}
.nav-avatar {
  width: 28px; height: 28px;
  background: var(--amber-dim);
  border: 1px solid var(--amber-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  flex-shrink: 0;
}
.nav-user-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-logout {
  display: block;
  padding: 7px 12px;
  border-radius: var(--radius);
  color: var(--text-3);
  font-size: 0.82rem;
  transition: color var(--transition), background var(--transition);
}
.nav-logout:hover { color: var(--red); background: var(--red-dim); }

/* ── MAIN CONTENT ───────────────────────────────────────────────────────── */
.main {
  margin-left: var(--nav-width);
  flex: 1;
  min-height: 100vh;
}

.page-header {
  padding: 36px 48px 24px;
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
}
.page-subtitle {
  color: var(--text-2);
  font-size: 0.88rem;
  margin-top: 4px;
}

.page-body { padding: 40px 48px; }

/* ── CARDS ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-sm { padding: 20px 24px; }
.card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

/* ── GRID LAYOUTS ───────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ── STAT CARDS ─────────────────────────────────────────────────────────── */
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-2);
}

/* ── READINESS ──────────────────────────────────────────────────────────── */
.readiness-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 48px;
  grid-column: 1 / -1;
}
.readiness-ring {
  position: relative;
  flex-shrink: 0;
}
.readiness-ring svg { transform: rotate(-90deg); }
.readiness-ring .track { fill: none; stroke: var(--bg-4); stroke-width: 6; }
.readiness-ring .fill  {
  fill: none;
  stroke: var(--amber);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4,0,0.2,1);
}
.readiness-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.readiness-pct {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.readiness-label {
  font-size: 0.68rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.readiness-info { flex: 1; }
.readiness-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 6px;
}
.readiness-desc { color: var(--text-2); font-size: 0.88rem; line-height: 1.65; max-width: 420px; }

/* ── DOMAIN BARS ────────────────────────────────────────────────────────── */
.domain-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.domain-name {
  font-size: 0.83rem;
  color: var(--text-2);
  width: 170px;
  flex-shrink: 0;
}
.domain-track {
  flex: 1;
  height: 5px;
  background: var(--bg-4);
  border-radius: 99px;
  overflow: hidden;
}
.domain-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}
.domain-pct {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}
.domain-weight {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}

/* ── SESSION CTA ────────────────────────────────────────────────────────── */
.cta-card {
  background: linear-gradient(135deg, var(--bg-2) 0%, #1a1f2e 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -1px; right: -1px;
  width: 180px; height: 180px;
  background: radial-gradient(circle at top right, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 8px;
}
.cta-desc { color: var(--text-2); font-size: 0.88rem; margin-bottom: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--amber);
  color: #0D1117;
}
.btn-primary:hover { background: #e08c00; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: var(--bg-3); color: var(--text); }
.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(248,81,73,0.2);
}
.btn-danger:hover { background: rgba(248,81,73,0.2); }
.btn-success {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(63,185,80,0.2);
}
.btn-success:hover { background: rgba(63,185,80,0.25); }

/* ── FLASH MESSAGES ─────────────────────────────────────────────────────── */
.flash-list { list-style: none; padding: 0 48px; margin-bottom: 0; }
.flash-item {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.flash-error   { background: var(--red-dim);   color: var(--red);   border: 1px solid rgba(248,81,73,0.2); }
.flash-success { background: var(--green-dim); color: var(--green); border: 1px solid rgba(63,185,80,0.2); }
.flash-info    { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(245,158,11,0.2); }

/* ── STUDY SESSION ──────────────────────────────────────────────────────── */
.session-shell {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.session-top {
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 24px;
}
.session-progress-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}
.session-progress-track {
  flex: 1;
  height: 3px;
  background: var(--bg-4);
  border-radius: 99px;
  overflow: hidden;
}
.session-progress-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.session-counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  white-space: nowrap;
}
.session-exit {
  font-size: 0.82rem;
  color: var(--text-3);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.session-exit:hover { color: var(--text-2); background: var(--bg-3); }

.session-body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 40px;
}
.question-wrap { width: 100%; max-width: 720px; }

.question-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.q-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--text-3);
  border: 1px solid var(--border);
}
.q-tag.domain-people    { background: rgba(79,195,247,0.08); color: #4fc3f7; border-color: rgba(79,195,247,0.2); }
.q-tag.domain-process   { background: rgba(129,199,132,0.08); color: #81c784; border-color: rgba(129,199,132,0.2); }
.q-tag.domain-business  { background: rgba(255,183,77,0.08); color: #ffb74d; border-color: rgba(255,183,77,0.2); }

.question-stem {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

/* ── ANSWER OPTIONS ─────────────────────────────────────────────────────── */
.answers { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }

.answer-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  width: 100%;
  position: relative;
}
.answer-option:hover:not(:disabled):not(.selected):not(.correct):not(.wrong) {
  background: var(--bg-3);
  border-color: var(--border-2);
  transform: translateX(2px);
}
.answer-option:disabled { cursor: default; }
.answer-option.selected {
  border-color: var(--amber);
  background: var(--amber-dim);
}
.answer-option.correct {
  border-color: var(--green);
  background: var(--green-dim);
}
.answer-option.wrong {
  border-color: var(--red);
  background: var(--red-dim);
}

.answer-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  width: 24px; height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  flex-shrink: 0;
  margin-top: 1px;
  transition: all var(--transition);
}
.answer-option.selected .answer-key { border-color: var(--amber); color: var(--amber); background: var(--amber-dim); }
.answer-option.correct  .answer-key { border-color: var(--green); color: var(--green); background: var(--green-dim); }
.answer-option.wrong    .answer-key { border-color: var(--red);   color: var(--red);   background: var(--red-dim); }

.answer-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-2);
  flex: 1;
}
.answer-option.selected .answer-text,
.answer-option.correct  .answer-text,
.answer-option.wrong    .answer-text { color: var(--text); }

/* ── CONFIDENCE SELECTOR ────────────────────────────────────────────────── */
.confidence-wrap {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  animation: fadeUp 0.2s ease;
}
.confidence-wrap.visible { display: flex; }
.confidence-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.confidence-options {
  display: flex;
  gap: 10px;
}
.confidence-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: var(--bg-3);
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition);
  text-align: center;
}
.confidence-btn:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-dim); }
.confidence-btn.selected { border-color: var(--amber); color: var(--amber); background: var(--amber-dim); }

/* ── EXPLANATION CARD ───────────────────────────────────────────────────── */
.explanation-card {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  animation: fadeUp 0.3s ease;
}
.explanation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.explanation-icon {
  width: 20px; height: 20px;
  background: var(--amber-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  font-size: 0.7rem;
  flex-shrink: 0;
}
.explanation-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}
.explanation-correct-answer {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--green-dim);
  border-radius: var(--radius);
  border: 1px solid rgba(63,185,80,0.15);
}
.explanation-text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-2);
}

/* ── RESULT BANNER ──────────────────────────────────────────────────────── */
.result-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  animation: fadeUp 0.2s ease;
}
.result-banner.correct { background: var(--green-dim); color: var(--green); border: 1px solid rgba(63,185,80,0.2); }
.result-banner.wrong   { background: var(--red-dim);   color: var(--red);   border: 1px solid rgba(248,81,73,0.2); }

/* ── SESSION END ────────────────────────────────────────────────────────── */
.end-shell {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.end-card {
  width: 100%;
  max-width: 600px;
}
.end-score {
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 600;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 4px;
}
.end-score-label {
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 36px;
}
.end-stat-row {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}
.end-stat {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.end-stat-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}
.end-stat-label { font-size: 0.78rem; color: var(--text-2); margin-top: 2px; }
.end-domain-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.end-domain-result:last-child { border-bottom: none; }
.end-domain-name { font-size: 0.85rem; color: var(--text-2); flex: 1; }
.end-domain-pct {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
}

/* ── AUTH PAGES ─────────────────────────────────────────────────────────── */
.auth-shell {
  min-height: 100vh;
  display: flex;
}
.auth-left {
  width: 460px;
  flex-shrink: 0;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
}
.auth-right {
  flex: 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.auth-right::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.auth-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-logo .dot { width: 8px; height: 8px; background: var(--amber); border-radius: 50%; }
.auth-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.auth-sub { color: var(--text-2); font-size: 0.88rem; margin-bottom: 36px; }

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.form-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}
.form-input::placeholder { color: var(--text-3); }
.form-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px var(--bg-3) inset !important;
  -webkit-text-fill-color: var(--text) !important;
}

.form-submit {
  width: 100%;
  padding: 12px;
  background: var(--amber);
  color: #0D1117;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  margin-top: 8px;
}
.form-submit:hover { background: #e08c00; transform: translateY(-1px); }

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 0.84rem;
  color: var(--text-2);
}
.auth-switch a { color: var(--amber); border-bottom: 1px solid var(--amber-mid); }
.auth-switch a:hover { border-color: var(--amber); }

.auth-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 360px;
}
.auth-stat-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.auth-stat-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 4px;
}
.auth-stat-desc { font-size: 0.78rem; color: var(--text-2); line-height: 1.4; }

/* ── LANDING PAGE ───────────────────────────────────────────────────────── */
.landing-shell {
  min-height: 100vh;
  background: var(--bg);
}
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
  border-bottom: 1px solid var(--border);
}
.landing-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.landing-logo .dot { width: 7px; height: 7px; background: var(--amber); border-radius: 50%; }
.landing-nav-links { display: flex; align-items: center; gap: 8px; }

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 60px 80px;
  text-align: center;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 32px; height: 1px;
  background: var(--amber-mid);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: var(--amber); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-disclaimer {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 16px;
}

.proof-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
}
.proof-stat { text-align: center; }
.proof-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 4px;
}
.proof-desc { font-size: 0.8rem; color: var(--text-2); }
.proof-div { width: 1px; height: 40px; background: var(--border); }

.features {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 60px;
}
.features-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 40px;
  text-align: center;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-card {
  background: var(--bg-2);
  padding: 36px 32px;
}
.feature-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.feature-desc { font-size: 0.85rem; color: var(--text-2); line-height: 1.7; }

.landing-cta {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 80px 60px;
  text-align: center;
}
.landing-cta-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.landing-cta-sub {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* ── VALIDATE QUEUE ─────────────────────────────────────────────────────── */
.validate-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  min-height: calc(100vh - 73px);
}
.validate-sidebar {
  border-right: 1px solid var(--border);
  padding: 24px 0;
  overflow-y: auto;
}
.validate-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 24px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.validate-item:hover { background: var(--bg-3); }
.validate-item.active {
  background: var(--amber-dim);
  border-left-color: var(--amber);
}
.validate-item-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
}
.validate-item-preview {
  font-size: 0.8rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.validate-main { padding: 36px 48px; overflow-y: auto; }
.validate-stem {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 28px;
}
.validate-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.validate-meta-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.validate-meta-key {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.validate-meta-val { font-size: 0.85rem; color: var(--text); }

.validate-distractor {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
}
.validate-distractor.is-correct { border-color: rgba(63,185,80,0.3); background: var(--green-dim); }
.validate-distractor-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.validate-d-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-4);
  padding: 2px 7px;
  border-radius: 4px;
}
.validate-d-text { font-size: 0.88rem; color: var(--text); }
.validate-d-trap {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 4px;
}
.validate-d-rationale { font-size: 0.8rem; color: var(--text-2); line-height: 1.6; }
.validate-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.validate-reject-form { display: flex; gap: 12px; align-items: flex-start; flex: 1; }
.validate-reject-form select {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
}

/* ── EMPTY STATES ───────────────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 80px 40px;
  text-align: center;
  color: var(--text-3);
}
.empty-state-title { font-size: 1rem; color: var(--text-2); font-weight: 500; }
.empty-state-desc { font-size: 0.84rem; }

/* ── MISC UTILITIES ─────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 28px 0; }
.spacer-sm { height: 16px; }
.spacer-md { height: 28px; }
.text-amber { color: var(--amber); }
.text-muted { color: var(--text-2); }
.text-mono  { font-family: var(--font-mono); }
.text-sm    { font-size: 0.84rem; }

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

.fade-in  { animation: fadeIn  0.3s ease; }
.fade-up  { animation: fadeUp  0.4s ease; }

/* staggered page-load reveals */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── ERROR PAGE ─────────────────────────────────────────────────────────── */
.error-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  padding: 40px;
}
.error-code {
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 600;
  color: var(--text-3);
  line-height: 1;
}
.error-msg { font-size: 1rem; color: var(--text-2); }
