:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0d1a31;
  --panel: rgba(11, 24, 45, 0.78);
  --panel-strong: rgba(8, 19, 37, 0.9);
  --border: rgba(148, 163, 184, 0.2);
  --border-strong: rgba(148, 163, 184, 0.32);
  --text: #e5eefb;
  --muted: #9eb0cb;
  --primary: #5eead4;
  --primary-2: #60a5fa;
  --amber: #fbbf24;
  --rose: #fb7185;
  --violet: #a78bfa;
  --green: #34d399;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(18, 52, 90, 0.95) 0%, rgba(9, 21, 39, 0.96) 42%, #030712 100%),
    var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(94, 234, 212, 0.12), transparent 26%),
    radial-gradient(circle at 88% 10%, rgba(96, 165, 250, 0.16), transparent 24%),
    radial-gradient(circle at 70% 82%, rgba(251, 191, 36, 0.08), transparent 22%);
}

 a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(4, 10, 20, 0.58);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.shell {
  position: relative;
  z-index: 1;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--muted);
  transition: 0.2s ease;
}

.top-nav a:hover,
.top-nav a.is-active {
  color: var(--text);
  border-color: rgba(94, 234, 212, 0.28);
  background: rgba(94, 234, 212, 0.08);
}

.page-home,
.page-employees,
.page-agents {
  padding: 34px 0 72px;
}

.hero,
.card,
.employee-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero {
  padding: 40px;
}

.hero-home,
.hero-agents {
  margin-bottom: 28px;
}

.hero-team {
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(10, 24, 44, 0.96), rgba(13, 33, 60, 0.9)),
    var(--panel-strong);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.04;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 38px);
}

h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.subtitle,
.section-head p,
.card p,
.employee-copy,
.employee-role {
  color: var(--muted);
}

.subtitle {
  max-width: 840px;
  line-height: 1.8;
  margin: 18px 0 0;
  font-size: 16px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.stat-pill,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.stat-pill {
  background: rgba(15, 23, 42, 0.66);
  color: #d9e7ff;
}

.tag {
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  text-decoration: none;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 234, 212, 0.5);
}

.btn-primary {
  color: #04111f;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: none;
  font-weight: 700;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-head-tight {
  margin-top: 8px;
}

.section-head p {
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 4px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.card,
.employee-card {
  padding: 24px;
}

.card {
  min-height: 230px;
}

.card h3 {
  margin: 14px 0 10px;
}

.card p,
.employee-copy {
  line-height: 1.75;
}

.card a {
  color: #d5fbff;
  text-decoration: none;
  word-break: break-all;
}

.card a:hover {
  text-decoration: underline;
}

.staff-wall {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.staff-row {
  display: grid;
  gap: 20px;
}

.staff-row.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-row.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.employee-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}

.employee-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 0;
}

.avatar-chip,
.avatar-photo {
  width: min(100%, 220px);
  aspect-ratio: 4 / 5;
  height: auto;
  border-radius: 24px;
  flex-shrink: 0;
}

.avatar-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.22), rgba(96, 165, 250, 0.26));
  color: #eef8ff;
}

.avatar-photo {
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
  background: rgba(15, 23, 42, 0.4);
}

.employee-top h3 {
  font-size: 18px;
  line-height: 1.35;
}

.employee-role {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.employee-copy {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.7;
}

.accent-cyan {
  border-color: rgba(94, 234, 212, 0.34);
}

.accent-blue {
  border-color: rgba(96, 165, 250, 0.34);
}

.accent-violet {
  border-color: rgba(167, 139, 250, 0.34);
}

.accent-amber {
  border-color: rgba(251, 191, 36, 0.3);
}

.accent-rose {
  border-color: rgba(251, 113, 133, 0.3);
}

.accent-green {
  border-color: rgba(52, 211, 153, 0.34);
}

/* Agent table */
.table-wrap {
  overflow-x: auto;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.agent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.agent-table thead {
  background: var(--panel-strong);
}

.agent-table th {
  padding: 16px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.agent-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.agent-table tbody tr:last-child td {
  border-bottom: none;
}

.agent-table tbody tr:hover {
  background: rgba(94, 234, 212, 0.04);
}

.agent-table code {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(96, 165, 250, 0.12);
  color: #bfdbfe;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-on {
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
}

.status-on::before {
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
}

@media (max-width: 1080px) {
  .portal-grid,
  .staff-row.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-row.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .nav-shell,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .staff-row.cols-3,
  .staff-row.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 24px, 1180px);
  }

  .page-home,
  .page-employees,
  .page-agents {
    padding-top: 24px;
  }

  .hero {
    padding: 24px;
    border-radius: 24px;
  }

  .portal-grid,
  .staff-row.cols-3,
  .staff-row.cols-4 {
    grid-template-columns: 1fr;
  }

  .top-nav {
    width: 100%;
  }

  .top-nav a {
    width: 100%;
    text-align: center;
  }

  .agent-table th,
  .agent-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .employee-card,
  .card {
    min-height: auto;
  }
}
