:root {
  --bg: #fafafa;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #555;
  --accent: #1b4965;
  --accent-light: #bee9e8;
  --border: #ddd;
  --critical: #c0392b;
  --high: #e67e22;
  --medium: #f39c12;
  --low: #27ae60;
  --radius: 6px;
  --max-width: 960px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; font-weight: 700; }
h1 { font-size: 2rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.25rem 0 0.5rem; }

p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.5rem; }
li { margin-bottom: 0.35rem; }

/* Header */
.site-header {
  background: var(--accent);
  color: white;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-logo {
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.site-logo:hover { text-decoration: none; }
.logo-uk { color: var(--accent-light); }
.logo-icon { font-size: 1.4rem; }
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-nav a:hover, .site-nav a.active { color: white; text-decoration: none; border-bottom: 2px solid var(--accent-light); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--accent), #0b3142);
  color: white;
  padding: 4rem 0 3.5rem;
  text-align: center;
}
.hero h1 { font-size: 2.4rem; max-width: 700px; margin: 0 auto 1rem; }
.hero-subtitle { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto 2rem; }
.hero-stats { display: flex; justify-content: center; gap: 3rem; margin-bottom: 2rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--accent-light); }
.stat-label { font-size: 0.85rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.05em; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: white; color: var(--accent); }
.btn-primary:hover { background: var(--accent-light); }
.btn-secondary { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.5); }
.btn-secondary:hover { border-color: white; }
.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* Sections */
.latest-findings, .how-it-works, .donate-cta { padding: 3rem 0; }
.latest-findings { background: var(--bg); }
.how-it-works { background: white; }
.donate-cta { background: var(--accent); color: white; text-align: center; padding: 3rem 0; }
.donate-cta h2 { color: white; }
.donate-cta p { opacity: 0.9; max-width: 500px; margin: 0 auto 1.5rem; }

/* Steps grid */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.step { text-align: center; padding: 1.5rem 1rem; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.step h3 { margin-top: 0; }

/* Finding cards */
.finding-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--medium);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.finding-card.severity-critical { border-left-color: var(--critical); }
.finding-card.severity-high { border-left-color: var(--high); }
.finding-card.severity-medium { border-left-color: var(--medium); }
.finding-card.severity-low { border-left-color: var(--low); }
.finding-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; font-size: 0.85rem; flex-wrap: wrap; }
.severity-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.75rem;
  color: white;
  background: var(--medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.severity-critical .severity-badge, .severity-badge.severity-critical { background: var(--critical); }
.severity-high .severity-badge, .severity-badge.severity-high { background: var(--high); }
.severity-medium .severity-badge, .severity-badge.severity-medium { background: var(--medium); }
.severity-low .severity-badge, .severity-badge.severity-low { background: var(--low); }
.finding-category { color: var(--text-muted); font-style: italic; }
.finding-summary { color: var(--text-muted); margin-bottom: 0.5rem; }
.confidence-bar {
  position: relative;
  height: 22px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.confidence-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s;
}
.confidence-label {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  mix-blend-mode: difference;
}
.confidence-bar.large { height: 30px; margin: 1.5rem 0; }
.confidence-bar.large .confidence-label { font-size: 0.85rem; }

.view-all { display: inline-block; margin-top: 1rem; font-weight: 600; }
.no-findings { color: var(--text-muted); font-style: italic; padding: 2rem 0; }

/* Page headers */
.page-header { background: var(--accent); color: white; padding: 2.5rem 0; }
.page-header h1 { margin: 0; }
.page-intro { opacity: 0.9; margin-top: 0.5rem; }

/* Single pages */
.page-single { padding: 2rem 0 3rem; }
.page-single-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.page-single-header time { display: block; color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.page-content { margin-bottom: 2rem; }

/* Findings detail blocks */
.red-flags, .related-entities, .next-steps, .right-of-reply, .data-sources {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.red-flags { border-left: 4px solid var(--critical); }
.right-of-reply { border-left: 4px solid var(--accent); background: var(--accent-light); }
.data-sources { font-size: 0.85rem; color: var(--text-muted); }

/* Footer */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 0;
  font-size: 0.85rem;
  margin-top: auto;
}
.site-footer a { color: var(--accent-light); }
.footer-disclaimer {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}
.footer-disclaimer strong { color: white; }
.footer-meta p { margin-bottom: 0.5rem; }

/* Findings list */
.findings-list { padding: 2rem 0 3rem; }

/* Mobile */
@media (max-width: 640px) {
  html { font-size: 15px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 1.5rem; }
  .stat-number { font-size: 1.5rem; }
  .site-header .container { flex-direction: column; text-align: center; }
  .site-nav { gap: 0.75rem; }
  .steps { grid-template-columns: 1fr; }
}
