/* ── Shape Design System: Sleek Editorial Fintech / Tactical Intelligence ── */
:root {
  /* Base Dark (Default) */
  --bg: #07090d;
  --bg-subtle: #0d1117;
  --bg-card: #121820;
  --bg-card-hover: #17202b;
  --bg-input: #0f151d;
  --bg-nav: rgba(7, 9, 13, 0.85);
  
  --border: #1e2836;
  --border-light: #2b394c;
  --border-subtle: rgba(255, 255, 255, 0.06);
  
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent: #00f2ad;
  --accent-dim: #00c78e;
  --accent-glow: rgba(0, 242, 173, 0.18);
  --accent-bg: rgba(0, 242, 173, 0.08);
  --accent-border: rgba(0, 242, 173, 0.25);
  
  --cyan: #38bdf8;
  --cyan-bg: rgba(56, 189, 248, 0.08);
  --cyan-border: rgba(56, 189, 248, 0.25);
  
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.08);
  --warn-border: rgba(251, 191, 36, 0.25);
  
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.08);
  --danger-border: rgba(248, 113, 113, 0.25);
  
  --purple: #c084fc;
  --purple-bg: rgba(192, 132, 252, 0.08);
  --purple-border: rgba(192, 132, 252, 0.25);
  
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px -8px rgba(0, 0, 0, 0.6);
  
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
}

/* ── Light Mode Token Overrides ── */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.88);
  
  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --border-subtle: rgba(0, 0, 0, 0.06);
  
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --accent: #059669;
  --accent-dim: #047857;
  --accent-glow: rgba(5, 150, 105, 0.15);
  --accent-bg: rgba(5, 150, 105, 0.08);
  --accent-border: rgba(5, 150, 105, 0.25);
  
  --cyan: #0284c7;
  --cyan-bg: rgba(2, 132, 199, 0.08);
  --cyan-border: rgba(2, 132, 199, 0.25);
  
  --warn: #d97706;
  --warn-bg: rgba(217, 119, 6, 0.08);
  --warn-border: rgba(217, 119, 6, 0.25);
  
  --danger: #dc2626;
  --danger-bg: rgba(220, 38, 38, 0.08);
  --danger-border: rgba(220, 38, 38, 0.25);
  
  --purple: #7c3aed;
  --purple-bg: rgba(124, 58, 237, 0.08);
  --purple-border: rgba(124, 58, 237, 0.25);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: light) {
  [data-theme="system"] {
    --bg: #f8fafc;
    --bg-subtle: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-input: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.88);
    
    --border: #e2e8f0;
    --border-light: #cbd5e1;
    --border-subtle: rgba(0, 0, 0, 0.06);
    
    --text: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;
    
    --accent: #059669;
    --accent-dim: #047857;
    --accent-glow: rgba(5, 150, 105, 0.15);
    --accent-bg: rgba(5, 150, 105, 0.08);
    --accent-border: rgba(5, 150, 105, 0.25);
    
    --cyan: #0284c7;
    --cyan-bg: rgba(2, 132, 199, 0.08);
    --cyan-border: rgba(2, 132, 199, 0.25);
    
    --warn: #d97706;
    --warn-bg: rgba(217, 119, 6, 0.08);
    --warn-border: rgba(217, 119, 6, 0.25);
    
    --danger: #dc2626;
    --danger-bg: rgba(220, 38, 38, 0.08);
    --danger-border: rgba(220, 38, 38, 0.25);
    
    --purple: #7c3aed;
    --purple-bg: rgba(124, 58, 237, 0.08);
    --purple-border: rgba(124, 58, 237, 0.25);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.1);
  }
}

