:root {
  --bg: #0F0F0E;
  --bg-alt: #161614;
  --surface: #1E1E1B;
  --accent: #E8A317;
  --accent-dim: #C48710;
  --text: #F5F5F0;
  --text-muted: #9CA3AF;
  --border: #2A2A26;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Work Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.navbar-tagline {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  padding: 80px 48px 72px;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 480px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}

.card-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card-stat {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.card-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Stats band */
.stats-band {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 36px 48px;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* Sections shared */
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 48px;
}

/* Features */
.features {
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.feature-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Markets */
.markets {
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.markets-header {
  max-width: 1200px;
  margin: 0 auto 40px;
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.market-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.market-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.market-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.market-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(232, 163, 23, 0.12);
  padding: 4px 10px;
  border-radius: 20px;
}

.market-detail {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Trades */
.trades {
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
}

.trades-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.trades-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
}

.trade-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.trade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.trade-row:first-child {
  border-top: 1px solid var(--border);
}

.trade-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(232, 163, 23, 0.12);
  padding: 3px 10px;
  border-radius: 20px;
}

/* Closing */
.closing {
  padding: 96px 48px;
  background: var(--bg);
  text-align: center;
}

.closing-inner {
  max-width: 720px;
  margin: 0 auto;
}

.closing-text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
}

.closing-meta {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.closing-note {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Navbar actions */
.navbar-actions { display: flex; align-items: center; gap: 16px; }
.navbar-brand { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #0F0F0E;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-dim); }

/* Footer */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 32px 48px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 14px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-headline { font-size: 40px; }
}

@media (max-width: 768px) {
  .navbar { padding: 16px 24px; }
  .hero { padding: 56px 24px 48px; }
  .hero-headline { font-size: 32px; }
  .stats-band { padding: 28px 24px; }
  .stats-inner { flex-wrap: wrap; gap: 24px; }
  .stat-divider { display: none; }
  .stat-number { font-size: 28px; }
  .features { padding: 56px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .markets { padding: 56px 24px; }
  .markets-grid { grid-template-columns: 1fr; }
  .trades { padding: 56px 24px; }
  .trades-inner { grid-template-columns: 1fr; gap: 40px; }
  .section-title { font-size: 28px; }
  .closing { padding: 64px 24px; }
  .closing-text { font-size: 22px; }
  .footer { padding: 24px; }
  .footer-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
  .markets-header { margin-bottom: 28px; }
}

/* === Job Board === */
.jobs-page { min-height: calc(100vh - 69px); }

.jobs-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 48px;
}
.jobs-header-inner { max-width: 1200px; margin: 0 auto; }

.jobs-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 8px;
}
.jobs-subtitle { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; }

.search-form { width: 100%; }
.search-row { display: flex; gap: 12px; margin-bottom: 16px; }
.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--accent); }

.btn-search {
  padding: 12px 24px;
  background: var(--accent);
  color: #0F0F0E;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-body);
  transition: background 0.15s;
}
.btn-search:hover { background: var(--accent-dim); }

.filter-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filter-select {
  padding: 9px 32px 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.15s;
}
.filter-select:focus { border-color: var(--accent); }

.btn-clear {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 8px;
  transition: color 0.15s;
}
.btn-clear:hover { color: var(--text); }
.btn-clear.hidden { visibility: hidden; }

/* Results */
.jobs-results { padding: 40px 48px; }
.results-inner { max-width: 1200px; margin: 0 auto; }
.results-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

.job-list { display: flex; flex-direction: column; gap: 16px; }

.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.15s;
}
.job-card:hover { border-color: var(--accent-dim); }
.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.job-card-title-wrap { flex: 1; }
.job-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}
.job-title-link { color: inherit; text-decoration: none; }
.job-title-link:hover { color: var(--accent); }
.job-company { font-size: 14px; color: var(--text-muted); }
.job-card-meta { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge-trade { background: rgba(232,163,23,0.12); color: var(--accent); }
.badge-market { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }
.badge-source { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }

.job-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}
.job-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.job-detail svg { color: var(--text-muted); flex-shrink: 0; }
.salary-text { color: var(--accent); font-weight: 500; }
.source-tag { font-style: italic; }

.job-card-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }

.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.job-posted { font-size: 12px; color: var(--text-muted); }
.btn-apply {
  background: var(--accent);
  color: #0F0F0E;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-apply:hover { background: var(--accent-dim); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.empty-icon { color: var(--text-muted); margin-bottom: 16px; }
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.empty-state p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

/* Pagination */
.pagination { display: flex; gap: 8px; align-items: center; margin-top: 32px; justify-content: center; }
.page-btn {
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}
.page-btn:hover { border-color: var(--accent); color: var(--text); }
.page-btn.active { background: var(--accent); color: #0F0F0E; border-color: var(--accent); }

/* Job Detail Page */
.job-detail-page { padding: 48px; }
.job-detail-inner { max-width: 800px; margin: 0 auto; }
.job-detail-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.back-link { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.back-link:hover { color: var(--accent); }
.job-detail-badges { display: flex; gap: 8px; }
.job-detail-title-block { margin-bottom: 28px; }
.job-detail-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 8px;
}
.job-detail-company { font-size: 18px; color: var(--text-muted); }
.job-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.meta-value { font-size: 16px; font-weight: 500; color: var(--text); }
.meta-value.salary { color: var(--accent); }
.job-detail-description { margin-bottom: 36px; }
.job-detail-description h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.job-detail-description p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.job-detail-apply { display: flex; flex-direction: column; gap: 12px; }
.btn-apply-large {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #0F0F0E;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-apply-large:hover { background: var(--accent-dim); }
.btn-back-jobs { display: block; text-align: center; color: var(--text-muted); font-size: 14px; text-decoration: none; transition: color 0.15s; }
.btn-back-jobs:hover { color: var(--text); }

/* 404 page */
.not-found-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.not-found-inner { text-align: center; }
.not-found-code {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 700;
  color: var(--border);
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}
.not-found-inner h1 { font-family: var(--font-display); font-size: 28px; color: var(--text); margin-bottom: 8px; }
.not-found-inner p { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; }
.btn-home {
  background: var(--accent);
  color: #0F0F0E;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
}

/* Job board responsive */
@media (max-width: 768px) {
  .jobs-header { padding: 32px 24px; }
  .jobs-results { padding: 24px; }
  .search-row { flex-direction: column; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .job-card-header { flex-direction: column; }
  .job-detail-meta-grid { grid-template-columns: 1fr; gap: 16px; }
  .job-detail-title { font-size: 24px; }
  .job-detail-page { padding: 24px; }
  .pagination { flex-wrap: wrap; }
}