/* ============================================================
   ARGUS DESIGN SYSTEM
   ============================================================
   Sections:
   1.  Design Tokens
   2.  Reset & Base
   3.  Navigation
   4.  Mobile Drawer
   5.  Page Shell
   6.  Shared Typography & Utilities
   7.  Components — Cards, Pills, Buttons, Forms, Loader
   8.  Page — Overview / Hero
   9.  Page — Risk Scorer
   10. Page — Policy Assistant
   11. Page — Claims Agent
   12. Page — Research Report
   13. Page — Results
   14. Footer
   15. Animations & Scroll Reveal
   16. Responsive
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
───────────────────────────────────────────────────────────── */
:root {
  /* Background layers */
  --bg-base:    #09090B;
  --bg-surface: #111113;
  --bg-raised:  #18181B;
  --bg-overlay: #1C1C1F;

  /* Borders */
  --border:     rgba(255, 255, 255, 0.07);
  --border-2:   rgba(255, 255, 255, 0.10);
  --border-3:   rgba(255, 255, 255, 0.16);

  /* Text */
  --tx:         #FAFAFA;
  --tx-2:       #A1A1AA;
  --tx-3:       #52525B;

  /* Gold accent */
  --gold:       #D4A853;
  --gold-l:     #E8C07A;
  --gold-bg:    rgba(212, 168, 83, 0.08);
  --gold-e:     rgba(212, 168, 83, 0.18);

  /* Teal / data */
  --teal:       #14B8A6;
  --teal-l:     #2DD4BF;
  --teal-bg:    rgba(20, 184, 166, 0.08);
  --teal-e:     rgba(20, 184, 166, 0.18);

  /* Purple */
  --purple:     #8B5CF6;
  --purple-bg:  rgba(139, 92, 246, 0.08);
  --purple-e:   rgba(139, 92, 246, 0.18);

  /* Red / alert */
  --red:        #EF4444;
  --red-bg:     rgba(239, 68, 68, 0.08);
  --red-e:      rgba(239, 68, 68, 0.18);

  /* Blue */
  --blue:       #3B82F6;

  /* Radii */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;

  /* Nav */
  --nav-h:  72px;

  /* Fonts */
  --font-sans:  'Inter', 'DM Sans', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'DM Mono', monospace;
  --font-disp:  'Syne', var(--font-sans);
}

/* ─────────────────────────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-base);
  color: var(--tx);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle noise texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}

/* ─────────────────────────────────────────────────────────────
   3. NAVIGATION
───────────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(9, 9, 11, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

/* Logo / brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  height: 100%;
  border-right: 1px solid var(--border);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.nav-brand:hover { opacity: 0.8; }

.nav-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--gold-bg);
  border: 1px solid var(--gold-e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav-logo-name {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.045em;
  color: var(--tx);
}

/* Tab list */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  padding: 0 16px;
  flex: 1;
  overflow: hidden;
}

.nav-tab {
  position: relative;
  display: flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--tx);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, font-size 0.15s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-tab:hover {
  color: var(--tx);
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab.active {
  color: var(--tx);
  font-weight: 600;
  font-size: 14.5px;
  background: rgba(255, 255, 255, 0.06);
}

/* Active underline */
.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
}

/* Right actions */
.nav-actions {
  margin-left: auto;
  padding: 0 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.nav-github {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-2);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--tx-2);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.nav-github:hover {
  color: var(--tx);
  border-color: var(--border-3);
  background: rgba(255, 255, 255, 0.04);
}
.nav-github svg { flex-shrink: 0; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: background 0.15s;
  margin-right: 8px;
}
.nav-hamburger:hover { background: rgba(255, 255, 255, 0.06); }

.hbg-line {
  width: 100%;
  height: 1.5px;
  background: var(--tx-2);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-hamburger.open .hbg-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open .hbg-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open .hbg-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─────────────────────────────────────────────────────────────
   4. MOBILE DRAWER
───────────────────────────────────────────────────────────── */
#nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 9, 11, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 800;
  padding: 16px;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid var(--border);
}
#nav-drawer.open { display: flex; }

.drawer-tab {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--tx-2);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  width: 100%;
}
.drawer-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--tx);
}
.drawer-tab.active {
  background: var(--gold-bg);
  color: var(--gold-l);
  border: 1px solid var(--gold-e);
}

