:root {
  --bg: #f6f4ef;
  --bg-dark: #0c1220;
  --bg-card: #ffffff;
  --text: #12151c;
  --text-muted: #5c6478;
  --text-light: #c8d0e0;
  --accent: #2f6bff;
  --accent-2: #6c4dff;
  --accent-soft: rgba(47, 107, 255, 0.12);
  --border: rgba(18, 21, 28, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(12, 18, 32, 0.08);
  --font: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 9999;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--light {
  color: #8eb4ff;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-head h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.section-head__lead {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.section-head__lead--light {
  color: var(--text-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 32px rgba(47, 107, 255, 0.28);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
}

.btn--outline {
  background: transparent;
  border-color: var(--border);
}

.btn--lg {
  padding: 16px 28px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 100;
  background: rgba(246, 244, 239, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.header.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 8px 32px rgba(12, 18, 32, 0.04);
}

.header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  white-space: nowrap;
  justify-self: start;
}

.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.logo__text em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 0.95rem;
  color: var(--text-muted);
  white-space: nowrap;
  justify-self: center;
}

.nav a {
  flex: 0 0 auto;
}

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

.header__actions {
  display: flex;
  gap: 10px;
  justify-self: end;
  flex-shrink: 0;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  justify-self: end;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: none;
  gap: 16px;
  z-index: 99;
}

.mobile-nav.is-open {
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 96px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -120px;
  right: -180px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__title {
  margin: 0 0 24px;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.hero__accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 32px;
  max-width: 560px;
  font-size: 1.12rem;
  color: var(--text-muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero__logos span {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero__visual {
  position: relative;
  min-height: 480px;
}

.hero-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.hero-card--main {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(360px, 90%);
  text-align: center;
}

.hero-card__label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.hero-card__score {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  margin: 8px 0 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-card--a {
  top: 8%;
  left: 0;
}

.hero-card--b {
  top: 18%;
  right: 0;
}

.hero-card--c {
  bottom: 8%;
  left: 8%;
}

.hero-card--float strong {
  display: block;
  margin: 8px 0 4px;
}

.hero-card--float small {
  color: var(--text-muted);
}

.hero-card__subs {
  display: contents;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot--green { background: #22c55e; }
.dot--blue { background: var(--accent); }
.dot--violet { background: var(--accent-2); }

.stats {
  padding: 24px 0 40px;
}

.stats__head {
  max-width: 640px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat__value,
.stat__suffix {
  display: inline;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat__suffix {
  color: var(--accent);
}

.stat p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pain {
  padding: 40px 0 88px;
}

.pain__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pain-card {
  padding: 36px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.pain-card--candidate {
  border-top: 4px solid var(--accent);
}

.pain-card--employer {
  border-top: 4px solid var(--accent-2);
}

.pain-card h3 {
  margin: 0 0 20px;
  font-size: 1.4rem;
}

.pain-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.pain-card li + li {
  margin-top: 12px;
}

.services {
  padding: 88px 0;
}

.services--dark {
  background: var(--bg-dark);
  color: #fff;
}

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

.service-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card__icon {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
}

.employer-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.employer-benefit {
  padding: 32px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.employer-benefit h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.employer-benefit p {
  margin: 0;
  color: var(--text-light);
}

.ai {
  padding: 88px 0;
}

.ai__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.ai__copy h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  letter-spacing: -0.03em;
}

.ai__copy > p {
  color: var(--text-muted);
}

.ai__list {
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.ai__list li + li {
  margin-top: 10px;
}

.ai__panel {
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #10182b, #18233d);
  color: #fff;
  box-shadow: var(--shadow);
}

.ai-flow {
  display: grid;
  gap: 12px;
}

.ai-flow__step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-flow__step span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  flex-shrink: 0;
}

.ai-flow__step--accent {
  background: rgba(47, 107, 255, 0.18);
  border-color: rgba(47, 107, 255, 0.35);
}

.ai-flow__step--success span {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.ai-flow__arrow {
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
}

.cases {
  padding: 88px 0;
}

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

.case-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.case-card__tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.case-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.case-card p {
  margin: 0;
  color: var(--text-muted);
}

.cta {
  padding: 88px 0 104px;
}

.cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 56px;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, #0f1728, #16213f);
  color: #fff;
  box-shadow: var(--shadow);
}

.cta__copy h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
}

.cta__copy p {
  margin: 0;
  color: var(--text-light);
}

.cta__form {
  display: grid;
  gap: 16px;
}

.cta__form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.cta__form input,
.cta__form select,
.cta__form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
}

.cta__form input::placeholder,
.cta__form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.checkbox {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
}

.checkbox input {
  width: auto;
}

.cta__note {
  margin: 0;
  min-height: 1.2em;
  color: #86efac;
  font-size: 0.92rem;
}

.footer {
  padding: 56px 0 32px;
  background: #0a0e18;
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer__brand p {
  margin: 16px 0 0;
  color: var(--text-light);
  max-width: 280px;
}

.footer__links h4 {
  margin: 0 0 16px;
  font-size: 0.9rem;
}

.footer__links a {
  display: block;
  color: var(--text-light);
  margin-bottom: 10px;
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
}

@media (max-width: 1024px) {
  .ai__grid,
  .cta__inner,
  .stats__grid,
  .services__grid,
  .cases__grid,
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .pain__grid,
  .ai__grid,
  .cta__inner,
  .stats__grid,
  .services__grid,
  .employer-benefits,
  .cases__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 40px;
  }

  .hero__trust {
    flex-direction: column;
    text-align: center;
    margin-top: 40px;
  }

  .stats {
    padding-bottom: 24px;
  }

  .stats__head {
    margin-bottom: 32px;
  }

  .pain {
    padding-top: 32px;
  }

  .cta__inner {
    padding: 32px 24px;
  }
}

@media (max-width: 1100px) {
  .header {
    padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  }

  .header .container.header__inner {
    width: 100%;
    max-width: 1180px;
    margin: 0;
    padding: 0;
  }

  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .nav,
  .header__actions {
    display: none !important;
  }

  .logo {
    min-width: 0;
    max-width: calc(100% - 48px);
    flex: 1 1 auto;
    overflow: hidden;
  }

  .logo__mark {
    flex-shrink: 0;
  }

  .logo__text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .logo__text em {
    display: none;
  }

  .burger {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin: 0;
    position: relative;
    z-index: 2;
  }

  .burger span {
    width: 20px;
  }

  .hero {
    padding: calc(var(--header-h) + 32px) 0 48px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: stretch;
  }

  .hero__cta {
    margin-bottom: 24px;
  }

  .hero__trust {
    margin-top: 32px;
  }

  .hero__visual {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .hero-card,
  .hero-card--main,
  .hero-card--float {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .hero-card--main {
    text-align: center;
    padding: 24px 24px 20px;
  }

  .hero-card--main > p {
    margin: 0;
  }

  .hero-card__subs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
  }

  .hero-card--float {
    padding: 16px 20px;
    border-top: none;
    text-align: left;
  }

  .hero-card--float + .hero-card--float {
    border-left: 1px solid var(--border);
  }

  .hero-card--float:last-child {
    padding-bottom: 20px;
  }

  .hero-card--float strong {
    margin-top: 0;
    font-size: 0.92rem;
  }

  .hero-card--float small {
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .hero-card__subs {
    grid-template-columns: 1fr;
  }

  .hero-card--float + .hero-card--float {
    border-left: none;
    border-top: 1px solid var(--border);
  }
}