/* Adjust background gradient for light mode */
[data-theme="light"] body,
[data-theme="system"] body {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(5, 150, 105, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #f1f5f9 100%);
}

[data-theme="light"] body::before,
[data-theme="system"] body::before {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 242, 173, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 15% 45%, rgba(192, 132, 252, 0.03) 0%, transparent 40%),
    linear-gradient(180deg, var(--bg) 0%, #040608 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle grid overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

#app {
  position: relative;
  z-index: 1;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-dim); }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input, textarea, select {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  outline: none;
  transition: all 0.2s var(--ease-spring);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
/* ── Nav ──────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 36px);
  height: 68px;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.nav-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav-brand:hover .nav-brand-icon {
  transform: scale(1.08) rotate(-4deg);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.nav-brand-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}
.nav-brand-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  letter-spacing: 0.6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--bg-hover);
}
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: #051a13;
  background: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease-spring);
  box-shadow: 0 0 16px rgba(0, 242, 173, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-cta:hover {
  background: #26f7bd;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 242, 173, 0.4);
  color: #051a13;
  text-decoration: none;
}

/* Nav Theme Mode Toggle Button */
.theme-toggle-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: 4px;
}
.theme-toggle-btn:hover {
  color: var(--text);
  border-color: var(--border-light);
  background: var(--bg-hover);
}

/* User Profile Avatar Pill in Nav */
.nav-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.nav-user-pill:hover {
  border-color: var(--accent-border);
  background: var(--bg-hover);
}
.nav-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
  color: #051a13;
  font-weight: 700;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  text-transform: uppercase;
}

/* ── Layout & Animations ──────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}
.page {
  min-height: calc(100vh - 68px);
  animation: pageFadeIn 0.35s var(--ease-spring);
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Hero & Value Prop ────────────────────────── */
.hero {
  padding: clamp(52px, 8vw, 96px) 20px 48px;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  cursor: default;
  transition: border-color 0.2s ease, transform 0.2s var(--ease-spring);
}
.hero-pill:hover {
  border-color: var(--accent-border);
  transform: translateY(-1px);
}
.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.8px;
  margin-bottom: 20px;
  color: var(--text);
}
.hero h1 .accent-gradient {
  background: linear-gradient(135deg, #00f2ad 0%, #38bdf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-search-wrap {
  max-width: 660px;
  margin: 0 auto 36px;
  position: relative;
}
.hero-search {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow);
  transition: all 0.25s var(--ease-spring);
}
.hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow);
}
.hero-search-icon {
  padding-left: 14px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
}
.hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  box-shadow: none;
}
.hero-search input:focus { box-shadow: none; }
.hero-search button {
  background: var(--accent);
  color: #051a13;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: all 0.2s var(--ease-spring);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-search button:hover {
  background: #26f7bd;
  transform: translateY(-1px);
}

.hero-quick-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
}
.hero-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.hero-chip:hover {
  border-color: var(--accent-border);
  color: var(--text);
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px clamp(16px, 3vw, 32px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  max-width: 900px;
  margin: 0 auto 48px;
  box-shadow: var(--shadow-sm);
}
.stat {
  text-align: center;
  padding: 8px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

/* ── Hero Interactive Database Terminal Mockup ── */
.hero-mockup-wrapper {
  max-width: 1040px;
  margin: 0 auto 64px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}
.mockup-top-bar {
  background: var(--bg-subtle);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.mockup-traffic-lights {
  display: flex;
  gap: 7px;
}
.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.mockup-dot.red { background: #ff5f56; }
.mockup-dot.yellow { background: #ffbd2e; }
.mockup-dot.green { background: #27c93f; }
.mockup-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mockup-live-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 2s infinite;
}
.mockup-content-body {
  padding: 20px 24px;
  background: var(--bg);
}
.mockup-terminal-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.mockup-table-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.mockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s ease;
}
.mockup-row:hover, .mockup-row.active {
  background: var(--accent-bg);
}
.mockup-row:last-child {
  border-bottom: none;
}
.mockup-radar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Bento Visuals */
.mini-matrix-canvas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 14px;
  background: var(--bg-subtle);
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.mini-matrix-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 8px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}
.mini-matrix-tile.active {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  color: var(--accent);
  font-weight: 600;
}

.prd-code-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  line-height: 1.6;
  margin-top: 12px;
  overflow-x: auto;
}

/* ── Data Table View (Attio / Airtable / Linear Style) ── */
.table-view-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.blueprint-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
  white-space: nowrap;
}
.blueprint-table thead {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.blueprint-table th {
  padding: 12px 16px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-dim);
  user-select: none;
}
.blueprint-table th.sortable {
  cursor: pointer;
  transition: color 0.15s ease;
}
.blueprint-table th.sortable:hover {
  color: var(--text);
}
.blueprint-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.12s ease;
}
.blueprint-table tbody tr:hover {
  background: var(--bg-card-hover);
}
.blueprint-table tbody tr.active-row {
  background: var(--accent-bg);
}
.blueprint-table td {
  padding: 13px 16px;
  color: var(--text-muted);
  vertical-align: middle;
}