/* ─────────────────────────────────────────────────────────────
   5. PAGE SHELL
───────────────────────────────────────────────────────────── */
.page {
  display: none;
  padding-top: var(--nav-h);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
.page.active { display: block; }

/* ─────────────────────────────────────────────────────────────
   6. SHARED TYPOGRAPHY & UTILITIES
───────────────────────────────────────────────────────────── */

/* Section eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-bottom: 14px;
}

/* Section heading */
.section-title {
  font-family: var(--font-disp);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--tx);
}

/* Section description */
.section-desc {
  font-size: 15.5px;
  color: var(--tx-2);
  font-weight: 300;
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 40px;
}

/* Page wrappers */
.wrap {
  padding: 80px 52px;
  max-width: 1180px;
  margin: 0 auto;
}
.wrap-sm {
  padding: 60px 52px;
  max-width: 1180px;
  margin: 0 auto;
}
.demo-wrap {
  padding: 52px 52px;
  max-width: 1180px;
  margin: 0 auto;
}

/* Reveal animation class */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────────────────────────────
   7. COMPONENTS
───────────────────────────────────────────────────────────── */

/* -- 7a. Pills -- */
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 100px;
}
.pill-teal   { background: var(--teal-bg);   color: var(--teal-l);  border: 1px solid var(--teal-e); }
.pill-purple { background: var(--purple-bg); color: var(--purple);  border: 1px solid var(--purple-e); }
.pill-gold   { background: var(--gold-bg);   color: var(--gold-l);  border: 1px solid var(--gold-e); }
.pill-muted  { background: var(--bg-overlay); color: var(--tx-2);   border: 1px solid var(--border-2); }
.pill-red    { background: var(--red-bg);    color: var(--red);     border: 1px solid var(--red-e); }

/* -- 7b. Buttons -- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold);
  color: #0D0A00;
  padding: 11px 24px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.12s;
  letter-spacing: -0.01em;
}
.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: var(--tx);
  padding: 11px 22px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 14px;
  border: 1px solid var(--border-2);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover {
  border-color: var(--border-3);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  font-size: 12.5px;
  padding: 6px 12px;
}

/* -- 7c. Cards -- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.card-header {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0;
}

/* card-dot kept in HTML for backwards compat but hidden */
.card-dot { display: none; }

.card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--tx);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: var(--font-mono);
}

.card-body {
  padding: 20px;
}

/* -- 7d. Forms -- */
.form-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tx-3);
}

.form-input,
.form-select {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  color: var(--tx);
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus,
.form-select:focus { border-color: var(--gold); }
.form-select option { background: var(--bg-surface); }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group.span-2 { grid-column: 1 / -1; }

/* Range row */
.range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--bg-overlay);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}
.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}
.range-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  min-width: 40px;
  text-align: right;
}

/* Toggle */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 12px;
}
.toggle-row span { font-size: 13px; color: var(--tx-2); }

.toggle {
  width: 34px;
  height: 19px;
  border-radius: 10px;
  background: var(--bg-overlay);
  position: relative;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  transition: background 0.18s;
}
.toggle.on { background: var(--teal); }
.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--tx);
  transition: left 0.16s;
}
.toggle.on .toggle-thumb { left: 17px; }

/* -- 7e. Loader -- */
.loader {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.loader span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: loader-bounce 0.9s ease infinite;
}
.loader span:nth-child(2) { animation-delay: 0.18s; }
.loader span:nth-child(3) { animation-delay: 0.36s; }
@keyframes loader-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* Inline loading state */
.loading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  color: var(--tx-3);
  font-size: 13px;
}

/* Error box */
.error-box {
  background: var(--red-bg);
  border: 1px solid var(--red-e);
  color: var(--red);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 13px;
  margin-top: 10px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 32px 0;
  color: var(--tx-3);
  font-size: 14px;
}

/* ─────────────────────────────────────────────────────────────
   8. PAGE — OVERVIEW / HERO
───────────────────────────────────────────────────────────── */

/* Hero section */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}

