/* ============================================================
   bayes-cot-faithfulness · project site
   dark / scientific / motion-aware
   ============================================================ */

:root {
  --bg: #07090f;
  --bg-2: #0b0f17;
  --bg-3: #11161f;
  --bg-tint: #0e131c;
  --border: #1f2632;
  --border-soft: #161d27;
  --text: #e6ebf2;
  --text-2: #a4adbd;
  --text-3: #6a7384;
  --muted: #8a93a4;
  --orange: #ff8c42;
  --cyan: #4dd0e1;
  --green: #a5e887;
  --violet: #b88dff;
  --grad-1: linear-gradient(120deg, #ff8c42 0%, #b88dff 50%, #4dd0e1 100%);
  --grad-2: linear-gradient(140deg, rgba(77, 208, 225, 0.18), rgba(184, 141, 255, 0.12));
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --rad: 14px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: "ss01", "cv11";
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body { scroll-behavior: smooth; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; }

/* ---------- floating home FAB ---------- */
.home-fab {
  position: fixed;
  top: 72px;
  left: 28px;
  z-index: 49;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 12px;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-2);
  font-family: 'JetBrains Mono';
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.22s ease;
  cursor: pointer;
  text-decoration: none;
}
.home-fab svg {
  color: var(--cyan);
  flex-shrink: 0;
}
.home-fab:hover {
  border-color: var(--cyan);
  color: var(--text);
  transform: translateY(-1px);
}
@media (max-width: 720px) {
  .home-fab { top: 68px; left: 16px; padding: 7px 11px 7px 10px; font-size: 11px; }
  .home-fab svg { width: 12px; height: 12px; }
}

/* ---------- cursor glow ---------- */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(184, 141, 255, 0.10), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(7, 9, 15, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono';
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--text);
  justify-self: start;
}
.brand-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.brand-name { color: var(--text); }
.nav-links {
  display: flex;
  gap: 30px;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: -0.005em;
}
.nav-links a {
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1.5px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
  border-radius: 2px;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-github {
  color: var(--cyan) !important;
  padding: 6px 14px;
  border: 1px solid rgba(77, 208, 225, 0.35);
  border-radius: 100px;
  transition: all 0.2s ease;
  font-family: 'JetBrains Mono';
  font-size: 12.5px;
  font-weight: 500;
  justify-self: end;
}
.nav-github:hover {
  background: rgba(77, 208, 225, 0.1);
  border-color: var(--cyan);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px 28px 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.grid-overlay {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(184, 141, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 141, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 50%, transparent 85%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.hero-orb-1 {
  width: 520px; height: 520px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, rgba(184, 141, 255, 0.55), transparent 70%);
  animation: floatOrb 14s ease-in-out infinite;
}
.hero-orb-2 {
  width: 580px; height: 580px;
  bottom: -160px; right: -180px;
  background: radial-gradient(circle, rgba(77, 208, 225, 0.45), transparent 70%);
  animation: floatOrb 17s ease-in-out infinite reverse;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.06); }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(17, 22, 31, 0.6);
  font-family: 'JetBrains Mono';
  font-size: 11.5px;
  color: var(--text-2);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s ease forwards;
}
.tag-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
}
.hero-title {
  font-size: clamp(40px, 6.4vw, 78px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  opacity: 0;
  animation: fadeUp 0.9s 0.2s ease forwards;
}
.grad-text {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  max-width: 700px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.9s 0.3s ease forwards;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s ease forwards;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-family: 'JetBrains Mono';
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 6px 24px rgba(230, 235, 242, 0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(230, 235, 242, 0.28);
}
.btn-ghost {
  background: rgba(17, 22, 31, 0.55);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: rgba(184, 141, 255, 0.08);
  border-color: var(--violet);
}

/* ---------- hero causal diagram ---------- */
.hero-diagram {
  max-width: 760px;
  margin: 76px auto 0;
  opacity: 0;
  animation: fadeUp 1s 0.55s ease forwards;
}
.hero-diagram svg { width: 100%; height: auto; }
.path-direct {
  stroke-dasharray: 6 4;
  animation: dashFlow 1.5s linear infinite;
}
.path-xm, .path-my {
  stroke-dasharray: 0 1000;
  animation: drawIn 1.4s 0.7s ease-out forwards;
}
.path-xm { animation-delay: 0.7s; }
.path-my { animation-delay: 1.1s; }
@keyframes drawIn {
  to { stroke-dasharray: 1000 1000; }
}
@keyframes dashFlow {
  to { stroke-dashoffset: -20; }
}
.node circle {
  transition: all 0.3s ease;
}
.node:hover circle {
  stroke-width: 2.5;
  transform-origin: center;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1.5px solid var(--text-3);
  border-radius: 14px;
  opacity: 0.5;
  z-index: 1;
}
.scroll-cue span {
  display: block;
  width: 3px; height: 8px;
  background: var(--text-2);
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scrollPing 2s ease-in-out infinite;
}
@keyframes scrollPing {
  0% { transform: translateY(0); opacity: 0.9; }
  60% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(14px); opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- sections ---------- */
.section {
  padding: 110px 28px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section-tinted {
  background: var(--bg-2);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  max-width: none;
  margin: 0;
}
.section-tinted > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.section-head {
  max-width: 880px;
  margin-bottom: 56px;
}
.eyebrow {
  display: block;
  font-family: 'JetBrains Mono';
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
}
.section-head h2 .muted {
  color: var(--text-3);
  font-weight: 500;
}
.head-sub {
  margin-top: 18px;
  font-size: 16px;
  color: var(--text-2);
  max-width: 700px;
}

/* ---------- three-col cards (problem) ---------- */
.three-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--rad);
  padding: 28px 26px;
  transition: all 0.3s ease;
}
.card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.card-icon.orange { background: rgba(255, 140, 66, 0.13); color: var(--orange); }
.card-icon.cyan { background: rgba(77, 208, 225, 0.13); color: var(--cyan); }
.card-icon.green { background: rgba(165, 232, 135, 0.13); color: var(--green); }
.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
}
.quote {
  margin: 60px auto 0;
  max-width: 820px;
  padding: 32px 36px;
  border-left: 2px solid var(--violet);
  background: linear-gradient(90deg, rgba(184, 141, 255, 0.06), transparent);
}
.quote p {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

/* ---------- approach ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 880px) {
  .approach-grid { grid-template-columns: 1fr; }
}
.approach-text p {
  font-size: 15.5px;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0 0 16px;
}
.approach-text strong { color: var(--text); }
.approach-text ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.approach-text ul li {
  padding: 12px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-soft);
}
.dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.dot.orange { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.dot.cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.why-bayes {
  padding: 18px 20px;
  border-radius: 10px;
  background: rgba(184, 141, 255, 0.06);
  border: 1px solid rgba(184, 141, 255, 0.18);
  font-size: 14.5px !important;
}

/* ---------- code block ---------- */
.approach-code {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border-soft);
}
.code-header .dot-r,
.code-header .dot-y,
.code-header .dot-g {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.code-header .dot-r { background: #ff5f57; }
.code-header .dot-y { background: #febc2e; }
.code-header .dot-g { background: #28c840; }
.code-header .code-filename {
  margin-left: 12px;
  font-family: 'JetBrains Mono';
  font-size: 12px;
  color: var(--text-3);
}
.approach-code pre {
  margin: 0;
  padding: 22px 24px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  overflow-x: auto;
}
.kw { color: var(--violet); }
.str { color: var(--green); }
.com { color: var(--text-3); font-style: italic; }

/* ---------- demo ---------- */
.demo {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 880px) {
  .demo { grid-template-columns: 1fr; }
}
.demo-controls,
.demo-results {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 30px 28px;
}
.slider-row {
  margin-bottom: 28px;
}
.slider-row:last-of-type { margin-bottom: 16px; }
.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text);
}
.slider-label > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.slider-value {
  font-family: 'JetBrains Mono';
  font-size: 13px;
  color: var(--cyan);
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(77, 208, 225, 0.08);
  border: 1px solid rgba(77, 208, 225, 0.18);
}
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--text);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(230, 235, 242, 0.06);
  transition: all 0.15s ease;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(77, 208, 225, 0.18);
}
input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--text);
  cursor: pointer;
  border: none;
}
.slider-hint {
  font-family: 'JetBrains Mono';
  font-size: 11px;
  color: var(--text-3);
  margin-top: 8px;
}
.preset {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-2);
  font-family: 'JetBrains Mono';
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.preset:hover {
  border-color: var(--violet);
  color: var(--text);
  background: rgba(184, 141, 255, 0.07);
}