/* Detail Problem, Channel & Field Report Boxes */
.detail-problem-box {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: var(--radius);
}
.channel-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.field-report-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
}

/* Auth Box */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px);
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.auth-tabs {
  display: flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* Pricing Cards */
.pricing-card.featured {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  box-shadow: 0 0 32px var(--accent-glow), var(--shadow);
  transform: scale(1.03);
}
.pricing-features li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 28px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 250;
  animation: toastSlideIn 0.25s var(--ease-spring);
  max-width: 400px;
}

/* Modal Window */
.modal-window {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 820px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}
.modal-body pre {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-x: auto;
  color: var(--text-muted);
  margin: 14px 0;
  white-space: pre-wrap;
}
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease-spring);
}
.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.6);
}
.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

.bento-header {
  margin-bottom: 18px;
}
.bento-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 8px;
}
.bento-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.bento-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Bento Visual 1: MIT Matrix Mini Canvas */
.mini-matrix-canvas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 14px;
  background: #090e15;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.mini-matrix-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 8px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}
.mini-matrix-tile.active {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  color: var(--accent);
  font-weight: 600;
}

/* Bento Visual 2: Live Distribution Flow Meter */
.dist-flow-bar {
  display: flex;
  height: 28px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin: 16px 0 10px;
  border: 1px solid var(--border);
}
.dist-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #051a13;
  transition: width 0.3s ease;
}
.dist-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
}
.dist-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dist-legend-color {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

/* Bento Visual 3: PRD Code Terminal Mockup */
.prd-code-box {
  background: #070a0e;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #a5b4fc;
  line-height: 1.6;
  margin-top: 12px;
  overflow-x: auto;
}
.prd-code-box .kw { color: var(--accent); }
.prd-code-box .str { color: var(--cyan); }
.prd-code-box .comment { color: var(--text-dim); }

/* ── Interactive Evaluator Banner on Landing ──── */
.landing-evaluator-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 40px);
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.landing-evaluator-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--purple));
}
.eval-banner-text h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}
.eval-banner-text p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 600px;
}

@media (max-width: 900px) {
  .bento-col-8, .bento-col-4, .bento-col-6 {
    grid-column: span 12;
  }
  .mockup-terminal-grid {
    grid-template-columns: 1fr;
  }
}

