:root {
  color-scheme: light dark;
  --ink: #111716;
  --muted: #5f6b68;
  --paper: #f6f8f7;
  --white: #ffffff;
  --night: #050807;
  --night-soft: #101716;
  --teal: #0d9e8e;
  --teal-dark: #087467;
  --cyan: #38d8c7;
  --blue: #2868dd;
  --orange: #e9902a;
  --line: #cbd5d2;
  --line-dark: #2a3936;
  --content: 1180px;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

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

.copy-zh {
  display: none !important;
}

html[lang="zh-CN"] .copy-en {
  display: none !important;
}

html[lang="zh-CN"] .copy-zh {
  display: revert !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--teal-dark);
  transform: translateY(-140%);
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 72px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  gap: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(17, 23, 22, 0.12);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
}

.brand {
  width: max-content;
  font-size: 20px;
}

.brand img,
.footer-brand img {
  border-radius: 50%;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
}

.primary-nav a,
.site-footer a {
  color: inherit;
  text-decoration: none;
}

.primary-nav a {
  color: #35403e;
  font-size: 14px;
  font-weight: 650;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--teal-dark);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  height: 36px;
  padding: 3px;
  display: inline-grid;
  grid-template-columns: 44px 52px;
  align-items: center;
  background: #e9eeec;
  border: 1px solid #d6dfdc;
  border-radius: 7px;
}

.language-switch button {
  height: 28px;
  padding: 0;
  color: #64706d;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.language-switch button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.header-github {
  min-width: 76px;
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 560px;
  height: calc(100svh - 140px);
  max-height: 700px;
  isolation: isolate;
  color: var(--white);
  background-color: var(--night);
  background-image: url("assets/lingshu-overview.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  overflow: hidden;
}

.hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(2, 7, 6, 0.67);
}

.hero-inner {
  width: min(var(--content), calc(100% - 56px));
  height: 100%;
  margin: 0 auto;
  padding: 68px 0 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--cyan);
}