/* Glow orbs */
.hero-glow-1 {
  position: absolute;
  pointer-events: none;
  width: 700px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(212, 168, 83, 0.07) 0%, transparent 68%);
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
}
.hero-glow-2 {
  position: absolute;
  pointer-events: none;
  width: 440px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(20, 184, 166, 0.04) 0%, transparent 68%);
  top: 54%;
  left: 18%;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-e);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 28px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-badge-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-blink 2s ease infinite;
}
@keyframes pulse-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* Headline */
.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(60px, 10.5vw, 104px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 14px;
  color: var(--tx);
}
.hero-title .grad {
  background: linear-gradient(125deg, #D4A853 0%, #F0D080 42%, #A07830 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-disp);
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 500;
  color: var(--tx-2);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.hero-desc {
  max-width: 520px;
  font-size: 16px;
  color: var(--tx-2);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 42px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Metrics strip */
.metrics-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  border-right: 1px solid var(--border);
}
.metric-item:last-child { border-right: none; }
.metric-value {
  font-family: var(--font-disp);
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.metric-label {
  font-size: 11px;
  color: var(--tx-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.2s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card-teal::before,
.feature-card-purple::before,
.feature-card-gold::before   { background: linear-gradient(90deg, rgba(255,255,255,0.18), transparent); }

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}
.icon-teal   { background: rgba(255,255,255,0.04); border: 1px solid var(--border-2); }
.icon-purple { background: rgba(255,255,255,0.04); border: 1px solid var(--border-2); }
.icon-gold   { background: rgba(255,255,255,0.04); border: 1px solid var(--border-2); }

.feature-title {
  font-family: var(--font-disp);
  font-size: 15px;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 13.5px;
  color: var(--tx-2);
  line-height: 1.7;
  margin-bottom: 16px;
  font-weight: 300;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Architecture strip */
.arch-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 52px;
}
.arch-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.arch-nodes {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr;
  align-items: center;
  margin-top: 40px;
}
.arch-node {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 14px;
  text-align: center;
  transition: border-color 0.15s;
}
.arch-node:hover { border-color: var(--border-2); }
.arch-node-icon  { font-size: 20px; margin-bottom: 7px; }
.arch-node-name  { font-family: var(--font-disp); font-size: 12.5px; font-weight: 700; color: var(--tx); margin-bottom: 3px; }
.arch-node-sub   { font-size: 10.5px; color: var(--tx-3); line-height: 1.4; }
.arch-arrow      { display: flex; align-items: center; justify-content: center; color: var(--tx-3); font-size: 16px; }

/* Stack grid */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.stack-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 12px;
  text-align: center;
  transition: border-color 0.15s, transform 0.15s;
}
.stack-item:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.stack-icon { font-size: 22px; margin-bottom: 6px; }
.stack-name { font-size: 11.5px; font-weight: 500; color: var(--tx-2); }
.stack-cat  { font-size: 10.5px; color: var(--tx-3); margin-top: 2px; }

/* About strip */
.about-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.about-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-disp);
  font-size: 16px;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}
.about-name  { font-family: var(--font-disp); font-size: 17px; font-weight: 700; color: var(--tx); letter-spacing: -0.02em; }
.about-role  { font-size: 13px; color: var(--tx-2); font-weight: 300; margin-top: 2px; }
.about-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--tx-2);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--gold-e);
  background: var(--gold-bg);
  transition: all 0.15s;
  cursor: pointer;
  font-family: var(--font-sans);
}
.about-link:hover {
  color: var(--gold-l);
  border-color: var(--gold);
}

/* ─────────────────────────────────────────────────────────────
   9. PAGE — RISK SCORER
───────────────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

/* SHAP chart */
.shap-wrap { margin-top: 4px; }
.shap-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}
.shap-feat {
  font-size: 12px;
  color: var(--tx-2);
  min-width: 152px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shap-bars {
  flex: 1;
  height: 7px;
  position: relative;
  display: flex;
  align-items: center;
}
.shap-zero {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-2);
}
.shap-bar {
  height: 7px;
  border-radius: 3px;
  position: absolute;
  transition: width 0.5s ease;
}
.shap-bar.pos { background: linear-gradient(90deg, var(--red), #FF8585); left: 50%; }
.shap-bar.neg { background: linear-gradient(270deg, var(--teal), #1A8A75); right: 50%; }
.shap-val {
  font-size: 11px;
  font-family: var(--font-mono);
  min-width: 48px;
}
.shap-val.pos { color: var(--red); }
.shap-val.neg { color: var(--teal); }

/* Score gauge */
.gauge-center {
  text-align: center;
  padding: 14px 0 18px;
}
.gauge-score {
  font-family: var(--font-disp);
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 5px;
}
.gauge-track {
  width: 100%;
  height: 6px;
  background: var(--bg-overlay);
  border-radius: 100px;
  overflow: hidden;
  margin: 12px 0 10px;
}
.gauge-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--red));
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gauge-ends {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--tx-3);
  margin-bottom: 12px;
}

/* Risk label pill */
.risk-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.risk-LOW      { background: var(--teal-bg);   color: var(--teal);  border: 1px solid var(--teal-e); }
.risk-MEDIUM   { background: var(--gold-bg);   color: var(--gold);  border: 1px solid var(--gold-e); }
.risk-HIGH,
.risk-CRITICAL { background: var(--red-bg);    color: var(--red);   border: 1px solid var(--red-e); }

/* ─────────────────────────────────────────────────────────────
   10. PAGE — POLICY ASSISTANT
───────────────────────────────────────────────────────────── */
.chat-history {
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-height: 360px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 4px;
}
.chat-history::-webkit-scrollbar { width: 3px; }
.chat-history::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

.msg-user {
  background: var(--gold-bg);
  border: 1px solid var(--gold-e);
  border-radius: 10px 10px 2px 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--tx);
  margin-left: 32px;
  line-height: 1.6;
}
.msg-ai {
  background: var(--bg-overlay);
  border: 1px solid var(--border);
  border-radius: 10px 10px 10px 2px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--tx-2);
  margin-right: 32px;
  line-height: 1.65;
}
.msg-ai strong { color: var(--tx); font-weight: 500; }

