:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-soft: #0e1013;
  --surface: #15171a;
  --surface-2: #1b1d20;
  --text: #f4f3f0;
  --muted: #a7a8ab;
  --border: #34373b;
  --yellow: #ffc51b;
  --yellow-strong: #ffd42b;
  --coral: #ff6b60;
  --teal: #5fd6cc;
  --violet: #9b84ea;
  --green: #6fd08a;
  --max: 1440px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 70% 12%, rgb(255 197 27 / 4%), transparent 28rem),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: var(--yellow);
  color: #090a0c;
  transform: translateY(-200%);
}

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

.site-header,
.site-footer,
.section,
.hero {
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  width: max-content;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 720;
  letter-spacing: -.02em;
}

.brand img {
  border-radius: 12px;
}

.site-header > nav,
.site-footer > nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
}

.site-header nav a,
.site-footer nav a {
  color: #c5c5c7;
  text-decoration: none;
  font-size: .93rem;
  transition: color 160ms ease;
}

.site-header nav a:hover,
.site-footer nav a:hover {
  color: var(--text);
}

.site-header > .button {
  justify-self: end;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 650;
  letter-spacing: -.01em;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button:focus-visible,
nav a:focus-visible,
.text-link:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgb(255 197 27 / 45%);
  outline-offset: 4px;
}

.button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button svg path[d^="M12 2"] {
  fill: currentColor;
  stroke: none;
}

.button-primary {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #090a0c;
  box-shadow: 0 10px 38px rgb(255 197 27 / 12%);
}

.button-primary:hover {
  background: var(--yellow-strong);
}

.button-outline {
  border-color: #55575b;
  background: #181a1d;
}

.button-outline:hover {
  border-color: #83858a;
  background: #1a1c20;
}

.button-small {
  min-height: 44px;
  padding: .65rem 1rem;
  border-color: #6d580c;
  color: var(--yellow);
}

.hero {
  min-height: 730px;
  display: grid;
  grid-template-columns: minmax(350px, .82fr) minmax(620px, 1.45fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  padding: 4.5rem 0 6rem;
  overflow: visible;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

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

h1 {
  max-width: 660px;
  margin-bottom: 1.5rem;
  font-size: clamp(3.2rem, 5.1vw, 5.65rem);
  line-height: .98;
  letter-spacing: -.061em;
}

.hero-copy > p:not(.platforms) {
  max-width: 610px;
  margin-bottom: 2.5rem;
  color: #b8b9bc;
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.63;
}

.hero-copy code,
.format-intro code {
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  letter-spacing: -.035em;
}

.inline-link {
  color: var(--text);
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 1px;
  text-underline-offset: .25rem;
}

.inline-link:hover {
  color: var(--yellow);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.platforms {
  margin: 1.65rem 0 0;
  color: #a4a5a7;
  font-size: .95rem;
}

.platforms span {
  margin-inline: .45rem;
  color: #5e6064;
}

.button[aria-disabled="true"],
.download-option-grid a[aria-disabled="true"] {
  cursor: wait;
  opacity: .68;
  pointer-events: none;
}

.download-status {
  min-height: 1.25rem;
}

.download-options {
  width: min(100%, 600px);
  margin-top: 1rem;
}

.download-options summary {
  width: max-content;
  color: #b9babc;
  cursor: pointer;
  font-size: .9rem;
  text-decoration: underline;
  text-decoration-color: #55575b;
  text-underline-offset: .3rem;
}

.download-options summary:hover {
  color: var(--text);
  text-decoration-color: var(--yellow);
}

.download-options summary:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgb(255 197 27 / 45%);
  outline-offset: 4px;
}

.download-option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  margin-top: 1rem;
}

.download-option-grid a {
  display: grid;
  gap: .35rem;
  min-width: 0;
  padding: .8rem .9rem;
  border: 1px solid #3e4145;
  border-radius: 8px;
  background: #121417;
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.download-option-grid a:hover {
  border-color: #777a7f;
  background: #181a1d;
}

.download-option-grid a:focus-visible {
  outline: 3px solid rgb(255 197 27 / 45%);
  outline-offset: 3px;
}

.download-option-grid strong {
  font-size: .9rem;
}

.download-option-grid span {
  color: #929397;
  font-size: .73rem;
  line-height: 1.35;
}

.route-lines {
  position: absolute;
  z-index: -1;
  left: 78%;
  top: 67%;
  width: 310px;
  display: grid;
  gap: 36px;
}

.route-lines span {
  display: block;
  height: 1px;
  background: currentColor;
}

.route-lines span::before {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  transform: translate(-4px, -3px);
}

.coral { --accent: var(--coral); color: var(--coral); }
.teal { --accent: var(--teal); color: var(--teal); }
.yellow { --accent: var(--yellow); color: var(--yellow); }
.violet { --accent: var(--violet); color: var(--violet); }

.product-frame {
  position: relative;
  z-index: 1;
  width: 105%;
  margin: 0;
  border: 1px solid #45474b;
  border-radius: 15px;
  background: #101114;
  box-shadow: 0 34px 90px rgb(0 0 0 / 45%);
  overflow: hidden;
}

.product-frame::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 2%);
  pointer-events: none;
  content: "";
}

