:root {
  --bg: #030708;
  --panel: #080c0e;
  --text: #f3f4f4;
  --muted: #959b9f;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #c20f45;
  font-family: Inter, "Helvetica Neue", Arial, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 120px 120px, 120px 120px, auto;
}

a { color: inherit; }
button, select { font: inherit; }

.team-topbar {
  min-height: 76px;
  padding: 0 clamp(22px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 8, 0.94);
  backdrop-filter: blur(16px);
}

.team-brand { min-width: 0; display: flex; align-items: center; gap: 17px; text-decoration: none; }
.certik-logo { display: block; width: 138px; height: auto; }
.product-name { padding-left: 17px; border-left: 1px solid var(--line-strong); color: #b8bdc0; font-size: 13px; white-space: nowrap; }

main { width: min(1280px, 92vw); margin: 0 auto; padding-bottom: 72px; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; }

.workspace-intro {
  min-height: 300px;
  padding: 70px 0 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
  align-items: end;
  gap: clamp(40px, 8vw, 120px);
  border-bottom: 1px solid var(--line);
}

.intro-copy h1 { margin: 14px 0 14px; font-size: clamp(42px, 5vw, 64px); font-weight: 320; line-height: 1; letter-spacing: -0.045em; }
.intro-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.intro-copy .tag-reminder { margin-top: 12px; color: #c7cbcd; font-size: 12px; }

.quick-switch label { display: block; margin-bottom: 9px; color: #c5c9cb; font-size: 11px; font-weight: 600; }
.quick-switch > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.quick-switch select, .quick-switch button { min-height: 48px; border-radius: 3px; }
.quick-switch select { min-width: 0; padding: 0 14px; border: 1px solid var(--line-strong); color: var(--text); background: #090d0f; outline: none; }
.quick-switch select:focus { border-color: #d6265c; }
.quick-switch button { min-width: 92px; padding: 0 20px; border: 1px solid var(--accent); color: white; background: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer; }
.quick-switch button:hover { background: #db1853; }

.directory { padding-top: 54px; }
.directory-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.directory-heading h2 { margin: 9px 0 0; font-size: 34px; font-weight: 350; letter-spacing: -0.035em; }
.legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; color: var(--muted); font-size: 10px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 6px; height: 6px; border-radius: 50%; }
.linkedin-dot { background: #5f9ee4; }
.news-dot { background: var(--accent); }

.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dashboard-card { min-width: 0; padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.card-person h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.card-person p { min-height: 25px; margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.capabilities { min-height: 27px; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.capabilities span { padding: 5px 7px; border: 1px solid var(--line); border-radius: 2px; color: #b9bec1; font-size: 9px; font-weight: 600; }
.capabilities .linkedin { color: #82b4ea; }
.capabilities .news { color: #e56a91; }
.card-actions { margin-top: 20px; }
.card-actions a { min-height: 40px; display: grid; place-items: center; padding: 0 13px; border-radius: 2px; text-decoration: none; font-size: 10px; font-weight: 700; }
.open-primary { color: white; background: var(--accent); }
.open-primary:hover { background: #db1853; }

@media (max-width: 960px) {
  .workspace-intro { grid-template-columns: 1fr; gap: 34px; }
  .quick-switch { max-width: 580px; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .team-topbar { min-height: 68px; }
  .certik-logo { width: 118px; }
  .product-name { display: none; }
  .workspace-intro { min-height: 0; padding: 52px 0 44px; }
  .intro-copy h1 { font-size: 42px; }
  .quick-switch > div { grid-template-columns: 1fr; }
  .quick-switch button { width: 100%; }
  .directory { padding-top: 42px; }
  .directory-heading { display: block; }
  .legend { justify-content: flex-start; margin-top: 16px; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
