/* =====================
   COLOR SYSTEM
===================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;

  --background: #f8fafc;
  --card: #ffffff;

  --text: #111827;
  --text-muted: #6b7280;

  --border: #e5e7eb;
}

/* =====================
   GLOBAL
===================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  background: var(--background);
  color: var(--text);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================
   NAV
===================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* =====================
   HERO
===================== */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(37, 99, 235, 0.10) 0%, rgba(37, 99, 235, 0) 45%),
    linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  padding: 64px 20px 42px;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, rgba(37, 99, 235, 0) 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 14px 0;
  padding: 6px 10px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 999px;
}

.hero h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-subtext {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================
   SITE NOTE
===================== */

.site-note {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.site-note-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
}

.site-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

/* =====================
   BUTTONS
===================== */

.primary-btn,
.secondary-btn,
.tertiary-btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.primary-btn {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.primary-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.secondary-btn:hover {
  background: white;
  transform: translateY(-1px);
}

.tertiary-btn {
  background: #f8fafc;
  color: var(--text);
  border: 1px solid var(--border);
}

.tertiary-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

/* =====================
   PAGE LAYOUT
===================== */

.page {
  width: 100%;
}

.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.content-page h1 {
  margin: 0 0 18px 0;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.content-page h2 {
  margin: 36px 0 14px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.content-page h3 {
  margin: 0 0 12px 0;
  font-size: 22px;
  line-height: 1.2;
  color: var(--text);
}

.content-page p {
  margin: 0 0 16px 0;
  font-size: 17px;
  line-height: 1.75;
  color: #374151;
}

.content-page ul {
  margin: 0 0 18px 0;
  padding-left: 20px;
  color: #374151;
}

.content-page li {
  margin-bottom: 10px;
  line-height: 1.65;
}

.content-page hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

/* =====================
   STATS
===================== */

.stats-section {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

.stat-card-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #1d7de0 100%);
  color: white;
}

.stat-number {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  font-size: 14px;
  color: inherit;
  opacity: 0.92;
}

/* =====================
   SECTIONS
===================== */

.dashboard-section,
.controls-section {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.section-header h2 {
  margin: 0;
  font-size: 28px;
  color: var(--text);
}

.results-count {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* =====================
   DASHBOARD
===================== */

.function-dashboard {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.function-card {
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.function-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.function-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.function-value {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
}

/* =====================
   FILTERS
===================== */

.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  align-items: center;
}

.controls input,
.controls select {
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 220px;
  min-height: 44px;
  background: white;
  color: var(--text);
}

.controls input {
  flex: 1 1 360px;
}

.controls select {
  flex: 0 0 220px;
}

.controls input::placeholder {
  color: var(--text-muted);
}

.controls input:focus,
.controls select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.clear-btn {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.clear-btn:hover {
  background: #f8fafc;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

/* =====================
   DIRECTORY GRID
===================== */

#directory,
.directory-grid {
  max-width: 1100px;
  margin: 18px auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

/* =====================
   CARDS
===================== */

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.card h3 {
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card p {
  margin: 0;
}

.role {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.summary {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #374151;
}

.description {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
}

/* =====================
   SPLIT CTA SECTION
===================== */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.split .card {
  padding: 24px;
  border-radius: 18px;
}

.split .card p:last-child {
  margin-bottom: 0;
}

/* =====================
   FUNCTION BADGES
===================== */

.badge {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
}

.badge-product-design {
  background: #f3e8ff;
  color: #7c3aed;
}

.badge-it {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-go-to-market {
  background: #ecfdf5;
  color: #047857;
}

.badge-engineering {
  background: #e0edff;
  color: #2563eb;
}

.badge-operations {
  background: #fff4e5;
  color: #f59e0b;
}

.badge-design {
  background: #f3e8ff;
  color: #8b5cf6;
}

.badge-customer-care-and-support {
  background: #e6fffa;
  color: #14b8a6;
}

.badge-customer-support {
  background: #e6fffa;
  color: #14b8a6;
}

.badge-sales {
  background: #ecfdf5;
  color: #22c55e;
}

.badge-product {
  background: #eef2ff;
  color: #6366f1;
}

.badge-data-and-analytics {
  background: #ecfeff;
  color: #06b6d4;
}

.badge-marketing {
  background: #fdf2f8;
  color: #ec4899;
}

/* =====================
   LINKEDIN CTA
===================== */

.linkedin {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--primary);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.linkedin:hover {
  background: #e2e8f0;
  color: var(--primary-hover);
  transform: translateY(-1px);
}

.linkedin.pending {
  background: #f9fafb;
  color: var(--text-muted);
  cursor: default;
  transform: none;
}

/* =====================
   EMPTY STATE
===================== */

.empty-state {
  grid-column: 1 / -1;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  color: var(--text-muted);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  text-align: center;
}
/* =====================
   COMPANY TABLE
===================== */

.company-table {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.company-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.company-row:last-child {
  border-bottom: none;
}

.company-row span:first-child {
  font-weight: 600;
  color: var(--text);
}

.company-row span:last-child {
  color: var(--text-muted);
  font-weight: 500;
}

/* =====================
   RESPONSIVE
===================== */

@media (max-width: 768px) {
  .site-nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 12px;
  }

  .content-page {
    padding: 32px 16px 48px;
  }

  .content-page h1 {
    font-size: 34px;
  }

  .content-page h2 {
    font-size: 24px;
  }

  .content-page p {
    font-size: 16px;
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 44px 16px 28px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-subtext {
    font-size: 16px;
  }

  .stats-section,
  .dashboard-section,
  .controls-section,
  #directory,
  .directory-grid,
  .site-nav-inner,
  .site-note-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .controls input,
  .controls select,
  .clear-btn {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }

  .card h3 {
    font-size: 20px;
  }

  .stat-number {
    font-size: 30px;
  }

  .section-header {
    align-items: flex-start;
  }
}