/* ── How It Works Interactive Walkthrough ─────── */
.how-it-works-section {
  margin-bottom: 72px;
}
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.how-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: all 0.25s var(--ease-spring);
}
.how-step-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}
.how-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.how-step-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.how-step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Section Title & Header ───────────────────── */
.section-header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}
.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Business Cards & Results Views ─────────── */
.featured-grid, .results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.biz-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: all 0.2s var(--ease-spring);
  box-shadow: var(--shadow-sm);
}
.biz-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.5);
}
.biz-card-top {
  margin-bottom: 12px;
}
.biz-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.biz-card-oneliner {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.biz-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* ── Data Table View (Attio / Airtable / Linear Style) ── */
.table-view-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.blueprint-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
  white-space: nowrap;
}
.blueprint-table thead {
  background: #0b1017;
  border-bottom: 1px solid var(--border);
}
.blueprint-table th {
  padding: 12px 16px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-dim);
  user-select: none;
}
.blueprint-table th.sortable {
  cursor: pointer;
  transition: color 0.15s ease;
}
.blueprint-table th.sortable:hover {
  color: var(--text);
}
.blueprint-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.12s ease;
}
.blueprint-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}
.blueprint-table tbody tr.active-row {
  background: rgba(0, 242, 173, 0.06);
}
.blueprint-table td {
  padding: 13px 16px;
  color: var(--text-muted);
  vertical-align: middle;
}
.table-cell-title {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.table-cell-oneliner {
  font-size: 12.5px;
  color: var(--text-dim);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-spark-bar {
  width: 60px;
  height: 5px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}
.table-spark-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

/* ── MIT 4x4 Matrix View ─────────────────────── */
.matrix-view-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.matrix-grid {
  display: grid;
  grid-template-columns: 140px repeat(4, 1fr);
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  overflow-x: auto;
}
.matrix-corner {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.matrix-col-header {
  text-align: center;
  padding: 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.5px;
}
.matrix-row-header {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  padding: 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}
.matrix-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}
.matrix-cell:hover {
  background: rgba(0, 242, 173, 0.05);
  border-color: var(--accent-border);
  transform: translateY(-2px);
}
.matrix-cell-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.matrix-cell-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

/* ── Badges & Tags ────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2.5px 8px;
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.tag-verdict-go {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent-border);
}
.tag-verdict-strategy {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: var(--warn-border);
}
.tag-shape {
  background: var(--cyan-bg);
  color: var(--cyan);
  border-color: var(--cyan-border);
}
.tag-score {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

/* ── Browse Page Layout ───────────────────────── */
.browse-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px clamp(16px, 2.5vw, 32px);
}
.filters-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: sticky;
  top: 80px;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}
.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.filters-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.filter-group {
  margin-bottom: 14px;
}
.filter-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 5px;
}
.filter-select {
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ── Tactical Command & View Toolbar ──────────── */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.view-switch-tabs {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  gap: 3px;
}
.view-switch-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}
.view-switch-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.view-switch-btn.active {
  color: var(--text);
  background: #1e293b;
  box-shadow: var(--shadow-sm);
}
.active-pills-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
}
.filter-pill-remove {
  cursor: pointer;
  font-size: 14px;
  opacity: 0.7;
}
.filter-pill-remove:hover {
  opacity: 1;
}
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.results-count {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── Mobile Filter Trigger Button ────────────── */
.mobile-filter-trigger {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ── Side Peek Record Drawer (Desktop & Mobile) ── */
.side-drawer-container {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.25s ease;
}
.side-drawer-container.open {
  pointer-events: auto;
  visibility: visible;
}
.side-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 10, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.side-drawer-container.open .side-drawer-backdrop {
  opacity: 1;
}
.side-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 620px;
  background: #0d121a;
  border-left: 1px solid var(--border-light);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s var(--ease-spring);
  overflow: hidden;
}
.side-drawer-container.open .side-drawer-panel {
  transform: translateX(0);
}
.side-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: #111722;
}
.side-drawer-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-drawer-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.side-drawer-btn:hover {
  color: var(--text);
  background: var(--bg-hover);
  border-color: var(--border-light);
}
.side-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
}
.side-drawer-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  gap: 16px;
  overflow-x: auto;
}
.side-drawer-tab {
  padding: 8px 2px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.side-drawer-tab:hover {
  color: var(--text-muted);
}
.side-drawer-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Mobile Filter Bottom Sheet ──────────────── */
.mobile-filter-sheet-container {
  position: fixed;
  inset: 0;
  z-index: 160;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.25s ease;
}
.mobile-filter-sheet-container.open {
  pointer-events: auto;
  visibility: visible;
}
.mobile-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 10, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.mobile-filter-sheet-container.open .mobile-sheet-backdrop {
  opacity: 1;
}
.mobile-sheet-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: #0d121a;
  border-top: 1px solid var(--border-light);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.28s var(--ease-spring);
  overflow: hidden;
}
.mobile-filter-sheet-container.open .mobile-sheet-panel {
  transform: translateY(0);
}
.mobile-sheet-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.mobile-sheet-body {
  padding: 20px;
  overflow-y: auto;
}

