:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef3ff;
  --text: #14213d;
  --muted: #637083;
  --primary: #1b6ef3;
  --primary-dark: #0d4db0;
  --secondary: #00a978;
  --accent: #ffb703;
  --border: #dfe7f3;
  --shadow: 0 20px 50px rgba(20, 33, 61, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 32px, var(--container)); margin: 0 auto; }
.section { padding: 86px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 231, 243, 0.78);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; font-size: 1.2rem; letter-spacing: -0.03em; }
.brand img { width: 38px; height: 38px; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: var(--muted); font-weight: 650; }
.nav-links a:hover { color: var(--primary); }
.nav-toggle { display: none; border: 0; background: var(--surface-2); border-radius: 12px; padding: 8px 12px; font-size: 1.3rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  border: 1px solid transparent;
  font-weight: 750;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 12px 24px rgba(27, 110, 243, 0.26); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--surface-2); color: var(--primary); border-color: #c9dbff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn.full { width: 100%; }

.hero {
  padding-top: 70px;
  background:
    radial-gradient(circle at top left, rgba(27, 110, 243, 0.15), transparent 35%),
    radial-gradient(circle at 70% 10%, rgba(0, 169, 120, 0.14), transparent 30%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: center; }
.eyebrow { margin: 0 0 10px; color: var(--primary); font-weight: 850; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.04em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.9rem); margin: 0 0 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 16px; }
h3 { font-size: 1.26rem; margin: 0 0 10px; }
.hero-text { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.search-panel {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  margin: 30px 0 24px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.search-panel label { display: flex; flex-direction: column; gap: 4px; padding: 4px 8px; }
.search-panel span, label { color: var(--muted); font-weight: 700; font-size: 0.86rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}
.search-panel input { border: 0; padding: 4px 0; border-radius: 0; }
input:focus, textarea:focus, select:focus { border-color: rgba(27, 110, 243, 0.55); box-shadow: 0 0 0 4px rgba(27, 110, 243, 0.11); }
.hero-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-stats div { background: rgba(255,255,255,0.72); border: 1px solid var(--border); padding: 14px 18px; border-radius: 18px; min-width: 130px; }
.hero-stats strong { display: block; font-size: 1.45rem; }
.hero-stats span { color: var(--muted); font-weight: 650; font-size: 0.9rem; }
.hero-card { position: relative; padding: 26px; background: linear-gradient(145deg, #ffffff, #eaf2ff); border: 1px solid var(--border); border-radius: 36px; min-height: 500px; display: grid; place-items: center; box-shadow: var(--shadow); overflow: hidden; }
.hero-card > img { width: min(88%, 460px); }
.floating-card { position: absolute; background: rgba(255,255,255,0.9); border: 1px solid var(--border); border-radius: 20px; padding: 14px 16px; box-shadow: 0 18px 38px rgba(20,33,61,.14); }
.floating-card span { color: var(--secondary); font-size: .75rem; font-weight: 900; }
.floating-card strong { display: block; }
.floating-card small { color: var(--muted); }
.card-one { left: 28px; top: 44px; }
.card-two { right: 20px; bottom: 56px; }

.section-heading { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.section-heading p { color: var(--muted); }
.split-heading { max-width: none; text-align: left; display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.category-grid, .steps-grid, .testimonial-grid, .pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card, .step-card, .testimonial, .price-card, .dash-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 28px rgba(20,33,61,.06);
}
.category-card { text-align: left; }
.category-card:hover { border-color: rgba(27,110,243,.35); transform: translateY(-2px); }
.category-card span { font-size: 2rem; display: block; margin-bottom: 12px; }
.category-card small, .step-card p, .testimonial span, .price-card p, .dash-card p { color: var(--muted); }

.jobs-section { background: #fff; }
.job-toolbar { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.jobs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 22px; align-items: start; }
.job-list { display: grid; gap: 14px; }
.job-card {
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  transition: transform .18s ease, border .18s ease, box-shadow .18s ease;
}
.job-card:hover, .job-card.active { transform: translateY(-2px); border-color: rgba(27,110,243,.4); box-shadow: 0 14px 32px rgba(20,33,61,.09); }
.company-logo { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: white; font-weight: 900; background: linear-gradient(145deg, var(--primary), var(--secondary)); }
.job-card h3 { margin-bottom: 4px; }
.job-meta, .tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: .92rem; }
.tag { background: var(--surface-2); color: var(--primary); padding: 5px 10px; border-radius: 999px; font-weight: 800; font-size: .78rem; }
.job-card-actions { display: flex; gap: 8px; align-items: center; }
.job-detail { position: sticky; top: 96px; min-height: 360px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: 0 14px 36px rgba(20,33,61,.08); }
.job-detail img { width: 180px; margin: 0 auto 12px; }
.empty-state { text-align: center; color: var(--muted); }
.detail-header { display: flex; gap: 14px; align-items: start; margin-bottom: 18px; }
.detail-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.detail-list li { padding: 10px 12px; background: var(--surface-2); border-radius: 14px; color: var(--muted); }
.detail-list strong { color: var(--text); }

.how { background: linear-gradient(180deg, #f6f8fc, #eef4ff); }
.step-card span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--primary); color: white; font-weight: 900; margin-bottom: 14px; }
.employer-grid, .contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 36px; align-items: center; }
.check-list { padding: 0; list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.check-list li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-weight: 650; }
.check-list li::before { content: "✓"; color: white; background: var(--secondary); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: .85rem; font-weight: 900; }
.post-form, .contact-form { padding: 26px; display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 7px; }

.dashboard { background: #fff; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dash-card h3 { margin-bottom: 12px; }
.dash-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.dash-list li { padding: 12px; border-radius: 14px; background: var(--surface-2); }

.testimonial-grid { grid-template-columns: repeat(3, 1fr); }
.testimonial img { width: 58px; height: 58px; border-radius: 50%; margin-bottom: 14px; }
.testimonial p { color: var(--text); font-size: 1.02rem; }
.testimonial strong { display: block; }

.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price-card { position: relative; }
.price-card.featured { border-color: rgba(27,110,243,.45); box-shadow: var(--shadow); transform: translateY(-8px); }
.price-card strong { font-size: 2.4rem; display: block; margin: 10px 0; letter-spacing: -0.04em; }
.price-card ul { margin: 20px 0; padding-left: 20px; color: var(--muted); }
.badge { position: absolute; top: 18px; right: 18px; background: var(--accent); color: var(--text); padding: 5px 10px; border-radius: 999px; font-weight: 900; font-size: .75rem; }

.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; }
summary { font-weight: 850; cursor: pointer; }
details p { color: var(--muted); }
.contact-info { display: grid; gap: 12px; margin-top: 22px; color: var(--muted); font-weight: 700; }

.site-footer { background: #0f1b33; color: #dbe7ff; padding: 58px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; }
.footer-brand { color: white; }
.footer-grid p { color: #9fb0c9; max-width: 360px; }
.footer-grid h4 { margin: 0 0 14px; color: white; }
.footer-grid a, .footer-link { display: block; color: #b8c7df; margin: 8px 0; background: transparent; border: 0; padding: 0; text-align: left; }
.footer-grid a:hover, .footer-link:hover { color: white; }
.copyright { margin-top: 34px; border-top: 1px solid rgba(255,255,255,.11); padding-top: 20px; color: #9fb0c9; font-size: .9rem; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(15, 27, 51, 0.55); padding: 20px; }
.modal.show { display: grid; }
.modal-content { width: min(100%, 520px); max-height: min(90vh, 760px); overflow: auto; background: var(--surface); border-radius: 26px; padding: 28px; position: relative; box-shadow: var(--shadow); }
.legal-content { width: min(100%, 760px); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-2); font-size: 1.25rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; background: var(--surface-2); padding: 6px; border-radius: 16px; }
.tab { border: 0; border-radius: 12px; padding: 10px; background: transparent; font-weight: 850; color: var(--muted); }
.tab.active { background: var(--surface); color: var(--primary); box-shadow: 0 8px 20px rgba(20,33,61,.08); }
#authForm, #applyForm { display: grid; gap: 14px; }
.small-note { color: var(--muted); font-size: .92rem; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 150; background: #10203d; color: white; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow); transform: translateY(30px); opacity: 0; pointer-events: none; transition: .22s ease; max-width: 360px; }
.toast.show { opacity: 1; transform: translateY(0); }
.no-results { text-align: center; padding: 44px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); background: var(--surface); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 76px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
  .nav-links.show { display: flex; }
  .hero-grid, .jobs-layout, .employer-grid, .contact-grid { grid-template-columns: 1fr; }
  .job-detail { position: static; }
  .category-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .testimonial-grid, .pricing-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-panel, .job-toolbar { grid-template-columns: 1fr; border-radius: 22px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 22px, var(--container)); }
  .section { padding: 58px 0; }
  .hero-card { min-height: 340px; }
  .floating-card { position: static; margin: 8px; width: calc(100% - 16px); }
  .hero-stats, .split-heading { flex-direction: column; align-items: stretch; }
  .category-grid, .steps-grid, .dashboard-grid, .testimonial-grid, .pricing-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .job-card { grid-template-columns: 48px 1fr; }
  .job-card-actions { grid-column: 1 / -1; }
}
