:root {
  --paper: #f3efe4;
  --paper-deep: #e8e1d2;
  --ink: #131923;
  --ink-soft: #394151;
  --line: #cfc6b4;
  --blue: #295dff;
  --blue-dark: #1946d6;
  --rust: #b74725;
  --white: #fffdf8;
  --shadow: 0 24px 70px rgb(19 25 35 / 14%);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

code,
pre {
  font-family: var(--mono);
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 4px;
  font-weight: 700;
}

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

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand img {
  object-fit: contain;
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}

.site-header nav a,
.site-footer nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

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

.site-header .nav-github {
  padding: 8px 13px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 134px) 0 104px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.28;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, black, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: clamp(54px, 8vw, 100px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 24px;
  height: 2px;
  background: var(--rust);
}

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

.hero h1,
.section-heading h2,
.compare-grid h2,
.cta-card h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(54px, 6.4vw, 86px);
}

.hero h1 em {
  color: var(--blue);
  font-weight: inherit;
}

.hero-lede {
  max-width: 580px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 4px 4px 0 var(--ink);
  color: white;
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  background: transparent;
}

.button-secondary:hover {
  background: var(--white);
}

.install-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 0;
  color: #75705f;
  font-size: 13px;
}

.install-line code {
  color: var(--ink-soft);
}

.hero-visual {
  position: relative;
  min-height: 540px;
}

.source-window {
  position: absolute;
  top: 0;
  left: 0;
  width: 62%;
  overflow: hidden;
  border: 1px solid #363e4d;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: #dce3ee;
  transform: rotate(-2deg);
}

.window-bar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border-bottom: 1px solid #303745;
  background: #1c2431;
}

.window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #687183;
}

.window-bar span:first-child {
  background: var(--rust);
}

.window-bar small {
  margin-left: auto;
  color: #9ba7ba;
  font: 10px var(--mono);
}

.source-window pre {
  margin: 0;
  padding: 28px 24px 34px;
  font-size: clamp(10px, 1.15vw, 13px);
  line-height: 1.75;
}