/* ── Mobile & Responsive Tweaks ──────────────── */
@media (max-width: 900px) {
  .browse-page {
    grid-template-columns: 1fr;
    padding: 16px 12px;
  }
  .filters-sidebar {
    display: none; /* Replaced by Mobile Filter Trigger */
  }
  .mobile-filter-trigger {
    display: inline-flex;
  }
  .side-drawer-panel {
    max-width: 100%;
    top: auto;
    height: 92vh;
    border-top: 1px solid var(--border-light);
    border-left: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%);
  }
  .side-drawer-container.open .side-drawer-panel {
    transform: translateY(0);
  }
  .matrix-grid {
    grid-template-columns: 110px repeat(4, 180px);
  }
}

@media (max-width: 640px) {
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .view-switch-tabs {
    justify-content: center;
  }
  .blueprint-table th, .blueprint-table td {
    padding: 10px 12px;
  }
}
/* ── Business Detail Page ─────────────────────── */
/* ── Business Detail Page (Intelligence Dossier) ─────── */
.detail-page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px clamp(16px, 3vw, 32px) 72px;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 24px;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}
.detail-back:hover {
  color: var(--text);
  border-color: var(--accent-border);
  transform: translateX(-2px);
}

/* Top Dossier Hero Card */
.dossier-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.dossier-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--purple));
}
.dossier-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.dossier-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text);
}
.dossier-oneliner {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 840px;
  margin-bottom: 24px;
}

/* High-Impact Scorecard Grid Ribbon */
.dossier-scorecard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.scorecard-stat-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.scorecard-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.scorecard-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.scorecard-sub {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* 2-Column Dossier Layout */
.dossier-body-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

.dossier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.dossier-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.dossier-card-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
}

.detail-problem-box {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: var(--radius);
}

/* Archetype Visual Matrix Badge in Dossier */
.dossier-archetype-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 24px;
}
.dossier-archetype-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.dossier-archetype-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
}
.dossier-archetype-quadrant {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan);
  border: 1px solid var(--cyan-border);
}

/* Acquisition Channel Visual Bars */
.channel-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.channel-bar-container {
  width: 100px;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.channel-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

/* Founder Field Report Cards */
.field-report-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
}
.field-report-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* ── Enhanced Auth Card (Login & Signup) ─────── */
.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(circle at 50% 30%, rgba(0, 242, 173, 0.05) 0%, transparent 60%);
}
.auth-card {
  background: #0d131c;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px);
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}
.auth-tabs {
  display: flex;
  background: #080c12;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}
.auth-tab.active {
  background: #192230;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.auth-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .dossier-body-grid {
    grid-template-columns: 1fr;
  }
  .dossier-scorecard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .dossier-scorecard-grid {
    grid-template-columns: 1fr;
  }
}
.locked-cta:hover {
  background: #26f7bd;
  transform: translateY(-1px);
  color: #051a13;
  text-decoration: none;
}

.channel-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.channel-name { font-size: 14px; font-weight: 500; }
.channel-fit { display: flex; gap: 4px; }
.fit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
}
.fit-dot.active {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.same-shape-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.same-shape-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}
.same-shape-item:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

/* ── Auth Cards & Flow ────────────────────────── */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  min-height: calc(100vh - 120px);
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 44px);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}

.auth-tabs {
  display: flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}
