/*
 * Recruiter Pro — showcase site.
 *
 * Deliberately one stylesheet, no build step and no framework. The page is
 * three static documents on GitHub Pages; a toolchain would be more moving
 * parts than the thing it builds.
 *
 * The palette is taken from the application's own tokens so the screenshots
 * sit inside the page rather than on top of it.
 */

:root {
  --bg: #0a0a0f;
  --surface: #12121b;
  --surface-2: #171722;
  --surface-3: #1e1e2c;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #e9e9f2;
  --text-dim: #a8a8bd;
  --text-faint: #74748c;

  --violet: #b8a4f5;
  --violet-dim: rgba(184, 164, 245, 0.14);
  --green: #6ee7a8;
  --green-dim: rgba(110, 231, 168, 0.13);
  --amber: #f5c26b;
  --amber-dim: rgba(245, 194, 107, 0.13);

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;

  --wide: 1120px;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
  /* The sticky header would otherwise cover an anchored heading. */
  scroll-padding-top: 90px;
}

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

/* A single soft wash behind the top of the page. Fixed, so it does not
   travel with the content and turn into a gradient that scrolls. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 620px;
  background:
    radial-gradient(60% 100% at 18% 0%, rgba(184, 164, 245, 0.13), transparent 70%),
    radial-gradient(50% 100% at 82% 0%, rgba(110, 231, 168, 0.09), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand img {
  width: 30px;
  height: 30px;
  display: block;
}

.brand span {
  font-size: 1.02rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav a[aria-current="page"] {
  color: var(--violet);
  background: var(--violet-dim);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.14s, border-color 0.14s, background 0.14s;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 164, 245, 0.5);
  background: var(--surface-3);
}

.btn-primary {
  background: linear-gradient(135deg, #b8a4f5, #8f7ae0);
  border-color: transparent;
  color: #12091f;
  font-weight: 650;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #c6b6f8, #9d89e8);
  border-color: transparent;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 0.86rem;
}

/* ---------------------------------------------------------------- typography */

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
}

h3 {
  font-size: 1.16rem;
}

p {
  margin: 0 0 1.1em;
  color: var(--text-dim);
}

a {
  color: var(--violet);
}

section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

section:first-of-type {
  border-top: none;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 12px;
}

.lede {
  font-size: 1.12rem;
  max-width: 68ch;
}

.section-head {
  max-width: 72ch;
  margin-bottom: 40px;
}

/* ---------------------------------------------------------------- hero */

.hero {
  padding: 92px 0 72px;
  border-top: none;
}

.hero h1 {
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 20%, #b9b9d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  font-size: 1.22rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--text-faint);
  max-width: 62ch;
}

/* ---------------------------------------------------------------- stats */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
}

.stat {
  background: var(--surface);
  padding: 22px 20px;
}

.stat b {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  font-size: 0.83rem;
  color: var(--text-faint);
  margin-top: 3px;
}

/* ---------------------------------------------------------------- cards */

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card .file {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  display: block;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  word-break: break-all;
}

/* A claim that needs its evidence attached. */
.proof {
  border-left: 2px solid var(--green);
  padding-left: 15px;
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.proof b {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------- chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.86rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.chip b {
  color: var(--text);
  font-weight: 600;
}

.chip code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--violet);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.badge-violet {
  background: var(--violet-dim);
  color: var(--violet);
}

.badge-green {
  background: var(--green-dim);
  color: var(--green);
}

.badge-amber {
  background: var(--amber-dim);
  color: var(--amber);
}

/* ---------------------------------------------------------------- tables */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 520px;
}

th,
td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--surface-2);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}

td {
  color: var(--text-dim);
}

td b {
  color: var(--text);
}

tr:last-child td {
  border-bottom: none;
}

td code,
th code {
  font-family: var(--mono);
  font-size: 0.83rem;
  color: var(--violet);
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
}

/* ---------------------------------------------------------------- diagram */

.diagram {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
}

.diagram svg {
  display: block;
  min-width: 700px;
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------- browser frame */

.shot {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.9);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--line);
}

.dots {
  display: flex;
  gap: 7px;
  flex: none;
}

.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.dots i:nth-child(1) {
  background: #ff5f57;
}

.dots i:nth-child(2) {
  background: #febc2e;
}

.dots i:nth-child(3) {
  background: #28c840;
}

.shot-url {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  /* Tall full-page captures are cropped to a readable height rather than
     shrunk until the text is unreadable. */
  max-height: 640px;
  object-fit: cover;
  object-position: top;
}

.shot.is-full img {
  max-height: none;
}

.shot.is-mobile {
  max-width: 340px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------- steps */

.stage {
  margin-bottom: 26px;
}

.step {
  margin-bottom: 56px;
}

.step-head {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--violet);
  flex: none;
}

.step h3 {
  margin: 0;
}

.step > p {
  max-width: 74ch;
  margin-bottom: 20px;
}

/* ---------------------------------------------------------------- callout */

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.note p:last-child {
  margin-bottom: 0;
}

.note strong {
  color: var(--text);
}

.note.is-green {
  border-left-color: var(--green);
}

.note.is-violet {
  border-left-color: var(--violet);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 56px 0 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-grid h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 9px;
}

.footer-grid a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--violet);
}

.footer-about p {
  font-size: 0.92rem;
  max-width: 42ch;
  margin-top: 14px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text-faint);
}

.footer-bottom a {
  color: var(--text-dim);
  text-decoration: none;
}

/* ---------------------------------------------------------------- reveal */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  section {
    padding: 56px 0;
  }

  .hero {
    padding: 64px 0 48px;
  }

  /* The nav links are the only thing that must survive; the buttons live in
     the hero and the footer as well, so they are the ones that go. */
  .header-actions {
    display: none;
  }

  .nav a {
    padding: 8px 9px;
    font-size: 0.87rem;
  }

  .shot img {
    max-height: 340px;
  }
}

@media (max-width: 420px) {
  .brand span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* An accent rail keyed to the card's badge, so the three severities read at a
   glance instead of only from the badge text. Set on the article, not the
   badge, because the rail has to run the full card height. */
.card {
  position: relative;
  overflow: hidden;
  transition: border-color 0.16s, transform 0.16s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--line-strong);
}

.card.is-violet::before { background: var(--violet); }
.card.is-green::before { background: var(--green); }
.card.is-amber::before { background: var(--amber); }

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

/* The claim, lifted out of the paragraph. A card is scanned before it is
   read, so the sentence that carries the finding gets its own line. */
.card .claim {
  display: block;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 9px;
}

@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}
