/* NeuroQA — institutional design system
   Typeface: IBM Plex Sans (finance/AI infra grade)
   Palette:  near-black · cold white · deep blue · no yellow
   Layout:   left-aligned, dense, structured
*/
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

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

:root {
  --bg:       #080808;
  --bg2:      #0f0f0f;
  --card:     #111111;
  --card2:    #161616;
  --edge:     rgba(255,255,255,0.07);
  --edge2:    rgba(255,255,255,0.13);
  --blue:     #1a3a6e;
  --blue2:    #2a52a0;
  --accent:   #3a6bcc;
  --accent2:  #5b8de8;
  --text:     #e2e4ea;
  --sub:      rgba(226,228,234,0.55);
  --muted:    rgba(226,228,234,0.32);
  --mono:     'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;
  --sans:     'IBM Plex Sans', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  min-height: 100vh;
}

/* particles */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ── nav ── */
nav.island {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 300;
  display: flex; align-items: center; gap: 32px;
  padding: 10px 22px;
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--edge);
  border-radius: 2px;
  white-space: nowrap;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.01em; color: #fff;
  text-decoration: none;
}
.nav-mark {
  width: 20px; height: 20px; border-radius: 3px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-mark svg { display: block; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 0.76rem; font-weight: 400; color: rgba(255,255,255,0.72);
  text-decoration: none; transition: color 0.1s; letter-spacing: 0.01em;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta {
  font-size: 0.73rem; font-weight: 600; color: #fff;
  background: var(--blue); padding: 6px 16px;
  border-radius: 2px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.1s; letter-spacing: 0.02em;
}
.nav-cta:hover { background: var(--blue2); }

/* ── layout ── */
.page    { position: relative; z-index: 1; }
.wrap    { max-width: 1080px; margin: 0 auto; padding: 0 48px; }
.wrap-sm { max-width: 720px;  margin: 0 auto; padding: 0 48px; }
@media(max-width:640px){ .wrap, .wrap-sm { padding: 0 24px; } }

/* ── typography ── */
.sect-lbl {
  font-size: 0.6rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--muted);
  margin-bottom: 14px; display: block;
  font-family: var(--mono);
}

.ttl {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 600; letter-spacing: -0.028em;
  color: #fff; line-height: 1.06; margin-bottom: 16px;
}

.sub {
  color: var(--sub); font-size: 0.875rem;
  line-height: 1.72; font-weight: 400;
}

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

/* ── cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 2px;
  padding: 24px 28px;
  transition: border-color 0.12s;
}
.card:hover { border-color: var(--edge2); }
.card.a-blue  { border-left: 2px solid var(--accent); }
.card.a-muted { border-left: 2px solid rgba(255,255,255,0.15); }
.card.a-red   { border-left: 2px solid rgba(180,60,55,0.7); }

/* ── badge ── */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 2px;
  font-size: 0.59rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-family: var(--mono);
}
.badge-blue  { background: rgba(26,58,110,0.5);  border: 1px solid rgba(90,140,230,0.25); color: #8ab0f0; }
.badge-dim   { background: rgba(255,255,255,0.04); border: 1px solid var(--edge); color: var(--muted); }
.badge-red   { background: rgba(180,60,55,0.1);   border: 1px solid rgba(180,60,55,0.25); color: #c07070; }
.badge-green { background: rgba(50,180,120,0.08); border: 1px solid rgba(50,180,120,0.2);  color: #60b890; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 2px;
  font-size: 0.8rem; font-weight: 500;
  text-decoration: none; border: 1px solid transparent;
  cursor: pointer; font-family: var(--sans);
  letter-spacing: 0.02em;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.btn-primary {
  background: var(--blue); color: #fff;
  border-color: rgba(255,255,255,0.06);
}
.btn-primary:hover { background: var(--blue2); }

.btn-secondary {
  background: transparent; color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.22);
}
.btn-secondary:hover { color: #fff; border-color: rgba(255,255,255,0.42); }

.btn-outline {
  background: transparent; color: var(--accent2);
  border-color: rgba(90,140,230,0.3);
}
.btn-outline:hover { border-color: var(--accent2); color: #fff; }

.btn-blue {
  background: var(--accent); color: #fff; border-color: transparent;
}
.btn-blue:hover { background: var(--blue2); }

/* ── divider ── */
hr.hr { border: none; border-top: 1px solid var(--edge); margin: 72px 0; }

/* ── reveal ── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── chip ── */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 2px;
  background: var(--card2); border: 1px solid var(--edge);
  font-size: 0.7rem; font-weight: 500; color: var(--sub);
  font-family: var(--mono); letter-spacing: 0.02em;
  transition: border-color 0.1s;
}
.chip:hover { border-color: var(--edge2); color: var(--text); }

/* ── footer ── */
footer.site-footer {
  padding: 24px 48px; border-top: 1px solid var(--edge);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; position: relative; z-index: 1;
}
.fl { font-size: 0.67rem; color: var(--muted); font-family: var(--mono); letter-spacing: 0.04em; }
footer.site-footer a { color: var(--muted); text-decoration: none; transition: color 0.1s; }
footer.site-footer a:hover { color: var(--sub); }
.footer-links { display: flex; gap: 24px; }

/* ── section spacing ── */
.sect    { padding: 104px 0; }
.sect-sm { padding: 64px 0; }

/* ── table ── */
.dt { width: 100%; border-collapse: collapse; font-size: 0.78rem; font-family: var(--sans); }
.dt thead th {
  background: var(--blue); color: rgba(255,255,255,0.82);
  padding: 10px 16px; text-align: left;
  font-weight: 600; font-size: 0.67rem;
  letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--mono);
}
.dt tbody td {
  padding: 10px 16px; border-bottom: 1px solid var(--edge);
  color: var(--sub); vertical-align: top;
}
.dt tbody tr:last-child td { border-bottom: none; }
.dt tbody tr:hover td { background: rgba(255,255,255,0.02); }
.dt tbody td:first-child { color: var(--text); font-weight: 500; }

/* ── callout ── */
.callout {
  padding: 14px 20px; border-radius: 0;
  background: rgba(58,107,204,0.06);
  border-left: 2px solid var(--accent);
  font-size: 0.82rem; color: var(--sub); line-height: 1.65;
  font-style: italic;
}
.callout.dim {
  background: rgba(255,255,255,0.025);
  border-left-color: rgba(255,255,255,0.14);
  font-style: normal;
}

/* ── sum cell ── */
.sum-cell {
  background: var(--card); border: 1px solid var(--edge);
  border-radius: 2px; padding: 18px 20px;
}
.sum-lbl {
  font-size: 0.59rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted); margin-bottom: 7px;
  font-family: var(--mono);
}
.sum-val { font-size: 0.82rem; color: var(--text); line-height: 1.55; }
.sum-big {
  font-size: 2.4rem; font-weight: 600; color: #fff;
  letter-spacing: -0.04em; line-height: 1;
}

/* animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity:.5; } 50% { opacity:1; } }