.result-row {
  display: grid;
  grid-template-columns: 60px 1fr 70px;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.result-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono';
  font-size: 12.5px;
  color: var(--text);
}
.result-bar {
  background: var(--bg-3);
  border-radius: 5px;
  height: 10px;
  overflow: hidden;
  position: relative;
}
.bar {
  height: 100%;
  border-radius: 5px;
  transition: width 0.3s ease;
  width: 30%;
}
.bar-orange { background: linear-gradient(90deg, var(--orange), #ffae73); }
.bar-cyan { background: linear-gradient(90deg, var(--cyan), #88ecf6); }
.bar-green { background: linear-gradient(90deg, var(--green), #c4f5b0); }
.result-value {
  font-family: 'JetBrains Mono';
  font-size: 13px;
  text-align: right;
  color: var(--text);
}

.faithfulness-meter {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.meter-label {
  font-family: 'JetBrains Mono';
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 10px;
}
.muted-small { color: var(--text-3); font-size: 11px; }
.meter-bar {
  height: 12px;
  border-radius: 6px;
  background: var(--bg-3);
  overflow: hidden;
  margin-bottom: 12px;
}
#meterFill {
  height: 100%;
  width: 50%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--orange) 0%, #ffd07a 35%, var(--cyan) 100%);
  transition: width 0.35s ease;
}
.meter-readout {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#meterValue {
  font-family: 'JetBrains Mono';
  font-size: 22px;
  font-weight: 600;
}
.verdict {
  font-family: 'JetBrains Mono';
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid;
  letter-spacing: 0.01em;
}
.cyan-text { color: var(--cyan); border-color: rgba(77, 208, 225, 0.3); background: rgba(77, 208, 225, 0.08); }
.orange-text { color: var(--orange); border-color: rgba(255, 140, 66, 0.3); background: rgba(255, 140, 66, 0.08); }
.mid-text { color: #ffd07a; border-color: rgba(255, 208, 122, 0.3); background: rgba(255, 208, 122, 0.08); }
.demo-note {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg-tint);
  font-size: 13px;
  color: var(--text-3);
  border: 1px solid var(--border-soft);
  line-height: 1.55;
}

/* ---------- progress ---------- */
.figure {
  margin: 0 auto 48px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--rad);
  padding: 24px;
  box-shadow: var(--shadow);
}
.figure-wide {
  max-width: 1100px;
}
.figure img {
  width: 100%;
  display: block;
  border-radius: 8px;
}
.svg-chart { width: 100%; }
.svg-chart svg { width: 100%; height: auto; display: block; }
.svg-chart .hbar { transition: fill-opacity 0.12s ease; cursor: crosshair; }
.svg-chart .hbar:hover { fill-opacity: 0.95; }
.figure figcaption {
  margin-top: 16px;
  padding: 6px 10px;
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.6;
  text-align: center;
}
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .checklist-grid { grid-template-columns: 1fr; }
}

.checklist { display: flex; flex-direction: column; gap: 18px; }
.check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
}
.check.pending { opacity: 0.5; }
.check.pending .check-mark { color: var(--text-3); background: transparent; border: 1px dashed var(--text-3); }
.check-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}
.check strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 4px;
}
.check p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}
.check code {
  font-size: 12px;
  background: var(--bg-3);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--cyan);
}

