:root {
  --ink: #121a1f;
  --ink-soft: #26343b;
  --paper: #f7f3ec;
  --warm: #fffaf1;
  --muted: #d9e4df;
  --teal: #3e7770;
  --red: #c64d3f;
  --line: rgba(18, 26, 31, 0.16);
  --shadow: 0 20px 60px rgba(18, 26, 31, 0.16);
  --header-height: 76px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--warm);
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
  padding: 14px clamp(20px, 4vw, 56px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 26, 31, 0.72);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: clamp(104px, 10vw, 150px);
  height: auto;
  transition: transform 180ms ease;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav a {
  opacity: 0.86;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  padding-top: var(--header-height);
}

.hero__image,
.hero__scrim {
  position: absolute;
  inset: 0;
}

.hero__image {
  z-index: -2;
  background-image: url("assets/relay-hero-people.png");
  background-size: cover;
  background-position: 58% center;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero__scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 26, 31, 0.95) 0%, rgba(18, 26, 31, 0.74) 42%, rgba(18, 26, 31, 0.18) 100%),
    linear-gradient(0deg, rgba(18, 26, 31, 0.78) 0%, rgba(18, 26, 31, 0.08) 54%);
}

.hero__content {
  width: min(760px, calc(100% - 40px));
  margin: 0 clamp(20px, 6vw, 84px);
  color: #fff;
  animation: hero-rise 780ms ease-out both;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.section--ink .eyebrow {
  color: #ff8a76;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.85rem, 5.4vw, 5.15rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.68;
}

.hero__lede {
  max-width: 660px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 14px 28px rgba(198, 77, 63, 0.24);
}

.button--primary:hover {
  background: #ad4135;
  box-shadow: 0 18px 36px rgba(198, 77, 63, 0.3);
}

.button--secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.section {
  padding: clamp(76px, 10vw, 132px) 0;
}

.section--light {
  background: var(--paper);
}

.section--ink {
  color: #fff;
  background: var(--ink);
}

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

.section__heading {
  max-width: 850px;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.intro {
  padding: clamp(58px, 7vw, 92px) 0;
  border-bottom: 1px solid var(--line);
}

.intro__grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 84px);
  align-items: start;
}

.intro p {
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.intro h2 {
  max-width: 620px;
  font-size: clamp(2.35rem, 4vw, 4rem);
  line-height: 1.04;
}

.intro__grid > p {
  max-width: 640px;
  padding-top: 42px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.step {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--warm);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.step:hover,
.feature-grid article:hover,
.savings__grid article:hover {
  transform: translateY(-4px);
}

.step__number {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.step p,
.feature-grid p {
  font-size: 0.96rem;
}

.copy-stack {
  display: grid;
  gap: 34px;
}

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

.feature-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.feature-grid article:hover {
  border-color: rgba(62, 119, 112, 0.34);
  box-shadow: 0 16px 34px rgba(18, 26, 31, 0.08);
}

.feature-grid h3 {
  margin-bottom: 10px;
}

.savings p,
.section--ink p {
  color: rgba(255, 255, 255, 0.76);
}

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

.savings__grid article {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.savings__grid article:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
}

.savings__grid span {
  color: #a9c8c2;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.savings__grid strong {
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  line-height: 1.35;
}

.savings__note {
  max-width: 780px;
  margin-top: 34px;
  font-size: 1.08rem;
}

.final {
  background:
    linear-gradient(180deg, rgba(62, 119, 112, 0.12), rgba(62, 119, 112, 0)),
    var(--warm);
}

.final__inner {
  max-width: 920px;
  text-align: center;
}

.final h2 {
  margin: 0 auto;
  max-width: 780px;
}

.final p:not(.eyebrow) {
  max-width: 720px;
  margin: 24px auto 32px;
}

@media (max-width: 900px) {
  .site-header {
    color: #fff;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 84svh;
  }

  .hero__scrim {
    background:
      linear-gradient(90deg, rgba(18, 26, 31, 0.9) 0%, rgba(18, 26, 31, 0.45) 100%),
      linear-gradient(0deg, rgba(18, 26, 31, 0.88) 0%, rgba(18, 26, 31, 0.1) 62%);
  }

  .intro__grid,
  .split,
  .steps,
  .savings__grid {
    grid-template-columns: 1fr;
  }

  .intro__grid > p {
    padding-top: 0;
  }

  .step {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 20px;
  }

  .hero__content {
    align-self: end;
    margin-bottom: 54px;
  }

  h1 {
    font-size: clamp(2.3rem, 9.2vw, 3.35rem);
  }

  .button {
    width: 100%;
  }

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

.js .section,
.js .step,
.js .feature-grid article,
.js .savings__grid article {
  opacity: 0;
  transform: translateY(18px);
}

.js .section.is-visible,
.js .step.is-visible,
.js .feature-grid article.is-visible,
.js .savings__grid article.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 560ms ease, transform 560ms ease;
}

.js .step:nth-child(2),
.js .feature-grid article:nth-child(2),
.js .savings__grid article:nth-child(2) {
  transition-delay: 80ms;
}

.js .step:nth-child(3),
.js .feature-grid article:nth-child(3),
.js .savings__grid article:nth-child(3) {
  transition-delay: 150ms;
}

.js .step:nth-child(4),
.js .feature-grid article:nth-child(4) {
  transition-delay: 220ms;
}

.js .step.is-visible:hover,
.js .feature-grid article.is-visible:hover,
.js .savings__grid article.is-visible:hover {
  transform: translateY(-4px);
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(-8px, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(12px, -8px, 0);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .js .section,
  .js .step,
  .js .feature-grid article,
  .js .savings__grid article {
    opacity: 1;
    transform: none;
  }
}
