:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f0eee8;
  --text: #1c1b18;
  --muted: #6b6860;
  --border: #e4e1d8;
  --accent: #3b5bdb;
  --accent-ink: #ffffff;
  --accent-soft: #e7ecfd;
  --good: #1f7a4d;
  --good-soft: #e3f4ea;
  --shadow: 0 1px 2px rgba(28, 27, 24, .05), 0 4px 16px rgba(28, 27, 24, .05);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121316; --surface: #1b1d21; --surface-2: #24272c; --text: #ecebe7; --muted: #9c9a93;
    --border: #2e3137; --accent: #7c9bff; --accent-ink: #0d1020; --accent-soft: #232b45;
    --good: #6fd29b; --good-soft: #1b3326; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121316; --surface: #1b1d21; --surface-2: #24272c; --text: #ecebe7; --muted: #9c9a93;
  --border: #2e3137; --accent: #7c9bff; --accent-ink: #0d1020; --accent-soft: #232b45;
  --good: #6fd29b; --good-soft: #1b3326; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* Keep the footer at the bottom of the screen on short pages. */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* Top bar — always dark, to sit on the dark hero */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 16, 32, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, .28); color: #f8fafc;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-accent { color: #60a5fa; }
.topnav { display: flex; align-items: center; gap: 28px; }
.topnav a { text-decoration: none; color: #e2e8f0; font-size: 15px; font-weight: 600; transition: color .15s; }
.topnav a:hover { color: #fff; }
.topnav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 #60a5fa; padding-bottom: 4px; }
.icon-btn { background: rgba(255,255,255,.06); color: #e2e8f0; border: 1px solid rgba(148,163,184,.3); border-radius: 999px; width: 36px; height: 36px; cursor: pointer; font-size: 16px; }
.icon-btn:hover { background: rgba(255,255,255,.12); }

/* Hero — dark navy with a soft blue glow */
.hero {
  position: relative; overflow: hidden; color: #f8fafc;
  background: #0d1526;
  padding: 112px 0 72px;
}
.hero-inner { position: relative; }

/* Inner pages: a shorter version of the hero */
.page-hero {
  color: #f8fafc;
  background: #0d1526;
  padding: 64px 0 44px;
}
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 0 0 14px; }
.page-hero .lede { margin-bottom: 0; }
.page-hero .stats { margin-top: 24px; }
.page-body { padding-top: 28px; }
.eyebrow { margin: 0 0 18px; color: #93c5fd; font-size: 15px; font-weight: 600; }
.hero h1 { font-size: clamp(38px, 6.4vw, 66px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; margin: 0 0 24px; max-width: 20ch; text-wrap: balance; }
.hero-accent { color: #93c5fd; }
.lede { font-size: 18px; line-height: 1.6; color: #cbd5e1; max-width: 58ch; margin: 0 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.btn-hero, .btn-hero-secondary { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 6px; font-weight: 700; }
.btn-hero { background: #2563eb; color: #fff; }
.btn-hero:hover { background: #1d4ed8; }
.btn-hero-secondary { background: #fff; color: #0f172a; }
.btn-hero-secondary:hover { background: #e2e8f0; }
.hero-note { margin: 0 0 36px; font-size: 14px; color: #94a3b8; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; }
.stat { background: rgba(255,255,255,.05); border: 1px solid rgba(148,163,184,.22); color: #cbd5e1; border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.stat b { color: #fff; font-variant-numeric: tabular-nums; }

/* Controls */
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 14px; }
.search { flex: 1 1 320px; position: relative; display: block; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
.search input { width: 100%; height: 48px; padding: 0 16px 0 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); outline: none; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.selects { display: flex; gap: 10px; }
.selects label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.selects select { height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); padding: 0 10px; cursor: pointer; }

.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: thin; }
.chip { flex: none; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.chip[aria-pressed="true"] .n { color: inherit; opacity: .7; }
.chip .logo { width: 16px; height: 16px; border-radius: 4px; font-size: 9px; padding: 1px; }

.result-bar { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }
.result-bar p { margin: 0; color: var(--muted); font-size: 14px; }
.link-btn { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-size: 14px; }

/* Job cards */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.job { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.job:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.job-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.logo { flex: none; width: 24px; height: 24px; border-radius: 6px; color: #fff; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }
.logo-img { object-fit: contain; background: #fff; border: 1px solid var(--border); padding: 2px; }
.logo-lg { width: 32px; height: 32px; border-radius: 8px; font-size: 15px; }
.age { font-size: 12px; color: var(--muted); }
.new { color: var(--good); background: var(--good-soft); border-radius: 999px; padding: 1px 8px; font-weight: 600; }
.job h3 { margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.summary { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 12px; background: var(--surface-2); border-radius: 6px; padding: 2px 8px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay { font-weight: 700; color: var(--good); font-size: 15px; }
/* Pinned to the bottom of the card so Apply buttons line up across a row; the optional hint sits above. */
.job-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.job-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hint { font-size: 12px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); }
.more { display: flex; justify-content: center; margin: 22px 0 8px; }

.empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty h3 { margin: 0 0 6px; }
.empty p { margin: 0 0 14px; color: var(--muted); }

/* Sections below the job list */
.section { padding-top: 64px; padding-bottom: 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head .section-lede { margin-bottom: 0; }
.see-all { flex: none; font-weight: 700; font-size: 15px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.see-all:hover { text-decoration: underline; }
.section h2 { font-size: 30px; letter-spacing: -.025em; font-weight: 800; margin: 0 0 6px; }
.section-lede { color: var(--muted); margin: 0 0 20px; }
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.platform { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.platform h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.platform p { margin: 0; font-size: 14px; color: var(--muted); }
/* Pinned to the card bottom: one status line, then a full-width Join button, so buttons line up across a row. */
.platform .row { display: flex; flex-direction: column; align-items: stretch; margin-top: auto; padding-top: 8px; gap: 10px; }
.platform .row > :first-child { font-size: 13px; line-height: 20px; white-space: nowrap; }
.platform .count { color: var(--muted); }
.platform .row .btn { width: 100%; }

/* Domains */
.domain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.domain { text-align: left; cursor: pointer; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.domain:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.domain-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); }
.domain-icon svg { width: 22px; height: 22px; }
/* Dark mode: lighten the muted icon colours so they stay readable. */
:root[data-theme="dark"] .domain-icon { color: color-mix(in srgb, var(--c) 55%, #fff); background: color-mix(in srgb, var(--c) 28%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .domain-icon { color: color-mix(in srgb, var(--c) 55%, #fff); background: color-mix(in srgb, var(--c) 28%, transparent); }
}
.domain h3 { margin: 4px 0 0; font-size: 17px; }
.domain p { margin: 0; font-size: 14px; color: var(--muted); }
.domain-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-size: 13px; }
.domain-meta .count { font-weight: 700; color: var(--accent); }
.domain-meta .top { color: var(--good); font-weight: 600; }

/* Home: auto-scrolling domain slider */
.slider {
  overflow: hidden; padding: 6px 0 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.slider-track { display: flex; gap: 14px; width: max-content; animation: slide calc(var(--slides) * 4.5s) linear infinite; }
.slider:hover .slider-track, .slider:focus-within .slider-track { animation-play-state: paused; }
.slider .domain { width: 260px; flex: none; }
/* Two identical copies: moving by half the track (plus half a gap) loops seamlessly. */
@keyframes slide { to { transform: translateX(calc(-50% - 7px)); } }

/* Home: platform logo strip */
.platform-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.strip-item { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.strip-item:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.strip-item .n { font-size: 12px; color: var(--muted); font-weight: 500; }

/* Resources */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
/* Home: exactly one full row of 4 (2 on tablets, 1 on phones) so the row is never half empty. */
.resource-grid-home { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .resource-grid-home { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .resource-grid-home { grid-template-columns: 1fr; } }
.resource { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.resource:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.resource-img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.resource-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.resource-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.kind { font-size: 12px; font-weight: 600; color: var(--muted); }
.resource h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.resource p { margin: 0; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.read { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* Text pages: About, Contact, Privacy, Terms */
.prose { max-width: 720px; padding-bottom: 16px; font-size: 16px; line-height: 1.7; }
.prose h2 { font-size: 22px; letter-spacing: -.015em; margin: 36px 0 10px; }
.prose > h2:first-child, .prose-updated + h2 { margin-top: 8px; }
.prose p { margin: 0 0 14px; color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin-bottom: 10px; color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.prose a { color: var(--accent); }
.prose-updated { font-size: 14px; color: var(--muted) !important; margin-bottom: 8px !important; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 8px; }
.contact-card h2 { margin-top: 0; }
.prose .contact-btn { color: var(--accent-ink); height: 46px; font-size: 15px; }

/* Footer — dark navy, matching the header and hero */
.footer {
  margin-top: 88px; color: #cbd5e1; font-size: 14px;
  background: #0d1526;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.footer .brand { color: #f8fafc; }
.footer-brand p { margin: 14px 0 20px; max-width: 34ch; line-height: 1.6; color: #94a3b8; }
.footer-cta { background: #2563eb; color: #fff; height: 42px; border-radius: 6px; }
.footer-cta:hover { background: #1d4ed8; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 { margin: 0 0 6px; color: #f8fafc; font-size: 15px; font-weight: 600; }
.footer-col a { color: #94a3b8; text-decoration: none; width: fit-content; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(148, 163, 184, .18); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 24px; color: #64748b; font-size: 13px; }
.footer-bottom-inner p { margin: 0; }
.back-top { color: #94a3b8; text-decoration: none; font-weight: 600; }
.back-top:hover { color: #fff; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

.skeleton { height: 210px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border: 1px solid var(--border); }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 600px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-hero { padding: 40px 0 32px; }
  .slider .domain { width: 230px; }
  .hero { padding: 64px 0 44px; }
  .lede { font-size: 16px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .topnav { gap: 12px; }
  .job-grid { grid-template-columns: 1fr; }
  .selects { width: 100%; }
  .selects label { flex: 1; }
  .selects select { flex: 1; width: 100%; }
  .topbar-inner { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 6px; row-gap: 4px; }
  .topnav { order: 3; width: 100%; overflow-x: auto; gap: 14px; padding: 6px 0 4px; scrollbar-width: none; }
  .topnav a { font-size: 13.5px; white-space: nowrap; }
  .topnav .icon-btn { position: absolute; top: 10px; right: 16px; }
  .topbar-inner { position: relative; }
}
@media (prefers-reduced-motion: reduce) {
  .slider { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .slider-track .domain[aria-hidden="true"] { display: none; }
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