/* ---------- roadmap ---------- */
.roadmap {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 56px;
}
@media (max-width: 880px) { .roadmap { grid-template-columns: 1fr; } }
.rmstep {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--rad);
  padding: 22px 22px 24px;
  transition: all 0.3s ease;
}
.rmstep:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.rmweek {
  font-family: 'JetBrains Mono';
  font-size: 11.5px;
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.rmbody strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}
.rmbody p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}

.budget {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 36px 36px 24px;
}
.budget-header h3 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.budget-header p {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-3);
}
.budget-table { display: flex; flex-direction: column; }
.brow {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-soft);
}
.brow:last-child { border-bottom: none; }
.brow span:last-child {
  font-family: 'JetBrains Mono';
  color: var(--text);
}
.brow-total {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--border) !important;
  font-weight: 600;
  color: var(--text);
}
.brow-total span:last-child {
  font-size: 18px;
  color: var(--cyan);
}

/* ---------- about / contact ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }
.about-body p {
  font-size: 15.5px;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0 0 16px;
}
.about-body strong { color: var(--text); }
.about-projects {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.about-projects li {
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  transition: all 0.2s ease;
}
.about-projects li:hover {
  border-color: var(--cyan);
  transform: translateX(3px);
}
.about-projects li a { color: var(--text); }
.about-projects li a:hover { color: var(--cyan); }

.about-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-card {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  transition: all 0.25s ease;
}
.contact-card:hover {
  border-color: var(--violet);
  background: rgba(184, 141, 255, 0.05);
  transform: translateX(-3px);
}
.cc-label {
  font-family: 'JetBrains Mono';
  font-size: 11.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cc-value {
  font-family: 'JetBrains Mono';
  font-size: 13px;
  color: var(--text);
}

/* ---------- footer ---------- */
.footer {
  padding: 36px 28px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-2);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono';
  font-size: 12px;
  color: var(--text-3);
}
.footer-inner a { color: var(--cyan); }

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- demo teaser (links to demo.html) ---------- */
.demo-teaser {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.demo-teaser:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
@media (max-width: 760px) { .demo-teaser { grid-template-columns: 1fr; } }
.demo-teaser-copy { padding: 36px 36px; }
.demo-teaser-tag {
  display: inline-block;
  font-family: 'JetBrains Mono';
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(77, 208, 225, 0.08);
  border: 1px solid rgba(77, 208, 225, 0.25);
  padding: 4px 11px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.demo-teaser-copy h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.demo-teaser-copy p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 44ch;
}
.demo-teaser-cta {
  font-family: 'JetBrains Mono';
  font-size: 13px;
  color: var(--cyan);
  transition: color 0.2s ease;
}
.demo-teaser:hover .demo-teaser-cta { color: var(--text); }
.demo-teaser-art {
  background: radial-gradient(120% 90% at 62% 18%, rgba(77, 208, 225, 0.07), var(--bg-tint) 62%);
  border-left: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
}
@media (max-width: 760px) {
  .demo-teaser-art { border-left: none; border-top: 1px solid var(--border-soft); }
}
.demo-teaser-art svg { width: 100%; height: auto; max-width: 360px; display: block; }

/* ---------- audit CTA ---------- */
.audit-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  text-align: center;
}
.audit-cta-note {
  font-family: 'JetBrains Mono';
  font-size: 12px;
  color: var(--text-3);
  max-width: 560px;
  line-height: 1.55;
}

