:root {
  --bg: #0a0a14;
  --surface: #111120;
  --surface-2: #18182a;
  --fg: #f0f0f8;
  --fg-muted: #8888a8;
  --accent: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.12);
  --accent-glow: rgba(0, 212, 255, 0.25);
  --border: #1e1e32;
  --text-secondary: #9a9ab8;
  --success: #00e5a0;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

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

/* ── Topbar ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.3px;
}
.tagline {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.3px;
}

/* ── Shared section setup ── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--fg);
  margin-bottom: 32px;
}

/* ── Hero ── */
.hero {
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,212,255,0.07) 0%, transparent 70%);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 48px;
  max-width: 420px;
}
.hero-stats {
  display: flex;
  gap: 40px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Pipeline Window ── */
.pipeline-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,212,255,0.08), 0 24px 48px rgba(0,0,0,0.5);
}
.pw-header {
  background: var(--surface-2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.pw-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.pw-dot.red { background: #ff5f57; }
.pw-dot.yellow { background: #febc2e; }
.pw-dot.green { background: #28c840; }
.pw-title {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--fg-muted);
  margin-left: 8px;
}
.pw-body { padding: 20px; }
.pw-step {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}
.pw-step:last-child { margin-bottom: 0; }
.pw-step-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  flex-shrink: 0;
  margin-top: 2px;
}
.pw-step-icon.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.pw-step-content { flex: 1; }
.pw-step-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
}
.pw-step-meta {
  font-size: 11px;
  color: var(--fg-muted);
  display: block;
  margin-top: 4px;
}
.pw-progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.pw-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Pipeline Section ── */
.pipeline { padding: 100px 0; }
.pipeline-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.pipe-step { flex: 1; }
.pipe-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}
.pipe-step h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.pipe-step p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}
.pipe-connector {
  display: flex;
  align-items: center;
  padding: 0 16px;
  padding-top: 32px;
}

/* ── Principles ── */
.principles { padding: 80px 0; background: var(--surface); }
.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.principle-card {
  background: var(--surface);
  padding: 40px;
}
.pc-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.principle-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.principle-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ── Outcomes ── */
.outcomes { padding: 100px 0; }
.outcomes-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.outcomes-copy p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.outcomes-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.big-stat {
  background: var(--surface);
  padding: 32px;
}
.big-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.big-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* ── Closing ── */
.closing {
  padding: 100px 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0,212,255,0.05) 0%, transparent 70%);
}
.closing-content { text-align: center; }
.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--fg);
  margin-bottom: 20px;
}
.closing p {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  display: block;
  margin-bottom: 6px;
}
.footer-desc {
  font-size: 13px;
  color: var(--fg-muted);
}
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.footer-meta span { font-size: 12px; color: var(--fg-muted); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
  margin-bottom: 32px;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-large { padding: 16px 40px; font-size: 16px; width: 100%; justify-content: center; }
.btn-nav {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 16px;
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 6px;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--accent-dim); }
.btn-nav-active { background: var(--accent-dim); }
.btn-ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--fg); border-color: var(--fg-muted); }

/* ── Spinner ── */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--bg);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── App Container ── */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px 60px;
  min-height: 100vh;
}
.app-section { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.app-header { margin-bottom: 40px; }
.app-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--fg);
  margin-bottom: 12px;
}
.app-subtitle {
  font-size: 16px;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.6;
}

/* ── Job Form ── */
.job-form { margin-bottom: 60px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.form-group-wide { grid-column: 1 / -1; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.required { color: var(--accent); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group select { cursor: pointer; }
.form-group select option { background: var(--surface); color: var(--fg); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-hint {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 6px;
}

/* ── Recent Jobs ── */
.recent-jobs { border-top: 1px solid var(--border); padding-top: 40px; }
.recent-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 20px;
}
.recent-job-card {
  display: block;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  text-decoration: none;
  transition: border-color 0.2s;
  cursor: pointer;
}
.recent-job-card:hover { border-color: var(--accent); }
.rj-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rj-stack {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.rj-status {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
}
.status-done { background: rgba(0,229,160,0.12); color: var(--success); }
.status-fail { background: rgba(255,95,87,0.12); color: #ff5f57; }
.status-pending { background: var(--accent-dim); color: var(--accent); }
.rj-meta { font-size: 13px; color: var(--fg-muted); }

/* ── Results Header ── */
.results-header { margin-bottom: 40px; }
.results-header .btn-ghost { margin-bottom: 24px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--fg-muted);
}
.tag-rate { color: var(--accent); border-color: rgba(0,212,255,0.3); }

/* ── Candidate Cards ── */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.candidate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.candidate-card:hover {
  border-color: rgba(0,212,255,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.cc-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.cc-rank {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cc-info { flex: 1; min-width: 0; }
.cc-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}
.cc-title { font-size: 13px; color: var(--fg-muted); }
.cc-score {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.cc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.cc-summary {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.cc-bars { margin-bottom: 16px; }
.cc-bar { margin-bottom: 10px; }
.cc-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.cc-bar-track {
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}
.cc-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.6s ease;
}
.cc-bar-fill-green { background: var(--success); }
.cc-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.skill-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
}
.cc-section { margin-top: 12px; }
.cc-section-label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--success);
  margin-bottom: 6px;
}
.cc-section-label-warn { color: #febc2e; }
.strength-item, .concern-item {
  display: block;
  font-size: 13px;
  color: var(--fg-muted);
  padding-left: 12px;
  position: relative;
  margin-bottom: 4px;
  line-height: 1.5;
}
.strength-item::before { content: '+'; position: absolute; left: 0; color: var(--success); font-weight: 600; }
.concern-item::before { content: '~'; position: absolute; left: 0; color: #febc2e; font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-sub { max-width: 100%; }
  .outcomes-split { grid-template-columns: 1fr; gap: 60px; }
  .principles-grid { grid-template-columns: 1fr; }
  .pipeline-steps { flex-direction: column; gap: 32px; }
  .pipe-connector { display: none; }
  .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
  .footer-meta { align-items: center; }
  .outcomes-stats { grid-template-columns: 1fr 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group-wide { grid-column: 1; }
}
@media (max-width: 600px) {
  .hero { padding: 120px 0 60px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 22px; }
  .topbar { padding: 0 20px; }
  .section-inner { padding: 0 20px; }
  .hero-inner { padding: 0 20px; }
  .outcomes-stats { grid-template-columns: 1fr; }
  .footer-inner { padding: 0 20px; }
}