.source-chips {
  margin-top: 7px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.source-chip {
  font-size: 10.5px;
  color: var(--tx-3);
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 8px;
}

.chat-input-row {
  display: flex;
  gap: 8px;
}
.chat-input {
  flex: 1;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 13px;
  color: var(--tx);
  font-size: 13.5px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s;
}
.chat-input:focus { border-color: var(--gold); }

.chat-send {
  background: var(--gold);
  color: #0A0800;
  border: none;
  border-radius: var(--r-sm);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: opacity 0.15s;
  white-space: nowrap;
}
.chat-send:hover { opacity: 0.85; }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }

.quick-q {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--tx-2);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s;
}
.quick-q:hover {
  border-color: var(--border-3);
  background: rgba(255, 255, 255, 0.04);
  color: var(--tx);
}

/* ─────────────────────────────────────────────────────────────
   11. PAGE — CLAIMS AGENT
───────────────────────────────────────────────────────────── */
.agent-textarea {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  color: var(--tx);
  font-size: 13.5px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
  min-height: 88px;
  line-height: 1.6;
}
.agent-textarea:focus { border-color: var(--gold); }

.tool-call {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  margin-bottom: 8px;
}
.tool-call-name {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gold);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tool-call-io {
  font-size: 12px;
  color: var(--tx-3);
  line-height: 1.6;
}
.tool-call-io span { color: var(--tx-2); }

.rec-box {
  background: var(--gold-bg);
  border: 1px solid var(--gold-e);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-top: 12px;
}
.rec-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}
.rec-text {
  font-size: 13.5px;
  color: var(--tx);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────
   12. PAGE — RESEARCH REPORT
───────────────────────────────────────────────────────────── */

/* Cover */
.report-cover {
  min-height: calc(100vh - var(--nav-h));
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.cover-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.3;
}
.cover-glow {
  position: absolute;
  width: 680px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(212, 168, 83, 0.07) 0%, transparent 70%);
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
}

.cover-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 52px;
  border-bottom: 1px solid var(--border);
}
.cover-mono { font-family: var(--font-mono); font-size: 11.5px; color: var(--tx-3); }

.cover-body {
  position: relative;
  z-index: 2;
  padding: 64px 52px;
  max-width: 860px;
}
.cover-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.cover-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold); }

.cover-title {
  font-family: var(--font-disp);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--tx);
}
.cover-title em { color: var(--gold-l); font-style: normal; }

.cover-subtitle {
  font-family: var(--font-disp);
  font-size: clamp(14px, 2vw, 19px);
  font-weight: 400;
  color: var(--tx-2);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.cover-desc {
  font-size: 15px;
  color: var(--tx-2);
  font-weight: 300;
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 30px;
  border-left: 2px solid var(--gold);
  padding-left: 18px;
}

.cover-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 52px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--tx-3);
  flex-wrap: wrap;
  gap: 8px;
}
.cover-footer strong { color: var(--tx-2); }

/* Report layout */
.report-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
}

