:root {
  --bg: #0e0e10;
  --panel: #17171b;
  --panel-2: #1f1f25;
  --ink: #f4f3f0;
  --muted: #a3a29c;
  --line: #2c2c33;
  --accent: #d6ff3f;
  --accent-ink: #0e0e10;
  --lock: #3a3a42;
  --radius: 14px;
  --max: 1040px;
  font-size: 17px;
}

* { box-sizing: border-box; }

/* hidden attribute must win over explicit display values (e.g. the modal's flex) */
[hidden] { display: none !important; }

:root {
  --font-body: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* headlines: same family, heavier weight + tighter tracking does the work */
.hero h1, .wiz-step h2, .result-count, .cta-panel h2, .modal h2, .unlock h2 {
  font-weight: 900;
  letter-spacing: -0.035em;
}

/* textured backdrop: faint green dot grid + soft glow, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at center, rgba(214,255,63,0.6) 1.3px, transparent 1.7px);
  background-size: 28px 28px;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
body::after {
  content: "";
  position: fixed;
  top: 50%;
  right: max(24px, calc((100vw - 1200px) / 2 + 24px));
  transform: translate(40%, -50%);
  width: 36vw; max-width: 460px;
  height: 60vh;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(214,255,63,0.16), transparent 68%);
  filter: blur(30px);
  transition: opacity 0.3s ease;
}
.topline, main, .site-foot { position: relative; }
main, .site-foot { z-index: 1; }
/* glow follows the logo: centre it on results view (logo gone, so dim it) */
body.results-active::after { opacity: 0; }

main { max-width: var(--max); margin: 0 auto; padding: 0 20px 80px; }

/* slim topline */
.topline {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding: 9px 0;
  background: rgba(14,14,16,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topline-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 12px;
}
/* results view: topline aligns to the centred content container */
body.results-active .topline-inner { max-width: var(--max); padding: 0 20px; }
.topline-label {
  font-size: 0.74rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.topline-logo {
  height: 30px; width: auto; margin-left: auto; display: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

/* big fixed brandmark, pinned to the right third on landing */
/* logo pinned to the right of the same centred 1200px container */
.brandmark {
  position: fixed; top: 0; bottom: 0; z-index: 20;
  right: max(24px, calc((100vw - 1200px) / 2 + 24px));
  width: 380px; max-width: 34vw;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.brandmark-logo {
  width: 100%; max-width: 420px; height: auto;
  filter: drop-shadow(0 16px 34px rgba(0,0,0,0.9)) drop-shadow(0 0 30px rgba(214,255,63,0.25));
}

/* landing: content + logo as one centred unit (container ~1200px) */
main {
  max-width: 1200px; margin: 0 auto;
  padding-left: 24px; padding-right: calc(34% + 24px);
}
.hero { max-width: 540px; margin: 0; padding-top: 96px; }

/* stack on small screens: logo small and inline, content full width */
@media (max-width: 760px) {
  .brandmark { position: static; width: auto; padding: 70px 20px 0; }
  .brandmark-logo { width: 60vw; max-width: 300px; margin: 0 auto; }
  main { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 24px; }
}

/* results view: hide the big brandmark, slip the logo into the topline, reclaim full width */
body.results-active .brandmark { display: none; }
body.results-active .topline-logo { display: block; }
body.results-active main { max-width: var(--max); margin: 0 auto; padding-top: 60px; padding-left: 20px; padding-right: 20px; }

.hero { max-width: 640px; }
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 14px;
}
.counter {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  font-size: 0.82rem; color: var(--muted); margin: 14px 0 0;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--panel);
}
.counter::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214,255,63,0.7), 0 0 6px rgba(214,255,63,0.8); opacity: 1; }
  50%      { box-shadow: 0 0 0 5px rgba(214,255,63,0), 0 0 10px rgba(214,255,63,1); opacity: 0.85; }
}
.counter b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.hero h1 .hl { color: var(--accent); }
.sub { color: var(--muted); font-size: 1.02rem; max-width: 46ch; }

.finder { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.finder label { display: flex; flex-direction: column; gap: 7px; font-size: 0.92rem; font-weight: 600; }
.finder label em { color: var(--muted); font-weight: 400; font-style: normal; }
.finder .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .finder .row { grid-template-columns: 1fr; } }