/* ---------- methodology page header ---------- */
.method-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 140px 28px 20px;
  position: relative;
  z-index: 1;
}
.method-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono';
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 22px;
  transition: color 0.2s ease;
}
.method-back:hover { color: var(--cyan); }
.method-hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.method-hero .method-lede {
  font-size: 16.5px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 720px;
  margin: 0;
}

/* ============================================================
 *  Formal Methodology section
 * ============================================================ */
.math-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 32px;
}
@media (max-width: 880px) { .math-grid { grid-template-columns: 1fr; } }
.math-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--rad);
  padding: 28px 28px 26px;
  transition: border-color 0.25s ease;
}
.math-card:hover { border-color: var(--border); }
.math-card h3 {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.math-card p {
  margin: 20px 0 0;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
}
.math-block {
  padding: 18px 18px 14px;
  border-radius: 10px;
  background: var(--bg-tint);
  border: 1px solid var(--border-soft);
  overflow-x: auto;
  font-size: 14.5px;
}
.math-block .katex { color: var(--text); }
.math-block .katex-display { margin: 8px 0; }
.math-block .katex-display > .katex { font-size: 1.04em; }

.assumptions {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--rad);
  padding: 32px 32px 30px;
  margin-bottom: 32px;
}
.assumption-header { margin-bottom: 26px; }
.assumption-header h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.assumption-header p {
  margin: 0;
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 720px;
}
.assumption-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px) { .assumption-grid { grid-template-columns: 1fr; } }
.assumption-item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-tint);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  align-items: flex-start;
}
.assumption-num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  background: rgba(184, 141, 255, 0.13);
  color: var(--violet);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono';
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.assumption-item strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 4px;
  color: var(--text);
}
.assumption-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}

.assumption-item.violated {
  border-color: rgba(255, 140, 66, 0.32);
  background: linear-gradient(180deg, rgba(255, 140, 66, 0.05), var(--bg-tint) 70%);
}
.violated-num {
  background: rgba(255, 140, 66, 0.18) !important;
  color: var(--orange) !important;
}
.violated-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-family: 'JetBrains Mono';
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 140, 66, 0.15);
  color: var(--orange);
  border-radius: 100px;
  vertical-align: 2px;
}

.methodology-subdivider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 36px 0 24px;
}
.subdiv-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.subdiv-text {
  font-family: 'JetBrains Mono';
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  flex-shrink: 0;
}

.strat-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.strat-list li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  border-bottom: 1px solid var(--border-soft);
}
.strat-list li:last-child { border-bottom: none; }
.strat-list strong { color: var(--text); }
.strat-list em { color: var(--cyan); font-style: italic; }
.math-card code {
  background: var(--bg-3);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--cyan);
}