.product-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  padding-block: clamp(5.5rem, 9vw, 9rem);
}

.workflow {
  border-top: 1px solid var(--border);
}

.section-heading h2,
.format-intro h2,
.open-source h2 {
  margin-bottom: 3.5rem;
  font-size: clamp(2.4rem, 4.4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.052em;
}

.section-heading h2 {
  max-width: 920px;
}

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

.workflow-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.3rem 2.5rem 0 0;
  border-top: 3px solid var(--accent);
}

.workflow-step::after {
  position: absolute;
  top: -8px;
  right: -1px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  content: "";
}

.workflow-step:last-child::after {
  display: none;
}

.step-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--text);
  font-size: .86rem;
}

.workflow-step h3 {
  margin-bottom: .55rem;
  color: var(--accent);
  font-size: 1.25rem;
  letter-spacing: -.025em;
}

.workflow-step p {
  max-width: 355px;
  margin: 0;
  color: #aaa;
  font-size: .96rem;
  line-height: 1.62;
}

.timeline-detail {
  position: relative;
  padding: 2.4rem 3rem 3rem;
  border: 1px solid #3b3d40;
  border-radius: 14px;
  background: linear-gradient(180deg, #17191c, #101113);
  box-shadow: 0 24px 60px rgb(0 0 0 / 30%);
}

.timeline-top,
.timeline-track,
.timeline-ruler {
  display: grid;
  grid-template-columns: 1.25fr 1fr 3.1fr 1.25fr;
  gap: 4px;
}

.timeline-top {
  margin-bottom: .65rem;
  color: #b7b8ba;
  font-size: .8rem;
  text-align: center;
}

.timeline-track span {
  height: 44px;
  border: 1px solid color-mix(in srgb, currentColor 70%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, currentColor 34%, #17191c);
}

.timeline-ruler {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 1rem;
  color: #77797d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .75rem;
}

.timeline-ruler span:last-child {
  text-align: right;
}

.playhead {
  position: absolute;
  top: 1.8rem;
  bottom: 2rem;
  left: 42%;
  width: 2px;
  background: #f6f6f4;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 60%);
}

.playhead::before {
  position: absolute;
  top: 0;
  left: -5px;
  width: 12px;
  height: 12px;
  border-radius: 2px 2px 50% 50%;
  background: #f6f6f4;
  content: "";
  transform: rotate(45deg);
}

.format-section {
  width: 100%;
  max-width: none;
  padding-inline: max(32px, calc((100vw - var(--max)) / 2));
  border-block: 1px solid var(--border);
  background: #0d0f11;
}

.format-intro {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(3rem, 8vw, 10rem);
  align-items: end;
  margin-bottom: 5.5rem;
}

.format-intro h2 {
  max-width: 610px;
  margin: 0;
}

.format-summary > p {
  max-width: 670px;
  margin: 0;
  padding-left: 2rem;
  border-left: 1px solid #5a5c60;
  color: #b8b9bb;
  font-size: 1.1rem;
  line-height: 1.65;
}

.format-credit {
  max-width: 610px;
  margin: 1.35rem 0 0;
  color: #a7a8ab;
  font-size: 1rem;
  line-height: 1.6;
}

.format-links {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 2rem;
}

.format-links .text-link {
  margin-top: 1.35rem;
}

.format-signature {
  display: grid;
  grid-template-columns: minmax(220px, .62fr) 1.2fr .8fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  margin-bottom: 5.5rem;
  padding: clamp(2rem, 4vw, 4rem);
  border-block: 1px solid #44474b;
}

.format-signature > code {
  color: var(--yellow);
  font: 700 clamp(4.5rem, 9vw, 8.5rem)/.85 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.095em;
}

.format-signature h3 {
  margin-bottom: .8rem;
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.format-signature p {
  max-width: 680px;
  margin: 0;
  color: #aeb0b3;
  line-height: 1.65;
}

.format-signature dl {
  display: grid;
  gap: 1.2rem;
  margin: 0;
}

.format-signature dl div {
  padding-top: 1rem;
  border-top: 1px solid #3d4044;
}

.format-signature dt {
  margin-bottom: .4rem;
  color: #7f8185;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.format-signature dd {
  margin: 0;
  color: #d8d8d6;
  font: .86rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
}

.feature-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.feature-rail article {
  position: relative;
  min-height: 180px;
  padding: 1.25rem 1.3rem 0;
  border-left: 1px solid #3a3c40;
  color: var(--text);
}

.feature-rail article:first-child {
  padding-left: 0;
  border-left: 0;
}

.feature-rail article::before {
  display: block;
  width: 60%;
  height: 3px;
  margin-bottom: 1.35rem;
  background: var(--accent);
  content: "";
}

.feature-rail h3 {
  margin-bottom: .65rem;
  font-size: .98rem;
  line-height: 1.35;
}

.feature-rail p {
  margin: 0;
  color: #929397;
  font-size: .84rem;
  line-height: 1.58;
}

.open-source {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: clamp(4rem, 10vw, 10rem);
  align-items: center;
}

.open-source h2 {
  max-width: 720px;
  margin-bottom: 1.6rem;
}

.open-source-copy > p {
  max-width: 700px;
  margin-bottom: 2.25rem;
  color: #b4b5b8;
  font-size: 1.08rem;
  line-height: 1.66;
}

.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--yellow);
  font-size: .98rem;
  text-underline-offset: .3rem;
}

.text-link span {
  margin-left: .4rem;
}

.bundle-output {
  overflow: hidden;
  border: 1px solid #4b4d51;
  border-radius: 14px;
  background: linear-gradient(145deg, #141619, #0c0d0f);
  box-shadow: 0 28px 70px rgb(0 0 0 / 33%);
}

.window-dots {
  display: flex;
  gap: .6rem;
  padding: 1.4rem;
  border-bottom: 1px solid #3b3d41;
}

.window-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
}

.window-dots span:nth-child(2) { background: var(--yellow); }
.window-dots span:nth-child(3) { background: var(--green); }

.bundle-output ol {
  margin: 0;
  padding: 2rem 2rem 1.5rem 4.5rem;
  color: #76787c;
  font: 1rem/2.7 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.bundle-output li {
  padding-left: .7rem;
}

.bundle-output li span {
  color: var(--text);
}

.bundle-output li::marker {
  color: #73757a;
}

.bundle-output li span::before {
  display: inline-block;
  width: 12px;
  height: 15px;
  margin-right: 1rem;
  border: 1px solid var(--accent, #aaa);
  border-radius: 2px;
  content: "";
  transform: translateY(2px);
}

.bundle-output > p {
  margin: 0;
  padding: 1rem 2rem 1.4rem;
  border-top: 1px solid #292b2f;
  color: #a2a3a6;
  font-size: .88rem;
}

.closing {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.4rem;
  align-items: center;
  margin-bottom: 5rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 16px;
  background: var(--yellow);
  color: #090a0c;
}

.closing img {
  border-radius: 22px;
}

.closing h2 {
  margin-bottom: .5rem;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: -.05em;
}

.closing p {
  margin: 0;
  font-size: 1.05rem;
}

.button-dark {
  min-width: 220px;
  background: #0c0d0f;
  color: var(--yellow);
}

.site-footer {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--border);
}

.footer-brand {
  color: #c6c7c9;
  font-size: .9rem;
  font-weight: 500;
}

.footer-identity {
  display: grid;
  gap: .55rem;
}

.footer-identity > p {
  margin: 0 0 0 3.2rem;
  color: #77797d;
  font-size: .78rem;
  line-height: 1.5;
}

.footer-identity > p a {
  color: #b3b4b6;
  text-underline-offset: .2rem;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header > nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 5rem;
  }

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

  .route-lines {
    display: none;
  }

  .product-frame {
    width: 100%;
  }

  .feature-rail {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 3rem;
  }

  .feature-rail article:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }

  .open-source {
    gap: 4rem;
  }

  .format-signature {
    grid-template-columns: .65fr 1.35fr;
  }

  .format-signature dl {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

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

  .closing .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .section,
  .hero {
    width: min(calc(100% - 36px), var(--max));
  }

  .site-header {
    min-height: 78px;
  }

  .site-header .brand span,
  .site-header .button span {
    display: none;
  }

  .site-header .button {
    width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .hero {
    min-height: auto;
    gap: 3.5rem;
    padding: 4rem 0 5rem;
    overflow: hidden;
  }

  h1 {
    font-size: clamp(3.15rem, 15vw, 5rem);
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }

  .download-options,
  .download-options summary {
    width: 100%;
  }

  .download-option-grid {
    grid-template-columns: 1fr;
  }

  .product-frame {
    width: 155%;
  }

  .section {
    padding-block: 5.5rem;
  }

  .workflow-list {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .workflow-step {
    border-top-width: 2px;
  }

  .workflow-step::after {
    display: none;
  }

  .timeline-detail {
    padding: 1.5rem 1rem 2.4rem;
    overflow: hidden;
  }

  .timeline-top {
    font-size: .63rem;
  }

  .format-section {
    padding-inline: 18px;
  }

  .format-intro,
  .open-source {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .format-summary > p {
    padding: 1.5rem 0 0;
    border-top: 1px solid #5a5c60;
    border-left: 0;
  }

  .format-signature {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    padding-inline: 0;
  }

  .format-signature dl {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

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

  .feature-rail article:nth-child(3),
  .feature-rail article:nth-child(5) {
    padding-left: 0;
    border-left: 0;
  }

  .feature-rail article:nth-child(4) {
    padding-left: 1.3rem;
    border-left: 1px solid #3a3c40;
  }

  .closing {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    margin-bottom: 3rem;
    padding: 2rem;
  }

  .closing img {
    width: 72px;
    height: 72px;
    border-radius: 15px;
  }

  .closing .button {
    grid-column: 1;
    width: 100%;
  }

  .site-footer {
    min-height: 200px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .site-footer > nav {
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }

  .footer-identity > p {
    max-width: 300px;
  }
}

@media (max-width: 460px) {
  .feature-rail {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-rail article,
  .feature-rail article:nth-child(4) {
    min-height: auto;
    padding-left: 0;
    border-left: 0;
  }

  .product-frame {
    width: 190%;
  }
}

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

  .button,
  .site-header nav a,
  .site-footer nav a {
    transition: none;
  }
}
