:root {
  color-scheme: dark;
  --bg: #08111b;
  --surface: #101c2a;
  --surface-alt: #152334;
  --ink: #ecf4ff;
  --muted: #91a4bc;
  --line: rgba(160, 196, 255, 0.12);
  --accent: #2dd4bf;
  --amber: #f59e0b;
  --red: #f97373;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(45, 212, 191, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(45, 212, 191, 0.06) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.12), transparent 32%),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto, auto;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(20px, 5vw, 72px);
  backdrop-filter: blur(12px);
  background: rgba(8, 17, 27, 0.84);
  border-bottom: 1px solid var(--line);
}

.brand,
nav a {
  text-decoration: none;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero,
.rail,
.section,
footer {
  padding-left: clamp(20px, 6vw, 92px);
  padding-right: clamp(20px, 6vw, 92px);
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(44px, 8vw, 96px);
  padding-bottom: clamp(44px, 8vw, 96px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(52px, 8vw, 110px);
  line-height: 0.93;
  letter-spacing: -0.05em;
}

h2 {
  max-width: 920px;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.lead,
.muted,
.finding-card p,
.action-card p,
.handoff-card p,
li,
dd {
  color: var(--muted);
  line-height: 1.56;
}

.lead {
  max-width: 760px;
  font-size: clamp(19px, 2.4vw, 28px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.actions a {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  text-decoration: none;
  font-weight: 600;
}

.primary {
  background: var(--accent);
  color: #051018;
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero-panel,
.card,
.finding-card,
.action-card,
.handoff-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

.hero-panel {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
}

.hero-panel span,
.finding-meta,
dt,
.action-card small,
.handoff-card span {
  color: var(--accent);
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(20px, 3.4vw, 34px);
  line-height: 1.05;
}

.rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.card {
  padding: clamp(22px, 4vw, 34px);
}

.section {
  padding-top: clamp(50px, 6vw, 90px);
  padding-bottom: clamp(50px, 6vw, 90px);
}

.section-dark {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
}

.finding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.finding-card,
.action-card,
.handoff-card {
  padding: 22px;
}

.finding-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.finding-card h3,
.action-card h3 {
  font-size: 26px;
  line-height: 1.08;
}

.finding-card dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.finding-card dl div {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

dt {
  margin-bottom: 6px;
}

dd {
  margin: 0;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 14px;
}

.confirmed {
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.18), 0 20px 48px rgba(0, 0, 0, 0.22);
}

.needs-corroboration .finding-meta,
.needs-corroboration dt {
  color: var(--amber);
}

.action-list,
.handoff-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.handoff-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.handoff-card span {
  color: var(--amber);
}

ul {
  margin: 0;
  padding-left: 18px;
}

footer {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  padding-bottom: 28px;
  color: var(--muted);
}

/* Share section */
.share-section {
  background: var(--surface);
}

.share-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
}

.share-row {
  display: flex;
  gap: 32px;
}

.share-col {
  flex: 1;
}

.share-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 0 0 4px;
}

.share-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.share-text-block {
  background: var(--surface-alt);
  border-radius: 8px;
  padding: 16px 18px;
}

.share-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  white-space: pre-wrap;
}

.share-copy-btn {
  align-self: flex-start;
  background: var(--accent);
  color: #08111b;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s;
}

.share-copy-btn:hover {
  opacity: .88;
}

.share-confirm {
  font-size: 13px;
  color: var(--accent);
  align-self: center;
  min-height: 1em;
}

@media (max-width: 920px) {
  .hero,
  .rail,
  .finding-grid,
  .action-list,
  .handoff-list {
    grid-template-columns: 1fr;
  }
}

/* ── case bar ────────────────────────────────── */
.case-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px clamp(20px, 5vw, 72px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.case-bar-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.case-tabs {
  display: flex;
  gap: 4px;
}

.case-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.case-tab:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.case-tab.active {
  border-color: var(--accent);
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent);
}

.case-icon {
  font-size: 14px;
}

.case-bar-badge {
  margin-left: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.mono-sm {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

/* ── media queries ──────────────────────────── */
@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: clamp(42px, 16vw, 72px);
  }

  h2 {
    font-size: clamp(28px, 10vw, 44px);
  }

  .handoff-card {
    grid-template-columns: 1fr;
  }

  .case-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .case-tabs {
    flex-wrap: wrap;
  }

  .case-bar-badge {
    margin-left: 0;
  }

  .share-row {
    flex-direction: column;
    gap: 12px;
  }
}