.prior-table {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--rad);
  padding: 24px 28px 20px;
}
.prior-table h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.prior-rows { display: flex; flex-direction: column; }
.prior-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
  font-size: 13.5px;
}
.prior-row:last-child { border-bottom: none; }
.prior-name {
  font-family: 'JetBrains Mono';
  color: var(--cyan);
  font-size: 13px;
}
.prior-formula { color: var(--text); font-size: 13px; }
.prior-formula .katex { font-size: 1.02em; }
.prior-desc { color: var(--text-3); font-size: 13px; }

/* ============================================================
 *  Why Uncertainty Matters section
 * ============================================================ */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 28px;
}
@media (max-width: 880px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--rad);
  padding: 28px 28px 24px;
  transition: transform 0.3s ease;
}
.compare-card:hover { transform: translateY(-3px); }
.compare-bad {
  border-color: rgba(255, 140, 66, 0.22);
  background: linear-gradient(180deg, rgba(255, 140, 66, 0.05), var(--bg) 45%);
}
.compare-good {
  border-color: rgba(77, 208, 225, 0.22);
  background: linear-gradient(180deg, rgba(77, 208, 225, 0.05), var(--bg) 45%);
}

.compare-header { margin-bottom: 26px; }
.compare-tag {
  display: inline-block;
  font-family: 'JetBrains Mono';
  font-size: 10.5px;
  padding: 4px 11px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.bad-tag { background: rgba(255, 140, 66, 0.15); color: var(--orange); }
.good-tag { background: rgba(77, 208, 225, 0.15); color: var(--cyan); }
.compare-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.compare-distros { margin-bottom: 22px; }
.distro {
  display: grid;
  grid-template-columns: 64px 1fr 130px;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.distro-label {
  font-family: 'JetBrains Mono';
  font-size: 12px;
  color: var(--text-2);
}
.distro-bar {
  position: relative;
  height: 10px;
  background: var(--bg-3);
  border-radius: 5px;
}
.distro-point {
  position: absolute;
  top: -4px;
  width: 3px; height: 18px;
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 12px currentColor;
}
.orange-point { background: var(--orange); color: var(--orange); }
.cyan-point { background: var(--cyan); color: var(--cyan); }
.distro-interval {
  position: absolute;
  top: 0; bottom: 0;
  border-radius: 5px;
}
.cyan-interval {
  background: rgba(77, 208, 225, 0.28);
  border: 1px solid rgba(77, 208, 225, 0.55);
}
.distro-value {
  font-family: 'JetBrains Mono';
  font-size: 12.5px;
  text-align: right;
  color: var(--text);
  line-height: 1.4;
}
.ci-small {
  display: block;
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 2px;
}

.compare-verdict {
  padding: 14px 16px;
  border-radius: 9px;
  margin-bottom: 14px;
}
.verdict-label {
  font-family: 'JetBrains Mono';
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  color: var(--text-3);
}
.compare-verdict p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
}
.compare-verdict.bad { background: rgba(255, 140, 66, 0.07); }
.compare-verdict.good { background: rgba(77, 208, 225, 0.07); }

.compare-decision {
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 13px;
  border: 1px dashed;
}
.compare-decision.bad { color: var(--orange); border-color: rgba(255, 140, 66, 0.35); }
.compare-decision.good { color: var(--cyan); border-color: rgba(77, 208, 225, 0.35); }

.uncertainty-note {
  margin: 32px auto 0;
  max-width: 880px;
  padding: 20px 24px;
  border-left: 2px solid var(--violet);
  background: linear-gradient(90deg, rgba(184, 141, 255, 0.05), transparent);
  border-radius: 0 8px 8px 0;
}
.uncertainty-note p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ---------- mobile tweaks ---------- */
@media (max-width: 720px) {
  .nav-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .nav-links { display: none; }
  .section { padding: 80px 22px; }
  .hero { padding-top: 96px; }
  .hero-diagram { margin-top: 50px; }
  .footer-inner { flex-direction: column; gap: 10px; }
}

/* ============================================================
 * 2026-07 upgrade: hero stats, evidence section, phase badges,
 * phase-2 card, FAQ, a11y polish
 * ============================================================ */

/* ----- hero stats strip ----- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 44px auto 0;
  max-width: 860px;
  padding: 0;
}
.hero-stats .stat {
  border: 1px solid var(--border-soft);
  background: rgba(17, 22, 31, 0.55);
  border-radius: 12px;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  text-align: left;
  backdrop-filter: blur(6px);
}
.hero-stats dd {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.hero-stats dd .stat-vs {
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 400;
  padding: 0 2px;
}
.hero-stats dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  line-height: 1.35;
}
@media (max-width: 880px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ----- evidence section ----- */
.evidence-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 40px;
}
@media (max-width: 880px) { .evidence-grid { grid-template-columns: 1fr; } }