.hero h1 {
  margin: 0;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-statement {
  max-width: 720px;
  margin: 24px 0 14px;
  font-size: 34px;
  font-weight: 720;
  line-height: 1.15;
}

.hero-support {
  max-width: 700px;
  margin: 0;
  color: #d3ddda;
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

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

.button-primary {
  color: #02110f;
  background: var(--cyan);
  border-color: var(--cyan);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #72eadf;
  border-color: #72eadf;
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.button-outline {
  color: var(--ink);
  background: transparent;
  border-color: #87928f;
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: var(--teal-dark);
  color: var(--teal-dark);
}

.hero-facts {
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  color: #c5d0cd;
  font-size: 13px;
  font-weight: 650;
}

.hero-facts li:not(:last-child)::after {
  content: "";
  width: 3px;
  height: 3px;
  margin-left: 20px;
  display: inline-block;
  vertical-align: middle;
  background: var(--cyan);
  border-radius: 50%;
}

.proof-band {
  color: var(--white);
  background: #09110f;
  border-top: 1px solid #1f2e2b;
  border-bottom: 1px solid #1f2e2b;
}

.proof-grid {
  width: min(var(--content), calc(100% - 56px));
  min-height: 112px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-grid > div {
  padding: 23px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid #22312e;
}

.proof-grid > div:last-child {
  border-right: 1px solid #22312e;
}

.proof-grid strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.proof-grid span {
  color: #9caaa6;
  font-size: 12px;
}

.section {
  padding: 96px 28px;
}

.section-light {
  background: var(--paper);
}

.section-heading,
.positioning-layout,
.workflow-grid,
.quick-layout,
.first-task,
.deliverable-layout,
.sample-layout,
.security-grid,
.alpha-note,
.open-source,
.site-footer {
  width: min(var(--content), 100%);
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  max-width: 760px;
  margin-left: max(0px, calc((100% - var(--content)) / 2));
}

.section-heading.compact {
  max-width: 540px;
  margin: 0;
}

.section-heading h2,
.deliverable-copy h2,
.open-source h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading > p:not(.eyebrow),
.deliverable-copy > p:not(.eyebrow),
.open-source > div > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.positioning-section {
  background: #edf2f0;
  border-bottom: 1px solid #d5dedb;
}

.positioning-layout .section-heading {
  margin-left: 0;
}

.comparison-matrix {
  margin-top: 46px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) repeat(3, minmax(0, 1fr));
}

.comparison-row > div {
  min-width: 0;
  padding: 20px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.comparison-row > div:last-child {
  border-right: 0;
}

.comparison-head {
  color: var(--white);
  background: #111a18;
  font-size: 13px;
  font-weight: 760;
}

.comparison-head > div {
  border-color: #35433f;
}

.comparison-row:not(.comparison-head) {
  color: #33403d;
  background: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.comparison-row:not(.comparison-head) > div:nth-child(2) {
  color: #093f39;
  background: rgba(13, 158, 142, 0.09);
  font-weight: 700;
}

.comparison-label {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.28);
  font-weight: 760;
}

.comparison-note {
  max-width: 960px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.comparison-note a {
  color: var(--teal-dark);
}

.workflow-grid {
  margin-top: 48px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-grid li {
  min-height: 242px;
  padding: 26px 22px;
  border-left: 1px solid var(--line);
}

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

.workflow-grid li > span {
  display: block;
  color: var(--teal-dark);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  font-weight: 760;
}

.workflow-grid strong {
  margin-top: 34px;
  display: block;
  font-size: 19px;
}

.workflow-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.quick-start {
  background: #eaf0ee;
  border-top: 1px solid #d8e1de;
  border-bottom: 1px solid #d8e1de;
}

.quick-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.9fr);
  gap: 70px;
  align-items: center;
}

.requirement-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.requirement-row span {
  padding: 6px 9px;
  color: #40504d;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid #cbd6d3;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 680;
}

.install-panel {
  background: #07100f;
  border: 1px solid #1c2d29;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.install-header,
.install-links {
  min-height: 50px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.install-header {
  color: #b7c5c1;
  border-bottom: 1px solid #243431;
  font-size: 12px;
  font-weight: 680;
}

.copy-button {
  min-width: 58px;
  height: 30px;
  color: var(--white);
  background: #1e2d2a;
  border: 1px solid #354642;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.copy-button:hover,
.copy-button:focus-visible {
  background: #2b3d39;
}

.install-panel code {
  min-height: 116px;
  padding: 28px 22px;
  display: flex;
  align-items: center;
  color: #64e8da;
  overflow-wrap: anywhere;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 15px;
}

.install-links {
  justify-content: flex-start;
  border-top: 1px solid #243431;
}

.install-links a {
  color: #c9d5d2;
  font-size: 12px;
  text-decoration: none;
}

.install-links a:hover,
.install-links a:focus-visible {
  color: var(--cyan);
}

.quick-start-note {
  margin: 16px 0 0;
  color: #52605d;
  font-size: 13px;
  line-height: 1.55;
}

.quick-start-note a {
  color: var(--teal-dark);
  font-weight: 720;
}

.first-task {
  margin-top: 46px;
  padding-top: 30px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  border-top: 1px solid #c4cfcc;
}

.first-task > p {
  margin: 0;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.first-task-body {
  display: grid;
  gap: 22px;
}

.first-task-body blockquote {
  margin: 0;
  color: #26312f;
  font-size: 19px;
  font-weight: 620;
}

.first-run-proof {
  padding: 20px 0;
  border-top: 1px solid #c4cfcc;
  border-bottom: 1px solid #c4cfcc;
}

.first-run-proof > p {
  margin: 0 0 14px;
  color: #26312f;
  font-size: 14px;
  font-weight: 760;
}

.first-run-proof ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
}

.first-run-proof li {
  position: relative;
  padding-left: 22px;
  color: #52605d;
  font-size: 13px;
  line-height: 1.5;
}

.first-run-proof li::before {
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--teal-dark);
  content: "✓";
  font-weight: 800;
}

.first-run-proof code {
  color: #26312f;
  font-size: 0.95em;
}

.first-run-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.first-run-actions p {
  margin: 0;
  max-width: 520px;
  color: #63706d;
  font-size: 12px;
  line-height: 1.5;
}

.first-task-report {
  flex: 0 0 auto;
}

.section-dark {
  color: var(--white);
  background: var(--night-soft);
}

.deliverable-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.72fr) minmax(0, 1.28fr);
  gap: 64px;
  align-items: center;
}

.deliverable-copy > p:not(.eyebrow) {
  color: #b8c5c1;
}

.check-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  color: #d8e2df;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
}

.check-list li:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 4px;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
}

.product-figure {
  margin: 0;
}

.product-figure img,
.product-figure video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #344642;
  border-radius: var(--radius);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.product-figure figcaption {
  margin-top: 12px;
  color: #83928e;
  font-size: 12px;
}

.sample-section {
  color: var(--ink);
  background: #eef3f1;
  border-bottom: 1px solid #d2dcda;
}

.sample-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: 64px;
  align-items: center;
}

.sample-copy h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
}

