:root {
  color-scheme: light;
  --ink: #0c1c35;
  --muted: #5d6b7f;
  --line: #dce4ee;
  --blue: #2367ef;
  --blue-dark: #0d3274;
  --teal: #0e9f83;
  --teal-soft: #e8faf5;
  --amber: #98610a;
  --amber-soft: #fff4d9;
  --surface: #ffffff;
  --canvas: #f3f6fb;
  --shadow: 0 18px 55px rgba(17, 45, 91, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button, input, select { font: inherit; }

a { color: inherit; }

.masthead {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 88% 12%, rgba(85, 214, 190, .30), transparent 28%),
    linear-gradient(125deg, #07172e 0%, #0d3274 58%, #174bb2 100%);
}

.masthead::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -145px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .035), 0 0 0 120px rgba(255, 255, 255, .025);
}

.masthead__inner,
.workspace {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
}

.masthead__inner {
  position: relative;
  z-index: 1;
  min-height: 250px;
  padding: 46px 0 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .82);
  font-size: .88rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #08234c;
  background: #55d6be;
  font-size: 1.05rem;
  font-weight: 900;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.intro {
  max-width: 650px;
  margin: 19px 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: 1.05rem;
}

.counter {
  flex: 0 0 auto;
  min-width: 190px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 22px;
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(10px);
}

.counter strong {
  display: block;
  font-size: 2.3rem;
  line-height: 1;
}

.counter span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: .86rem;
}

.workspace { padding: 28px 0 54px; }

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px;
  gap: 12px;
  margin-top: -49px;
  position: relative;
  z-index: 2;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.field { position: relative; }

.field svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  color: #6f7e93;
  pointer-events: none;
}

.field input,
.field select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.field input { padding: 0 16px 0 48px; }
.field select { padding: 0 40px 0 14px; }

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(35, 103, 239, .12);
}

.legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 4px 14px;
}

.legend h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -.015em;
}

.legend p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(21, 47, 86, .06);
}

.board__head,
.match-row {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1.16fr) minmax(220px, .68fr);
}

.board__head {
  border-bottom: 1px solid var(--line);
  color: #34445d;
  background: #eef3f9;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.board__head > div,
.match-cell { padding: 15px 20px; }

.board__head > div + div,
.match-cell + .match-cell { border-left: 1px solid var(--line); }

.match-row + .match-row { border-top: 1px solid var(--line); }

.match-row { transition: background-color .18s ease; }
.match-row:hover { background: #fafcff; }

.mobile-label {
  display: none;
  margin-bottom: 11px;
  color: #718098;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.title-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--blue-dark);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.28;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.title-link:hover { color: var(--blue); }

.title-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 3px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 9px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
}

.detail {
  margin: 12px 0 0;
  color: #49576b;
  font-size: .9rem;
}

.candidate-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.candidate-name {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 820;
  white-space: nowrap;
}

.status--direct_match,
.status--available { color: #08705d; background: var(--teal-soft); }
.status--to_verify,
.status--to_contact { color: var(--amber); background: var(--amber-soft); }

.candidate-source {
  display: inline-flex;
  margin-top: 11px;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
}

.candidate-source:hover { text-decoration: underline; }

.contact-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 12px;
  color: #fff;
  background: var(--blue-dark);
  box-shadow: 0 7px 18px rgba(13, 50, 116, .18);
  font-size: .87rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .16s ease, background-color .16s ease;
}

.contact-button:hover { transform: translateY(-1px); background: var(--blue); }
.contact-button--whatsapp { background: #087a64; }
.contact-button--whatsapp:hover { background: #0e9f83; }

.contact-button svg { width: 17px; height: 17px; }

.contact-note {
  color: var(--muted);
  font-size: .75rem;
}

.state {
  padding: 52px 24px;
  color: var(--muted);
  text-align: center;
}

.state strong { display: block; margin-bottom: 6px; color: var(--ink); }

.retry {
  margin-top: 18px;
  padding: 10px 16px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--blue-dark);
  cursor: pointer;
  font-weight: 750;
}

.skeleton-row {
  display: grid;
  grid-template-columns: 1.16fr 1.16fr .68fr;
  gap: 1px;
  background: var(--line);
}

.skeleton-cell { padding: 24px 20px; background: #fff; }

.skeleton-line {
  height: 12px;
  margin: 9px 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #edf1f6 20%, #f8fafc 48%, #edf1f6 78%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}

.skeleton-line:nth-child(1) { width: 58%; height: 16px; }
.skeleton-line:nth-child(2) { width: 85%; }
.skeleton-line:nth-child(3) { width: 68%; }

@keyframes shimmer { to { background-position: -200% 0; } }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 4px 0;
  color: #718098;
  font-size: .78rem;
}

@media (max-width: 900px) {
  .masthead__inner { align-items: flex-start; flex-direction: column; }
  .counter { min-width: 0; }
  .board__head { display: none; }
  .match-row { display: block; margin: 14px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
  .match-row + .match-row { border-top: 1px solid var(--line); }
  .match-cell + .match-cell { border-top: 1px solid var(--line); border-left: 0; }
  .mobile-label { display: block; }
  .contact-cell { align-items: stretch; }
  .contact-button { width: 100%; }
  .skeleton-row { display: none; }
}

@media (max-width: 620px) {
  .masthead__inner, .workspace { width: min(100% - 24px, 1440px); }
  .masthead__inner { min-height: 290px; padding-top: 28px; }
  .brand { margin-bottom: 22px; }
  .toolbar { grid-template-columns: 1fr; margin-top: -38px; }
  .legend { align-items: flex-start; flex-direction: column; gap: 3px; margin-top: 28px; }
  .board { border-radius: 18px; }
  .match-row { margin: 10px; }
  .match-cell { padding: 18px 16px; }
  .footer { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
