/* ── CSS VARIABLES ── */
:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #18181f;
  --surface: #1e1e28;
  --surface2: #252530;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --accent: #6c63ff;
  --accent2: #a78bfa;
  --accent3: #38bdf8;
  --gold: #f59e0b;
  --text: #f0f0f8;
  --text2: #9090a8;
  --text3: #5a5a72;
  --green: #10b981;
  --coral: #f87171;
  --pink: #ec4899;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.nav-stats {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-stat { font-size: 12px; color: var(--text2); }
.nav-stat span { color: var(--accent2); font-weight: 600; }

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 40px 60px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid rgba(108,99,255,0.3);
  background: rgba(108,99,255,0.08);
  padding: 5px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent2) 0%, var(--accent3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 17px;
  color: var(--text2);
  max-width: 520px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.7;
}

/* ── SEARCH ── */
.search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto 20px;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 17px;
  pointer-events: none;
}

#searchInput {
  width: 100%;
  padding: 16px 20px 16px 50px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border2);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#searchInput::placeholder { color: var(--text3); }
#searchInput:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}

/* ── CATEGORY PILLS ── */
.cat-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 40px;
  scrollbar-width: none;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.cat-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}

.cat-pill:hover {
  border-color: var(--border2);
  color: var(--text);
  background: var(--surface2);
}

.cat-pill.active {
  background: rgba(108,99,255,0.2);
  border-color: var(--accent);
  color: var(--accent2);
}

.cat-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── MAIN LAYOUT ── */
main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px 80px;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.results-count { font-size: 13px; color: var(--text3); }
.results-count strong { color: var(--text2); }

/* ── CAREER GRID ── */
.careers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.career-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.career-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.07), rgba(56,189,248,0.04));
  opacity: 0;
  transition: opacity 0.2s;
}

.career-card:hover {
  transform: translateY(-2px);
  border-color: rgba(108,99,255,0.4);
  box-shadow: 0 8px 32px rgba(108,99,255,0.15);
}

.career-card:hover::before { opacity: 1; }

.career-card .cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.career-card .name {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
}

.career-card .cat-label {
  font-size: 11px;
  color: var(--text3);
  font-weight: 400;
}

.career-card .arrow {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-size: 12px;
  color: var(--text3);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s;
}

.career-card:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── EMPTY STATE ── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
}

.empty-state .e-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  width: 100%;
  max-width: 660px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-top {
  padding: 28px 28px 20px;
  position: sticky;
  top: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  z-index: 2;
}

.modal-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
  background: rgba(108,99,255,0.15);
  color: var(--accent2);
  border: 1px solid rgba(108,99,255,0.25);
}

.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.modal-close {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 16px;
  color: var(--text2);
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
  background: var(--surface2);
  color: var(--text);
}

.modal-body { padding: 24px 28px 28px; }

/* ── ROADMAP LOADING ── */
.roadmap-loading {
  text-align: center;
  padding: 48px 20px;
  color: var(--text3);
}

.loader {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-bottom: 14px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text { font-size: 14px; color: var(--text3); }

/* ── ROADMAP STEPS ── */
.rm-step {
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.rm-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.rm-step-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  flex-shrink: 0;
}

.rm-step-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.rm-step-body { padding: 14px 18px; }
.rm-step-body ul { list-style: none; }

.rm-step-body li {
  font-size: 14px;
  color: var(--text2);
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.rm-step-body li:last-child { border-bottom: none; }

.rm-step-body li::before {
  content: '→';
  color: var(--accent);
  font-size: 12px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--text3);
  font-size: 13px;
}

footer a { color: var(--accent2); text-decoration: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 99px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 12px 20px; }
  .hero { padding: 50px 20px 40px; }
  main { padding: 24px 20px 60px; }
  .cat-scroll { padding: 0 20px; }
  .careers-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .modal-top { padding: 20px 20px 16px; }
  .modal-body { padding: 16px 20px 20px; }
  .modal-title { font-size: 20px; }
}
