:root {
  --carbon: #0e1116;
  --bone: #f3f1ec;
  --sage: #778f5a;
  --violet: #6b52d9;
  --coral: #c1685b;
  --white: #ffffff;
  --shell: 1240px;
  --line-dark: rgba(243, 241, 236, 0.13);
  --line-light: rgba(14, 17, 22, 0.10);
  --muted-dark: rgba(243, 241, 236, 0.72);
  --muted-light: rgba(14, 17, 22, 0.64);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--carbon);
}

body {
  margin: 0;
  color: var(--carbon);
  background: var(--bone);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

svg {
  display: block;
}

.shell {
  width: min(calc(100% - 64px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--carbon);
  background: var(--bone);
}

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

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  color: var(--bone);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand-mark {
  width: 106px;
  height: auto;
}

.wordmark,
.hero-wordmark,
.footer-wordmark {
  font-family: "Jura", sans-serif;
  font-weight: 300;
  letter-spacing: 0.045em;
}

.wordmark {
  font-size: 27px;
  line-height: 1;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(243, 241, 236, 0.82);
}

.primary-nav a,
.header-cta,
.button,
.text-link {
  transition: transform 180ms var(--ease), color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--white);
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--violet);
  border-radius: 10px;
  color: var(--bone);
  font-size: 13px;
  font-weight: 700;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: rgba(107, 82, 217, 0.10);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--bone);
  background: var(--carbon);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 620px;
  height: 620px;
  right: -180px;
  top: 110px;
  border: 1px solid rgba(107, 82, 217, 0.15);
  border-radius: 58px;
  transform: rotate(8deg);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 620px;
  padding-top: 134px;
  padding-bottom: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.95fr);
  align-items: center;
  gap: clamp(58px, 7vw, 112px);
}

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

.eyebrow {
  margin: 0;
  color: var(--violet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 27px 0 24px;
  max-width: 720px;
  font-size: clamp(58px, 6.3vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.065em;
  font-weight: 800;
}

.hero h1 span {
  color: var(--violet);
}

.hero-lede {
  max-width: 650px;
  margin: 0;
  color: var(--muted-dark);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.48;
  letter-spacing: -0.015em;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
}

.button {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 10px;
}

.button-primary {
  color: var(--white);
  background: var(--violet);
  border: 1px solid var(--violet);
}

.button-primary:hover,
.button-primary:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-2px);
}

.text-link {
  color: var(--bone);
}

.text-link span,
.button span {
  color: var(--bone);
}

.hero-note {
  margin: 32px 0 0;
  color: rgba(243, 241, 236, 0.48);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.hero-brand-card {
  min-height: 382px;
  padding: 44px 42px 34px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(243, 241, 236, 0.17);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.018);
}

.hero-logo {
  width: min(100%, 520px);
  height: auto;
}

.hero-wordmark {
  margin-top: 2px;
  font-size: clamp(46px, 5vw, 70px);
  line-height: 1;
  color: var(--bone);
}

.stream,
.node,
.arrow,
.mark-s {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stream {
  stroke-width: 9;
}

.node {
  stroke-width: 8;
}

.arrow {
  stroke-width: 9;
}

.sage { stroke: var(--sage); }
.violet { stroke: var(--violet); }
.coral { stroke: var(--coral); }

.mark-s {
  stroke-width: 31;
}

.mark-s-dark {
  stroke: var(--bone);
}

.platform {
  padding: 38px 0 54px;
  background: var(--bone);
}

.platform-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 44px;
  margin-bottom: 26px;
}

.platform-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.platform-heading p {
  max-width: 500px;
  margin: 0 0 3px auto;
  color: var(--muted-light);
  font-size: 15px;
}

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

.product-card {
  min-height: 212px;
  padding: 30px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 26px;
  align-items: start;
  border: 1px solid var(--line-light);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.38);
  transition: transform 200ms var(--ease), box-shadow 200ms ease, border-color 200ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 17, 22, 0.18);
  box-shadow: 0 18px 44px rgba(14, 17, 22, 0.07);
}

.product-icon {
  width: 92px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 13px;
}

.product-icon svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-flow .product-icon { background: var(--sage); }
.product-works .product-icon { background: var(--violet); }
.product-field .product-icon { background: var(--coral); }

.product-name {
  margin: 2px 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-flow .product-name,
.product-flow .card-link { color: var(--sage); }
.product-works .product-name,
.product-works .card-link { color: var(--violet); }
.product-field .product-name,
.product-field .card-link { color: var(--coral); }

.product-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.product-card p:not(.product-name) {
  margin: 0;
  color: var(--muted-light);
  font-size: 14px;
  line-height: 1.45;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  font-size: 13px;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line-dark);
  color: rgba(243, 241, 236, 0.56);
  background: var(--carbon);
}

.footer-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 24px;
  font-size: 12px;
}

.footer-wordmark {
  color: var(--bone);
  font-size: 23px;
}

.footer-inner span:nth-child(2) {
  text-align: center;
}

.footer-inner span:last-child {
  text-align: right;
}

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

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 132px;
    gap: 42px;
  }

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

  .hero-brand-card {
    width: min(100%, 720px);
    justify-self: center;
  }

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

  .product-card {
    grid-template-columns: 84px 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .header-inner {
    min-height: 72px;
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .brand-mark {
    width: 78px;
  }

  .wordmark {
    font-size: 23px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }

  .header-cta span {
    display: none;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 112px;
    padding-bottom: 54px;
  }

  .hero h1 {
    font-size: clamp(50px, 13vw, 72px);
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-brand-card {
    min-height: 280px;
    padding: 26px 20px 24px;
    border-radius: 20px;
  }

  .hero-wordmark {
    font-size: clamp(40px, 11vw, 58px);
  }

  .platform {
    padding-top: 32px;
  }

  .platform-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .platform-heading p {
    margin: 0;
  }

  .product-card {
    min-height: 0;
    padding: 24px;
    grid-template-columns: 74px 1fr;
    gap: 20px;
  }

  .product-icon {
    width: 74px;
  }

  .product-icon svg {
    width: 48px;
    height: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner span:nth-child(2) {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand {
    gap: 7px;
  }

  .brand-mark {
    width: 68px;
  }

  .wordmark {
    font-size: 21px;
  }

  .header-cta {
    padding: 0 12px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .button {
    justify-content: center;
    width: 100%;
  }

  .text-link {
    justify-content: center;
  }

  .hero-brand-card {
    min-height: 238px;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-icon {
    width: 68px;
  }

  .footer-inner {
    min-height: 76px;
  }
}

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

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