@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --font-main: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bg-deep: #050b16;
  --bg-mid: #0a1630;
  --card: rgba(10, 18, 34, 0.82);
  --stroke: rgba(151, 202, 255, 0.15);
  --text-main: #edf4ff;
  --muted: #b2c3da;
  --accent: #26d6ff;
  --accent-two: #85f4a8;
  --accent-three: #7f8dff;
  --accent-four: #ffbf6b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--text-main);
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 20%, rgba(38, 214, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(133, 244, 168, 0.14), transparent 26%),
    radial-gradient(circle at 42% 86%, rgba(127, 141, 255, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg-mid), var(--bg-deep) 68%);
}

a { color: #8de7ff; text-decoration: none; }
a:hover { color: #c1f5ff; }

.gradient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(38, 214, 255, 0.18), transparent 20%),
    radial-gradient(circle at 80% 20%, rgba(133, 244, 168, 0.12), transparent 18%),
    radial-gradient(circle at 50% 80%, rgba(127, 141, 255, 0.14), transparent 26%),
    radial-gradient(circle at 70% 60%, rgba(255, 191, 107, 0.08), transparent 18%);
  filter: blur(50px);
  animation: drift 16s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes drift {
  from { transform: translate3d(-1%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}

.navbar { background: transparent; }

.site-strip,
.site-footer {
  background: rgba(5, 11, 22, 0.76);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
}

.site-footer {
  border-bottom: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: .92rem;
}

.strip-copy,
.strip-meta {
  color: var(--muted);
  font-size: .85rem;
}

.strip-badges {
  align-items: center;
}

.strip-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .18rem .6rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.navbar-brand {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}

.brand-mark {
  position: relative;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background:
    radial-gradient(circle at 50% 50%, rgba(38, 214, 255, 0.12), transparent 56%),
    rgba(255,255,255,0.04);
  box-shadow: inset 0 0 28px rgba(38, 214, 255, 0.08);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: .28rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}

.brand-mark::after {
  inset: .58rem;
  border-color: rgba(133, 244, 168, 0.18);
}

.brand-mark-core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  box-shadow: 0 0 20px rgba(38, 214, 255, 0.55);
}

.nav-actions {
  margin-left: auto;
}

.nav-badge {
  align-items: center;
  padding: .38rem .78rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,.04);
  color: #dffcff;
  font-size: .73rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav-link-lite {
  color: var(--muted);
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav-link-lite:hover {
  color: #fff;
}

.small-label {
  letter-spacing: .16em;
  font-size: .74rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.text-highlight {
  background: linear-gradient(120deg, var(--accent), var(--accent-two), var(--accent-three), var(--accent-four));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .45rem .75rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-size: .82rem;
  color: #eaf7ff;
}

.hero-metrics {
  max-width: 40rem;
}

.hero-side-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card,
.info-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
}

.metric-card {
  padding: .9rem 1rem;
}

.metric-card-dark {
  background: rgba(7, 17, 31, 0.34);
  border-color: rgba(255,255,255,.08);
}

.metric-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .35rem;
}

.metric-card strong,
.info-card h3 {
  color: var(--text-main);
}

.hero-card,
.job-card,
.upload-panel {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(38, 214, 255, 0.16), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.22), transparent 72%);
  opacity: .3;
  pointer-events: none;
}

.upload-panel {
  border-color: rgba(162, 194, 255, 0.2);
}

.signal-preview {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(127, 141, 255, 0.16), rgba(38, 214, 255, 0.08) 40%, rgba(255,255,255,.04)),
    rgba(10, 18, 34, 0.84);
  border: 1px solid rgba(151, 202, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
}