.sample-copy > p:not(.eyebrow, .sample-note) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.sample-meta {
  margin: 30px 0 0;
  border-top: 1px solid #c4cfcc;
}

.sample-meta > div {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  border-bottom: 1px solid #c4cfcc;
}

.sample-meta dt,
.sample-meta dd {
  margin: 0;
  font-size: 13px;
}

.sample-meta dt {
  color: var(--muted);
  font-weight: 650;
}

.sample-meta dd {
  color: #25312e;
  font-weight: 740;
}

.sample-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sample-note {
  margin: 18px 0 0;
  color: #61706c;
  font-size: 12px;
}

.sample-slide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sample-slide-grid a {
  display: block;
  background: #0b1423;
  border: 1px solid #bcc9c5;
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(20, 39, 35, 0.14);
  overflow: hidden;
}

.sample-slide-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.security-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.security-grid article {
  min-height: 170px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.security-grid h3 {
  margin: 0;
  font-size: 18px;
}

.security-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.alpha-note {
  margin-top: 26px;
  padding: 16px 18px;
  color: #6c4a19;
  background: #fff1dc;
  border-left: 3px solid var(--orange);
  font-size: 13px;
}

.open-source {
  padding: 74px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

section.open-source {
  width: auto;
  max-width: none;
  padding-right: max(28px, calc((100% - var(--content)) / 2));
  padding-left: max(28px, calc((100% - var(--content)) / 2));
  background: #dfe8e5;
  border-top: 1px solid #ccd8d4;
}

.open-source > div:first-child {
  max-width: 760px;
}

.open-source-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-footer {
  max-width: none;
  padding: 36px max(28px, calc((100% - var(--content)) / 2));
  display: grid;
  grid-template-columns: auto minmax(230px, 1fr) auto auto;
  gap: 30px;
  align-items: center;
  color: #aab7b3;
  background: #050807;
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-brand {
  color: var(--white);
  font-size: 14px;
}

/* Architecture share page */

.architecture-page {
  background: #f3f6f5;
}

.architecture-hero {
  min-height: 560px;
  height: min(650px, calc(100svh - 96px));
  color: var(--white);
  background: #07100f;
  border-bottom: 1px solid #273733;
}

.architecture-hero-inner,
.architecture-content,
.architecture-source {
  width: min(var(--content), calc(100% - 56px));
  margin-right: auto;
  margin-left: auto;
}

.architecture-hero-inner {
  height: 100%;
  padding: 72px 0 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.architecture-hero .eyebrow {
  color: var(--cyan);
}

.architecture-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: 58px;
  line-height: 1.04;
  letter-spacing: 0;
}

.architecture-lead {
  max-width: 850px;
  margin: 24px 0 0;
  color: #cbd8d4;
  font-size: 19px;
}

.architecture-facts {
  width: 100%;
  margin: auto 0 0;
  padding: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid #2b3a37;
}

.architecture-facts li {
  min-width: 0;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #2b3a37;
}

.architecture-facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.architecture-facts strong {
  color: var(--white);
  font-size: 20px;
}

.architecture-facts span {
  margin-top: 2px;
  color: #91a39e;
  font-size: 12px;
}

.architecture-runtime,
.architecture-section,
.architecture-difference,
.architecture-evidence {
  padding: 96px 28px;
}

.architecture-runtime {
  background: #e8efed;
  border-bottom: 1px solid #cfdbd8;
}

.architecture-heading {
  max-width: 850px;
}

.architecture-heading.narrow {
  max-width: 680px;
}

.architecture-heading h2,
.architecture-cta h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.14;
  letter-spacing: 0;
}

.architecture-heading > p:not(.eyebrow),
.architecture-cta p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.runtime-map {
  margin-top: 50px;
  color: var(--ink);
}

.runtime-brain,
.runtime-kernel,
.runtime-outputs {
  padding: 22px;
  border: 1px solid #aebfba;
  border-radius: var(--radius);
}

.runtime-brain {
  background: #ffffff;
}

.runtime-kernel {
  color: var(--white);
  background: #101a18;
  border-color: #2e403c;
}

.runtime-outputs {
  background: #eaf4f1;
  border-color: #95c1b8;
}

.runtime-tag {
  display: block;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.runtime-kernel .runtime-tag {
  color: var(--cyan);
}

.provider-row,
.output-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.output-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.provider-row span,
.output-row span {
  min-height: 48px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #30403c;
  background: #f3f6f5;
  border: 1px solid #d0dad7;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.output-row span {
  color: #0a5148;
  background: #ffffff;
  border-color: #c5dcd7;
}

.runtime-arrow {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
  font-size: 24px;
  font-weight: 800;
}

.kernel-flow {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid #344540;
  border-bottom: 1px solid #344540;
}

.kernel-flow > div {
  min-height: 160px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #344540;
}

.kernel-flow > div:last-child {
  border-right: 1px solid #344540;
}

.kernel-flow b {
  color: #7d918b;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
}

.kernel-flow strong {
  margin-top: 24px;
  font-size: 16px;
}

.kernel-flow small {
  margin-top: 8px;
  color: #9fb0ab;
  font-size: 12px;
}

.architecture-section {
  background: var(--paper);
}

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

.invariant-grid article {
  min-height: 230px;
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.invariant-grid article > span {
  color: var(--teal-dark);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
}

.invariant-grid h3 {
  margin: 34px 0 0;
  font-size: 20px;
}

.invariant-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.architecture-difference {
  color: var(--white);
  background: #101716;
}

.difference-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1fr);
  gap: 76px;
  align-items: start;
}

.architecture-difference .architecture-heading > p:not(.eyebrow) {
  color: #b7c5c1;
}

.difference-list {
  margin: 0;
  border-top: 1px solid #35433f;
}

.difference-list > div {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid #35433f;
}

.difference-list dt {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.difference-list dd {
  margin: 0;
  color: #d2dcda;
  font-size: 15px;
}

.architecture-source {
  margin-top: 46px;
  color: #8fa19c;
  font-size: 12px;
}

.architecture-source a {
  color: var(--cyan);
}

.architecture-evidence {
  background: #edf2f0;
}

.evidence-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.evidence-grid a {
  min-height: 190px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.evidence-grid a:hover,
.evidence-grid a:focus-visible {
  background: #ffffff;
}

.evidence-grid a > span {
  color: var(--teal-dark);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
}

.evidence-grid strong {
  margin-top: 34px;
  font-size: 17px;
}

.evidence-grid small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.architecture-cta {
  margin-top: 64px;
  padding: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  color: var(--white);
  background: #07100f;
  border: 1px solid #273733;
  border-radius: var(--radius);
}

.architecture-cta h2 {
  font-size: 30px;
}

.architecture-cta p {
  color: #a7b6b2;
  font-size: 15px;
}

.architecture-cta .hero-actions {
  margin-top: 0;
  flex-wrap: nowrap;
}

.architecture-footer {
  color: #5f6b68;
  background: #ffffff;
}

.architecture-footer .footer-brand {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid #62e6d8;
  outline-offset: 3px;
}

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

  .primary-nav {
    display: none;
  }
}

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

  .primary-nav {
    display: none;
  }

  .hero h1 {
    font-size: 60px;
  }

  .hero-statement {
    font-size: 30px;
  }

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

  .proof-grid > div:nth-child(2) {
    border-right: 1px solid #22312e;
  }

  .proof-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid #22312e;
  }

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

  .workflow-grid li {
    min-height: 205px;
    border-bottom: 1px solid var(--line);
  }

  .workflow-grid li:nth-child(even) {
    border-right: 1px solid var(--line);
  }

  .workflow-grid li:last-child {
    border-bottom: 0;
  }

  .quick-layout,
  .deliverable-layout,
  .sample-layout {
    grid-template-columns: 1fr;
  }

  .quick-layout {
    gap: 42px;
  }

  .deliverable-layout {
    gap: 46px;
  }

  .sample-layout {
    gap: 46px;
  }

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

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 0 16px;
    gap: 10px;
  }

  .brand {
    font-size: 17px;
  }

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

  .header-github {
    display: none;
  }

  .language-switch {
    grid-template-columns: 38px 48px;
  }

  .hero {
    min-height: 590px;
    height: calc(100svh - 120px);
    max-height: 680px;
    background-position: 53% top;
  }

  .hero-shade {
    background: rgba(2, 7, 6, 0.76);
  }

  .hero-inner {
    width: calc(100% - 36px);
    padding: 52px 0 42px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-statement {
    margin-top: 20px;
    font-size: 27px;
  }

  .hero-support {
    font-size: 16px;
  }

  .hero-actions {
    width: 100%;
    margin-top: 26px;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .hero-facts {
    gap: 8px 12px;
  }

  .hero-facts li:not(:last-child)::after {
    margin-left: 12px;
  }

  .proof-grid {
    width: calc(100% - 36px);
    grid-template-columns: 1fr;
  }

  .proof-grid > div,
  .proof-grid > div:nth-child(2),
  .proof-grid > div:last-child {
    min-height: 90px;
    padding: 18px;
    border-right: 1px solid #22312e;
    border-bottom: 1px solid #22312e;
  }

  .section {
    padding: 72px 18px;
  }

  .section-heading h2,
  .deliverable-copy h2,
  .sample-copy h2,
  .open-source h2 {
    font-size: 34px;
  }

  .section-heading > p:not(.eyebrow),
  .deliverable-copy > p:not(.eyebrow),
  .open-source > div > p:not(.eyebrow) {
    font-size: 16px;
  }

  .comparison-matrix {
    margin-top: 34px;
  }

  .comparison-head {
    display: none;
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-row > div,
  .comparison-row > div:last-child {
    border-right: 0;
  }

  .comparison-row:not(.comparison-head) > div[data-product] {
    padding: 15px 16px;
    display: grid;
    grid-template-columns: minmax(82px, 104px) minmax(0, 1fr);
    gap: 12px;
  }

  .comparison-row:not(.comparison-head) > div[data-product]::before {
    content: attr(data-product);
    color: #66716f;
    font-size: 12px;
    font-weight: 760;
  }

  .comparison-label {
    padding: 13px 16px !important;
    color: var(--white);
    background: #111a18;
  }

  .workflow-grid {
    margin-top: 34px;
    grid-template-columns: 1fr;
  }

  .workflow-grid li,
  .workflow-grid li:nth-child(even),
  .workflow-grid li:last-child {
    min-height: 176px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .workflow-grid strong {
    margin-top: 22px;
  }

  .quick-layout {
    gap: 34px;
  }

  .install-header,
  .install-links {
    padding: 0 14px;
  }

  .install-panel code {
    min-height: 128px;
    padding: 24px 16px;
    font-size: 13px;
  }

  .first-task {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .first-task-body blockquote {
    font-size: 17px;
  }

  .first-run-proof ul {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .first-run-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .first-task-report {
    width: 100%;
  }

  .deliverable-layout {
    gap: 36px;
  }

  .sample-layout {
    gap: 34px;
  }

  .sample-slide-grid {
    grid-template-columns: 1fr;
  }

  .sample-actions .button {
    flex: 1 1 100%;
  }

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

  .security-grid article {
    min-height: 150px;
    padding: 24px 20px;
  }

  section.open-source {
    padding: 64px 18px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .open-source-actions {
    justify-content: flex-start;
  }

  .open-source-actions .button {
    flex: 1 1 100%;
  }

  .site-footer {
    padding: 34px 18px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 980px) {
  .architecture-hero {
    height: auto;
  }

  .architecture-hero-inner {
    min-height: 580px;
  }

  .architecture-hero h1 {
    font-size: 50px;
  }

  .kernel-flow,
  .invariant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .difference-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .architecture-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .architecture-hero-inner,
  .architecture-content,
  .architecture-source {
    width: calc(100% - 36px);
  }

  .architecture-hero-inner {
    min-height: 620px;
    padding: 54px 0 34px;
  }

  .architecture-hero h1 {
    font-size: 39px;
  }

  .architecture-lead {
    font-size: 16px;
  }

  .architecture-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }

  .architecture-facts li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .architecture-runtime,
  .architecture-section,
  .architecture-difference,
  .architecture-evidence {
    padding: 72px 18px;
  }

  .architecture-heading h2,
  .architecture-cta h2 {
    font-size: 32px;
  }

  .architecture-heading > p:not(.eyebrow) {
    font-size: 16px;
  }

  .provider-row,
  .output-row,
  .kernel-flow,
  .invariant-grid,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .kernel-flow > div,
  .kernel-flow > div:last-child {
    min-height: 142px;
    border-right: 1px solid #344540;
    border-bottom: 1px solid #344540;
  }

  .invariant-grid article {
    min-height: 205px;
  }

  .difference-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .architecture-cta {
    padding: 28px 22px;
    gap: 28px;
  }

  .architecture-cta .hero-actions {
    flex-wrap: wrap;
  }

  .architecture-cta .button {
    flex: 1 1 100%;
  }
}

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

  .button {
    transition: none;
  }
}