input, select, textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 1rem;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
textarea { resize: vertical; }

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-weight: 700;
}
#go, #unlockBtn, .unlock-btn, .signup button {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 12px;
  padding: 16px 22px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 18px rgba(214,255,63,0.25);
  transition: transform 0.08s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
#go:hover, #unlockBtn:hover, .unlock-btn:hover, .signup button:hover {
  filter: brightness(1.04);
  box-shadow: 0 10px 26px rgba(214,255,63,0.4);
  transform: translateY(-1px);
}
#go:active, #unlockBtn:active, .unlock-btn:active { transform: translateY(1px); box-shadow: 0 4px 12px rgba(214,255,63,0.25); }
.micro { color: var(--muted); font-size: 0.82rem; margin: 8px 0 0; }

/* scan */
.scan { text-align: center; padding: 110px 0 120px; max-width: 480px; margin: 0 auto; }
.scan-ticker {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em;
  height: 1.7rem; overflow: hidden; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.scan-phase { color: var(--muted); margin-top: 16px; font-weight: 600; min-height: 1.4em; }
.scan-bar {
  position: relative;
  width: 100%; max-width: 400px; height: 8px; margin: 22px auto 10px;
  background: var(--panel-2); border-radius: 100px; overflow: hidden;
}
.scan-fill {
  width: 0%; height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, #9bd400, var(--accent));
  transition: width 0.25s ease;
}
/* moving shimmer so the bar always looks alive, even while filling slowly */
.scan-bar::after {
  content: ""; position: absolute; inset: 0; border-radius: 100px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  width: 40%; transform: translateX(-120%);
  animation: shimmer 1.1s linear infinite;
}
@keyframes shimmer { to { transform: translateX(320%); } }
.scan-pct { font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.scan-sub { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }

/* results */
.result-count { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 4px; }
.result-count b { color: var(--accent); }
.result-count.pop { animation: countPop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
@keyframes countPop { 0% { transform: scale(0.7); opacity: 0.4; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.result-intro { color: var(--muted); margin: 0 0 24px; }

/* "why these?" explainer */
.why-these {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 12px 14px; margin: 0 0 20px;
  font-size: 0.88rem; color: var(--muted);
}
.why-these b { color: var(--ink); font-weight: 700; }

/* sticky unlock bar */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(15,42,20,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--accent);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1);
}
.sticky-bar.show { transform: translateY(0); }
.sticky-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.sticky-text { font-weight: 700; font-size: 0.95rem; }
.sticky-btn {
  background: var(--accent); color: var(--accent-ink);
  border-radius: 10px; padding: 12px 20px; font-size: 0.98rem; font-weight: 800;
  white-space: nowrap; box-shadow: 0 6px 18px rgba(214,255,63,0.3);
  transition: transform 0.08s ease, filter 0.15s ease;
}
.sticky-btn:hover { filter: brightness(1.05); }
.sticky-btn:active { transform: translateY(1px); }
@media (max-width: 520px) { .sticky-text { display: none; } .sticky-btn { width: 100%; } }

.cards { display: flex; flex-direction: column; gap: 12px; }
.section-head { margin: 24px 0 0; }
.section-head h3 { margin: 0; font-size: 1.05rem; letter-spacing: -0.01em; }
.section-head p { margin: 3px 0 6px; color: var(--muted); font-size: 0.85rem; }
.cards .section-head:first-child { margin-top: 6px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px 16px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  animation: popIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
@keyframes popIn { to { opacity: 1; transform: translateY(0) scale(1); } }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.card:not(.locked):hover { border-color: var(--accent); box-shadow: 0 10px 34px rgba(0,0,0,0.45); }
.card.locked { border-color: rgba(214,255,63,0.28); }
.badge {
  position: absolute; top: 0; left: 0;
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em;
  padding: 4px 11px; border-radius: 0 0 10px 0;
  z-index: 2;
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card .title { font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.card .why { color: var(--muted); margin: 7px 0 12px; font-size: 0.95rem; }
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; }

/* match score + bar */
.fit { text-align: right; flex-shrink: 0; line-height: 1; }
.fit-num { font-weight: 800; font-size: 1.15rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.fit-label { display: block; font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px; }
.fit-bar { height: 5px; background: var(--panel-2); border-radius: 100px; overflow: hidden; margin-top: 6px; }
.fit-fill {
  width: 0%; height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, #9bd400, var(--accent));
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* clickable chips + detail */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 100px; padding: 6px 12px; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: border-color 0.12s ease, background 0.12s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.safe { background: #6fdc8c; }
.dot.mid { background: #ffd27f; }
.dot.risk { background: #ff8f8f; }
.chip-detail {
  margin-top: 11px; font-size: 0.92rem; color: var(--ink); line-height: 1.45;
  background: var(--panel-2); border-radius: 10px; padding: 12px 14px;
}
.chip-detail .label {
  color: var(--muted); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.07em; display: block; margin-bottom: 4px;
}

/* 5 free, rest part-revealed: prize visible (match + salary), name blurred */
.locked-wrap { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.blurred { filter: blur(7px); user-select: none; }
.lock-badge {
  font-size: 0.7rem; color: var(--muted); border: 1px solid var(--line);
  border-radius: 100px; padding: 2px 9px; text-transform: uppercase; letter-spacing: 0.06em;
}
.locked-salary { margin-top: 11px; font-size: 0.92rem; color: var(--muted); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.locked-salary .num { color: var(--accent); font-weight: 700; }

.cta-panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; margin-top: 6px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.4);
}
.cta-panel h2 { margin: 0 0 8px; font-size: 1.45rem; letter-spacing: -0.02em; }
.cta-panel p { color: var(--muted); margin: 0 0 18px; }
.cta-panel .unlock-btn { width: 100%; max-width: 340px; }

/* 3 locked cards in a grid, call to action underneath */
.locked-block { margin-top: 8px; }
.locked-stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }

/* green call-to-action so it stands out */
.cta-panel {
  background: linear-gradient(180deg, #1b4422, #0f2a14);
  border: 1px solid var(--accent);
  box-shadow: 0 18px 50px rgba(0,0,0,0.45), 0 0 0 4px rgba(214,255,63,0.08);
  margin-top: 14px;
}
.cta-panel h2 { color: var(--ink); }
.pill {
  font-size: 0.78rem;
  border-radius: 100px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--panel-2);
}
.pill.salary { color: var(--accent); border-color: rgba(214,255,63,0.4); }
.pill.ready { color: #7fe0a3; }
.pill.bridge { color: #ffd27f; }
.pill.stretch { color: #ff9f9f; }

/* locked cards */
.card.locked { position: relative; overflow: hidden; }
.card.locked .title, .card.locked .why, .card.locked .meta { filter: blur(6px); opacity: 0.55; user-select: none; }
.lock-row {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted); font-weight: 600; font-size: 0.9rem;
}
.lock-row svg { width: 15px; height: 15px; }

.unlock {
  margin-top: 26px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.unlock h2 { font-size: 1.4rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.unlock p { color: var(--muted); margin: 0 0 18px; }
.unlock #unlockBtn { width: 100%; max-width: 360px; }

.restart {
  display: block; margin: 30px auto 0;
  background: none; color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 9px 18px; font-weight: 600;
}

/* modal */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 50;
}
.modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 440px; width: 100%;
  padding: 30px 26px 24px;
  position: relative;
}
.modal h2 { margin: 0 0 10px; font-size: 1.5rem; letter-spacing: -0.02em; }
.modal p { color: var(--muted); margin: 0 0 18px; }
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; color: var(--muted); font-size: 1.6rem; line-height: 1;
}
.signup { display: flex; flex-direction: column; gap: 12px; }
.signup .cv-label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; text-align: left; }
.signup textarea { min-height: 120px; }
.signup-done { color: var(--accent); font-weight: 600; }

.site-foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px;
  flex-wrap: wrap;
}
.foot-legal { color: var(--muted); opacity: 0.7; font-size: 0.75rem; margin: 0; max-width: 60ch; }
.foot-links { display: flex; gap: 18px; white-space: nowrap; }
.foot-links a { color: var(--muted); font-size: 0.8rem; text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
/* results view: footer aligns to the centred results container */
body.results-active .foot-inner { max-width: var(--max); padding-left: 20px; padding-right: 20px; }