.signal-preview::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 15rem;
  height: 15rem;
  background: radial-gradient(circle, rgba(255, 191, 107, 0.16), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.preview-kicker {
  display: inline-flex;
  align-items: center;
  padding: .28rem .62rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.signal-orbit {
  position: relative;
  min-height: 15rem;
  margin-bottom: 1rem;
}

.orbit-ring,
.orbit-trace {
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-ring-one {
  width: 12.5rem;
  height: 12.5rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.orbit-ring-two {
  width: 9.25rem;
  height: 9.25rem;
  border: 1px solid rgba(38, 214, 255, 0.14);
}

.orbit-ring-three {
  width: 5.8rem;
  height: 5.8rem;
  border: 1px solid rgba(133, 244, 168, 0.18);
}

.orbit-trace {
  border: 1px dashed rgba(255,255,255,0.08);
  border-left-color: transparent;
  border-bottom-color: transparent;
  animation: orbit 18s linear infinite;
}

.orbit-trace-one {
  width: 11rem;
  height: 11rem;
}

.orbit-trace-two {
  width: 7.4rem;
  height: 7.4rem;
  animation-direction: reverse;
  animation-duration: 14s;
}

.orbit-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 5rem;
  height: 5rem;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(38, 214, 255, 0.22), rgba(127, 141, 255, 0.18)),
    rgba(6, 14, 27, 0.94);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: .08em;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.orbit-core span {
  font-size: .62rem;
  color: var(--muted);
}

.orbit-core strong {
  font-size: .98rem;
}

.orbit-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.75rem;
  padding: .48rem .72rem;
  border-radius: 999px;
  background: rgba(5, 11, 22, 0.9);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: .76rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.orbit-node-one {
  top: 15%;
  left: 18%;
}

.orbit-node-two {
  top: 18%;
  right: 14%;
}

.orbit-node-three {
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
}

.preview-legend {
  display: grid;
  gap: .7rem;
}

.preview-item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .8rem .9rem;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.preview-item strong,
.playbook-step h4,
.manifest-card h3 {
  display: block;
  color: var(--text-main);
}

.preview-item small {
  color: var(--muted);
  font-size: .78rem;
}

.legend-dot {
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  margin-top: .2rem;
  flex: 0 0 auto;
}

.legend-dot-cyan {
  background: var(--accent);
  box-shadow: 0 0 16px rgba(38, 214, 255, 0.5);
}

.legend-dot-green {
  background: var(--accent-two);
  box-shadow: 0 0 16px rgba(133, 244, 168, 0.45);
}

.legend-dot-gold {
  background: var(--accent-four);
  box-shadow: 0 0 16px rgba(255, 191, 107, 0.45);
}

.signal-manifest,
.map-playbook {
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)),
    rgba(7, 17, 31, 0.34);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.manifest-card,
.playbook-step {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  overflow: hidden;
}

.manifest-card::after,
.playbook-step::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(38, 214, 255, 0.45), transparent 70%);
}

.manifest-index,
.playbook-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  margin-bottom: .9rem;
  border-radius: 12px;
  background: rgba(38, 214, 255, 0.12);
  border: 1px solid rgba(38, 214, 255, 0.24);
  color: #dffcff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
}

@keyframes orbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.btn-gradient {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  box-shadow: 0 10px 30px rgba(38, 214, 255, 0.25);
}

.btn-gradient:hover {
  opacity: .95;
  color: white;
  transform: translateY(-1px);
}