.evidence-h {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 14px;
}
.evidence-note {
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.65;
  margin: 14px 0 0;
}

.case-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
}
.case-table th, .case-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.case-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 500;
  background: var(--bg-3);
}
.case-table tbody tr:last-child td { border-bottom: none; }
.case-table td { color: var(--text-2); }
.case-table td:first-child { color: var(--text); font-weight: 500; }

.chip {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
}
.chip-flag { color: var(--orange); border-color: rgba(255, 140, 66, 0.45); background: rgba(255, 140, 66, 0.08); }
.chip-clear { color: var(--green); border-color: rgba(165, 232, 135, 0.4); background: rgba(165, 232, 135, 0.07); }

/* ----- transcript card ----- */
.transcript-card {
  border: 1px solid var(--border);
  border-radius: var(--rad);
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.transcript-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border-soft);
}
.transcript-head .t-model {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--cyan);
}
.transcript-head .t-context {
  font-size: 0.72rem;
  color: var(--text-3);
  text-align: right;
}
.transcript-body {
  padding: 16px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.7;
}
.transcript-body .t-line { margin: 0 0 6px; color: var(--text-2); }
.transcript-body .t-dim { color: var(--text-3); }
.transcript-body .t-bad {
  color: var(--orange);
  background: rgba(255, 140, 66, 0.07);
  border-left: 2px solid var(--orange);
  padding: 2px 8px;
  margin-left: -10px;
  border-radius: 0 6px 6px 0;
}
.transcript-verdict {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-top: 1px solid var(--border-soft);
  background: rgba(255, 140, 66, 0.04);
}
.transcript-verdict p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ----- honesty card ----- */
.honesty-card {
  border: 1px dashed var(--border);
  border-radius: var(--rad);
  padding: 22px 26px;
  background: rgba(11, 15, 23, 0.6);
  margin-top: 36px;
}
.honesty-card h3 {
  font-size: 0.95rem;
  margin: 0 0 10px;
  color: var(--text);
}
.honesty-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}
.honesty-card a { color: var(--cyan); text-decoration: none; }
.honesty-card a:hover { text-decoration: underline; }

/* ----- phase badges ----- */
.phase-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid;
  margin-left: 8px;
  vertical-align: middle;
}
.phase-badge.done { color: var(--green); border-color: rgba(165, 232, 135, 0.4); background: rgba(165, 232, 135, 0.07); }
.phase-badge.progress { color: var(--cyan); border-color: rgba(77, 208, 225, 0.4); background: rgba(77, 208, 225, 0.07); }
.phase-badge.next { color: var(--violet); border-color: rgba(184, 141, 255, 0.4); background: rgba(184, 141, 255, 0.08); }

/* ----- phase 2 card ----- */
.phase2-card {
  margin-top: 40px;
  border: 1px solid rgba(184, 141, 255, 0.28);
  border-radius: var(--rad);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(184, 141, 255, 0.09), transparent 55%),
    var(--bg-2);
  padding: 28px 30px;
  box-shadow: var(--shadow);
}
.phase2-head h3 {
  margin: 12px 0 18px;
  font-size: 1.25rem;
  color: var(--text);
}
.phase2-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 26px;
}
@media (max-width: 880px) { .phase2-list { grid-template-columns: 1fr; } }
.phase2-list li {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}
.phase2-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.85;
}
.phase2-list strong { color: var(--text); }
.phase2-note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ----- FAQ ----- */
.faq-list {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item[open] { border-color: rgba(77, 208, 225, 0.35); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 46px 16px 20px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  color: var(--text-3);
  transition: transform 0.25s ease, color 0.25s ease;
}
.faq-item[open] summary::after {
  content: '\2013';
  color: var(--cyan);
}
.faq-item summary:hover { color: var(--cyan); }
.faq-item summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
  border-radius: 12px;
}
.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
}
.faq-item a { color: var(--cyan); text-decoration: none; }
.faq-item a:hover { text-decoration: underline; }

/* ----- a11y / motion polish ----- */
section[id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
