:root {
  --bg: #faf8f5;
  --bg-alt: #f0ece4;
  --bg-dark: #1a1a2e;
  --fg: #1a1a2e;
  --fg-muted: #6b6b7a;
  --fg-light: #faf8f5;
  --accent: #c8a96e;
  --accent-dim: #b8934f;
  --border: rgba(26, 26, 46, 0.12);
  --green: #4a9e6e;
  --red: #c0594a;
  --blue: #4a7ec0;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-left { display: flex; align-items: center; gap: 2rem; }
.wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg);
  text-decoration: none;
}
.header-nav { display: flex; gap: 1.75rem; }
.header-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.header-nav a:hover, .header-nav a.active { color: var(--fg); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, opacity 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-dim); }
.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--fg); }

/* Hero */
.hero {
  padding: 5rem 2.5rem 4rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.hero-headline em { font-style: italic; color: var(--accent-dim); }
.hero-lede {
  margin: 1.5rem auto 2.5rem;
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.7;
  font-weight: 300;
}

/* Dashboard layout */
.dashboard-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}
.stat-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1;
}
.stat-sub {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.3rem;
}

/* Pipeline */
.pipeline-wrap { margin-bottom: 2.5rem; }
.pipeline-bar {
  display: flex;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.pipeline-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  transition: width 0.3s ease;
  min-width: 2px;
}
.pipeline-legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Split layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Card */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.card-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
}
.card-body { padding: 0; }

/* Table */
.prospect-table {
  width: 100%;
  border-collapse: collapse;
}
.prospect-table th {
  padding: 0.6rem 1.25rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.prospect-table td {
  padding: 0.8rem 1.25rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.prospect-table tr:last-child td { border-bottom: none; }
.prospect-table tr:hover td { background: var(--bg); }
.prospect-name { font-weight: 600; color: var(--fg); }
.prospect-co { color: var(--fg-muted); font-size: 0.8rem; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge-new { background: #e8f0fe; color: #3a5fc0; }
.badge-contacted { background: #fef3cd; color: #9a7b00; }
.badge-interested { background: #d4edda; color: #276a3e; }
.badge-consultation { background: #e2d9f3; color: #5a3e9e; }
.badge-negotiation { background: #fce8e8; color: #9e3a3a; }
.badge-client { background: #d4edda; color: #276a3e; }
.badge-lost { background: var(--bg-alt); color: var(--fg-muted); }

/* LinkedIn outreach badges */
.outreach-pending { background: var(--bg-alt); color: var(--fg-muted); }
.outreach-contacted { background: #e8f0fe; color: #3a5fc0; }
.outreach-responded { background: #d4edda; color: #276a3e; }
.outreach-negative { background: #fce8e8; color: #9e3a3a; }

/* Form */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.4);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal-head {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--fg-muted);
}
.modal-close:hover { background: var(--bg-alt); }
.modal-body { padding: 1.5rem; }

.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.03em;
}
.form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Search */
.search-wrap {
  position: relative;
}
.search-input {
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 2.2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
  background: white;
  color: var(--fg);
}
.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-muted);
  font-size: 0.9rem;
}

/* Empty state */
.empty-state {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--fg-muted);
}
.empty-state p { font-size: 0.9rem; margin-top: 0.5rem; }

/* Follow-up indicator */
.follow-up-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--accent-dim);
  font-weight: 600;
}
.follow-overdue { color: var(--red); }

/* Outreach table section */
.outreach-section { margin-bottom: 2.5rem; }

/* Responsive */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .site-header { padding: 1rem 1.25rem; }
  .header-nav { display: none; }
  .dashboard-wrap { padding: 1.25rem; }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.3s ease; }