:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eef6ff;
  --surface-strong: #dbeafe;
  --text: #0f172a;
  --muted: #526071;
  --line: #d9e2ef;
  --navy: #0f172a;
  --indigo: #4f46e5;
  --cyan: #0891b2;
  --green: #059669;
  --amber: #b45309;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.11);
  color-scheme: light;
}

body.dark {
  --bg: #08111f;
  --surface: #101b2d;
  --surface-soft: #13233a;
  --surface-strong: #1e3a5f;
  --text: #eef6ff;
  --muted: #b7c4d8;
  --line: #2a3c56;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(16px, 5vw, 72px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand,
.nav-actions,
.desktop-nav,
.hero-actions,
.trust-row,
.card-header,
.footer-links {
  align-items: center;
  display: flex;
}

.brand {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  gap: 10px;
}

.brand-mark {
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  border-radius: 12px;
  color: white;
  display: grid;
  height: 36px;
  place-items: center;
  width: 36px;
}

.desktop-nav {
  color: var(--muted);
  gap: 22px;
  font-size: 0.94rem;
}

.desktop-nav a:hover {
  color: var(--text);
}

.nav-actions {
  gap: 10px;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.sidebar button,
.oauth-button {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  color: white;
  padding: 11px 16px;
}

.secondary-button {
  background: var(--navy);
  color: white;
  padding: 11px 16px;
}

.ghost-button,
.icon-button {
  background: var(--surface-soft);
  color: var(--text);
  padding: 10px 14px;
}

.icon-button {
  aspect-ratio: 1;
  padding: 0;
  width: 42px;
}

.large {
  padding: 14px 18px;
}

.full {
  width: 100%;
}

.section {
  margin: 0 auto;
  max-width: 1200px;
  padding: 78px clamp(16px, 4vw, 32px);
}

.hero {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  min-height: calc(100vh - 72px);
  padding-top: 52px;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.08rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  font-size: 1.08rem;
  margin: 24px 0;
  max-width: 660px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.trust-row {
  color: var(--muted);
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-row span,
.status-pill,
.chip {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 10px;
}

.hero-media {
  align-self: center;
}

.hero-media img,
.analytics img {
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  min-height: 420px;
  object-fit: cover;
  width: 100%;
}

.metrics-strip {
  background: var(--navy);
  color: white;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
}

.metrics-strip div {
  background: rgba(255, 255, 255, 0.04);
  padding: 26px clamp(16px, 4vw, 42px);
}

.metrics-strip strong {
  display: block;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 2rem;
}

.metrics-strip span {
  color: #c7d2fe;
}

.section-heading {
  margin: 0 auto 30px;
  max-width: 780px;
  text-align: center;
}

.landing-paths {
  max-width: 1260px;
}

.path-grid,
.steps-grid {
  display: grid;
  gap: 18px;
}

.path-grid {
  grid-template-columns: repeat(3, 1fr);
}

.path-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 24px;
}

.path-card .text-link {
  color: var(--indigo);
  font-weight: 800;
  margin-top: auto;
}

.how-it-works {
  max-width: 1260px;
  padding-top: 24px;
}

.steps-grid {
  counter-reset: steps;
  grid-template-columns: repeat(3, 1fr);
}

.steps-grid article {
  background: var(--navy);
  border: 1px solid color-mix(in srgb, var(--cyan) 28%, transparent);
  border-radius: 16px;
  color: white;
  min-height: 260px;
  padding: 24px;
}

.steps-grid span {
  color: #67e8f9;
  display: block;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 28px;
}

.steps-grid p {
  color: #cbd5e1;
}

.workspace {
  max-width: 1320px;
}

.app-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 640px;
  overflow: hidden;
}

.sidebar {
  background: var(--surface-soft);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}

.sidebar-title {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.sidebar button {
  background: transparent;
  color: var(--muted);
  padding: 12px;
  text-align: left;
}

.sidebar button.active,
.sidebar button:hover {
  background: var(--surface);
  color: var(--text);
}

.dashboard-panel {
  padding: 24px;
}

.dashboard-grid,
.feature-grid,
.pricing-grid {
  display: grid;
  gap: 18px;
}

.dashboard-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.stat-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.panel-card,
.feature-grid article,
.pricing-card,
.employer-card,
.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.panel-card {
  background: var(--surface-soft);
}

.upload-zone {
  background: var(--surface-soft);
  border: 1px dashed color-mix(in srgb, var(--indigo) 45%, var(--line));
  border-radius: 16px;
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 16px;
}

.upload-label {
  align-items: center;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.upload-label small {
  color: var(--muted);
  display: block;
  font-weight: 600;
  margin-top: 3px;
}

.upload-icon {
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  border-radius: 12px;
  color: white;
  display: grid;
  flex: 0 0 auto;
  font-weight: 800;
  height: 42px;
  place-items: center;
  width: 42px;
}

#resumeUpload {
  background: var(--surface);
  cursor: pointer;
}

.upload-status {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.stat strong {
  display: block;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.55rem;
}

.split,
.analytics {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr 1fr;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-grid.compact {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
}

.feature-icon {
  background: var(--surface-strong);
  border-radius: 12px;
  color: var(--navy);
  display: grid;
  font-weight: 800;
  height: 42px;
  margin-bottom: 14px;
  place-items: center;
  width: 42px;
}

.card-header {
  justify-content: space-between;
  margin-bottom: 16px;
}

.score {
  background: #dcfce7;
  border-radius: 999px;
  color: #166534;
  font-weight: 800;
  padding: 10px 12px;
}

.live {
  color: var(--green);
}

.candidate-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.candidate-row,
.job-row {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  padding: 14px;
}

.row-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.candidate-row p,
.job-row p {
  margin: 4px 0 0;
}

.pricing-grid {
  grid-template-columns: repeat(4, 1fr);
}

.pricing-hero {
  padding-bottom: 28px;
  text-align: center;
}

.dashboard-hero {
  padding-bottom: 24px;
  text-align: center;
}

.pricing-hero h1,
.pricing-hero .hero-text,
.dashboard-hero h1,
.dashboard-hero .hero-text {
  margin-left: auto;
  margin-right: auto;
  max-width: 820px;
}

.pricing-page {
  padding-top: 24px;
}

.pricing-faq {
  padding-top: 24px;
}

.employer-workspace {
  padding-top: 24px;
}

.operations-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
  padding-top: 24px;
}

.data-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

.admin-dashboard {
  padding-top: 24px;
}

.admin-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
}

.admin-stats article,
.audit-card,
.admin-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.admin-stats article {
  padding: 18px;
}

.admin-stats span {
  color: var(--text);
  display: block;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
}

.admin-stats p,
.admin-row p,
.audit-card li span {
  color: var(--muted);
}

.admin-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 260px 1fr;
}

.admin-sidebar {
  border: 1px solid var(--line);
  border-radius: 16px;
  height: max-content;
}

.admin-panel {
  background: transparent;
  padding: 0;
}

.admin-panel-header,
.admin-queue,
.audit-card ul {
  display: grid;
  gap: 14px;
}

.admin-panel-header {
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  grid-template-columns: 1fr auto;
  margin-bottom: 16px;
  padding: 22px;
}

.admin-panel-header p,
.admin-row p,
.admin-stats p {
  margin-bottom: 0;
}

.admin-row {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto;
  padding: 18px;
}

.row-title {
  align-items: center;
  display: flex;
  gap: 10px;
}

.row-title h3 {
  margin: 0;
}

.severity-dot {
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}

.severity-low {
  background: var(--green);
}

.severity-medium {
  background: var(--amber);
}

.severity-high {
  background: #dc2626;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 340px;
}

.compact-button {
  min-height: 38px;
  padding: 9px 12px;
}

.audit-card {
  margin-top: 16px;
  padding: 18px;
}

.audit-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.audit-card li {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 3px;
  padding-top: 12px;
}

.connection-section {
  padding-top: 24px;
}

.connection-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-inline: auto;
  max-width: 820px;
  padding: 24px;
}

.final-cta {
  align-items: center;
  background: linear-gradient(135deg, var(--navy), #172554);
  border-radius: 20px;
  color: white;
  display: grid;
  gap: 22px;
  justify-items: center;
  margin-bottom: 78px;
  max-width: 1120px;
  padding: 56px 24px;
  text-align: center;
}

.final-cta h2 {
  max-width: 720px;
}

.final-cta .eyebrow {
  color: #67e8f9;
}

.pricing-card.featured {
  border-color: var(--indigo);
  box-shadow: var(--shadow);
}

.price {
  color: var(--text);
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.pricing-card ul {
  color: var(--muted);
  line-height: 1.9;
  padding-left: 20px;
}

.auth-dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: var(--text);
  max-width: 460px;
  padding: 0;
  width: calc(100% - 32px);
}

.auth-dialog::backdrop {
  background: rgba(15, 23, 42, 0.58);
}

.close-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 2rem;
  position: absolute;
  right: 16px;
  top: 10px;
}

.auth-content {
  padding: 32px;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.oauth-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 11px 14px;
}

.google-mark {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--indigo);
  display: grid;
  font-weight: 800;
  height: 26px;
  place-items: center;
  width: 26px;
}

