:root {
  --bg: #080a0f;
  --bg-soft: #10141b;
  --surface: #151b23;
  --surface-strong: #1b2630;
  --border: rgba(255, 255, 255, .12);
  --text: #f6f8fb;
  --muted: #b9c6d6;
  --muted-strong: #d8e2ee;
  --primary: #2f7df6;
  --primary-strong: #59a6ff;
  --success: #2fd3a5;
  --warning: #f7c948;
  --shadow: 0 24px 60px rgba(0, 0, 0, .28);
  --radius: 8px;
  --shell: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(47, 125, 246, .07) 0%, rgba(8, 10, 15, 0) 360px),
    var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

.site-shell {
  width: min(100% - 40px, var(--shell));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 10, 15, .92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.site-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--success));
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-tagline {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .12);
}

.nav-link-strong {
  background: rgba(47, 125, 246, .16);
  border-color: rgba(89, 166, 255, .28);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.hero-section {
  padding: 88px 0 72px;
  overflow: hidden;
}

.careers-hero {
  padding-bottom: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  align-items: center;
  gap: 36px;
}

.hero-copy {
  min-width: 0;
}

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

h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: 56px;
  line-height: 1.04;
  font-weight: 900;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #1d62d8);
  border-color: rgba(89, 166, 255, .42);
  box-shadow: 0 14px 28px rgba(47, 125, 246, .24);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-color: var(--border);
}

.hero-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)),
    var(--surface);
  box-shadow: var(--shadow);
}

.compact-panel {
  max-width: 420px;
  justify-self: end;
  width: 100%;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 4px;
  border-bottom: 1px solid var(--border);
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-row span {
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 800;
}

.metric-row strong {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.section-band {
  padding: 60px 0;
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 860px;
}

.section-head h2,
.jobs-head h2,
.cta-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.16;
  font-weight: 900;
}

.section-head p:not(.eyebrow),
.cta-panel p,
.jobs-head p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.feature-section {
  padding: 56px 0;
}

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

.feature-card,
.job-card,
.cta-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .16);
}

.feature-card {
  padding: 22px;
}

.feature-card h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.feature-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.careers-cta {
  padding: 14px 0 72px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(47, 125, 246, .18), rgba(47, 211, 165, .10)),
    var(--surface);
}

.cta-panel > div {
  max-width: 720px;
}

.jobs-section {
  padding: 56px 0 76px;
}

.jobs-head {
  margin-bottom: 18px;
}

.job-card {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .04)),
    var(--surface);
}

.job-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.job-card h3 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 900;
}

.job-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}

.job-meta div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
}

.job-meta dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.job-meta dd {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.job-body {
  margin-top: 26px;
}

.job-body h4,
.skills-grid h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 900;
}

.job-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

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

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(89, 166, 255, .24);
  border-radius: var(--radius);
  background: rgba(47, 125, 246, .11);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.job-card-foot {
  display: none;
  margin-top: 26px;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  background: #050c16;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto auto;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.footer-grid strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

.footer-grid > div:first-child span {
  display: block;
  margin-top: 2px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer-links a {
  color: var(--muted-strong);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #fff;
}

.footer-grid p {
  margin: 0;
  text-align: right;
}

@media (max-width: 920px) {
  .site-shell {
    width: min(100% - 28px, var(--shell));
  }

  .site-nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    inset: 68px 14px auto 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(8, 10, 15, .98);
    box-shadow: var(--shadow);
  }

  body.nav-open .primary-nav {
    display: flex;
  }

  .nav-link {
    justify-content: center;
    width: 100%;
  }

  .hero-section {
    padding: 58px 0 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .compact-panel {
    max-width: none;
    justify-self: stretch;
  }

  h1 {
    font-size: 42px;
  }

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

  .feature-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .job-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-grid p {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-name {
    font-size: 14px;
  }

  .brand-tagline {
    font-size: 11px;
  }

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

  .section-head h2,
  .jobs-head h2,
  .cta-panel h2 {
    font-size: 27px;
  }

  .hero-actions,
  .job-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .metric-row {
    min-height: 58px;
  }

  .section-band,
  .feature-section,
  .jobs-section {
    padding: 44px 0;
  }

  .careers-cta {
    padding-bottom: 48px;
  }

  .job-card,
  .cta-panel,
  .feature-card {
    padding: 20px;
  }

  .job-card h3 {
    font-size: 24px;
  }

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

  .job-card-head > .btn {
    display: none;
  }

  .job-card-foot {
    display: block;
  }
}
