@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:        #0a0a0a;
  --surface:   #111111;
  --surface2:  #161616;
  --border:    #222222;
  --border2:   #2a2a2a;
  --text:      #e8e8e8;
  --muted:     #666666;
  --muted2:    #444444;
  --red:       #ff4444;
  --red-dim:   #ff444422;
  --blue:      #4a9eff;
  --blue-dim:  #4a9eff18;
  --green:     #22c55e;
  --mono:      'IBM Plex Mono', monospace;
  --sans:      'Inter', sans-serif;
  --serif:     'Instrument Serif', serif;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.04em;
}
.nav-logo span { color: var(--red); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--text); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.1;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}
.hero-headline em {
  font-style: italic;
  color: var(--red);
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 44px;
  font-weight: 300;
}
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-item {}
.stat-num {
  font-family: var(--mono);
  font-size: 28px;
  color: var(--text);
  font-weight: 500;
  display: block;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── SECTION HEADERS ────────────────────────────────────── */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── MISSION ─────────────────────────────────────────────── */
.mission { padding: 80px 0; border-bottom: 1px solid var(--border); }
.mission-text {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
}
.mission-text strong { color: var(--red); font-weight: 400; }

/* ── HOW IT WORKS ────────────────────────────────────────── */
.how { padding: 80px 0; border-bottom: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 40px; }
.step {
  background: var(--surface);
  padding: 32px 28px;
  position: relative;
}
.step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted2);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.step-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── CASES ───────────────────────────────────────────────── */
.cases { padding: 80px 0; border-bottom: 1px solid var(--border); }
.case-card {
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 2px;
  transition: border-color 0.2s;
}
.case-card:hover { border-color: var(--border2); }
.case-card-inner { padding: 32px; }
.case-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.case-id {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}
.badge--open { background: var(--red-dim); color: var(--red); }
.badge--resolved { background: #22c55e18; color: var(--green); }
.badge--platform {
  background: var(--blue-dim);
  color: var(--blue);
}
.case-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}
.case-title a { color: var(--text); }
.case-title a:hover { color: var(--blue); text-decoration: none; }
.case-summary { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.case-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.case-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 3px 8px;
}
.case-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
  letter-spacing: 0.04em;
}

/* ── EVIDENCE BLOCK ─────────────────────────────────────── */
.evidence-block {
  background: var(--surface2);
  border-left: 3px solid var(--red);
  padding: 20px 24px;
  margin: 24px 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.evidence-block strong { color: var(--text); font-weight: 500; }
.evidence-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
  display: block;
}

/* ── SUBMIT FORM ─────────────────────────────────────────── */
.submit-section { padding: 80px 0; border-bottom: 1px solid var(--border); }
.form-intro { max-width: 560px; margin-bottom: 48px; }
.form-intro p { font-size: 15px; color: var(--muted); line-height: 1.7; margin-top: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.form-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 120px; }
.field select { cursor: pointer; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted2); }
.form-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted2);
  margin-top: 4px;
}
.form-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.form-row { background: var(--surface); padding: 20px; }
.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
}
.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #ff2222; }
.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover { color: var(--text); border-color: var(--border2); }
.privacy-note {
  font-size: 12px;
  color: var(--muted2);
  font-family: var(--mono);
}

/* ── ABOUT TEASER ────────────────────────────────────────── */
.about-teaser {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.about-quote {
  font-family: var(--serif);
  font-size: clamp(18px, 2.8vw, 24px);
  font-style: italic;
  color: var(--muted);
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 28px;
}
.about-quote em { color: var(--text); font-style: normal; }
.about-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--blue);
  text-transform: uppercase;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-left p {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.footer-left p strong { color: var(--text); font-weight: 500; }
.footer-right {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted2);
  text-align: right;
  line-height: 1.8;
}

/* ── ABOUT PAGE ──────────────────────────────────────────── */
.page-hero { padding: 80px 0 64px; border-bottom: 1px solid var(--border); }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
}
.page-hero h1 em { font-style: italic; color: var(--red); }
.page-body { padding: 72px 0; }
.prose { max-width: 640px; }
.prose p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.prose p strong { color: var(--text); font-weight: 500; }
.prose h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  margin: 48px 0 20px;
}
.prose blockquote {
  border-left: 3px solid var(--red);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--surface);
}
.prose blockquote p {
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}
.values-list { list-style: none; margin: 24px 0; }
.values-list li {
  font-size: 15px;
  color: var(--muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
  line-height: 1.6;
}
.values-list li::before {
  content: '→';
  color: var(--red);
  font-family: var(--mono);
  flex-shrink: 0;
  margin-top: 1px;
}
.values-list li strong { color: var(--text); }

/* ── CASE DETAIL ─────────────────────────────────────────── */
.case-header { padding: 72px 0 56px; border-bottom: 1px solid var(--border); }
.case-header .case-meta { margin-bottom: 24px; }
.case-header h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
}
.case-header .summary {
  font-size: 16px;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.75;
}
.case-content { padding: 64px 0; }
.case-content h2 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 48px 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.case-content h2:first-child { margin-top: 0; }
.case-content p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
  max-width: 680px;
}
.case-content p strong { color: var(--text); font-weight: 500; }
.contradiction {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  margin: 20px 0;
}
.contradiction-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.contradiction-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contradiction-item {
  padding: 14px;
  background: var(--bg);
}
.contradiction-item .who {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted2);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.contradiction-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: none;
}
.math-proof {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 28px;
  margin: 24px 0;
  font-family: var(--mono);
}
.math-proof .title {
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.math-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.math-row:last-child { border: none; }
.math-row .label { color: var(--muted); min-width: 160px; }
.math-row .value { color: var(--text); }
.math-row .value.anomaly { color: var(--red); }
.timeline { margin: 24px 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border: none; }
.timeline-time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted2);
  padding-top: 2px;
}
.timeline-content .who {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.timeline-content p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: none;
}

/* ── CASE ACTIONS ───────────────────────────────────────── */
.case-actions {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.case-stats {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted2);
  white-space: nowrap;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  padding: 3px 8px;
  line-height: 1.4;
  margin-right: -1px;
}
.stat-sep { margin: 0 4px; color: var(--muted2); }
.share-btns { display: flex; }
.share-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted2);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  padding: 3px 9px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-right: -1px;
}
.share-btn:hover {
  border-color: var(--muted);
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

/* ── SUCCESS STATE ───────────────────────────────────────── */
.success-msg {
  background: #22c55e12;
  border: 1px solid #22c55e33;
  color: var(--green);
  font-family: var(--mono);
  font-size: 13px;
  padding: 16px 20px;
  display: none;
  margin-top: 20px;
}

/* ── UTILITIES ───────────────────────────────────────────── */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.text-muted { color: var(--muted); }
.text-mono { font-family: var(--mono); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 720px) {
  .hero { padding: 64px 0 56px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contradiction-pair { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-right { text-align: left; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 34px; }

  /* Nav: stack links below logo, no hamburger */
  nav { height: auto; padding: 14px 0; }
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 12px;
  }
  .nav-links li { flex: 1; min-width: 0; text-align: center; }
  .nav-links a {
    display: block;
    padding: 8px 4px;
    font-size: 12px;
    border-right: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-right: none; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-left p, .footer-right p { font-size: 12px; }
  .footer-right { text-align: left; }
}
