/* ============================================================
   Soulmetric Design System — v3
   Dark theme · Gold accent · Source Serif + Inter + JetBrains Mono
   Palantir-meets-arXiv
   ============================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Custom Properties --- */
:root {
  --bg:          #0c0c0e;
  --bg-card:     #141418;
  --bg-surface:  #1a1a20;
  --border:      #2a2a32;
  --text:        #e8e6e1;
  --text-dim:    #9a978f;
  --text-muted:  #6b6860;
  --gold:        #c9a54e;
  --gold-dim:    #a8893a;
  --gold-glow:   rgba(201, 165, 78, 0.12);
  --red:         #c44;
  --serif:       'Source Serif 4', 'Georgia', serif;
  --sans:        'Inter', -apple-system, system-ui, sans-serif;
  --mono:        'JetBrains Mono', 'Fira Code', monospace;
  --max-w:       72rem;
  --max-w-narrow: 52rem;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: #e0c060; }

img { max-width: 100%; display: block; }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.narrow    { max-width: var(--max-w-narrow); }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

.subhead {
  font-family: var(--sans);
  font-size: 1.125rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 40em;
}

.mono { font-family: var(--mono); font-size: 0.9rem; }

/* --- Navigation --- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color .15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: var(--text-dim); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
}

/* --- Hero --- */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero h1 { margin-bottom: 1.25rem; }

.hero .subhead {
  margin: 0 auto 1rem;
}

.hero .trust-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-dim);
  max-width: 38em;
  margin: 0 auto 2.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.btn:hover {
  background: var(--gold);
  color: var(--bg);
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}

.btn-primary:hover {
  background: #e0c060;
  border-color: #e0c060;
  color: var(--bg);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Tier Cards --- */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}

.tier-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 0 20px var(--gold-glow);
}

.tier-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.tier-dot.gold     { background: #c9a54e; box-shadow: 0 0 8px rgba(201,165,78,.5); }
.tier-dot.silver   { background: #b0b0b0; box-shadow: 0 0 8px rgba(176,176,176,.4); }
.tier-dot.bronze   { background: #cd7f32; box-shadow: 0 0 8px rgba(205,127,50,.4); }
.tier-dot.generated { background: #555; }

.tier-card h4 { margin-bottom: 0.5rem; }
.tier-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.tier-card .tier-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* --- Sections --- */
.section {
  padding: 4rem 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dim);
  margin-bottom: 0.75rem;
}

/* --- Stats row --- */
.stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2.5rem 0;
}

.stat {
  text-align: center;
}

.stat .num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat .label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

/* --- Comparison Table --- */
.comparison {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.comparison th,
.comparison td {
  text-align: left;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.comparison th {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.comparison td { color: var(--text-dim); }

.comparison tr td:first-child {
  font-weight: 500;
  color: var(--text);
}

.comparison .highlight td {
  background: var(--gold-glow);
  color: var(--text);
  font-weight: 500;
}

.comparison .highlight td:first-child {
  color: var(--gold);
  font-weight: 700;
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-item summary {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--gold-dim);
  transition: transform .2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item .answer {
  margin-top: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 50em;
}

/* --- Scharp Scale --- */
.scharp-scale {
  margin: 2rem 0;
}

.scharp-row {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.scharp-score {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold);
  min-width: 3.5rem;
  text-align: right;
}

.scharp-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.scharp-row.negative .scharp-score { color: var(--red); }

/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.step-card .step-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.step-card h4 { margin-bottom: 0.5rem; }
.step-card p { font-size: 0.9rem; color: var(--text-dim); }

/* --- Sample Deliverable --- */
.sample-deliverable {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  font-size: 0.9rem;
  margin: 2rem 0;
}

.sample-deliverable .sample-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.sample-deliverable .sample-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
}

.sample-deliverable .sample-id {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sample-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  margin-bottom: 1.5rem;
}

.sample-meta dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dim);
}

.sample-meta dd {
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  .sample-meta { grid-template-columns: 1fr; }
}

/* --- Expert Validation --- */
.validation-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.validation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.validation-card blockquote {
  border-left: 3px solid var(--gold-dim);
  padding-left: 1rem;
  margin: 0 0 1rem 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.validation-card .attribution {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Notice / Alert --- */
.notice {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-dim);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 1.5rem 0;
}

.notice strong { color: var(--text); }

/* --- Disclaimer --- */
.disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.75rem;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer .legal {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gold { color: var(--gold); }
.dim  { color: var(--text-dim); }

/* --- Blockquote --- */
blockquote {
  border-left: 3px solid var(--gold-dim);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-dim);
}

/* --- Prose --- */
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.5rem; color: var(--text-dim); }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--text); }
