:root {
  --ink: #061a3d;
  --muted: #65738b;
  --soft: #eef4fb;
  --line: #dbe5f2;
  --bg: #f6f9fd;
  --panel: #ffffff;
  --blue: #145dff;
  --blue-2: #0b357d;
  --green: #10a66a;
  --red: #e92842;
  --amber: #f59f00;
  --shadow: 0 22px 70px rgba(7, 29, 73, .10);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(246,249,253,.96), rgba(246,249,253,1)),
    radial-gradient(circle at 90% -10%, rgba(20,93,255,.18), transparent 30%);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 34px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.01em; }
.mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ed1c2f 0%, #ffffff 42%, #145dff 100%);
  box-shadow: 0 12px 30px rgba(20,93,255,.18);
}
.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav a, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 42px;
  font-weight: 850;
  font-size: 14px;
  color: #18304f;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.nav a:hover, .btn:hover { transform: translateY(-1px); border-color: #b8c9e1; box-shadow: 0 12px 28px rgba(7,29,73,.08); }
.btn.primary, .nav .primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 15px 32px rgba(20,93,255,.22); }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.success { background: var(--green); border-color: var(--green); color: #fff; }
.btn.wide { width: 100%; }

.hero {
  min-height: calc(100svh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .8fr);
  gap: 7vw;
  align-items: center;
  padding: 70px 7vw 74px;
  background:
    linear-gradient(115deg, rgba(5, 23, 58, .96) 0%, rgba(7, 39, 96, .94) 54%, rgba(245, 248, 253, .95) 54.2%, rgba(245, 248, 253, 1) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 72px);
  overflow: hidden;
}
.hero-copy { max-width: 780px; color: #fff; animation: rise .55s ease both; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #145dff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.hero .eyebrow { color: #9fbdff; }
.hero h1 {
  font-size: clamp(44px, 6.3vw, 90px);
  line-height: .95;
  margin: 16px 0 18px;
  letter-spacing: -.055em;
}
.hero p { color: rgba(255,255,255,.78); font-size: 20px; line-height: 1.6; max-width: 580px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, .7fr) auto;
  gap: 10px;
  margin-top: 28px;
  max-width: 780px;
}
.hero-search input {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.94);
  min-height: 54px;
}
.hero-board {
  position: relative;
  min-height: 500px;
  border: 1px solid rgba(219,229,242,.9);
  border-radius: 28px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  padding: 30px;
  display: grid;
  align-content: center;
  gap: 14px;
  animation: floatIn .75s ease both .08s;
  overflow: hidden;
}
.hero-board:before {
  content: "";
  position: absolute;
  inset: -35% -20% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,93,255,.18), transparent 60%);
}
.board-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.board-line span { color: var(--muted); font-weight: 850; }
.board-line strong { font-size: 44px; letter-spacing: -.05em; }
.signal-stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.signal-stack i {
  height: 78px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20,93,255,.12), rgba(16,166,106,.12));
  transform-origin: bottom;
  animation: pulseBar 2.4s ease-in-out infinite;
}
.signal-stack i:nth-child(2) { animation-delay: .18s; height: 120px; }
.signal-stack i:nth-child(3) { animation-delay: .36s; height: 96px; }
.signal-stack i:nth-child(4) { animation-delay: .54s; height: 145px; }

