/* ── Landing ── */
.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s20) var(--s40);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: rgba(12,14,20,0.9);
  backdrop-filter: blur(12px);
  z-index: 50;
}
.landing-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s80) var(--s24) var(--s64);
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 100%);
  opacity: 0.4;
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s8);
  padding: var(--s6) var(--s16);
  background: var(--accent-soft);
  border: 1px solid var(--accent-glow);
  border-radius: var(--r-full);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--s24);
  position: relative;
}
.hero-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--s24);
  position: relative;
}
.hero-title .accent-line { color: var(--accent); display: block; }
.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: var(--s40);
  position: relative;
}
.hero-actions {
  display: flex;
  gap: var(--s12);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--s64);
  position: relative;
}
.hero-stats {
  display: flex;
  gap: var(--s40);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}
.hero-stat-label { font-size: 13px; color: var(--text-muted); }

.landing-features {
  padding: var(--s64) var(--s40);
  border-top: 1px solid var(--border-subtle);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s24);
  max-width: 960px;
  margin: var(--s40) auto 0;
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r16);
  padding: var(--s28);
  transition: border-color var(--t-base);
}
.feature-card:hover { border-color: var(--accent); }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--accent-soft);
  border-radius: var(--r12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--s20);
}
.feature-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: var(--s8);
}
.feature-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── Auth pages ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s24);
  background: var(--bg-base);
  position: relative;
}
.auth-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.25;
  pointer-events: none;
}
.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r24);
  padding: var(--s40);
  width: 100%;
  max-width: 440px;
  position: relative;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: var(--s10);
  margin-bottom: var(--s32);
}
.auth-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: var(--s8);
}
.auth-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: var(--s32);
}
.auth-form { display: flex; flex-direction: column; gap: var(--s20); }
.auth-footer {
  text-align: center;
  margin-top: var(--s24);
  font-size: 14px;
  color: var(--text-secondary);
}
.auth-footer a { color: var(--accent); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Onboarding ── */
.onboarding-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s24);
  background: var(--bg-base);
}
.onboarding-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r24);
  padding: var(--s48) var(--s40);
  width: 100%;
  max-width: 560px;
}
.onboarding-header {
  text-align: center;
  margin-bottom: var(--s40);
}
.onboarding-step-label {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--s12);
}
.onboarding-title { font-size: 26px; font-weight: 800; margin-bottom: var(--s8); }
.onboarding-desc { color: var(--text-secondary); font-size: 14px; }

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s12);
  margin: var(--s24) 0;
}
.option-card {
  border: 2px solid var(--border);
  border-radius: var(--r12);
  padding: var(--s16) var(--s20);
  cursor: pointer;
  transition: all var(--t-fast);
  background: var(--bg-elevated);
  text-align: left;
}
.option-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.option-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.option-card-icon {
  width: 36px; height: 36px;
  background: var(--bg-highlight);
  border-radius: var(--r8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s10);
  color: var(--text-secondary);
  transition: all var(--t-fast);
}
.option-card.selected .option-card-icon { background: var(--accent); color: #0c0e14; }
.option-card-label { font-size: 14px; font-weight: 600; font-family: var(--font-display); }
.option-card-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.salary-range {
  display: flex;
  align-items: center;
  gap: var(--s12);
  margin: var(--s16) 0;
}
.salary-range .form-input { text-align: center; }
.range-sep { color: var(--text-muted); font-size: 14px; white-space: nowrap; }

/* ── Home / Discover ── */
.home-topbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--s20) var(--s32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s16);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-greeting {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.topbar-right { display: flex; align-items: center; gap: var(--s12); }
.search-bar-mini {
  display: flex;
  align-items: center;
  gap: var(--s10);
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--r8);
  padding: 0 var(--s16);
  height: 40px;
  cursor: pointer;
  transition: border-color var(--t-fast);
  min-width: 200px;
}
.search-bar-mini:hover { border-color: var(--accent); }
.search-bar-mini span { color: var(--text-muted); font-size: 14px; }

/* ── Search page ── */
.search-bar-full {
  display: flex;
  gap: var(--s12);
  margin-bottom: var(--s24);
  flex-wrap: wrap;
}
.search-input-wrap {
  flex: 1;
  min-width: 240px;
  position: relative;
}
.search-input-wrap .form-input { padding-left: 44px; font-size: 16px; }
.search-input-wrap .search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filters-bar {
  display: flex;
  align-items: center;
  gap: var(--s12);
  padding: var(--s16) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--s24);
  overflow-x: auto;
  scrollbar-width: none;
}
.filters-bar::-webkit-scrollbar { display: none; }
.filter-label {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Job detail ── */
.job-detail-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r16);
  padding: var(--s32);
  margin-bottom: var(--s24);
}
.job-detail-top {
  display: flex;
  align-items: flex-start;
  gap: var(--s20);
  margin-bottom: var(--s24);
}
.company-logo-lg {
  width: 64px; height: 64px;
  border-radius: var(--r12);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  flex-shrink: 0;
}
.job-detail-title { font-size: 26px; font-weight: 800; margin-bottom: var(--s8); }
.job-detail-company { font-size: 16px; color: var(--text-secondary); margin-bottom: var(--s16); }
.job-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s12);
  margin-bottom: var(--s24);
}
.meta-item {
  display: flex;
  align-items: center;
  gap: var(--s6);
  font-size: 14px;
  color: var(--text-secondary);
}
.meta-item svg { color: var(--text-muted); flex-shrink: 0; }
.job-detail-actions {
  display: flex;
  gap: var(--s12);
  flex-wrap: wrap;
}