.report-sidebar {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 22px 0;
}
.sidebar-section { padding: 0 18px; margin-bottom: 24px; }
.sidebar-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-bottom: 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--tx-3);
  padding: 5px 0;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  transition: color 0.15s;
}
.sidebar-link:hover { color: var(--tx-2); }
.sidebar-link.active { color: var(--gold-l); }
.sidebar-num {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--tx-3);
  min-width: 18px;
}
.sidebar-link.active .sidebar-num { color: var(--gold); }

/* Report sections */
.report-section {
  padding: 52px 48px;
  border-bottom: 1px solid var(--border);
  max-width: 820px;
  margin: 0 auto;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-bottom: 12px;
}
.report-h {
  font-family: var(--font-disp);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--tx);
}
.report-p {
  font-size: 15px;
  color: var(--tx-2);
  max-width: 620px;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 36px;
}

/* Evidence grid */
.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-bottom: 28px;
}
.evidence-card {
  background: var(--bg-overlay);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}
.evidence-icon  { font-size: 20px; margin-bottom: 10px; }
.evidence-title { font-family: var(--font-disp); font-size: 13.5px; font-weight: 700; color: var(--tx); margin-bottom: 6px; }
.evidence-body  { font-size: 12.5px; color: var(--tx-2); line-height: 1.75; font-weight: 300; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.stat-cell {
  background: var(--bg-overlay);
  padding: 18px 15px;
}
.stat-value { font-family: var(--font-disp); font-size: 24px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 3px; }
.stat-label { font-size: 11px; color: var(--tx-3); letter-spacing: 0.02em; }
.stat-sub   { font-size: 10.5px; color: var(--tx-3); margin-top: 3px; }

.c-gold   { color: var(--gold-l); }
.c-teal   { color: var(--teal); }
.c-red    { color: var(--red); }
.c-purple { color: var(--purple); }
.c-blue   { color: var(--blue); }

/* Timeline */
.timeline { position: relative; padding-left: 24px; margin-bottom: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 0;
  width: 1px;
  background: var(--border-2);
}
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-dot {
  position: absolute;
  left: -21px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg-surface);
}
.timeline-year  { font-family: var(--font-mono); font-size: 10.5px; color: var(--gold); margin-bottom: 2px; }
.timeline-title { font-size: 13.5px; font-weight: 500; color: var(--tx); margin-bottom: 2px; }
.timeline-body  { font-size: 12.5px; color: var(--tx-2); font-weight: 300; line-height: 1.6; }

/* Problem cards */
.problem-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 14px;
}
.problem-head {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.problem-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--tx-3);
  background: var(--bg-overlay);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 7px;
  flex-shrink: 0;
  margin-top: 2px;
}
.problem-title-group { flex: 1; }
.problem-title { font-family: var(--font-disp); font-size: 15px; font-weight: 700; color: var(--tx); letter-spacing: -0.015em; margin-bottom: 3px; }
.problem-sub   { font-size: 12.5px; color: var(--tx-2); font-weight: 300; }

.severity {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  margin-top: 2px;
}
.sev-critical { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-e); }
.sev-high     { background: var(--gold-bg);   color: var(--gold-l); border: 1px solid var(--gold-e); }
.sev-medium   { background: var(--teal-bg);   color: var(--teal);   border: 1px solid var(--teal-e); }

.problem-body { padding: 18px 20px; }
.problem-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.col-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-bottom: 7px;
}
.col-body {
  font-size: 12.5px;
  color: var(--tx-2);
  line-height: 1.75;
  font-weight: 300;
}
.col-body li {
  margin-bottom: 5px;
  padding-left: 13px;
  position: relative;
  list-style: none;
}
.col-body li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 10px;
  top: 3px;
}
.col-body.solution li::before { color: var(--teal); }
.col-body p { margin-bottom: 9px; }