.divider {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 10px;
  grid-template-columns: 1fr auto 1fr;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  background: var(--line);
  content: "";
  height: 1px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 7px;
}

input,
select,
textarea {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  min-height: 46px;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

.form-message {
  margin: 0;
}

.auth-toast {
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: 14px;
  bottom: 20px;
  box-shadow: var(--shadow);
  color: white;
  font-weight: 700;
  left: 50%;
  max-width: min(520px, calc(100vw - 32px));
  padding: 14px 18px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 30;
}

footer {
  align-items: center;
  background: var(--navy);
  color: white;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 34px clamp(16px, 5vw, 72px);
}

footer p,
footer a {
  color: #dbeafe;
}

.footer-links {
  gap: 16px;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .hero,
  .split,
  .analytics,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .admin-layout,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    flex-direction: row;
    overflow-x: auto;
  }

  .sidebar button {
    min-width: max-content;
  }

  .metrics-strip,
  .feature-grid,
  .pricing-grid,
  .path-grid,
  .steps-grid,
  .operations-grid,
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-actions {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .nav-actions .ghost-button {
    display: none;
  }

  .topbar {
    padding-inline: 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero-media img,
  .analytics img {
    min-height: 260px;
  }

  .metrics-strip,
  .feature-grid,
  .feature-grid.compact,
  .pricing-grid,
  .path-grid,
  .steps-grid,
  .operations-grid,
  .form-grid,
  .stat-grid,
  .admin-stats,
  .admin-panel-header {
    grid-template-columns: 1fr;
  }

  .dashboard-panel {
    padding: 16px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
