:root {
  --ink: #182031;
  --muted: #626b7c;
  --line: #d8dde6;
  --paper: #f4f6f8;
  --paper-deep: #e9edf2;
  --accent: #3d5bc7;
  --accent-dark: #2d47a7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

main {
  min-height: 100dvh;
}

.site-header {
  align-items: center;
  display: flex;
  height: 76px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1240px;
  padding: 0 32px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 20px;
  font-weight: 650;
  gap: 10px;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  position: relative;
  width: 28px;
}

.brand-mark::before,
.brand-mark::after {
  border: 2px solid var(--accent);
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  content: "";
  position: absolute;
  transform: rotate(45deg);
}

.brand-mark::before {
  height: 11px;
  width: 11px;
}

.brand-mark::after {
  height: 18px;
  width: 18px;
}

.brand-mark span {
  background: var(--accent);
  border-radius: 50%;
  height: 4px;
  width: 4px;
}

.header-link {
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 5px 0;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.header-link:hover,
.header-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(40px, 7vw, 96px);
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  margin: 0 auto;
  max-width: 1240px;
  min-height: calc(100dvh - 76px);
  padding: 40px 32px 88px;
}

.hero-copy {
  max-width: 670px;
}

.eyebrow {
  color: var(--accent-dark);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0 0 28px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(56px, 6.7vw, 96px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.9;
  margin-bottom: 32px;
}

h1 span {
  display: block;
}

h1 span:last-child {
  color: var(--accent);
}

.hero-summary {
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
  margin-bottom: 34px;
  max-width: 590px;
}

.primary-link {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 14px;
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  gap: 22px;
  justify-content: space-between;
  min-width: 164px;
  padding: 14px 16px 14px 18px;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.primary-link:active {
  transform: translateY(1px);
}

.hero-art {
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(24, 32, 49, 0.06);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.hero-art::after {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  content: "";
  inset: 14px;
  pointer-events: none;
  position: absolute;
}

.hero-art img {
  height: 100%;
  object-fit: cover;
  object-position: right center;
  width: 100%;
}

.flow-section {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: clamp(88px, 11vw, 144px) max(32px, calc((100vw - 1176px) / 2));
}

.flow-heading {
  max-width: 620px;
}

.flow-heading h2,
.promise h2 {
  font-size: clamp(42px, 5.4vw, 70px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin-bottom: 24px;
}

.flow-heading > p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 72px;
  max-width: 560px;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow-list li {
  border-top: 1px solid var(--ink);
  min-height: 190px;
  padding: 32px 40px 16px 0;
  position: relative;
}

.flow-list li:not(:last-child)::after {
  color: var(--accent);
  content: "→";
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 22px;
  position: absolute;
  right: 28px;
  top: 24px;
}

.flow-node {
  background: var(--accent);
  border-radius: 50%;
  display: block;
  height: 10px;
  margin-bottom: 42px;
  width: 10px;
}

.flow-list h3 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}

.flow-list p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
  max-width: 250px;
}

.promise {
  margin: 0 auto;
  max-width: 1240px;
  padding: clamp(96px, 13vw, 176px) 32px;
}

.promise h2 {
  max-width: 850px;
}

.promise ul {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0;
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
}

.promise li {
  color: var(--muted);
  flex: 1;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  padding: 22px 16px 0 0;
}

.promise li::before {
  color: var(--accent);
  content: "✓";
  margin-right: 9px;
}

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1176px;
  padding: 30px 0 44px;
}

.footer-brand {
  font-size: 17px;
}

.footer-brand .brand-mark {
  height: 24px;
  width: 24px;
}

footer p {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  margin-bottom: 0;
}

:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 4px;
}

@media (max-width: 800px) {
  .site-header {
    height: 68px;
    padding: 0 20px;
  }

  .header-link {
    font-size: 13px;
  }

  .hero {
    gap: 48px;
    grid-template-columns: 1fr;
    padding: 56px 20px 72px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .hero-summary {
    font-size: 18px;
  }

  .flow-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .flow-heading > p {
    margin-bottom: 52px;
  }

  .flow-list {
    grid-template-columns: 1fr;
  }

  .flow-list li {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: 20px 1fr;
    min-height: auto;
    padding: 28px 0 32px;
  }

  .flow-list li:not(:last-child)::after {
    bottom: -10px;
    left: 0;
    right: auto;
    top: auto;
    transform: rotate(90deg);
  }

  .flow-node {
    margin: 8px 0 0;
  }

  .promise {
    padding-left: 20px;
    padding-right: 20px;
  }

  .promise ul {
    display: block;
    margin-top: 48px;
  }

  .promise li {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }

  footer {
    align-items: flex-start;
    margin: 0 20px;
  }

  footer p {
    max-width: 140px;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