.code-muted { color: #778398; }
.code-tag { color: #78a8ff; }
.code-value { color: #f1a36f; }

.engine-chip {
  position: absolute;
  z-index: 3;
  top: 42%;
  left: 38%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  box-shadow: 0 14px 34px rgb(19 25 35 / 18%);
}

.engine-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: var(--rust);
  color: white;
  font: 700 12px var(--mono);
}

.engine-chip strong,
.engine-chip small {
  display: block;
  line-height: 1.3;
}

.engine-chip strong {
  font-size: 12px;
}

.engine-chip small {
  color: #777160;
  font: 9px var(--mono);
  text-transform: uppercase;
}

.pdf-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 57%;
  min-height: 405px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid #d7d2c7;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.pdf-label {
  position: absolute;
  top: -13px;
  right: 18px;
  padding: 4px 9px;
  background: var(--blue);
  color: white;
  font: 700 10px var(--mono);
  letter-spacing: 0.1em;
}

.pdf-kicker {
  margin-bottom: 38px;
  color: var(--blue);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.pdf-sheet h2 {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.pdf-sheet h2 span {
  color: #918a7c;
  font-size: 0.45em;
}

.pdf-rule {
  height: 2px;
  background: var(--ink);
}

.pdf-meta {
  display: flex;
  gap: 34px;
  margin: 16px 0 34px;
  color: #8b8577;
  font-size: 7px;
  line-height: 1.7;
  text-transform: uppercase;
}

.pdf-meta b {
  color: var(--ink);
  font-size: 8px;
}

.pdf-table p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 7px 0;
  border-bottom: 1px solid #ded9ce;
  font-size: 8px;
}

.pdf-table .pdf-total {
  margin-top: 12px;
  border-top: 2px solid var(--ink);
  border-bottom: 0;
  font-size: 10px;
}

.proof-strip {
  border-block: 1px solid var(--line);
  background: var(--paper-deep);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-grid p {
  margin: 0;
  padding: 28px clamp(10px, 3vw, 32px);
  border-left: 1px solid var(--line);
}

.proof-grid p:last-child {
  border-right: 1px solid var(--line);
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.proof-grid span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11px;
}

.section {
  padding: clamp(90px, 11vw, 150px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 64px;
}

.section-heading h2,
.compare-grid h2,
.cta-card h2 {
  font-size: clamp(46px, 6vw, 76px);
}

.section-heading > p {
  max-width: 440px;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 17px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-card {
  min-height: 330px;
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgb(255 253 248 / 24%);
}

.feature-card:hover {
  background: rgb(255 253 248 / 65%);
}

.feature-wide {
  grid-column: span 2;
}

.feature-number {
  display: block;
  margin-bottom: 58px;
  color: var(--rust);
  font: 700 11px var(--mono);
}

.feature-card h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.feature-card p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.binary-map {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  font: 700 9px var(--mono);
}

.binary-map span,
.binary-map b,
.binary-map i {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-style: normal;
}

.binary-map b {
  margin-inline: 8px;
  border-color: var(--ink);
  background: var(--ink);
  color: white;
  letter-spacing: 0.08em;
}

.binary-map i {
  border-color: var(--blue);
  color: var(--blue);
}

.runtime-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.runtime-list li {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font: 700 10px var(--mono);
}

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

.section-heading-light .eyebrow,
.section-heading-light > p {
  color: #aeb5c1;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.code-card {
  border: 1px solid #343c49;
  border-radius: 6px;
  background: #171e29;
}

.code-card > p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 13px 18px;
  border-bottom: 1px solid #343c49;
  color: #8f9bac;
  font: 11px var(--mono);
}

.code-card > p span {
  color: white;
  font-weight: 700;
}

.code-card > p a {
  text-decoration: none;
}

.code-card pre {
  min-height: 154px;
  margin: 0;
  padding: 25px;
  overflow-x: auto;
  color: #c7d0dd;
  font-size: 12px;
  line-height: 1.8;
}

.code-card code b {
  color: #8ab4ff;
}

.code-card code em {
  color: #f3a77e;
  font-style: normal;
}

.compare-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(60px, 10vw, 130px);
  align-items: center;
}

.compare-intro {
  max-width: 500px;
  margin: 26px 0 24px;
  color: var(--ink-soft);
  font-size: 17px;
}

.text-link {
  color: var(--blue-dark);
  font-weight: 750;
  text-decoration: none;
}

.decision-list {
  border-top: 1px solid var(--line);
}

.decision-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.decision-list > article > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 600;
}

.decision-yes {
  background: #d5e8cf;
  color: #286b22;
}

.decision-no {
  background: #ebd9d0;
  color: #984526;
}

.decision-list h3 {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.decision-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.cta-section {
  padding: 0 0 clamp(90px, 11vw, 150px);
}

.cta-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: end;
  padding: clamp(45px, 7vw, 82px);
  border: 1px solid #2b50ba;
  background: var(--blue);
  box-shadow: 10px 10px 0 var(--ink);
  color: white;
}

.cta-card .eyebrow {
  color: white;
}

.cta-card .eyebrow span {
  background: white;
}

.cta-card > div:last-child > p {
  max-width: 430px;
  color: white;
}

.cta-card .button-primary {
  border-color: white;
  background: white;
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
}

.cta-card .button-secondary {
  border-color: #b7c8ff;
  color: white;
}

.cta-card .button-secondary:hover {
  background: rgb(255 255 255 / 12%);
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.footer-inner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.site-footer nav {
  justify-content: flex-end;
}

@media (max-width: 920px) {
  .hero-grid,
  .section-heading,
  .compare-grid,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 70px;
  }

  .hero-visual {
    width: min(650px, 100%);
    margin-inline: auto;
  }

  .section-heading {
    gap: 24px;
  }

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

  .feature-wide {
    grid-column: span 2;
  }

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

  .footer-inner p {
    display: none;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .site-header nav a:not(.nav-github) {
    display: none;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding: 68px 0 76px;
  }

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

  .hero-visual {
    min-height: 420px;
  }

  .source-window {
    width: 72%;
  }

  .pdf-sheet {
    width: 64%;
    min-height: 320px;
    padding: 28px;
  }

  .engine-chip {
    top: 38%;
    left: 29%;
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-grid p:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .proof-grid p:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .feature-wide {
    grid-column: auto;
  }

  .feature-card {
    min-height: 290px;
  }

  .feature-number {
    margin-bottom: 42px;
  }

  .binary-map {
    flex-wrap: wrap;
  }

  .binary-map b {
    margin-inline: 0;
  }

  .cta-card {
    gap: 32px;
    padding: 38px 26px;
  }

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

  .site-footer nav {
    justify-content: flex-start;
  }

}

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

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