:root {
  --navy: #0b2b4f;
  --blue: #176bdf;
  --blue-dark: #0d54bb;
  --sky: #e8f2ff;
  --orange: #ff9e44;
  --ink: #132238;
  --muted: #66758a;
  --line: #dde5ef;
  --surface: #ffffff;
  --wash: #f5f8fc;
  --success: #16845b;
  --shadow: 0 22px 60px rgba(18, 53, 89, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  height: 76px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.94);
  position: relative;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: Manrope, sans-serif; font-weight: 700; color: var(--navy); }
.brand strong { color: var(--blue); }
.brand-mark {
  width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-size: 13px; letter-spacing: -.5px; background: linear-gradient(145deg, var(--blue), #0d4fab);
  box-shadow: 0 7px 18px rgba(23,107,223,.23);
}
.desktop-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
.desktop-nav > a { color: #40516a; }
.desktop-nav > a:hover { color: var(--blue); }
.nav-button, .mobile-apps-button { border: 0; color: var(--navy); background: var(--sky); border-radius: 12px; font-weight: 700; }
.nav-button { padding: 10px 13px; }
.count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--blue); color: white; font-size: 11px; }
.mobile-apps-button { display: none; width: 42px; height: 42px; padding: 9px; position: relative; }
.mobile-apps-button svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.mobile-apps-button .count-badge { position: absolute; top: -5px; right: -5px; }
.mobile-back-button { display: none; width: 42px; height: 42px; border-radius: 12px; place-items: center; color: var(--navy); background: var(--sky); font-size: 22px; font-weight: 800; }

