:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --ink: #0c1326;
  --muted: #5b6478;
  --line: #e2e6f0;
  --brand: #3d4eff;
  --brand-ink: #ffffff;
  --brand-soft: #eceeff;
  --accent: #12d6a0;
  --hero-a: #0a1030;
  --hero-b: #1a1f6b;
  --danger: #d43c4f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(12, 19, 38, .05), 0 8px 24px rgba(12, 19, 38, .07);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080c1c;
    --surface: #111731;
    --ink: #eef1fa;
    --muted: #9aa3bd;
    --line: #232b4d;
    --brand: #7c88ff;
    --brand-ink: #080c1c;
    --brand-soft: #1b2250;
    --danger: #ff7a8a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { background: var(--hero-a); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 700 20px/1 var(--display); letter-spacing: -.03em; }
.logo:hover { text-decoration: none; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { color: var(--accent); font-weight: 700; }
.nav { display: flex; gap: 4px; }
.nav a { color: #c9cff0; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); text-decoration: none; }

/* Hero */
.hero {
  color: #fff;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(18, 214, 160, .22), transparent 70%),
    radial-gradient(700px 400px at 10% 100%, rgba(61, 78, 255, .45), transparent 70%),
    linear-gradient(160deg, var(--hero-a), var(--hero-b));
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
  pointer-events: none;
}
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 80px; }
.hero--slim .wrap { padding-top: 28px; padding-bottom: 32px; }
.eyebrow { display: inline-block; font: 600 12px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 6.5vw, 64px); max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { color: #c9cff0; font-size: clamp(16px, 2.2vw, 19px); max-width: 52ch; margin-top: 18px; }

/* Search form */
.search {
  display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 8px;
  background: var(--surface); padding: 8px; border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
  margin-top: 36px; max-width: 820px;
}
.hero--slim .search { margin-top: 0; max-width: none; }
.field { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 12px; min-width: 0; }
.field:focus-within { background: var(--brand-soft); }
.field label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input { border: 0; background: none; color: var(--ink); font: 500 16px/1.4 var(--font); padding: 2px 0; width: 100%; outline: none; }
.field input::placeholder { color: var(--muted); opacity: .7; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: var(--brand); color: var(--brand-ink);
  font: 600 16px/1 var(--font); padding: 0 26px; min-height: 52px;
  transition: transform .1s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); min-height: 42px; padding: 0 16px; font-size: 14px; }
.btn--ghost[aria-current="page"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; }
.chips span { color: #9aa3d0; font-size: 13px; margin-right: 4px; }
.chip { color: #e6e9ff; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); }
.chip:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }

/* Main */
main { flex: 1; padding: 48px 0 64px; }
.section-title { font-size: clamp(22px, 3vw, 30px); margin-bottom: 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font: 700 16px/1 var(--display); margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p, .muted { color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 332px; gap: 32px; align-items: start; }
.stack > * + * { margin-top: 40px; }

/* Ads */
.ad { text-align: center; }
.ad-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-slot { display: inline-block; width: 300px; min-height: 250px; max-width: 100%; overflow: hidden; }
.sidebar { display: grid; gap: 24px; position: sticky; top: 20px; }

/* Results */
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.results-head h1 { font-size: clamp(20px, 3vw, 26px); }
.jobs { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.job { position: relative; padding: 20px 22px; transition: border-color .15s ease, transform .15s ease; }
.job:hover { border-color: var(--brand); transform: translateY(-1px); }
.job h2 { font-size: 18px; }
.job h2 a { color: var(--ink); }
.job h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.job h2 a:hover { color: var(--brand); text-decoration: none; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 14px; margin-top: 6px; }
.meta strong { color: var(--ink); font-weight: 600; }
.salary { color: #0a8f6a; font-weight: 600; }
@media (prefers-color-scheme: dark) { .salary { color: var(--accent); } }
.job .snippet { color: var(--muted); font-size: 15px; margin-top: 10px; overflow-wrap: anywhere; }
.job .snippet b { color: var(--ink); font-weight: 600; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.credit { font-size: 13px; color: var(--muted); margin-top: 18px; }
.empty { text-align: center; padding: 48px 24px; }
.empty h2 { font-size: 22px; margin-bottom: 8px; }
.empty .chips { justify-content: center; }
.empty .chip { color: var(--brand); border-color: var(--line); background: var(--brand-soft); }

/* Contact */
.form { display: grid; gap: 16px; max-width: 640px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form textarea {
  font: 16px/1.5 var(--font); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: 10px; font-weight: 500; margin-bottom: 20px; background: var(--brand-soft); color: var(--ink); border: 1px solid var(--line); }
.notice--error { border-color: var(--danger); color: var(--danger); background: transparent; }

/* Footer */
.site-footer { background: var(--hero-a); color: #9aa3d0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; }
.site-footer a { color: #c9cff0; margin-left: 16px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .search { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 44px; padding-bottom: 52px; }
  .form .two { grid-template-columns: 1fr; }
  .nav a { padding: 8px 9px; }
  main { padding: 32px 0 48px; }
  .site-footer a { margin: 0 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