.btn-outline-light {
  border-color: rgba(237, 244, 255, 0.22);
  color: var(--text-main);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.ai-lens {
  background:
    linear-gradient(135deg, rgba(38, 214, 255, 0.12), rgba(133, 244, 168, 0.08)),
    rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
}

.job-card {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.job-card:hover {
  transform: translateY(-4px);
  border-color: rgba(38, 214, 255, 0.42);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.32);
}

.result-spotlight .job-card {
  border-color: rgba(133, 244, 168, 0.22);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.score-pill {
  background: rgba(38, 214, 255, .12);
  border: 1px solid rgba(38, 214, 255, .3);
  color: #bff5ff;
}

.category-chip {
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: .25rem .65rem;
  font-size: .74rem;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.mode-pill {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  color: var(--text-main);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.mode-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(38, 214, 255, 0.35);
}

.mode-pill.active {
  background: rgba(38, 214, 255, 0.12);
  border-color: rgba(38, 214, 255, 0.45);
}

.mode-pill input {
  accent-color: var(--accent);
}

.desc { color: #d6e4f5; }

.info-card {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(38, 214, 255, 0.18);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.signal-block {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: .45rem;
}

.signal-block-gap {
  opacity: .96;
}

.match-reason {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .7rem .85rem;
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}

.match-reason-copy {
  color: #dbe9fb;
  font-size: .82rem;
  line-height: 1.45;
}

.signal-label {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.signal-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .24rem .55rem;
  background: rgba(38, 214, 255, 0.12);
  border: 1px solid rgba(38, 214, 255, 0.28);
  color: #dffcff;
  font-size: .72rem;
}

.signal-chip-gap {
  background: rgba(255, 191, 107, 0.12);
  border-color: rgba(255, 191, 107, 0.28);
  color: #ffe8c7;
}

.dashboard-list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.dashboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .7rem .85rem;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.dashboard-row strong {
  color: #fff;
}

.path-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)),
    rgba(255,255,255,.03);
}

.score-details {
  margin-top: .45rem;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: .65rem;
}

.score-details summary {
  cursor: pointer;
  color: #dffcff;
  font-size: .83rem;
  list-style: none;
}

.score-details summary::-webkit-details-marker {
  display: none;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem .8rem;
  margin-top: .75rem;
}

.score-row {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: .78rem;
  color: var(--muted);
}

.score-row strong {
  color: var(--text-main);
}

.filter-toolbar {
  background: rgba(7, 17, 31, 0.36);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.filter-btn {
  border-color: rgba(237, 244, 255, 0.18);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.filter-btn:hover,
.filter-btn.active {
  color: white;
  border-color: rgba(38, 214, 255, 0.4);
  background: rgba(38, 214, 255, 0.14);
}

.result-wrap {
  transition: opacity .18s ease, transform .18s ease;
}

.result-wrap.d-none {
  opacity: 0;
  transform: scale(.98);
}

.text-muted { color: var(--muted) !important; }

.map-playbook .text-muted,
.signal-manifest .text-muted {
  color: #bfd0e4 !important;
}

.alert {
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
}

input.form-control {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.22);
}

input.form-control:focus {
  background: rgba(255,255,255,.09);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(38, 214, 255, .18);
}

input.form-control::file-selector-button {
  border: 0;
  margin-right: 1rem;
  padding: .65rem 1rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.form-select {
  background-color: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}

.form-select:focus {
  background-color: rgba(255,255,255,.08);
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(38, 214, 255, .14);
  color: #fff;
}

.form-select option {
  color: #101827;
}

.form-range::-webkit-slider-thumb {
  background: var(--accent);
}

.form-range::-moz-range-thumb {
  background: var(--accent);
  border: 0;
}

.site-footer a {
  color: #d3f9ff;
}

.footer-links {
  flex-wrap: wrap;
}

.footer-links a {
  font-size: .88rem;
}

.footer-credit {
  color: rgba(178, 195, 218, 0.82);
}

@media (max-width: 991px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .paths-grid {
    grid-template-columns: 1fr;
  }

  .nav-actions {
    margin-left: 0;
  }

  .signal-orbit {
    min-height: 12.5rem;
  }

  .orbit-ring-one {
    width: 10rem;
    height: 10rem;
  }

  .orbit-ring-two,
  .orbit-trace-one {
    width: 7.4rem;
    height: 7.4rem;
  }

  .orbit-ring-three,
  .orbit-trace-two {
    width: 4.8rem;
    height: 4.8rem;
  }
}

@media (max-width: 767px) {
  .brand-lockup {
    gap: .55rem;
  }

  .brand-mark {
    width: 1.9rem;
    height: 1.9rem;
  }

  .orbit-node {
    min-width: 3.1rem;
    padding: .4rem .58rem;
    font-size: .7rem;
  }

  .preview-item {
    padding: .72rem .8rem;
  }

  .score-grid {
    grid-template-columns: 1fr;
  }
}
