:root {
  --ink: #0b1020;
  --ink-soft: #222a3d;
  --muted: #637083;
  --line: #dde4eb;
  --paper: #f7fafc;
  --white: #ffffff;
  --cyan: #19d3c5;
  --cyan-dark: #087f79;
  --cyan-wash: #dff9f6;
  --violet: #7157d9;
  --navy: #111a33;
  --code: #0d1427;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.site-header {
  --header-background: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(calc(100% - 48px), var(--max));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: var(--header-background);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 0 0 100vmax var(--header-background);
  clip-path: inset(0 -100vmax);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 750; letter-spacing: -.04em; }
.brand-mark { position: relative; width: 28px; height: 28px; display: inline-block; }
.brand-mark::before,
.brand-mark::after,
.brand-mark span::before,
.brand-mark span::after { content: ""; position: absolute; background: var(--cyan); border-radius: 2px; }
.brand-mark::before { left: 1px; top: 2px; width: 5px; height: 24px; }
.brand-mark::after { left: 1px; top: 2px; width: 13px; height: 5px; }
.brand-mark span::before { right: 1px; top: 2px; width: 5px; height: 24px; }
.brand-mark span::after { right: 1px; bottom: 2px; width: 13px; height: 5px; }
.main-nav { display: flex; gap: 36px; margin-left: auto; margin-right: 38px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.main-nav a, .text-link { transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible, .text-link:hover, .text-link:focus-visible { color: var(--cyan-dark); }
.nav-cta { padding: 11px 16px; border: 1px solid var(--ink); font-size: 13px; font-weight: 700; transition: .2s ease; }
.nav-cta:hover, .nav-cta:focus-visible { color: var(--white); background: var(--ink); }

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  overflow: hidden;
}
.hero-copy { padding: clamp(72px, 8vw, 130px) max(24px, calc((100vw - var(--max)) / 2)) 78px; text-align: center; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 30px; color: var(--cyan-dark); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 2px; background: var(--cyan); }
h1 { max-width: 720px; margin: 0; font-size: clamp(52px, 5.6vw, 88px); line-height: .97; letter-spacing: -.065em; font-weight: 720; }
.hero h1 { margin-inline: auto; }
h1 em { color: var(--cyan-dark); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.hero-brand { width: max-content; max-width: 100%; display: flex; gap: .18em; font-size: clamp(48px, 6vw, 86px); line-height: 1; letter-spacing: -.055em; }
.hero-brand .brand-mark { width: .76em; height: .76em; }
.hero-brand .brand-mark::before { left: .03em; top: .055em; width: .13em; height: .65em; border-radius: .03em; }
.hero-brand .brand-mark::after { left: .03em; top: .055em; width: .35em; height: .13em; border-radius: .03em; }
.hero-brand .brand-mark span::before { right: .03em; top: .055em; width: .13em; height: .65em; border-radius: .03em; }
.hero-brand .brand-mark span::after { right: .03em; bottom: .055em; width: .35em; height: .13em; border-radius: .03em; }
.hero-tagline { width: max-content; max-width: min(820px, calc(100vw - 48px)); margin: 8px auto 0; font-size: clamp(30px, 3.5vw, 40px); line-height: 1.05; letter-spacing: -.045em; font-weight: 680; }
.hero-tagline-eyebrow { width: 92%; margin-inline: auto; display: flex; align-items: center; justify-content: center; gap: 12px; }
.hero-tagline-eyebrow .eyebrow-line { height: 5px; flex: 1 1 0; border-radius: 999px; background: var(--cyan); transform: translateY(.04em); }
.hero-highlight {
  color: var(--cyan-dark);
  font-weight: 700;
}
.hero-lede { max-width: 610px; margin: 34px auto 0; color: var(--muted); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 34px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 52px; padding: 0 22px; font-size: 14px; font-weight: 750; transition: transform .2s ease, background .2s ease; }
.button-primary { color: var(--ink); background: var(--cyan); }
.button-primary:hover, .button-primary:focus-visible { transform: translateY(-2px); background: #24e4d6; }
.text-link { font-size: 14px; font-weight: 700; }
.hero-stats { display: flex; justify-content: center; gap: 0; margin: 72px 0 0; }
.hero-stats div { min-width: 130px; padding-right: 24px; }
.hero-stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-stats dt { font-size: 16px; font-weight: 750; }
.hero-stats dd { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

.hero-visual { position: relative; min-height: 680px; display: grid; place-items: center; background: var(--navy); isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; inset: 0; z-index: -3; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 88%); }
.hero-visual::after { content: ""; position: absolute; width: 500px; height: 500px; z-index: -2; border-radius: 50%; background: radial-gradient(circle, rgba(25,211,197,.18), transparent 68%); }
.orbit { position: absolute; z-index: -1; border: 1px solid rgba(125, 239, 229, .17); border-radius: 50%; }
.orbit-one { width: 590px; height: 590px; }
.orbit-two { width: 760px; height: 760px; }
.visual-card { width: min(84%, 570px); color: #eaf1ff; background: var(--code); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 32px 80px rgba(0,0,0,.33); }
.code-bar { height: 52px; padding: 0 18px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; color: #8996ae; border-bottom: 1px solid rgba(255,255,255,.08); font: 11px var(--mono); }
.code-bar > span:nth-child(2) { text-align: center; }
.code-bar > span:last-child { text-align: right; }
.code-bar i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #38435a; }
.code-bar i:first-child { background: var(--cyan); }
.visual-card pre { margin: 0; padding: 34px 32px 38px; overflow-x: auto; font: 13px/1.8 var(--mono); tab-size: 2; }
.code-purple { color: #b49cff; }
.code-cyan { color: #3ee1d5; }
.code-number { color: #ffc487; }
.code-muted { color: #65718a; }
.result-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; color: #6f7e98; background: rgba(255,255,255,.035); border-top: 1px solid rgba(255,255,255,.08); font: 10px var(--mono); }
.result-row code { color: #99f1e9; font-size: 11px; }
.floating-tag { position: absolute; padding: 10px 13px; color: #d9e3f6; background: rgba(13,20,39,.92); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 14px 40px rgba(0,0,0,.2); font: 10px var(--mono); letter-spacing: .07em; }
.floating-tag span { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.tag-cpu { top: 24%; left: 7%; }
.tag-cuda { right: 7%; bottom: 21%; }

/* Homepage sections */
.software-section { padding: 130px max(24px, calc((100vw - var(--max)) / 2)); background: var(--paper); }
.section-intro { display: grid; grid-template-columns: 220px 1fr; align-items: end; padding-bottom: 70px; }
.section-number, .doc-kicker { margin: 0; color: var(--cyan-dark); font: 700 11px/1.4 var(--mono); letter-spacing: .13em; }
.section-intro h2, .about-section h2, .workflow h2, .final-cta h2 { margin: 0; font-size: clamp(40px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
.section-intro > div { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-intro > div > p { max-width: 310px; margin: 0; color: var(--muted); line-height: 1.65; }
.product-showcase { min-height: 690px; display: grid; grid-template-columns: .82fr 1.18fr; background: var(--white); box-shadow: 0 20px 70px rgba(24, 45, 72, .08); }
.product-copy { padding: clamp(44px, 6vw, 82px); }
.product-heading { display: flex; align-items: center; justify-content: space-between; }
.product-index { font: 700 11px var(--mono); letter-spacing: .14em; }
.status-pill, .availability { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.status-pill i, .availability i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.availability i { box-shadow: 0 0 0 4px var(--cyan-wash); }
.product-copy h3 { margin: 70px 0 0; font-size: clamp(58px, 6.6vw, 102px); line-height: .9; letter-spacing: -.075em; }
.product-tagline { max-width: 510px; margin: 30px 0 0; color: var(--cyan-dark); font-size: 23px; line-height: 1.35; font-weight: 650; }
.product-description { max-width: 520px; margin: 20px 0 0; color: var(--muted); line-height: 1.7; }
.capability-list { margin: 42px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.capability-list li { display: flex; align-items: center; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 650; }
.capability-list .status-pill { flex: 0 0 72px; }
.capability-list span { color: var(--cyan-dark); font: 10px var(--mono); }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover, .button-dark:focus-visible { transform: translateY(-2px); background: var(--cyan-dark); }
.capability-stage { position: relative; min-height: 630px; margin: 0; overflow: hidden; display: grid; place-items: center; background: var(--navy); isolation: isolate; }
.capability-stage::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .35; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(to bottom, black, transparent 92%); }
.capability-glow { position: absolute; z-index: -1; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(25,211,197,.2), transparent 66%); filter: blur(8px); }
.capability-card { width: min(calc(100% - 72px), 620px); color: #eaf1ff; background: rgba(13,20,39,.96); border: 1px solid rgba(255,255,255,.13); box-shadow: 0 30px 90px rgba(0,0,0,.34); }
.capability-card-head { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 20px; color: #8f9bb0; border-bottom: 1px solid rgba(255,255,255,.09); font: 10px var(--mono); }
.capability-card-head span { display: inline-flex; align-items: center; gap: 9px; }
.capability-card-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(25,211,197,.7); }
.capability-card-head small { color: #6f7e98; font: inherit; letter-spacing: .06em; }
.capability-card pre { margin: 0; padding: 28px 30px; overflow-x: auto; font: 12px/1.72 var(--mono); tab-size: 2; }
.capability-result { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 20px; color: #8491a7; background: rgba(255,255,255,.035); border-top: 1px solid rgba(255,255,255,.08); font: 10px var(--mono); }
.capability-result strong { color: #99f1e9; font-weight: 600; }
.capability-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 15px 20px 18px; list-style: none; border-top: 1px solid rgba(255,255,255,.06); }
.capability-tags li { padding: 6px 8px; color: #aab6ca; background: rgba(25,211,197,.07); border: 1px solid rgba(25,211,197,.2); font: 9px var(--mono); letter-spacing: .04em; text-transform: uppercase; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); max-width: var(--max); margin: 0 auto; padding: 0 24px 130px; background: var(--paper); }
.principles article { padding: 52px 44px; border: 1px solid var(--line); border-right: 0; }
.principles article:last-child { border-right: 1px solid var(--line); }
.principle-mark { color: var(--cyan-dark); font: 11px var(--mono); }
.principles h3 { margin: 72px 0 18px; font-size: 22px; letter-spacing: -.03em; }
.principles p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.workflow { display: grid; grid-template-columns: .78fr 1.22fr; color: var(--white); background: var(--navy); }
.workflow-copy { padding: 120px max(44px, calc((100vw - var(--max)) / 2)); padding-right: clamp(40px, 6vw, 90px); }
.workflow-copy .section-number { color: var(--cyan); }
.workflow h2 { margin-top: 32px; }
.workflow-copy > p:not(.section-number) { max-width: 450px; margin: 30px 0; color: #9da8bb; font-size: 17px; line-height: 1.65; }
.text-link-light { color: var(--white); }
.text-link-light:hover, .text-link-light:focus-visible { color: var(--cyan); }
.workflow-steps { margin: 0; padding: 0; list-style: none; background: #151f3b; }
.workflow-steps li { min-height: 180px; display: grid; grid-template-columns: 80px 1fr 52px; align-items: center; gap: 20px; padding: 36px clamp(30px, 5vw, 76px); border-bottom: 1px solid rgba(255,255,255,.1); }
.workflow-steps > li > span { color: var(--cyan); font: 11px var(--mono); }
.workflow-steps strong { font-size: 23px; }
.workflow-steps p { margin: 8px 0 0; color: #97a4bb; line-height: 1.55; }
.workflow-steps i { width: 48px; height: 48px; display: grid; place-items: center; color: var(--cyan); border: 1px solid rgba(25,211,197,.3); border-radius: 50%; font: 10px var(--mono); font-style: normal; }

.about-section { padding: 140px max(24px, calc((100vw - var(--max)) / 2)); }
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 90px; margin-top: 75px; }
.about-grid > div { padding-top: 8px; }
.about-grid p { color: var(--muted); line-height: 1.75; }
.about-grid .about-lede { margin-top: 0; color: var(--ink); font-size: 21px; line-height: 1.55; font-weight: 600; }
.final-cta { min-height: 470px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 90px max(24px, calc((100vw - var(--max)) / 2)); background: var(--cyan); }
.final-cta .section-number { color: var(--ink); }
.final-cta h2 { margin-top: 28px; }
.round-link { width: 190px; height: 190px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--white); background: var(--ink); border-radius: 50%; font-size: 14px; font-weight: 700; transition: transform .25s ease; }
.round-link:hover, .round-link:focus-visible { transform: rotate(-4deg) scale(1.04); }
.round-link i { font-size: 22px; font-style: normal; }
.site-footer { min-height: 170px; display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; align-items: center; gap: 28px; padding: 45px max(24px, calc((100vw - var(--max)) / 2)); color: #a5afc1; background: var(--ink); }
.brand-footer { color: var(--white); }
.site-footer p, .site-footer small { margin: 0; font-size: 12px; }
.site-footer nav { display: flex; gap: 24px; font-size: 12px; }
.site-footer nav a:hover, .site-footer nav a:focus-visible { color: var(--cyan); }

/* Hyperfold documentation */
.docs-page { background: var(--white); }
.docs-header { max-width: var(--max); }
.product-name { font-size: 20px; font-weight: 750; }
.product-divider { font-size: 20px; font-weight: 750; margin: 0 2px; color: var(--cyan-dark);}
.docs-header .main-nav { margin-right: 0; }
.docs-hero { min-height: 500px; display: grid; grid-template-columns: 1fr 1fr; color: var(--white); background: var(--navy); overflow: hidden; }
.docs-hero-copy { padding: 100px max(40px, calc((100vw - var(--max)) / 2)); padding-right: clamp(40px, 5vw, 80px); }
.release-label { display: flex; align-items: center; gap: 14px; margin: 0 0 58px; color: #9fabbd; font: 11px var(--mono); letter-spacing: .08em; }
.release-label span { padding: 6px 8px; color: var(--ink); background: var(--cyan); font-weight: 800; }
.docs-hero h1 { font-size: clamp(72px, 10vw, 144px); letter-spacing: -.085em; }
.docs-hero h1 span { color: var(--cyan); }
.docs-hero-copy > p:not(.release-label) { max-width: 620px; margin: 28px 0 0; color: #abb6c9; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.55; }
.docs-hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 42px; }
.docs-hero-art { position: relative; min-height: 610px; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 38px 38px; perspective: 900px; }
.docs-hero-art::after { content: ""; position: absolute; width: 400px; height: 400px; top: 15%; left: 16%; border-radius: 50%; background: radial-gradient(circle, rgba(25,211,197,.18), transparent 68%); }
.fold { position: absolute; width: 270px; height: 270px; display: grid; place-items: center; border: 1px solid rgba(25,211,197,.45); background: rgba(25,211,197,.06); transform: rotateX(66deg) rotateZ(43deg); box-shadow: 0 0 70px rgba(25,211,197,.09); }
.fold span { color: rgba(182,255,249,.8); font: 42px var(--mono); transform: rotateZ(-43deg) rotateX(-35deg); }
.fold-a { top: 16%; left: 18%; }
.fold-b { top: 27%; left: 31%; }
.fold-c { top: 38%; left: 44%; }
.axis { position: absolute; z-index: 2; color: var(--cyan); font: 10px var(--mono); }
.axis-x { left: 12%; bottom: 18%; }
.axis-y { right: 13%; bottom: 18%; }
.axis-z { left: 13%; top: 18%; }
.docs-layout { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(60px, 9vw, 140px); }
.docs-nav { position: sticky; top: 28px; align-self: start; margin-top: 120px; padding-bottom: 40px; }
.docs-nav p { margin: 0 0 24px; color: var(--muted); font: 700 10px var(--mono); letter-spacing: .12em; }
.docs-nav a { display: flex; gap: 13px; padding: 10px 0; color: #7d8797; font-size: 12px; transition: color .2s ease, transform .2s ease; }
.docs-nav a span { font: 10px var(--mono); }
.docs-nav a:hover, .docs-nav a:focus-visible, .docs-nav a.is-active { color: var(--cyan-dark); transform: translateX(4px); }
.docs-content { min-width: 0; }
.doc-section { padding: 120px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 30px; }
.doc-section h2, .docs-end h2 { margin: 20px 0 26px; font-size: clamp(38px, 4.5vw, 64px); line-height: 1.03; letter-spacing: -.055em; }
.doc-section > p:not(.doc-kicker, .doc-note) { max-width: 770px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.doc-lede { color: var(--ink) !important; font-size: 22px !important; line-height: 1.6 !important; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 55px; border: 1px solid var(--line); }
.feature-grid article { padding: 34px 28px; border-right: 1px solid var(--line); }
.feature-grid article:last-child { border-right: 0; }
.feature-grid span { color: var(--cyan-dark); font: 700 10px var(--mono); }
.feature-grid h3 { margin: 40px 0 12px; font-size: 18px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.doc-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.doc-heading-row h2 { margin-bottom: 10px; }
.doc-heading-row p { margin: 0; color: var(--muted); font-size: 13px; }
.availability { margin-bottom: 17px; }
.notice-card { margin: 0 0 28px; padding: 22px 24px; background: #fff8e8; border-left: 3px solid #efb746; }
.notice-card strong { font-size: 13px; }
.notice-card p { margin: 8px 0 0; color: #78623e; font-size: 13px; line-height: 1.6; }
.install-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.install-card { border: 1px solid var(--line); }
.install-card.is-selected { border-color: #9bded8; box-shadow: inset 0 3px 0 var(--cyan); }
.install-card-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; }
.install-card-head span { font: 800 12px var(--mono); }
.install-card-head small { color: var(--muted); font-size: 10px; }
.code-block { position: relative; margin-top: 34px; color: #e9f0ff; background: var(--code); }
.code-block-head { min-height: 48px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; color: #8c98ae; border-bottom: 1px solid rgba(255,255,255,.09); font: 10px var(--mono); }
.code-block pre { margin: 0; padding: 30px 78px 32px 28px; overflow-x: auto; font: 12.5px/1.85 var(--mono); }
.compact-code { margin: 0; }
.compact-code pre { padding: 22px 66px 22px 20px; font-size: 11px; }
.copy-button { position: absolute; z-index: 2; top: 16px; right: 16px; min-width: 47px; padding: 7px 9px; color: #9eabc0; background: #18233d; border: 1px solid #33405a; cursor: pointer; font: 9px var(--mono); transition: .2s ease; }
.code-block-head + .copy-button { top: 62px; }
.copy-button:hover, .copy-button:focus-visible, .copy-button.is-copied { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }
.code-string { color: #a6dc8f; }
.doc-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.doc-note code, .doc-section > p code { padding: 2px 5px; color: var(--cyan-dark); background: var(--cyan-wash); font: 11px var(--mono); }
.example-callout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 45px; align-items: center; margin-top: 36px; padding: 40px; background: var(--cyan-wash); }
.example-callout h3 { margin: 15px 0 12px; font-size: 24px; }
.example-callout p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.light-code { box-shadow: 0 20px 50px rgba(13,20,39,.12); }
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 1px; background: var(--line); border: 1px solid var(--line); }
.rule-grid > div { padding: 25px; background: var(--white); }
.rule-grid strong { font-size: 14px; }
.rule-grid p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.api-table-wrap { margin-top: 38px; overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 730px; font-size: 12px; }
th, td { padding: 18px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--muted); background: var(--paper); font: 700 10px var(--mono); letter-spacing: .08em; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 750; }
td code { display: inline-block; margin: 0 3px 5px 0; padding: 3px 5px; color: var(--cyan-dark); background: var(--cyan-wash); font: 10px var(--mono); }
.backend-chip { display: inline-block; margin: 0 3px 3px 0; padding: 4px 6px; color: var(--white); background: var(--navy); font: 8px var(--mono); letter-spacing: .06em; }
.limits-list { margin: 42px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.limits-list li { display: grid; grid-template-columns: 50px 1fr; gap: 10px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.limits-list span { padding-top: 3px; color: var(--cyan-dark); font: 10px var(--mono); }
.limits-list p { margin: 0; line-height: 1.6; }
.docs-end { margin-top: 0; padding: 110px max(24px, calc((100vw - var(--max)) / 2)); color: var(--white); background: var(--navy); }
.docs-end .doc-kicker { color: var(--cyan); }
.docs-end .button { margin-top: 20px; }
.docs-footer { border-top: 1px solid rgba(255,255,255,.08); }

/* Standalone error page */
.error-page { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; color: var(--white); background: var(--navy); }
.error-header { --header-background: var(--navy); width: min(calc(100% - 48px), var(--max)); border-bottom-color: rgba(255,255,255,.12); }
.error-header .brand { color: var(--white); }
.error-status { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; color: #98a5b8; font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.error-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.error-main { width: min(calc(100% - 48px), var(--max)); min-height: 650px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 7vw, 110px); }
.error-copy .eyebrow { color: var(--cyan); }
.error-copy h1 { max-width: 720px; color: var(--white); font-size: clamp(52px, 6vw, 86px); }
.error-copy h1 em { color: var(--cyan); }
.error-copy > p:not(.eyebrow) { max-width: 590px; margin: 30px 0 0; color: #a9b4c6; font-size: 17px; line-height: 1.7; }
.error-visual { position: relative; min-height: 520px; display: grid; place-items: center; isolation: isolate; }
.error-visual::before { content: ""; position: absolute; z-index: -2; width: 470px; height: 470px; border-radius: 50%; background: radial-gradient(circle, rgba(25,211,197,.16), transparent 67%); }
.error-code { position: absolute; z-index: -1; margin: 0; color: rgba(255,255,255,.035); font-size: clamp(170px, 23vw, 330px); line-height: 1; font-weight: 800; letter-spacing: -.1em; }
.error-grid { width: min(72vw, 340px); height: min(72vw, 340px); display: grid; grid-template-columns: repeat(4, 1fr); transform: rotateX(60deg) rotateZ(-40deg); border: 1px solid rgba(25,211,197,.34); box-shadow: 0 35px 90px rgba(0,0,0,.28); }
.error-grid span { position: relative; border: 1px solid rgba(255,255,255,.09); background: rgba(25,211,197,.045); }
.error-grid span::after { content: ""; position: absolute; inset: 43%; border-radius: 50%; background: rgba(25,211,197,.65); box-shadow: 0 0 10px rgba(25,211,197,.5); }
.error-grid .missing-cell { background: rgba(255,255,255,.015); border-color: rgba(255,255,255,.02); }
.error-grid .missing-cell::after { display: none; }
.error-coordinate { position: absolute; right: 2%; bottom: 17%; padding: 10px 12px; color: #9dabc0; background: rgba(7,13,28,.9); border: 1px solid rgba(255,255,255,.1); font: 10px var(--mono); }
.error-footer { width: min(calc(100% - 48px), var(--max)); min-height: 70px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #7f8da4; border-top: 1px solid rgba(255,255,255,.12); font: 9px var(--mono); letter-spacing: .1em; }

@media (max-width: 900px) {
  .site-header { width: min(calc(100% - 32px), var(--max)); }
  .main-nav { display: none; }
  .nav-cta { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 72px 24px 64px; }
  .hero-visual { min-height: 600px; }
  .section-intro { grid-template-columns: 1fr; gap: 26px; }
  .section-intro > div { align-items: flex-start; flex-direction: column; }
  .product-showcase { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principles article { border-right: 1px solid var(--line); border-bottom: 0; }
  .principles article:last-child { border-bottom: 1px solid var(--line); }
  .workflow { grid-template-columns: 1fr; }
  .workflow-copy { padding: 90px 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 45px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .docs-header .product-name { margin-right: auto; }
  .docs-hero { grid-template-columns: 1fr; }
  .docs-hero-copy { padding: 80px 30px; }
  .docs-hero-art { min-height: 460px; }
  .docs-layout { width: min(calc(100% - 36px), var(--max)); grid-template-columns: 1fr; }
  .docs-nav { display: none; }
  .docs-content { width: 100%; }
  .error-main { grid-template-columns: 1fr; padding: 80px 0; }
  .error-visual { min-height: 430px; }
}

@media (max-width: 560px) {
  .site-header { height: 72px; }
  .nav-cta { display: none; }
  .hero { min-height: calc(100vh - 72px); }
  .hero-copy { padding-top: 58px; }
  .hero-tagline-eyebrow { width: 88%; }
  .hero-actions { align-items: center; flex-direction: column; gap: 22px; }
  .hero-stats { gap: 18px; flex-wrap: wrap; margin-top: 58px; }
  .hero-stats div { min-width: 100px; padding: 0; }
  .hero-stats div + div { padding-left: 0; border-left: 0; }
  .hero-visual { min-height: 480px; }
  .visual-card { width: calc(100% - 28px); }
  .visual-card pre { padding: 26px 20px 30px; font-size: 11px; }
  .floating-tag { display: none; }
  .software-section { padding-top: 90px; padding-bottom: 90px; }
  .section-intro { padding-bottom: 50px; }
  .product-copy { padding: 36px 24px 48px; }
  .product-copy h3 { margin-top: 50px; }
  .capability-stage { min-height: 520px; }
  .capability-card { width: calc(100% - 28px); }
  .capability-card pre { padding: 24px 18px; font-size: 10.5px; }
  .capability-result { align-items: flex-start; flex-direction: column; gap: 6px; padding-block: 13px; }
  .principles { padding-bottom: 90px; }
  .principles article { padding: 40px 28px; }
  .principles h3 { margin-top: 50px; }
  .workflow-steps li { grid-template-columns: 38px 1fr; min-height: 160px; padding: 30px 22px; }
  .workflow-steps i { display: none; }
  .about-section { padding-top: 90px; padding-bottom: 90px; }
  .final-cta { min-height: 520px; align-items: flex-start; flex-direction: column; }
  .round-link { align-self: flex-end; width: 150px; height: 150px; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; }
  .site-footer nav { flex-wrap: wrap; }
  .docs-hero h1 { font-size: 68px; }
  .docs-hero-actions { align-items: flex-start; flex-direction: column; }
  .docs-hero-art { min-height: 380px; overflow: hidden; }
  .fold { width: 210px; height: 210px; }
  .fold-a { left: 7%; }
  .fold-b { left: 28%; }
  .fold-c { left: 49%; }
  .doc-section { padding: 86px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-grid article:last-child { border-bottom: 0; }
  .doc-heading-row { align-items: flex-start; flex-direction: column; gap: 14px; }
  .install-options { grid-template-columns: 1fr; }
  .install-card-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .code-block pre { padding: 28px 70px 28px 20px; font-size: 11px; }
  .example-callout { grid-template-columns: 1fr; padding: 28px 20px; }
  .rule-grid { grid-template-columns: 1fr; }
  .error-header { width: calc(100% - 32px); }
  .error-main { width: calc(100% - 36px); padding: 60px 0; }
  .error-copy h1 { font-size: 52px; }
  .error-visual { min-height: 350px; }
  .error-grid { width: 250px; height: 250px; }
  .error-coordinate { right: 0; bottom: 6%; }
  .error-footer { width: calc(100% - 32px); align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding: 18px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
