:root {
  --ink: #111111;
  --text: #202124;
  --muted: #5f655f;
  --cream: #f3efe5;
  --cream-2: #e9e2d5;
  --surface: #fbf8f1;
  --line: rgba(32, 33, 36, 0.13);
  --line-strong: rgba(32, 33, 36, 0.22);
  --blue: #606af2;
  --blue-deep: #4b55df;
  --green: #536f57;
  --green-soft: #dde7d8;
  --white: #f6f4ef;
  --hero-image: url("assets/relay-mercury-hero.png");
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

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

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

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

.nav {
  width: min(1216px, calc(100% - 64px));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.nav-links {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 44px;
  font-size: 14px;
  font-weight: 500;
}

.nav-login {
  justify-self: end;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(58, 69, 191, 0.28);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 118px 28px 72px;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(12, 16, 22, 0.32), rgba(12, 16, 22, 0.1) 38%, rgba(12, 16, 22, 0.62) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-center {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
  transform: translateY(-54px);
}

h1 {
  max-width: 720px;
  margin: 0 auto 18px;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 56px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-center > p:last-of-type {
  max-width: 610px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.46;
}

.hero-lead {
  width: min(500px, 100%);
  min-height: 54px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 5px;
  border-radius: 999px;
  background: rgba(236, 232, 226, 0.38);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 16px 40px rgba(10, 13, 19, 0.16);
}

.hero-lead input {
  min-width: 0;
  width: 100%;
  height: 44px;
  border: 0;
  background: transparent;
  color: white;
  outline: none;
  padding: 0 20px;
  font-weight: 500;
}

.hero-lead input::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.hero-lead a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(58, 69, 191, 0.34);
}

.hero-note {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(19, 21, 31, 0.9);
  color: rgba(255, 255, 255, 0.84);
  padding: 12px 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.trust-band p {
  margin: 0;
  padding: 22px 26px;
  border-right: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.trust-band p:last-child {
  border-right: 0;
}

.section,
.intro-section,
.product-section,
.steps-section,
.fit-section,
.contact-section,
.site-footer {
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
}

.intro-section {
  padding: 112px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 72px;
  align-items: end;
}

.section-label {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 50px;
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: 0;
}

.intro-section > p,
.product-copy p,
.section-heading p,
.contact-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.product-section {
  padding: 92px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1fr);
  gap: 72px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.product-copy p {
  margin-top: 22px;
}

.dashboard {
  border: 1px solid rgba(32, 33, 36, 0.12);
  border-radius: 18px;
  background: #fffdf8;
  padding: 22px;
  box-shadow: 0 8px 8px rgba(38, 46, 36, 0.06);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.dashboard-header span,
.metrics-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-header strong {
  font-size: 21px;
  font-weight: 600;
}

.dashboard-header button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 0 14px;
  font-weight: 800;
}

.candidate-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-radius: 14px;
  padding: 17px;
  background: var(--cream);
}

.candidate-row > div {
  display: flex;
  gap: 14px;
  align-items: center;
}

.avatar {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.candidate-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.candidate-row > span {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.metrics-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.metrics-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 600;
}

.metrics-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline div {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.timeline span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.steps span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.steps h3 {
  margin: 36px 0 10px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

.steps p,
.fit-grid p {
  margin: 0;
  color: var(--muted);
}

.fit-section {
  padding: 92px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
  gap: 72px;
  border-top: 1px solid var(--line);
}

.fit-grid {
  display: grid;
  gap: 16px;
}

.fit-grid div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 26px;
}

.fit-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 22px;
}

.contact-section {
  padding: 92px 0 112px;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1fr);
  gap: 72px;
  border-top: 1px solid var(--line);
}

.contact-copy p {
  margin-top: 22px;
}

.role-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #fffdf8;
  padding: 24px;
}

.role-form label {
  display: grid;
  gap: 8px;
}

.role-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.role-form input,
.role-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.role-form input {
  min-height: 48px;
  padding: 0 14px;
}

.role-form textarea {
  resize: vertical;
  padding: 13px 14px;
}

.role-form input:focus,
.role-form textarea:focus {
  border-color: var(--blue);
}

.role-form ::placeholder {
  color: #878b83;
}

.role-form .full,
.role-form button.full,
.form-status.full {
  grid-column: 1 / -1;
}

.role-form button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer .brand {
  color: var(--green);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .intro-section,
  .product-section,
  .fit-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav,
  .section,
  .intro-section,
  .product-section,
  .steps-section,
  .fit-section,
  .contact-section,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 72px;
    width: min(100% - 28px, 1216px);
  }

  .brand {
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .brand img {
    width: 26px;
    height: 26px;
  }

  .nav-login {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

  .hero {
    min-height: 760px;
    padding: 104px 14px 82px;
    background-position: center bottom;
  }

  .hero-center {
    transform: translateY(-56px);
  }

  h1 {
    font-size: 42px;
  }

  .hero-center > p:last-of-type {
    font-size: 17px;
  }

  .hero-lead {
    grid-template-columns: 1fr;
    gap: 6px;
    border-radius: 24px;
    padding: 8px;
  }

  .hero-lead a {
    width: 100%;
  }

  .hero-note {
    bottom: 0;
  }

  .trust-band {
    grid-template-columns: 1fr 1fr;
  }

  .trust-band p {
    border-bottom: 1px solid var(--line);
  }

  .intro-section,
  .product-section,
  .steps-section,
  .fit-section,
  .contact-section {
    padding: 70px 0;
  }

  h2 {
    font-size: 38px;
  }

  .dashboard,
  .role-form {
    border-radius: 16px;
    padding: 18px;
  }

  .dashboard-header,
  .candidate-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics-grid,
  .role-form {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
