:root {
  color-scheme: light;
  --ink: #121826;
  --muted: #687386;
  --line: #dde5ee;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --navy: #101828;
  --navy-2: #182235;
  --teal: #00a884;
  --blue: #2563eb;
  --amber: #d97706;
  --rose: #e11d48;
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-2);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.hero {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(16, 24, 40, 0.98), rgba(24, 34, 53, 0.96)),
    linear-gradient(90deg, var(--teal), var(--blue));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
}

.brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 520px);
  gap: clamp(24px, 5vw, 56px);
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 40px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #7dd3c7;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  align-self: end;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  min-height: 112px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.metric span {
  display: block;
  margin-bottom: 16px;
  color: #c8d2e0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.csv-link,
.apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.csv-link {
  color: #0b1220;
  background: #ffffff;
}

.apply {
  color: #ffffff;
  background: var(--navy);
}

main {
  width: min(1200px, calc(100% - 32px));
  margin: 22px auto 48px;
}

.controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 250px) minmax(180px, 250px);
  gap: 12px;
  align-items: end;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
}

label span {
  display: block;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfcfe;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  font: inherit;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.table-wrap {
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.08);
}

table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #566174;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

tbody tr {
  background: var(--surface);
}

tbody tr:hover {
  background: #f8fbff;
}

.company {
  color: var(--navy);
  font-weight: 800;
}

.role {
  max-width: 330px;
  color: #0f172a;
  font-weight: 800;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: #0f3d35;
  background: #dff8f1;
  border: 1px solid #b8ece0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.chip.muted {
  color: #475569;
  background: #eef2f7;
  border-color: #d8e0ea;
}

.date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.empty {
  padding: 40px 16px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .hero-grid,
  .controls {
    grid-template-columns: 1fr;
  }

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

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

  h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .summary {
    flex-direction: column;
  }
}