.container { padding: 34px; max-width: 1500px; margin: 0 auto; }
.marketplace-strip {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  align-items: start;
}
.marketplace-strip h2 { margin: 8px 0 0; font-size: 30px; letter-spacing: -.04em; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-cloud a {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  color: #244260;
  font-weight: 850;
  box-shadow: 0 10px 28px rgba(9,30,66,.04);
}
.chip-cloud a:hover { border-color: #b8c9e1; color: var(--blue); transform: translateY(-1px); }
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 46px;
  padding-bottom: 46px;
}
.feature-strip > div {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  padding: 28px;
}
.feature-strip > div:first-child { border-radius: 18px 0 0 18px; }
.feature-strip > div:last-child { border-radius: 0 18px 18px 0; }
.feature-strip h2 { margin: 12px 0 8px; font-size: 23px; letter-spacing: -.03em; }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: 1fr .72fr; align-items: start; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.dashboard { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100svh - 70px); }
.sidebar { background: rgba(255,255,255,.8); border-right: 1px solid var(--line); padding: 22px; }
.sidebar a { display: block; padding: 12px 14px; border-radius: 12px; color: #33445f; font-weight: 850; margin-bottom: 7px; }
.sidebar a.active, .sidebar a:hover { background: #edf4ff; color: var(--blue); }

.panel, .job-card, .form-card, .metric {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(9,30,66,.05);
}
.panel { padding: 24px; }
.metric { padding: 22px; min-height: 138px; }
.metric span { color: var(--muted); font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.metric strong { display: block; font-size: 36px; margin-top: 10px; letter-spacing: -.05em; }
.workspace-head, .section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.workspace-head h1, .section-title h2 { margin: 4px 0 0; font-size: 32px; letter-spacing: -.04em; }
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 22px 0; }

.jobs { display:grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; }
.jobs.compact { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.job-card { padding: 22px; display:grid; gap: 12px; min-height: 230px; }
.jobs.compact .job-card { min-height: 190px; }
.job-card h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.job-card p { margin: 0; line-height: 1.6; }
.job-card:hover, .company-tile:hover, .talent-card:hover {
  transform: translateY(-2px);
  border-color: #bdd0ea;
  box-shadow: 0 18px 44px rgba(9,30,66,.08);
}
.badge { display:inline-flex; align-items:center; gap: 6px; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 900; background: #edf4ff; color: var(--blue); }
.badge.green { background: #e8f8f0; color: var(--green); }
.badge.red { background: #fff0f3; color: var(--red); }
.badge.amber { background: #fff5db; color: #a26200; }

.auth-shell, .signup-shell {
  min-height: calc(100svh - 70px);
  display: grid;
  place-items: center;
  padding: 48px 20px;
  position: relative;
  overflow: hidden;
}
.auth-shell {
  background:
    radial-gradient(circle at 18% 20%, rgba(20,93,255,.18), transparent 24%),
    linear-gradient(135deg, #061a3d 0%, #0b357d 42%, #f6f9fd 42.2%, #f6f9fd 100%);
}
.auth-motion {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 70px 70px;
}
.auth-motion span {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  animation: orbit 10s linear infinite;
}
.auth-motion span:nth-child(1) { left: 8%; top: 12%; }
.auth-motion span:nth-child(2) { right: 18%; bottom: 16%; animation-duration: 13s; }
.auth-motion span:nth-child(3) { left: 38%; bottom: -120px; animation-duration: 16s; }
.auth-card, .form-card {
  width: min(640px, 100%);
  padding: 38px;
  position: relative;
}
.auth-card { background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); animation: floatIn .55s ease both; }
.form-card { margin: 0 auto; }
.auth-card h1, .form-card h1 { margin: 10px 0 24px; font-size: 38px; letter-spacing: -.045em; }
.subtle-link { display: inline-flex; margin-top: 16px; color: var(--blue); font-weight: 850; }

.form-row { display:grid; gap: 8px; margin-bottom: 15px; }
label { font-weight: 900; font-size: 12px; color: #40516d; text-transform: uppercase; letter-spacing: .06em; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cfd9e8;
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20,93,255,.10); }
textarea { min-height: 120px; resize: vertical; }
.inline-form { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(160px, 1fr) auto; gap: 8px; align-items: center; }
.inline-form.compact-form { grid-template-columns: minmax(130px, 1fr) auto; }
.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, .75fr) minmax(170px, .7fr) auto auto;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 20px;
  box-shadow: 0 14px 38px rgba(9,30,66,.05);
}
.company-grid, .talent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.company-tile, .talent-card {
  display: grid;
  gap: 8px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 150px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.company-tile strong, .talent-card h3 { font-size: 22px; letter-spacing: -.03em; }
.company-tile span, .company-tile small { color: var(--muted); }
.talent-card p { margin: 0; line-height: 1.55; }
.profile-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.profile-facts span {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.profile-facts strong {
  color: var(--ink);
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
}
.mini-row {
  display: grid;
  gap: 4px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.mini-row:last-child { border-bottom: 0; }
.mini-row span { color: var(--muted); }
.save-form { margin-top: 10px; }
.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 18px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: #33445f;
}
.checkline input { width: auto; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow:hidden; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f7faff; color: #41516d; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
tr:last-child td { border-bottom: 0; }
.flash { padding: 14px 16px; border-radius: 14px; margin-bottom: 16px; background: #edf4ff; color: #0d45a5; font-weight: 850; }
.flash.error { background: #fff0f3; color: var(--red); }
.reviews { display:grid; gap: 12px; }
.review { border-left: 4px solid var(--blue); padding: 12px 14px; background: #f8fbff; border-radius: 10px; }
.empty-state {
  border: 1px dashed #c7d4e6;
  border-radius: 16px;
  padding: 30px;
  background: rgba(255,255,255,.72);
  text-align: center;
  color: var(--muted);
}
.empty-state h3 { color: var(--ink); margin: 0 0 8px; }
.empty-state p { margin: 0 0 18px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pulseBar {
  0%, 100% { transform: scaleY(.72); opacity: .58; }
  50% { transform: scaleY(1); opacity: 1; }
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(10px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(10px) rotate(-360deg); }
}

@media (max-width: 980px) {
  .hero, .dashboard, .grid.two, .grid.three, .feature-strip, .marketplace-strip, .hero-search, .search-panel { grid-template-columns: 1fr; }
  .hero {
    min-height: auto;
    padding: 52px 20px;
    background: linear-gradient(180deg, #061a3d 0%, #0b357d 55%, #f6f9fd 55.2%, #f6f9fd 100%);
  }
  .hero-board { min-height: 360px; }
  .feature-strip > div, .feature-strip > div:first-child, .feature-strip > div:last-child { border-radius: 16px; }
  .dashboard { min-height: auto; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; gap: 8px; }
  .sidebar a { min-width: max-content; }
  .inline-form { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .topbar { min-height: auto; padding: 16px; align-items: flex-start; flex-direction: column; }
  .nav { width: 100%; }
  .nav a { flex: 1; }
  .container { padding: 20px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 17px; }
  .auth-card, .form-card { padding: 26px; }
  .workspace-head, .section-title { align-items: flex-start; flex-direction: column; }
}