.hero {
  min-height: 585px;
  padding: 85px max(28px, calc((100vw - 1124px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, .8fr);
  align-items: center;
  gap: 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 5%, rgba(255,158,68,.26), transparent 23%),
    linear-gradient(115deg, #f4f9ff 0%, #edf6ff 58%, #e7f1fd 100%);
  position: relative;
}
.hero::after { content: ""; width: 320px; height: 320px; border: 1px solid rgba(23,107,223,.12); border-radius: 50%; position: absolute; right: -145px; bottom: -150px; box-shadow: 0 0 0 56px rgba(23,107,223,.035), 0 0 0 112px rgba(23,107,223,.025); }
.eyebrow { color: var(--blue); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
h1, h2, h3 { font-family: Manrope, sans-serif; margin-top: 0; color: var(--navy); letter-spacing: -.035em; }
.hero h1 { max-width: 670px; font-size: clamp(42px, 5vw, 68px); line-height: 1.05; margin: 14px 0 20px; }
.hero-content > p { max-width: 615px; color: var(--muted); font-size: 18px; margin-bottom: 30px; }
.hero-search { max-width: 760px; display: grid; grid-template-columns: 1.2fr .9fr auto; gap: 0; background: #fff; border-radius: 17px; box-shadow: 0 16px 42px rgba(37,75,117,.16); padding: 7px; }
.search-field { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 15px; }
.search-field + .search-field { border-left: 1px solid var(--line); }
.search-field svg { width: 19px; flex: 0 0 auto; fill: none; stroke: #748399; stroke-width: 1.8; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; padding: 13px 0; }
.search-field input::placeholder { color: #8591a3; }
.primary-button, .secondary-button { border: 0; border-radius: 12px; font-weight: 800; transition: .18s ease; }
.primary-button { background: var(--blue); color: white; padding: 13px 20px; box-shadow: 0 8px 18px rgba(23,107,223,.2); }
.primary-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.secondary-button { padding: 11px 17px; background: var(--sky); color: var(--blue); }
.hero-proof { margin-top: 17px; display: flex; gap: 20px; color: #5b6f87; font-size: 13px; }
.hero-proof i { font-style: normal; color: var(--success); font-weight: 900; }
.hero-card { display: flex; justify-content: center; transform: rotate(1deg); position: relative; z-index: 2; }
.hero-card::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--orange); filter: blur(0); opacity: .22; z-index: -1; top: -40px; right: 12px; }
.mini-window { width: min(100%, 415px); background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.8); border-radius: 24px; padding: 0 22px 24px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.mini-window-top { height: 43px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #edf1f5; }
.mini-window-top span { width: 7px; height: 7px; background: #c7d3e2; border-radius: 50%; }
.mini-profile { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 25px 2px; }
.mini-avatar { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--navy); color: white; font-weight: 800; }
.mini-profile b, .mini-profile small, .mini-match b, .mini-match small { display: block; }
.mini-profile b, .mini-match b { color: var(--navy); }
.mini-profile small, .mini-match small { color: var(--muted); font-size: 11px; }
.mini-status { color: var(--success); background: #e8f8f2; padding: 5px 8px; border-radius: 8px; font-size: 10px; font-weight: 800; }
.mini-match { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 15px; margin-top: 10px; background: white; }
.match-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--sky); }
.mini-match strong { color: var(--blue); font-size: 13px; }

.opportunities { max-width: 1180px; margin: 0 auto; padding: 88px 28px 72px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.section-heading h2, .how-it-works h2 { font-size: clamp(30px, 4vw, 43px); margin: 7px 0 5px; }
.section-heading p { color: var(--muted); margin: 0; }
.saved-filter { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; border: 1px solid var(--line); background: white; color: var(--navy); padding: 11px 14px; border-radius: 12px; font-weight: 700; }
.saved-filter svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.saved-filter span { background: var(--wash); min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; }
.saved-filter[aria-pressed="true"] { color: #ad3f59; border-color: #f2bbc8; background: #fff5f7; }
.filters { margin: 34px 0 28px; padding: 16px; background: var(--wash); border: 1px solid #e9eef5; border-radius: 18px; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: end; }
.filters label span, .form-grid label > span { display: block; color: #4a5a6f; font-size: 12px; font-weight: 700; margin: 0 0 6px 2px; }
select, .form-grid input, .form-grid textarea { width: 100%; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 11px; outline: none; }
select { appearance: none; padding: 11px 36px 11px 12px; background-image: linear-gradient(45deg, transparent 50%, #738197 50%), linear-gradient(135deg, #738197 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select:focus, .form-grid input:focus, .form-grid textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,107,223,.1); }
.clear-button { border: 0; background: transparent; color: var(--blue); font-weight: 700; padding: 11px; white-space: nowrap; }
.ad-slot { position: relative; min-height: 96px; margin: 0 0 28px; border: 1px dashed #b7c7da; border-radius: 16px; display: grid; place-items: center; text-align: center; color: #66758a; background: repeating-linear-gradient(-45deg, #f8fafc, #f8fafc 10px, #f3f6fa 10px, #f3f6fa 20px); }
.ad-slot div { padding: 20px; }
.ad-slot strong, .ad-slot small { display: block; }
.ad-slot strong { color: #54657a; font-size: 14px; }
.ad-slot small { margin-top: 2px; font-size: 11px; }
.ad-label { position: absolute; top: 7px; left: 10px; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8795a7; }
.ad-slot-footer { margin: 28px 0 0; min-height: 118px; }
.jobs-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.job-card { position: relative; border: 1px solid var(--line); background: white; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; min-height: 316px; transition: .2s ease; }
.job-card:hover { transform: translateY(-3px); border-color: #b8d2f4; box-shadow: 0 15px 36px rgba(24,58,94,.1); }
.job-card-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.company-logo { width: 47px; height: 47px; border-radius: 14px; display: grid; place-items: center; color: var(--navy); background: var(--logo-color, var(--sky)); font-weight: 900; font-size: 13px; }
.save-button { width: 38px; height: 38px; border: 0; border-radius: 11px; background: var(--wash); display: grid; place-items: center; color: #6e7f94; }
.save-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.save-button.saved { color: #c64b65; background: #fff0f3; }
.save-button.saved svg { fill: currentColor; }
.job-card h3 { font-size: 19px; line-height: 1.25; margin: 18px 0 4px; }
.company { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.job-meta span { color: #4e6178; background: var(--wash); border-radius: 8px; padding: 5px 8px; font-size: 11px; font-weight: 600; }
.job-card-footer { margin-top: auto; border-top: 1px solid #edf1f5; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.job-card-footer small { color: var(--muted); }
.text-button { border: 0; background: transparent; color: var(--blue); font-weight: 800; padding: 6px 0; }
.load-more-wrap { display: flex; justify-content: center; margin: 28px 0 0; }
.load-more-wrap[hidden] { display: none; }
.empty-state { text-align: center; padding: 65px 20px; background: var(--wash); border-radius: 18px; }
.empty-state > span { font-size: 45px; color: var(--blue); }
.empty-state h3 { margin: 8px 0 5px; font-size: 23px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }
.trust-note { margin-top: 25px; display: flex; gap: 13px; align-items: start; padding: 17px 20px; border-radius: 14px; background: #fff9f2; border: 1px solid #ffe0bb; }
.trust-note strong { color: #68451d; }
.trust-note p { margin: 2px 0 0; color: #7d674e; font-size: 13px; }

.results-page { background: var(--wash); }
.results-page .site-header { max-width: none; padding-left: max(28px, calc((100vw - 1124px) / 2)); padding-right: max(28px, calc((100vw - 1124px) / 2)); }
.results-hero { color: white; background: linear-gradient(115deg, var(--navy), #164b82); padding: 56px max(28px, calc((100vw - 1124px) / 2)) 63px; }
.results-hero-inner { max-width: 880px; }
.results-hero .eyebrow { color: #8bc4ff; }
.results-hero h1 { color: white; font-size: clamp(35px, 5vw, 52px); margin: 10px 0 25px; }
.back-link { display: inline-block; color: #b8d5f4; font-size: 13px; font-weight: 700; margin-bottom: 28px; }
.results-search { max-width: 850px; margin: 0; }
.results-content { max-width: 1180px; margin: 0 auto; padding: 62px 28px 72px; }
.compact-heading { align-items: center; }
.results-filters { margin-top: 27px; }
.result-job-card { min-height: 355px; }
.result-sources { margin-top: auto; border-top: 1px solid #edf1f5; padding-top: 14px; display: grid; grid-template-columns: 1fr; gap: 6px; }
.result-sources a { display: flex; align-items: center; justify-content: space-between; color: var(--blue); background: var(--wash); border-radius: 9px; padding: 8px 10px; font-size: 12px; font-weight: 800; }
.result-sources a:hover { background: var(--sky); }

.how-it-works { background: var(--navy); color: white; padding: 64px max(28px, calc((100vw - 1124px) / 2)); display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: center; }
.how-it-works h2 { color: white; margin-bottom: 0; }
.how-it-works .eyebrow { color: #70b3ff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { display: flex; gap: 12px; }
.steps li > span { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #8dc3ff; font-weight: 800; }
.steps strong { display: block; margin: 3px 0 3px; }
.steps p { color: #afc1d5; margin: 0; font-size: 13px; line-height: 1.45; }

footer { max-width: 1180px; margin: 0 auto; padding: 42px 28px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 25px; }
.footer-copy { text-align: right; }
footer p, footer small { margin: 0; color: var(--muted); }
footer small { font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; margin-top: 9px; }
.footer-links a { color: var(--blue); font-size: 12px; font-weight: 700; }

.modal-shell, .drawer-shell { position: fixed; inset: 0; z-index: 100; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,20,38,.62); backdrop-filter: blur(4px); }
.modal { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(calc(100% - 32px), 650px); max-height: calc(100vh - 32px); overflow-y: auto; background: white; border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.icon-button { width: 38px; height: 38px; border: 0; border-radius: 11px; background: var(--wash); color: var(--navy); font-size: 25px; line-height: 1; }
.close-button { position: absolute; top: 19px; right: 19px; }
.modal-company { display: flex; align-items: center; gap: 12px; margin-bottom: 23px; }
.modal h2 { font-size: 30px; margin: 0 45px 5px 0; }
.modal .job-meta { margin-top: 14px; }
.job-description { color: #4f6074; }
.detail-title { margin: 23px 0 8px; font-size: 15px; letter-spacing: 0; }
.requirements { margin: 0 0 25px; padding-left: 20px; color: #4f6074; }
.requirements li { margin: 6px 0; }
.source-title { margin-top: 25px; }
.source-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 0 0 24px; }
.source-link { border: 1px solid var(--line); border-radius: 11px; padding: 10px 8px; color: var(--blue); background: white; text-align: center; font-size: 12px; font-weight: 800; }
.source-link:hover { border-color: #9fc2ef; background: var(--sky); }
.full-button { width: 100%; }
.apply-job-name { padding: 10px 12px; border-radius: 10px; color: #345172; background: var(--sky); margin: -3px 0 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .full-width { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea { padding: 11px 12px; resize: vertical; }
.form-grid em { color: #8b98a8; font-weight: 400; }
.privacy-note { display: flex; gap: 7px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.drawer { position: absolute; top: 0; right: 0; width: min(100%, 470px); height: 100%; overflow-y: auto; background: white; box-shadow: -20px 0 50px rgba(6,24,45,.2); padding: 28px; animation: slideIn .22s ease; }
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.drawer-header h2 { margin: 5px 0 0; }
.application-item { border: 1px solid var(--line); border-radius: 15px; padding: 16px; margin-top: 15px; }
.application-item h3 { font-size: 16px; margin: 0 0 3px; }
.application-item p { color: var(--muted); font-size: 13px; margin: 0 0 13px; }
.application-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.status-pill { color: var(--success); background: #e8f8f2; padding: 5px 8px; border-radius: 8px; font-size: 11px; font-weight: 800; }
.delete-button { border: 0; background: transparent; color: #a2465a; font-size: 12px; font-weight: 700; padding: 5px; }
.drawer-empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.drawer-empty span { font-size: 42px; }
.drawer-empty h3 { color: var(--navy); margin: 11px 0 5px; }
.drawer-empty p { margin: 0; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--navy); color: white; border-radius: 12px; padding: 12px 17px; font-weight: 700; box-shadow: var(--shadow); transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.modal-open { overflow: hidden; }

.info-page { background: var(--wash); }
.info-page .site-header { max-width: none; padding-left: max(28px, calc((100vw - 900px) / 2)); padding-right: max(28px, calc((100vw - 900px) / 2)); }
.info-main { max-width: 900px; margin: 0 auto; padding: 64px 28px 80px; }
.info-card { background: white; border: 1px solid var(--line); border-radius: 22px; padding: clamp(25px, 5vw, 48px); box-shadow: 0 18px 50px rgba(18,53,89,.08); }
.info-card h1 { font-size: clamp(34px, 5vw, 50px); margin: 9px 0 16px; }
.info-card h2 { font-size: 22px; margin: 34px 0 10px; letter-spacing: -.02em; }
.info-card p, .info-card li { color: #4f6074; }
.info-card ul { padding-left: 22px; }
.info-card li { margin: 8px 0; }
.info-card a { color: var(--blue); font-weight: 700; }
.info-intro { font-size: 18px; }
.info-updated { display: inline-block; margin-top: 28px; color: var(--muted); font-size: 12px; }
.info-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 67px; padding-bottom: 67px; }
  .hero-content { text-align: center; }
  .hero-content > p { margin-left: auto; margin-right: auto; }
  .hero-search { margin: 0 auto; }
  .hero-proof { justify-content: center; }
  .hero-card { display: none; }
  .jobs-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .how-it-works { grid-template-columns: 1fr; gap: 35px; text-align: center; }
  .steps { text-align: left; }
}

@media (max-width: 680px) {
  .site-header { height: 67px; padding: 0 18px; }
  .desktop-nav { display: none; }
  .mobile-apps-button { display: block; }
  .mobile-back-button { display: grid; }
  .hero { padding: 52px 18px 55px; }
  .hero h1 { font-size: 42px; }
  .hero-content > p { font-size: 16px; }
  .hero-search { grid-template-columns: 1fr; gap: 3px; padding: 8px; }
  .search-field + .search-field { border-left: 0; border-top: 1px solid var(--line); }
  .hero-search .primary-button { margin-top: 3px; }
  .hero-proof { flex-direction: column; gap: 4px; }
  .opportunities { padding: 66px 18px 55px; }
  .section-heading { align-items: start; flex-direction: column; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters label:first-child { grid-column: 1 / -1; }
  .clear-button { grid-column: 1 / -1; }
  .jobs-grid { grid-template-columns: 1fr; }
  .how-it-works { padding: 54px 18px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-self: center; margin-bottom: 11px; }
  .footer-copy { text-align: center; }
  .footer-links { justify-content: center; }
  .source-links { grid-template-columns: 1fr; }
  .results-hero { padding: 39px 18px 48px; }
  .results-hero h1 { font-size: 37px; }
  .results-search { margin: 0; }
  .results-content { padding: 52px 18px 58px; }
  .modal { width: 100%; max-height: 92vh; top: auto; bottom: 0; transform: translateX(-50%); border-radius: 22px 22px 0 0; padding: 27px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full-width { grid-column: auto; }
  .drawer { padding: 23px 18px; }
  .info-main { padding: 42px 18px 58px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
