@font-face {
  font-family: "Tofino Display";
  src: url("./assets/fonts/Tofino-Bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Tofino Text";
  src: url("./assets/fonts/TofinoText-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Tofino Text";
  src: url("./assets/fonts/TofinoText-Bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #10152f;
  --muted: #526079;
  --blue-deep: #0d5276;
  --blue-pale: #f4faff;
  --white: #fff;
  --content: 1080px;
  --section-space: clamp(56px, 7vw, 96px);
  font-family: "Tofino Text", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  font-size: 18px;
  line-height: 1.62;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid #007cae;
  outline-offset: 5px;
}

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

h1,
h2,
h3,
p,
figure,
ol,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Tofino Display", "Tofino Text", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  color: var(--muted);
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 12px 16px;
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 560px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-inline: 20px;
  color: var(--white);
  background: #0a3857;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(135deg, rgb(0 95 128 / 70%), rgb(18 77 112 / 74%) 48%, rgb(16 38 63 / 82%)),
    linear-gradient(180deg, rgb(4 45 75 / 28%), rgb(4 45 75 / 46%));
  content: "";
}

.hero__image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}

.site-header {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: flex;
  width: min(var(--content), calc(100% - 64px));
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 48px;
}

.brand img {
  width: 156px;
  height: auto;
  filter: brightness(0) invert(1);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  font-size: 15px;
  font-weight: 700;
}

.primary-nav > a:not(.button) {
  color: rgb(255 255 255 / 94%);
  text-decoration: none;
}

.primary-nav > a:not(.button):hover,
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

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

.button--light {
  color: #123e5e;
  background: var(--white);
}

.button--light:hover {
  background: #edf7fb;
}

.button--dark {
  color: var(--white);
  background: #090d13;
}

.button--dark:hover {
  background: #183d54;
}

.hero__content {
  width: 100%;
  max-width: var(--content);
  padding-block: clamp(132px, 15vw, 192px) clamp(72px, 10vw, 128px);
  text-align: center;
}

.hero h1 {
  max-width: 1040px;
  margin-inline: auto;
  font-size: clamp(42px, 4.5vw, 64px);
  letter-spacing: -0.025em;
}

.hero__content > p {
  max-width: 680px;
  margin: 24px auto 0;
  color: rgb(255 255 255 / 93%);
  font-size: 18px;
  line-height: 1.48;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 24px;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.section {
  padding: var(--section-space) 32px;
}

.market-section {
  background: var(--white);
}

.section__intro,
.market-layout,
.connections-layout,
.steps,
.fitt-layout,
.closing-section__inner,
.site-footer {
  width: min(var(--content), 100%);
  margin-inline: auto;
}

.section__intro {
  max-width: 870px;
  margin-bottom: clamp(32px, 5vw, 56px);
  text-align: center;
}

.section__intro h2,
.fitt-copy h2,
.closing-section h2 {
  font-size: clamp(34px, 4vw, 50px);
}

.section__lede {
  max-width: 680px;
  margin: 18px auto 0;
  font-size: 18px;
  line-height: 1.5;
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(20px, 4vw, 48px);
  border-radius: 22px;
  background: #edf9fe;
}

.market-layout--reverse {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  margin-top: 20px;
  background: #f5f9fb;
}

.market-layout--reverse .market-figure {
  grid-row: 1;
  grid-column: 1;
}

.market-layout--reverse .market-copy {
  grid-row: 1;
  grid-column: 2;
}

.market-copy h3 {
  max-width: 520px;
  font-size: clamp(25px, 3vw, 34px);
}

.market-copy > p {
  max-width: 510px;
  margin-top: 18px;
  font-size: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 36px);
  margin-top: 28px;
  padding: 0;
  list-style: none;
  counter-reset: market-steps;
}

.steps li {
  position: relative;
  padding: 22px 0 22px 38px;
  border-top: 1px solid #d9e4e9;
  counter-increment: market-steps;
}

.steps li::before {
  position: absolute;
  top: 23px;
  left: 0;
  color: #006d93;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  content: counter(market-steps, decimal-leading-zero);
}

.steps h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.steps p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.market-figure {
  overflow: hidden;
  border: 1px solid #dce7ec;
  border-radius: 14px;
  background: var(--white);
}

.market-figure__link {
  display: block;
  overflow: hidden;
  background: #f4faff;
}

.market-figure img {
  width: 100%;
  height: auto;
  transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.market-figure__link:hover img {
  transform: scale(1.015);
}

.market-figure__link:focus-visible {
  outline-offset: -4px;
}

.market-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 16px 20px 18px;
  color: var(--ink);
}

.market-figure figcaption span {
  color: var(--muted);
  font-size: 14px;
}

.market-figure figcaption strong {
  font-family: "Tofino Display", "Tofino Text", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.connections-section {
  padding-top: 0;
}

.connections-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(24px, 5vw, 56px);
  border-radius: 24px;
  color: #edf6ff;
  background: radial-gradient(ellipse at 50% 35%, #1a425e, #0b2237 56%, #071a2c);
}

.prism-frame {
  mix-blend-mode: screen;
}

.prism-frame img {
  width: min(100%, 320px);
  height: auto;
  margin-inline: auto;
}

.data-sources,
.data-outputs {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

.data-sources li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.data-sources li::before {
  flex: 0 0 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--source-color, #ff6b83);
  content: "";
}

.data-sources li:nth-child(2) { --source-color: #ffbe69; }
.data-sources li:nth-child(3) { --source-color: #49ddb1; }
.data-sources li:nth-child(4) { --source-color: #61c8ff; }

.data-outputs a {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgb(152 217 250 / 35%);
  border-radius: 12px;
  color: #b4ebff;
  font-weight: 700;
}

.data-outputs a:hover {
  background: rgb(152 217 250 / 12%);
}

.hero a:focus-visible,
.data-outputs a:focus-visible {
  outline-color: var(--white);
}

.fitt-section {
  background: var(--blue-pale);
}

.fitt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  align-items: center;
  gap: clamp(42px, 8vw, 112px);
}

.fitt-copy h2 {
  max-width: 580px;
}

.fitt-copy > p:last-child {
  max-width: 700px;
  margin-top: 22px;
  font-size: 18px;
}

.fitt-details {
  display: grid;
  gap: 12px;
}

.fitt-details > div {
  padding: 20px;
  border: 1px solid #e1ebf0;
  border-radius: 16px;
  background: var(--white);
}

.fitt-details h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.fitt-details p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.closing-section {
  padding: clamp(72px, 9vw, 120px) 32px;
  color: var(--white);
  background: #0d5276;
}

.closing-section__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.closing-section h2 {
  max-width: 760px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 32px;
  color: #526079;
  font-size: 14px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-brand {
  color: var(--ink);
  font-family: "Tofino Display", "Tofino Text", Arial, sans-serif;
  font-size: 16px;
}

@media (max-width: 880px) {
  .market-layout,
  .fitt-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-layout--reverse .market-copy,
  .market-layout--reverse .market-figure {
    grid-area: auto;
  }
}

@media (max-width: 767px) {
  .site-header {
    width: calc(100% - 40px);
    min-height: 72px;
    gap: 14px;
  }

  .brand img {
    width: 138px;
  }

  .primary-nav {
    gap: 0;
  }

  .primary-nav > a:not(.button) {
    display: none;
  }

  .nav-cta {
    min-height: 44px;
    padding-inline: 16px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .hero {
    min-height: 0;
  }

  .hero::after {
    background:
      linear-gradient(135deg, rgb(4 73 115 / 68%) 0%, rgb(13 65 98 / 58%) 48%, rgb(16 38 63 / 76%) 100%),
      linear-gradient(0deg, rgb(4 31 51 / 46%) 0%, transparent 80%);
  }

  .hero__image {
    object-position: 54% center;
  }

  .hero__content {
    padding-block: 116px 54px;
  }

  .hero h1 {
    max-width: 16ch;
    font-size: clamp(34px, 8.5vw, 48px);
    line-height: 1.05;
  }

  .hero__content > p {
    max-width: 35ch;
    margin-top: 18px;
    font-size: 17px;
  }

  .hero__actions {
    gap: 14px;
  }

  .section {
    padding-inline: 20px;
  }

  .section__intro {
    margin-bottom: 38px;
  }

  .section__intro h2,
  .fitt-copy h2,
  .closing-section h2 {
    font-size: clamp(32px, 8vw, 40px);
    line-height: 1.08;
  }

  .section__lede {
    margin-top: 16px;
    font-size: 18px;
  }

  .market-layout,
  .fitt-layout {
    gap: 24px;
  }

  .market-copy > p,
  .fitt-copy > p:last-child {
    font-size: 17px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .steps li {
    padding-top: 19px;
    padding-bottom: 19px;
  }

  .steps li::before {
    top: 20px;
  }

  .market-figure figcaption {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px 16px;
  }

  .connections-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .data-sources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 14px;
  }

  .prism-frame img {
    width: min(70%, 220px);
  }

  .fitt-details > div {
    padding: 16px;
  }

  .closing-section {
    padding: 76px 20px;
  }

  .closing-section__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .site-footer {
    padding: 22px 20px;
  }
}

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

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