.job-detail-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r16);
  padding: var(--s28);
  margin-bottom: var(--s16);
}
.job-detail-section h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: var(--s16);
}
.job-detail-section p,
.job-detail-section li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}
.job-detail-section ul {
  padding-left: var(--s20);
  display: flex;
  flex-direction: column;
  gap: var(--s6);
}
.job-detail-section ul li { list-style: disc; }
.job-detail-section ul li::marker { color: var(--accent); }

/* ── Apply page ── */
.apply-progress {
  margin-bottom: var(--s32);
}
.apply-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--s12);
}
.apply-step {
  display: flex;
  align-items: center;
  gap: var(--s8);
  flex: 1;
}
.apply-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display);
  border: 2px solid var(--border);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--t-base);
}
.apply-step.active .apply-step-num {
  border-color: var(--accent);
  background: var(--accent);
  color: #0c0e14;
}
.apply-step.done .apply-step-num {
  border-color: var(--green);
  background: var(--green);
  color: white;
}
.apply-step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: none;
}
.apply-step.active .apply-step-label { color: var(--accent); }
.apply-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 var(--s8);
}
.apply-step.done + .apply-step .apply-step-line,
.apply-step.done .apply-step-line { background: var(--green); }

.apply-form-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r16);
  padding: var(--s28);
  margin-bottom: var(--s16);
}
.apply-form-section h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: var(--s24);
  padding-bottom: var(--s16);
  border-bottom: 1px solid var(--border-subtle);
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r12);
  padding: var(--s40) var(--s24);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-fast);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.upload-icon { color: var(--text-muted); margin: 0 auto var(--s12); }
.upload-text { font-size: 14px; font-weight: 600; margin-bottom: var(--s4); }
.upload-hint { font-size: 12px; color: var(--text-muted); }

/* ── Applications tracker ── */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s16);
  overflow-x: auto;
}
.kanban-col {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r12);
  padding: var(--s16);
  min-width: 200px;
}
.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s12);
}
.kanban-col-title {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kanban-count {
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--r-full);
}
.kanban-cards { display: flex; flex-direction: column; gap: var(--s10); }
.kanban-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r8);
  padding: var(--s12) var(--s14);
  cursor: pointer;
  transition: all var(--t-fast);
}
.kanban-card:hover { border-color: var(--border); transform: translateY(-1px); }
.kanban-card-title { font-size: 13px; font-weight: 600; margin-bottom: var(--s4); }
.kanban-card-company { font-size: 12px; color: var(--text-muted); }
.kanban-card-date { font-size: 11px; color: var(--text-muted); margin-top: var(--s8); }

/* ── Profile ── */
.profile-cover {
  height: 160px;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-highlight) 100%);
  border-radius: var(--r16) var(--r16) 0 0;
  position: relative;
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  overflow: hidden;
}
.profile-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
}
.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 var(--r16) var(--r16);
  padding: 0 var(--s32) var(--s32);
  margin-bottom: var(--s24);
}
.profile-avatar-wrap {
  transform: translateY(-40px);
  margin-bottom: -24px;
  display: flex;
  align-items: flex-end;
  gap: var(--s16);
}
.profile-avatar-ring {
  border: 4px solid var(--bg-surface);
  border-radius: 50%;
}
.profile-name { font-size: 24px; font-weight: 800; }
.profile-headline { font-size: 15px; color: var(--text-secondary); margin-top: var(--s4); }

/* ── Responsive adjustments ── */
@media (max-width: 900px) {
  .landing-nav { padding: var(--s16) var(--s20); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .landing-features { padding: var(--s40) var(--s20); }
  .kanban-board { grid-template-columns: repeat(3, minmax(200px, 1fr)); }
  .home-topbar { padding: var(--s16) var(--s16); }
  .search-bar-mini { min-width: 140px; }
}
@media (max-width: 540px) {
  .auth-card { padding: var(--s28) var(--s20); }
  .onboarding-card { padding: var(--s32) var(--s20); }
  .option-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .kanban-board { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { gap: var(--s24); }
  .apply-step-label { display: none; }
}
