:root {
  --bg: #080a0f;
  --panel: rgba(14, 19, 28, 0.76);
  --panel-strong: rgba(18, 26, 38, 0.94);
  --line: rgba(141, 244, 255, 0.18);
  --line-strong: rgba(141, 244, 255, 0.36);
  --card-title-bg: rgba(225, 249, 255, 0.96);
  --card-title-ink: #061014;
  --text: #eef7f8;
  --muted: #9db2b8;
  --cyan: #70f6ff;
  --green: #a2ff9b;
  --red: #ff5e70;
  --yellow: #ffd56f;
  --ink: #061014;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(112, 246, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 0%, rgba(162, 255, 155, 0.08), transparent 28rem),
    linear-gradient(135deg, #07080c 0%, #0b1018 44%, #09110f 100%);
  font-family: "Noto Sans SC", sans-serif;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(112, 246, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 246, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

#signalCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.45;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav-actions,
.filters,
.drawer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.drawer-actions [hidden] {
  display: none !important;
}

.icon-btn,
.primary-btn,
.ghost-btn,
.filter-btn {
  min-height: 40px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(12, 18, 26, 0.72);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-btn {
  width: 42px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.icon-btn.active,
.filter-btn.active {
  color: var(--ink);
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.primary-btn,
.ghost-btn,
.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-decoration: none;
}

.primary-btn {
  border: 0;
  color: var(--ink);
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.primary-btn.large {
  min-height: 52px;
  padding: 0 24px;
}

.ghost-btn.large {
  min-height: 52px;
}

.email-link {
  color: var(--green);
}

.inline-email {
  display: inline-block;
  margin-top: 14px;
  color: var(--cyan);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.icon-btn:hover,
.primary-btn:hover,
.ghost-btn:hover,
.filter-btn:hover,
.job-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.hero {
  min-height: clamp(430px, calc(100svh - 300px), 620px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: center;
  padding: 42px 0 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-family: "Barlow Condensed", "Noto Sans SC", sans-serif;
  font-size: clamp(68px, 8.6vw, 118px);
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-transform: none;
}

.lead {
  max-width: 720px;
  color: #c4d4d8;
  font-size: 18px;
  line-height: 1.75;
}

.hero-metrics {
  display: grid;
  gap: 12px;
}

.hero-metrics div,
.job-card,
.control-band,
.referral-cta,
.listing-intake,
.listing-option {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-metrics div {
  padding: 22px;
}

.hero-metrics strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 42px;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.control-band {
  position: sticky;
  top: 74px;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px;
  margin-bottom: clamp(72px, 10vh, 120px);
}

.search-wrap {
  position: relative;
}

.search-glyph {
  position: absolute;
  left: 16px;
  top: 50%;
  translate: 0 -50%;
  color: var(--cyan);
  font-size: 20px;
}

#searchInput {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 46px;
  border: 1px solid var(--line);
  outline: 0;
  color: var(--text);
  background: rgba(6, 10, 15, 0.74);
}

#searchInput:focus {
  border-color: var(--line-strong);
}

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

.board-head h2,
.listing-copy h2,
.referral-cta h2 {
  margin-bottom: 0;
  font-family: "Barlow Condensed", "Noto Sans SC", sans-serif;
  font-size: 54px;
  line-height: 0.95;
}

#resultCount {
  color: var(--muted);
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.job-card {
  min-height: 242px;
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  overflow: hidden;
  position: relative;
}

.job-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 110px;
  padding: 16px 18px;
  background: var(--card-title-bg);
  border-bottom: 1px solid rgba(6, 16, 20, 0.1);
}

.job-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0;
  color: var(--card-title-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(6, 16, 20, 0.12);
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 0 4px rgba(112, 246, 255, 0.14);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.job-card .meta {
  display: grid;
  gap: 6px;
  margin: 18px 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.job-card .excerpt {
  color: #c7d6d9;
  line-height: 1.55;
  margin: 16px 18px 18px;
}

.job-card footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--green);
  font-size: 13px;
  font-family: "Space Grotesk", sans-serif;
  padding: 0 18px 18px;
}

.referral-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 52px;
  padding: 28px;
}

.listing-intake {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 24px;
  margin-top: 52px;
  padding: 28px;
}

.listing-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.listing-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 14px 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.listing-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.listing-option {
  padding: 16px;
  background: rgba(6, 10, 15, 0.52);
  box-shadow: none;
}

.listing-option strong {
  display: block;
  color: var(--green);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 15px;
}

.listing-option p {
  margin: 10px 0 0;
  color: #c7d6d9;
  font-size: 14px;
  line-height: 1.55;
}

.referral-cta p:not(.eyebrow) {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  background: rgba(0, 0, 0, 0.58);
}

.drawer.open {
  display: block;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(720px, 100%);
  height: 100%;
  overflow: auto;
  padding: 30px;
  border-left: 1px solid var(--line-strong);
  background: rgba(8, 13, 20, 0.98);
  box-shadow: var(--shadow);
}

.close-btn {
  position: sticky;
  top: 0;
  float: right;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 0;
  line-height: 1;
}

.close-btn::before,
.close-btn::after {
  content: "";
  grid-area: 1 / 1;
  width: 34px;
  height: 3px;
  background: currentColor;
}

.close-btn::before {
  transform: rotate(45deg);
}

.close-btn::after {
  transform: rotate(-45deg);
}

.drawer-source {
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
}

.drawer-panel h2 {
  margin: 10px 52px 12px 0;
  font-family: "Barlow Condensed", "Noto Sans SC", sans-serif;
  font-size: 54px;
  line-height: 0.95;
}

.drawer-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.drawer-meta span {
  padding: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.ghost-btn.disabled {
  pointer-events: none;
  opacity: 0.48;
}

.jd-body {
  margin-top: 24px;
  color: #d6e3e5;
  line-height: 1.72;
  white-space: pre-wrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 40;
  transform: translate(-50%, 14px);
  opacity: 0;
  padding: 12px 18px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 800;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 28px 0 34px;
  }

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

  .control-band {
    position: static;
    margin-bottom: 44px;
  }

  .board-head,
  .listing-intake,
  .referral-cta,
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .listing-intake,
  .listing-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 1180px);
  }

  .nav-actions {
    width: 100%;
  }

  .nav-actions .primary-btn {
    flex: 1;
  }

  .email-link {
    width: 100%;
  }

  h1 {
    font-size: 62px;
  }

  .board-head h2,
  .listing-copy h2,
  .referral-cta h2,
  .drawer-panel h2 {
    font-size: 42px;
  }

  .drawer-panel {
    padding: 20px;
  }

  .drawer-meta {
    grid-template-columns: 1fr;
  }
}