.impact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}
.impact-label { font-size: 11px; color: var(--tx-3); min-width: 70px; font-family: var(--font-mono); }
.impact-track { flex: 1; height: 4px; background: var(--bg-overlay); border-radius: 100px; overflow: hidden; }
.impact-fill  { height: 100%; border-radius: 100px; }
.fill-red  { background: linear-gradient(90deg, var(--red), #FF8585); }
.fill-gold { background: linear-gradient(90deg, var(--gold), var(--gold-l)); }
.fill-teal { background: linear-gradient(90deg, #1A8A75, var(--teal)); }
.impact-pct { font-size: 11px; color: var(--tx-2); font-family: var(--font-mono); min-width: 30px; text-align: right; }

/* Quote block */
.quote-block {
  border-left: 2px solid var(--gold);
  padding: 12px 18px;
  margin: 20px 0;
  background: var(--bg-overlay);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.quote-text { font-size: 14px; font-family: 'Instrument Serif', Georgia, serif; color: var(--tx); font-style: italic; line-height: 1.7; margin-bottom: 6px; }
.quote-attr { font-size: 11px; color: var(--tx-3); font-family: var(--font-mono); }

/* AI stack table */
.stack-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.stack-table th {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tx-3);
  text-align: left;
  padding: 8px 12px;
  background: var(--bg-overlay);
  border-bottom: 1px solid var(--border);
}
.stack-table td {
  padding: 11px 12px;
  font-size: 12.5px;
  color: var(--tx-2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
}
.stack-table tr:last-child td { border-bottom: none; }
.stack-table tr:hover td { background: var(--bg-overlay); }
.table-name { font-weight: 500; color: var(--tx); margin-bottom: 1px; }
.table-sub  { font-size: 11px; color: var(--tx-3); }

.badge {
  display: inline-flex;
  font-size: 9.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.badge-live    { background: var(--teal-bg);   color: var(--teal);   border: 1px solid var(--teal-e); }
.badge-scaling { background: var(--gold-bg);   color: var(--gold-l); border: 1px solid var(--gold-e); }
.badge-rollout { background: var(--purple-bg); color: var(--purple); border: 1px solid var(--purple-e); }

/* Opportunity grid */
.opp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.opp-card {
  background: var(--bg-overlay);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.opp-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.opp-1::after { background: var(--teal); }
.opp-2::after { background: var(--gold); }
.opp-3::after { background: var(--purple); }
.opp-4::after { background: var(--red); }
.opp-title { font-family: var(--font-disp); font-size: 13.5px; font-weight: 700; color: var(--tx); margin-bottom: 6px; }
.opp-body  { font-size: 12.5px; color: var(--tx-2); line-height: 1.7; margin-bottom: 11px; font-weight: 300; }
.opp-fit   { font-size: 10.5px; color: var(--tx-3); display: flex; align-items: center; gap: 5px; }
.opp-fit::before { content: '↳'; color: var(--gold-l); }
.opp-fit strong  { color: var(--gold-l); font-weight: 500; }

/* Recommendation box */
.rec-box-report {
  background: var(--gold-bg);
  border: 1px solid var(--gold-e);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.rec-box-report::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.1) 0%, transparent 70%);
}
.rec-title { font-family: var(--font-disp); font-size: 17px; font-weight: 700; color: var(--gold-l); letter-spacing: -0.02em; margin-bottom: 10px; }
.rec-body  { font-size: 13.5px; color: var(--tx-2); line-height: 1.8; font-weight: 300; margin-bottom: 18px; }
.rec-points { display: flex; flex-direction: column; gap: 9px; }
.rec-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--tx-2);
  line-height: 1.6;
}
.rec-point-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
  background: var(--bg-base);
  border: 1px solid var(--gold-e);
  border-radius: 4px;
  padding: 3px 6px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─────────────────────────────────────────────────────────────
   13. PAGE — RESULTS
───────────────────────────────────────────────────────────── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.result-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.result-name  { font-size: 11px; color: var(--tx-3); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 11px; font-family: var(--font-mono); }
.result-value { font-family: var(--font-disp); font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 5px; }
.result-desc  { font-size: 12.5px; color: var(--tx-2); line-height: 1.5; }

/* ─────────────────────────────────────────────────────────────
   14. FOOTER
───────────────────────────────────────────────────────────── */
.page-footer {
  border-top: 1px solid var(--border);
  padding: 22px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand {
  font-family: var(--font-disp);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tx-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.footer-info {
  font-size: 12px;
  color: var(--tx-3);
}
.footer-info a {
  color: var(--tx-3);
  text-decoration: none;
}
.footer-info a:hover { color: var(--tx-2); }

/* ─────────────────────────────────────────────────────────────
   15. ANIMATIONS
───────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────────
   16. RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stack-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }

  .nav-tabs    { display: none; }
  .nav-github  { display: none; }
  .nav-hamburger { display: flex; }

  .feature-grid,
  .two-col,
  .results-grid,
  .evidence-grid,
  .problem-cols,
  .opp-grid { grid-template-columns: 1fr; }

  .arch-nodes { grid-template-columns: 1fr; gap: 10px; }
  .arch-arrow { display: none; }
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .stack-grid    { grid-template-columns: repeat(3, 1fr); }

  .wrap, .wrap-sm, .demo-wrap,
  .arch-strip, .about-strip { padding-left: 20px; padding-right: 20px; }

  .report-layout   { grid-template-columns: 1fr; }
  .report-sidebar  { display: none; }
  .report-section  { padding: 36px 20px; }

  .cover-header, .cover-footer, .cover-body { padding-left: 20px; padding-right: 20px; }

  .page-footer { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 56px; }
  .nav-brand  { padding: 0 16px; }
  .nav-logo-name { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   17. PAGE — METHODOLOGY
───────────────────────────────────────────────────────────── */
.method-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.method-section {
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}
.method-section:last-child { border-bottom: none; }
.method-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-bottom: 10px;
}
.method-h {
  font-family: var(--font-disp);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--tx);
  margin-bottom: 8px;
}
.method-p {
  font-size: 14px;
  color: var(--tx-2);
  font-weight: 300;
  line-height: 1.8;
  max-width: 660px;
  margin-bottom: 28px;
}
.method-steps {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.method-step {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: var(--bg-surface);
}
.method-step-num {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
  background: var(--bg-overlay);
}
.method-step-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}
.method-step-name {
  font-family: var(--font-disp);
  font-size: 12px;
  font-weight: 700;
  color: var(--tx);
}
.method-step-body {
  padding: 16px 20px;
}
.method-step-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--tx);
  margin-bottom: 4px;
}
.method-step-detail {
  font-size: 13px;
  color: var(--tx-2);
  line-height: 1.7;
  font-weight: 300;
}
.method-step-detail code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gold);
  background: var(--bg-base);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.method-compare {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.method-compare th {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tx-3);
  text-align: left;
  padding: 9px 14px;
  background: var(--bg-overlay);
  border-bottom: 1px solid var(--border);
}
.method-compare td {
  padding: 11px 14px;
  font-size: 12.5px;
  color: var(--tx-2);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.55;
}
.method-compare tr:last-child td { border-bottom: none; }
.method-compare tr:hover td { background: rgba(255,255,255,0.02); }
.method-compare .winner { color: var(--teal); font-weight: 500; }
.method-compare td strong { color: var(--tx); font-weight: 500; }
.method-decision-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}
.mark-win  { background: var(--teal-bg);  color: var(--teal);   border: 1px solid var(--teal-e); }
.mark-lose { background: var(--bg-overlay); color: var(--tx-3); border: 1px solid var(--border); }
.method-code-block {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 16px;
  overflow-x: auto;
}
.method-code-block pre {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--tx-2);
  line-height: 1.7;
  white-space: pre-wrap;
  margin: 0;
}
.method-code-block pre .kw  { color: var(--purple); }
.method-code-block pre .cm  { color: var(--tx-3); font-style: italic; }
.method-code-block pre .str { color: var(--teal); }
.method-code-block pre .num { color: var(--gold); }
.method-code-block pre .fn  { color: var(--blue); }
.method-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.method-stat {
  background: var(--bg-overlay);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 14px;
}
.method-stat-val {
  font-family: var(--font-disp);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.method-stat-label {
  font-size: 11px;
  color: var(--tx-3);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.method-stat-sub {
  font-size: 11.5px;
  color: var(--tx-2);
  font-weight: 300;
  line-height: 1.4;
}
.method-decision-box {
  background: var(--bg-overlay);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin-top: 16px;
}
.method-decision-title {
  font-family: var(--font-disp);
  font-size: 13px;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 6px;
}
.method-decision-body {
  font-size: 13px;
  color: var(--tx-2);
  line-height: 1.75;
  font-weight: 300;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.feat-card {
  background: var(--bg-overlay);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
}
.feat-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 600;
}
.feat-type {
  font-size: 9.5px;
  color: var(--tx-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}
.feat-desc {
  font-size: 12px;
  color: var(--tx-2);
  line-height: 1.55;
  font-weight: 300;
}
@media (max-width: 900px) {
  .method-step    { grid-template-columns: 1fr; }
  .method-step-num { border-right: none; border-bottom: 1px solid var(--border); }
  .method-stat-row { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .feat-grid { grid-template-columns: 1fr; }
  .method-stat-row { grid-template-columns: 1fr 1fr; }
}