.auth-tab.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  color: var(--text);
}
.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.auth-form input {
  padding: 12px 14px;
  font-size: 14.5px;
}
.auth-btn {
  background: var(--accent);
  color: #051a13;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
  transition: all 0.2s var(--ease-spring);
  box-shadow: 0 4px 16px rgba(0, 242, 173, 0.25);
}
.auth-btn:hover {
  background: #26f7bd;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 242, 173, 0.35);
}
.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-dim);
  margin-top: 20px;
}
.auth-switch a {
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
}
.auth-switch a:hover { color: var(--accent); }

.auth-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 6px;
  animation: shake 0.3s ease;
}
.auth-success {
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 6px;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ── Pricing ─────────────────────────────────── */
.pricing-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) clamp(16px, 3vw, 32px);
}
.pricing-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}
.pricing-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.pricing-header p {
  font-size: 16px;
  color: var(--text-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s var(--ease-spring);
  box-shadow: var(--shadow-sm);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.pricing-card.featured {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  box-shadow: 0 0 32px var(--accent-glow), var(--shadow);
  transform: scale(1.03);
}
.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #051a13;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 242, 173, 0.3);
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-period {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-features li {
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pricing-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  text-align: center;
}
.pricing-btn.primary {
  background: var(--accent);
  color: #051a13;
  box-shadow: 0 4px 16px rgba(0, 242, 173, 0.25);
}
.pricing-btn.primary:hover {
  background: #26f7bd;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 242, 173, 0.35);
  text-decoration: none;
}
.pricing-btn.secondary {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}
.pricing-btn.secondary:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--bg-hover);
  text-decoration: none;
}

/* ── Account Page ─────────────────────────────── */
.account-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px clamp(16px, 3vw, 32px);
}
.account-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.account-section-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.account-info {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.account-info:last-child { border-bottom: none; }
.account-label { color: var(--text-muted); font-size: 14px; }
.account-value { font-weight: 600; font-size: 14px; }

/* ── Watchlist Page ───────────────────────────── */
.watchlist-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px clamp(16px, 3vw, 32px);
}
.watchlist-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-xl);
  max-width: 600px;
  margin: 0 auto;
}
.watchlist-empty-icon {
  font-size: 36px;
  margin-bottom: 16px;
  color: var(--text-dim);
}

/* ── General Buttons ──────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}
.btn-primary {
  background: var(--accent);
  color: #051a13;
  box-shadow: 0 4px 14px rgba(0, 242, 173, 0.2);
}
.btn-primary:hover {
  background: #26f7bd;
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-ghost {
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  background: var(--bg-card);
}
.btn-ghost:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--bg-card-hover);
  text-decoration: none;
}
.btn-sm { padding: 6px 12px; font-size: 12.5px; }

/* ── Spinner & Feedback ───────────────────────── */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 242, 173, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #141a22;
  color: var(--text);
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  animation: slideUp 0.3s var(--ease-spring);
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Evaluator & PRD Modal UI ────────────────── */
.eval-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.eval-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--purple));
}
.eval-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.eval-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.eval-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.eval-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* Modal Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: pageFadeIn 0.2s var(--ease-spring);
}
.modal-window {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 820px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.modal-close {
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}
.modal-close:hover {
  color: var(--text);
  background: var(--bg-hover);
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text);
}
.modal-body pre {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-x: auto;
  color: var(--text-muted);
  margin: 14px 0;
  white-space: pre-wrap;
}
.modal-body h1, .modal-body h2, .modal-body h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 20px 0 10px;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

/* ── Responsive Media Queries ─────────────────── */
@media (max-width: 900px) {
  .browse-page { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .how-it-works-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-links { gap: 4px; }
  .nav-link { padding: 6px 8px; font-size: 13px; }
  .nav-cta { padding: 6px 12px; font-size: 12.5px; }
  .stats-row { grid-template-columns: 1fr; gap: 8px; }
}
