/* Job Finder — landing page (home.css) */

:root {
  --bg:            #fafaf9;
  --bg-subtle:     #f4f4f3;
  --surface:       #ffffff;
  --border:        #e7e5e4;
  --border-strong: #d6d3d1;
  --fg:            #1c1917;
  --fg-muted:      #57534e;
  --fg-subtle:     #78716c;
  --primary:       #4f46e5;
  --primary-fg:    #ffffff;
  --primary-soft:  #eef2ff;
  --accent:        #7c3aed;
  --ring:          rgba(79, 70, 229, 0.35);
  --shadow-sm:     0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow:        0 4px 14px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg:     0 24px 48px -16px rgba(79, 70, 229, 0.18), 0 8px 20px rgba(15, 23, 42, 0.06);
  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     24px;
  --radius-pill:   999px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

/* ============================ Top navigation ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 249, 0.72);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(231, 229, 228, 0.6);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: inline-grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 6px 14px -4px var(--ring);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--fg);
  color: white;
  font-weight: 600;
  font-size: 14px;
  transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease;
  border: 1px solid var(--fg);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(28, 25, 23, 0.45);
  background: #0f0d0c;
}
.nav-cta svg { width: 14px; height: 14px; }

/* ============================== Hero ============================== */
.hero {
  position: relative;
  padding: 42px 24px 32px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 360px at 50% -120px, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(700px 320px at 80% 60%, rgba(79, 70, 229, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease, color 150ms ease;
}
.hero-pill:hover { border-color: var(--border-strong); color: var(--fg); }
.hero-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.hero h1 {
  margin: 22px auto 16px;
  font-size: clamp(25px, 4.1vw, 45px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--fg);
  max-width: 14ch;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin: 0 auto;
  font-size: clamp(11px, 1.1vw, 12px);
  color: var(--fg-muted);
  max-width: 56ch;
}

/* ========================== Search component ========================== */
.search-wrap {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: -10px auto 0;
  padding: 0 24px;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  transition: box-shadow 200ms ease, border-color 150ms ease, transform 120ms ease;
}
.search:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), 0 0 0 4px var(--ring);
}
.search .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--fg-subtle);
}
.search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--fg);
  padding: 8px 0;
  min-width: 0;
}
.search input::placeholder { color: transparent; }
.search .overlay {
  position: absolute;
  left: 50px;
  right: 110px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  overflow: hidden;
  white-space: nowrap;
  color: var(--fg-subtle);
  font-size: 15px;
}
.search .overlay .reveal {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
}
.search .cursor {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 3px;
  background: var(--fg-subtle);
  vertical-align: middle;
}
.search-go {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 200ms ease, filter 150ms ease;
  box-shadow: 0 6px 16px -6px var(--ring);
}
.search-go:hover { transform: translateY(-1px); filter: brightness(1.05); }
.search-go:active { transform: translateY(0); }
.search-go svg { width: 14px; height: 14px; }

/* ========================== Job offers section ========================== */
.jobs {
  position: relative;
  padding: 56px 24px 96px;
}
.jobs-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
}
.jobs-head .eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.jobs-head h2 {
  margin: 8px 0 6px;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.jobs-head p { margin: 0; color: var(--fg-muted); }

.jobs-columns {
  display: flex;
  justify-content: center;
  gap: 22px;
  max-height: 740px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 14%, black 86%, transparent);
          mask-image: linear-gradient(to bottom, transparent, black 14%, black 86%, transparent);
}
.jobs-col {
  width: min(100%, 320px);
  flex: 0 0 auto;
}
.jobs-col.md { display: none; }
.jobs-col.lg { display: none; }
@media (min-width: 768px)  { .jobs-col.md { display: block; } }
@media (min-width: 1024px) { .jobs-col.lg { display: block; } }

.jobs-track {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 22px;
}

.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.job-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.job-card .title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--fg);
  margin: 0 0 4px;
}
.job-card .company {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.job-card .company .dot-sep { color: var(--fg-subtle); }
.job-card .desc {
  margin: 12px 0 14px;
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 12px;
}
.job-card .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  font-weight: 500;
  white-space: nowrap;
}
.job-card .chip.location {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.18);
}
.job-card .chip.salary { font-weight: 600; color: var(--fg); }
.job-card .chip svg { width: 12px; height: 12px; }

.job-card.skeleton {
  background: linear-gradient(110deg, var(--surface) 30%, var(--bg-subtle) 50%, var(--surface) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-color: var(--border);
}
.job-card.skeleton .sk { background: var(--bg-subtle); border-radius: 6px; }
.job-card.skeleton .sk.line { height: 12px; margin-bottom: 8px; }
.job-card.skeleton .sk.line.w70 { width: 70%; }
.job-card.skeleton .sk.line.w90 { width: 90%; }
.job-card.skeleton .sk.line.w40 { width: 40%; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================= Footer ============================= */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 28px 24px;
  text-align: center;
  color: var(--fg-subtle);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .jobs-track,
  .search .reveal,
  .cursor { animation: none !important; }
}
