:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #111315;
  --muted: #5d6670;
  --border: #e4e7eb;
  --accent: #3b6bff;
  --accent-strong: #2951cc;
  --radius-lg: 30px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 16px 40px rgba(17, 19, 21, 0.08);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.page-loaded {
  opacity: 1;
  transform: translateY(0);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max-width), calc(100% - 2.25rem));
  margin-inline: auto;
}

.section { padding: clamp(3.5rem, 8vw, 7.2rem) 0; }
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 245, 247, 0.82);
  backdrop-filter: blur(14px) saturate(170%);
  border-bottom: 1px solid rgba(228, 231, 235, 0.7);
}

.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-weight: 700; letter-spacing: -0.02em; font-size: 1.03rem; }
.nav-links { display: flex; gap: 1rem; align-items: center; }
.nav-link { color: var(--muted); font-size: 0.94rem; transition: color .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-tools { display: flex; align-items: center; gap: .65rem; }

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.mobile-panel { display: none; border-top: 1px solid var(--border); padding: .7rem 1.2rem 1.2rem; background: var(--surface); }
.mobile-panel a { display: block; padding: .62rem 0; color: var(--muted); }
.mobile-panel.open { display: block; }

.hero {
  min-height: min(86vh, 920px);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(11, 13, 17, 0.72), rgba(11, 13, 17, 0.28));
  z-index: -1;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: brightness(.62);
  z-index: -2;
}

.hero-content { color: #fff; max-width: 760px; }
.eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; color: #a8bee8; }
h1,h2,h3 { margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.4rem, 8vw, 6rem); line-height: .96; }
h2 { font-size: clamp(1.8rem, 4.8vw, 3.6rem); line-height: 1.04; }
h3 { font-size: clamp(1.15rem, 2vw, 1.48rem); }
p { color: var(--muted); line-height: 1.7; }
.hero p { color: rgba(255,255,255,.87); }

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .78rem 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: all .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 24px rgba(59,107,255,.26); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { background: var(--surface); border-color: var(--border); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }

.card {
  background: var(--surface);
  border: 1px solid rgba(228, 231, 235, .85);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.job-card { display: flex; flex-direction: column; gap: .85rem; min-height: 244px; }
.badge { font-size: .76rem; background: #eaf0ff; color: var(--accent); border-radius: 999px; padding: .35rem .72rem; font-weight: 700; display: inline-flex; }
.job-meta { color: var(--muted); font-size: .93rem; }

.banner { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.banner img { width: 100%; min-height: 360px; object-fit: cover; }
.banner-content {
  position: absolute;
  inset: auto 1rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(17,19,21,.78);
  color: #fff;
  padding: .9rem 1rem;
}

.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .78rem .9rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.textarea { min-height: 120px; resize: vertical; }
.filters { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.5rem 0 2rem; }
.filter-item { flex: 1; min-width: 190px; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
.full { grid-column: 1 / -1; }

.stat-list { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 2rem; }
.stat strong { display: block; font-size: 1.9rem; color: #fff; }
.stat span { color: rgba(255,255,255,.75); font-size: .9rem; }

.story-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9eeff;
  color: var(--accent);
  font-weight: 700;
}

.fade-in { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.fade-in.in-view { opacity: 1; transform: translateY(0); }
.empty-state { padding: 2rem; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.footer { border-top: 1px solid var(--border); padding: 1.8rem 0; color: var(--muted); font-size: .92rem; }

.progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e7ebf3;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #7ca5ff, #3b6bff);
  transition: width .15s linear;
}

.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td { text-align: left; padding: .75rem; border-bottom: 1px solid #edf0f4; font-size: .92rem; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(14,16,20,.52);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 80;
}
.modal.open { display: flex; }
.modal-content { width: min(680px, 100%); }

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero { min-height: 68vh; }
  .grid-3 { grid-template-columns: 1fr; }
}
