:root {
  color-scheme: dark;
  --ink: #f4f4f4;
  --muted: #b5b5b5;
  --line: #333333;
  --paper: #101010;
  --accent: #ff9a45;
  --accent-soft: #ffc796;
  --dark: #0a0a0a;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
.diagram-section {
  display: grid;
  gap: 64px;
  padding-bottom: 64px;
}
.diagram-figure {
  margin: 0;
  min-width: 0;
}
.diagram-figure h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.diagram-description {
  max-width: 760px;
  color: var(--muted);
}
.diagram-canvas {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  padding: 24px;
  margin: 24px 0 16px;
}
.diagram-canvas:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.diagram-canvas img {
  width: 100%;
  min-width: 0;
  display: block;
  height: auto;
  margin: 0 auto;
}
.diagram-figure figcaption {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.diagram-figure figcaption a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(46px, 5.6vw, 78px);
  margin-bottom: 26px;
}
h1 span {
  color: var(--accent);
}
h2 {
  font-size: clamp(32px, 3.6vw, 48px);
}
h3 {
  font-size: 23px;
  letter-spacing: -0.025em;
}
p {
  color: var(--muted);
}
.wrap {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -80px;
  background: var(--accent);
  color: var(--dark);
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(16, 16, 16, 0.97);
  position: relative;
  z-index: 10;
}
.header-inner {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 46px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.045em;
}
.desktop-nav {
  display: flex;
  gap: 30px;
  margin-left: 34px;
  font-size: 14px;
}
.desktop-nav a[aria-current='page'] {
  color: var(--accent);
}
.header-dashboard {
  margin-left: auto;
  font-size: 14px;
  border: 1px solid #171717;
  border-radius: 7px;
  padding: 8px 15px;
  display: flex;
  gap: 16px;
  align-items: center;
  background: #1a1a1a;
}
.header-dashboard:hover {
  border-color: var(--accent);
}
.mobile-menu {
  display: none;
}
.eyebrow {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  letter-spacing: 0.13em;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-block: 100px 90px;
}
.hero .lead {
  font-size: 17px;
  max-width: 480px;
  line-height: 1.75;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 46px;
  border: 1px solid #171717;
  padding: 10px 19px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.5;
  background: #1a1a1a;
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
.button:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
}
.button.primary:hover {
  background: var(--accent-soft);
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 26px;
}
.dot,
.live i {
  width: 6px;
  height: 6px;
  background: #262626;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.principles > div {
  display: flex;
  flex-direction: column;
  padding: 27px 32px;
  gap: 5px;
  border-right: 1px solid var(--line);
}
.principles > div:first-child {
  padding-left: 0;
}
.principles > div:last-child {
  border: 0;
}
.principles span {
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.principles strong {
  font-size: 15px;
  font-weight: 500;
}
.section {
  padding-block: 100px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: flex-end;
  margin-bottom: 42px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading > p {
  max-width: 340px;
  font-size: 15px;
  margin-bottom: 4px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 285px;
  background: #1a1a1a;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.product-card:hover {
  border-color: #ababab;
  box-shadow: 0 10px 28px -18px #26262660;
}
.card-number {
  display: flex;
  justify-content: space-between;
  font:
    11px ui-monospace,
    monospace;
  color: #ababab;
  margin-bottom: 38px;
}
.product-card p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.product-card h3 {
  color: var(--ink);
  font-size: 21px;
  margin-bottom: 12px;
}
.card-link {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--accent);
  margin-top: auto;
}
.developer-section {
  background: var(--dark);
  padding-block: 100px;
  color: var(--ink);
}
.developer-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.developer-section p {
  color: #ababab;
  max-width: 390px;
}
.developer-section .eyebrow {
  color: #ababab;
}
.developer-section .button {
  background: transparent;
  color: var(--ink);
  border-color: var(--muted);
}
.check-list {
  list-style: none;
  padding: 0;
  font-size: 12px;
  color: #ababab;
  margin-top: 28px;
}
.check-list li {
  margin-top: 12px;
}
.check-list li:before {
  content: '✓';
  color: #ababab;
  margin-right: 12px;
}
.code-window {
  min-width: 0;
  background: #262626;
  border: 1px solid #262626;
  border-radius: 11px;
  box-shadow: 0 18px 50px -25px #0005;
  overflow: hidden;
}
.code-title {
  padding: 14px 20px;
  border-bottom: 1px solid #262626;
  display: flex;
  justify-content: space-between;
  color: #ababab;
  font:
    10px ui-monospace,
    monospace;
}
.code-title i {
  display: inline-block;
  background: #262626;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
}
pre {
  margin: 0;
  padding: 26px 22px;
  background: #262626;
  color: var(--ink);
  overflow: auto;
  font-size: 12px;
  line-height: 1.95;
  border-radius: 9px;
  text-align: left;
  tab-size: 2;
}
.code-window pre {
  padding-block: 32px;
  min-height: 245px;
}
code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.cta {
  padding-block: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}
.cta h2 {
  margin-bottom: 18px;
}
.cta p {
  margin-bottom: 0;
}
.cta .actions {
  flex-direction: column;
  margin: 0;
  min-width: 240px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 65px;
  background: #171717;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-grid .brand {
  font-size: 21px;
}
.footer-grid p {
  font-size: 12px;
  line-height: 1.9;
  margin-top: 18px;
}
.footer-grid > div > h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 20px;
}
.footer-grid > div > a:not(.brand) {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 9px;
}
.footer-grid > div > a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-block: 22px;
  margin-top: 48px;
}
.page-hero {
  padding-block: 88px 60px;
}
.page-hero h1 {
  font-size: clamp(40px, 5vw, 66px);
}
.lead {
  font-size: 18px;
  max-width: 670px;
  line-height: 1.75;
}
.page-hero + .section {
  padding-top: 15px;
}
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
  padding-block: 40px 70px;
  border-block: 1px solid var(--line);
}
.feature-row h2 {
  font-size: 23px;
  letter-spacing: -0.025em;
}
.feature-row p {
  font-size: 14px;
}
.feature-row .button {
  margin-top: 12px;
  font-size: 12px;
  gap: 12px;
}
.story {
  padding-block: 25px 70px;
  max-width: 720px;
}
.story p {
  max-width: 640px;
}
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 70px;
  padding-bottom: 85px;
  align-items: start;
}
.docs-nav {
  position: sticky;
  top: 30px;
  font-size: 12px;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
.docs-nav a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
}
.prose {
  max-width: 770px;
  padding-bottom: 70px;
}
.prose section {
  scroll-margin-top: 30px;
  margin-bottom: 50px;
}
.prose h2 {
  font-size: 26px;
  letter-spacing: -0.025em;
  margin-bottom: 19px;
  margin-top: 38px;
}
.prose p {
  font-size: 15px;
  line-height: 1.85;
}
.prose p > a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose pre {
  margin-block: 25px;
}
.prose .button {
  margin-bottom: 20px;
}
.narrow {
  max-width: 770px;
}
.doc-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-block: 20px 30px;
}
.doc-links a {
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #1a1a1a;
  padding: 14px;
  font-size: 12px;
}
.doc-links a:hover {
  border-color: var(--accent);
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1500px) {
  .hero {
    padding-block: 115px;
  }
}
@media (max-width: 1000px) {
  .hero {
    gap: 40px;
  }
  .header-inner {
    gap: 20px;
  }
  .desktop-nav {
    margin-left: 10px;
    gap: 22px;
  }
  .hero h1 {
    font-size: 60px;
  }
  .developer-grid {
    gap: 35px;
  }
  .section {
    padding-block: 75px;
  }
  .product-card {
    padding: 21px;
  }
  .product-card h3 {
    font-size: 19px;
  }
  .footer-grid {
    gap: 26px;
  }
  .docs-layout {
    grid-template-columns: 190px 1fr;
    gap: 35px;
  }
  .feature-row {
    gap: 24px;
  }
}
@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header-inner {
    height: 72px;
  }
  .brand {
    font-size: 21px;
  }
  .desktop-nav {
    display: none;
  }
  .header-dashboard {
    margin-left: auto;
    font-size: 11px;
    padding: 7px 10px;
    gap: 8px;
  }
  .mobile-menu {
    display: block;
    font-size: 12px;
  }
  .mobile-menu summary {
    list-style: none;
    cursor: pointer;
    padding: 8px;
  }
  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }
  .mobile-menu nav {
    position: absolute;
    top: 72px;
    inset-inline: 0;
    background: var(--paper);
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 25px #26262612;
  }
  .mobile-menu nav a {
    display: block;
    padding: 11px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-block: 55px;
  }
  .hero h1 {
    font-size: 58px;
    line-height: 1.04;
  }
  .hero .lead {
    font-size: 16px;
    max-width: 520px;
  }
  .hero-note {
    font-size: 10px;
  }
  .principles {
    grid-template-columns: 1fr;
  }
  .principles > div,
  .principles > div:first-child {
    padding: 17px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .principles strong {
    font-size: 12px;
  }
  .principles span {
    font-size: 9px;
  }
  .section-heading {
    display: block;
    margin-bottom: 30px;
  }
  .section-heading > p {
    margin-top: 25px;
    max-width: 500px;
    font-size: 14px;
  }
  .section {
    padding-block: 65px;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .product-card {
    padding: 20px;
    min-height: 290px;
  }
  .product-card h3 {
    font-size: 19px;
  }
  .product-card p {
    font-size: 12px;
  }
  .card-number {
    margin-bottom: 28px;
  }
  .card-link {
    font-size: 10px;
    gap: 7px;
  }
  .developer-section {
    padding-block: 60px;
  }
  .developer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .developer-section p {
    max-width: 500px;
  }
  .code-window pre {
    min-height: 0;
    font-size: 11px;
    padding: 22px 16px;
  }
  .cta {
    padding-block: 60px;
    display: block;
  }
  .cta .actions {
    margin-top: 28px;
    flex-direction: row;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
  .footer-grid > div:first-child {
    grid-column: 1/-1;
  }
  .footer-grid > div:first-child p {
    margin-bottom: 0;
  }
  .footer-bottom {
    margin-top: 35px;
    gap: 20px;
    align-items: start;
  }
  .page-hero {
    padding-block: 55px 40px;
  }
  .page-hero h1 {
    font-size: 43px;
  }
  .lead {
    font-size: 16px;
  }
  .feature-row {
    grid-template-columns: 1fr;
    padding-block: 30px;
    gap: 25px;
  }
  .feature-row article + article {
    border-top: 1px solid var(--line);
    padding-top: 25px;
  }
  .feature-row .button {
    margin-top: 0;
  }
  .docs-layout {
    display: block;
  }
  .docs-nav {
    position: static;
    margin-bottom: 35px;
  }
  .prose h2 {
    font-size: 24px;
  }
  .prose p {
    font-size: 14px;
  }
  .doc-links {
    grid-template-columns: 1fr 1fr;
  }
  .story {
    padding-bottom: 40px;
  }
}
@media (max-width: 390px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .hero h1 {
    font-size: 51px;
  }
  .header-dashboard {
    display: none;
  }
  .mobile-menu {
    margin-left: auto;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card {
    min-height: 235px;
  }
  .page-hero h1 {
    font-size: 37px;
  }
  .doc-links {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* Original Schemarch identity, shared by every public page. */
body {
  background-image: radial-gradient(ellipse at 85% 4%, #ff8b1610, transparent 36%);
}
.brand {
  gap: 10px;
  letter-spacing: 0.13em;
  font-size: 17px;
  white-space: nowrap;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
}
.brand-accent {
  color: var(--accent);
}
.brand-banner {
  padding-top: 12px;
}
.brand-banner img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.dot,
.live i {
  background: var(--accent);
}
.product-card,
.header-dashboard,
.doc-links a {
  background: #181818;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px -24px #ff8b1660;
}
.card-number,
.card-link,
.check-list li::before {
  color: var(--accent);
}
.developer-section,
.code-window,
.code-window pre {
  background: #0a0a0a;
}
.developer-section p,
.developer-section .check-list {
  color: #b5b5b5;
}
.developer-section .eyebrow {
  color: var(--accent);
}
.code-title {
  color: #bfbfbf;
  border-color: var(--line);
}
pre {
  color: #e2d6c9;
}
.site-footer {
  background: #0a0a0a;
}
.footer-grid > div > a:not(.brand),
.footer-bottom {
  color: #b5b5b5;
}
@media (max-width: 720px) {
  .brand {
    font-size: 13px;
    gap: 6px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .header-inner {
    gap: 8px;
  }
}

/* The text-free original artwork sits behind real, accessible hero content. */
.hero-immersive {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(80px, 7vw, 120px);
  min-height: min(840px, 64vw);
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.hero-immersive::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #101010e8 0%, #101010b3 32%, #10101026 58%, transparent 78%),
    linear-gradient(0deg, var(--paper), transparent 14%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
}
.hero-copy {
  max-width: 520px;
}
.hero-immersive h1 {
  font-size: clamp(52px, 5.5vw, 84px);
}
.hero-immersive .lead {
  max-width: 470px;
  color: #c7c7c7;
}
@media (max-width: 1000px) {
  .hero-immersive {
    min-height: 680px;
  }
  .hero-copy {
    max-width: 480px;
  }
  .hero-backdrop {
    object-position: 60% center;
  }
  .hero-immersive::after {
    background:
      linear-gradient(90deg, #101010f0, #101010cc 40%, #1010102b),
      linear-gradient(0deg, var(--paper), transparent 16%);
  }
}
@media (max-width: 720px) {
  .hero-immersive {
    min-height: 0;
    padding-block: 56px 320px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-immersive h1 {
    font-size: clamp(48px, 12vw, 64px);
  }
  .hero-backdrop {
    height: 320px;
    top: auto;
    bottom: 0;
    object-position: right center;
  }
  .hero-immersive::after {
    background: linear-gradient(
      180deg,
      var(--paper) 0%,
      #101010f0 48%,
      transparent 73%,
      #10101050 88%,
      var(--paper)
    );
  }
  .hero-immersive .lead {
    max-width: 480px;
  }
}
/* Native same-origin page transitions progressively enhance ordinary links. */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: page-depart 160ms ease-out both;
}
::view-transition-new(root) {
  animation: page-arrive 320ms ease-out both;
}
@keyframes page-depart {
  to {
    opacity: 0;
  }
}
@keyframes page-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes soft-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .page-hero {
    animation: soft-reveal 650ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }
  .hero-backdrop {
    animation: page-arrive 1s ease-out both;
  }
  @supports (animation-timeline: view()) {
    .section-heading,
    .product-card,
    .feature-row > article,
    .story,
    .prose > section,
    .cta {
      animation: soft-reveal ease-out both;
      animation-timeline: view();
      animation-range: entry 0% entry 18%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}
/* Let documentation code blocks scroll within their tablet grid column. */
.docs-layout > .prose {
  min-width: 0;
}

/* Keep the supplied illustration sheet intact and its labels in accessible HTML. */
.product-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 360px;
}
.product-card > :not(.feature-art) {
  position: relative;
  z-index: 1;
}
.product-card h3,
.product-card > p {
  max-width: 65%;
}
.feature-art {
  position: absolute;
  right: 0;
  top: 30px;
  width: 150px;
  height: 300px;
  background-image: url('/assets/feature-dashboard.png');
  background-size: 1152px 768px;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.8;
  mask-image:
    linear-gradient(to right, transparent 22%, black 48%, black 88%, transparent),
    linear-gradient(to bottom, transparent, black 15%, black 88%, transparent);
  mask-composite: intersect;
  transition:
    opacity 320ms ease,
    translate 500ms ease;
}
.art-database {
  background-position: -232.5px -75px;
}
.art-auth {
  background-position: -603.75px -75px;
}
.art-edge-functions {
  background-position: -982.5px -75px;
}
.art-storage {
  background-position: -232.5px -431.25px;
}
.art-realtime {
  background-position: -603.75px -431.25px;
}
.art-apis {
  background-position: -982.5px -431.25px;
}
.product-card:hover .feature-art,
.product-card:focus-visible .feature-art {
  opacity: 1;
  translate: -3px 0;
}
@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-card h3,
  .product-card > p {
    max-width: 70%;
  }
  .feature-art {
    right: -30px;
    opacity: 0.65;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-card:hover .feature-art,
  .product-card:focus-visible .feature-art {
    translate: none;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card {
    min-height: 330px;
  }
}

/* Informational pages and a progressively enhanced, local-only example console. */
[hidden] {
  display: none !important;
}
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.explore-card {
  display: block;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--dark);
}
.explore-card h3 {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.explore-card p {
  margin-bottom: 0;
}
.explore-card:hover,
.explore-card:focus-visible {
  border-color: var(--accent);
}
.explore-links,
.footer-explore {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.explore-links a {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.footer-explore {
  padding-block: 32px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.topology {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 48px;
  background: radial-gradient(ellipse at 50% 12%, #ff9a4512, transparent 65%), var(--dark);
}
.topology-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 142px;
  height: 142px;
  margin-inline: auto;
  border: 1px solid var(--accent);
  border-radius: 30px;
  color: var(--accent-soft);
  font-size: 24px;
  letter-spacing: -0.04em;
}
.topology-core span {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.topology-nodes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 40px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.topology-node {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 12px;
  text-align: center;
  background: var(--paper);
}
.topology figcaption {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.framework-console {
  min-width: 0;
}
.framework-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.framework-tabs button,
.copy-code {
  appearance: none;
  font: inherit;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 0;
}
.framework-tabs button {
  padding: 13px 10px;
  border: 1px solid transparent;
  font-size: 13px;
}
.framework-tabs button[aria-selected='true'] {
  color: var(--accent-soft);
  background: #ff9a4510;
  border-bottom-color: var(--accent);
}
.framework-example > summary {
  padding: 16px 24px;
  color: var(--accent-soft);
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.is-enhanced .framework-example > summary {
  display: none;
}
.framework-panel {
  min-width: 0;
}
.framework-panel pre {
  height: 26rem;
  overflow: auto;
  margin: 0;
  font-size: 12px;
  scrollbar-color: var(--line) transparent;
}
.code-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.copy-code {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  white-space: nowrap;
}
.copy-code:hover {
  border-color: var(--accent);
}
.console-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.console-note,
.copy-status {
  padding: 14px 20px;
  margin: 0;
  font-size: 12px;
}
.console-note {
  border-top: 1px solid var(--line);
}
.console-note a {
  color: var(--accent-soft);
}
.copy-status:empty {
  display: none;
}
.console-demo {
  max-width: 900px;
}
@keyframes console-change {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .is-enhanced .framework-example[open] pre {
    animation: console-change 240ms ease-out both;
  }
  .explore-card,
  .topology-node,
  .explore-links a {
    transition:
      transform 240ms,
      border-color 240ms;
  }
  .explore-card:hover,
  .topology-node:hover,
  .explore-links a:hover {
    transform: translateY(-4px);
  }
}
@media (max-width: 700px) {
  .explore-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .topology {
    padding: 28px 20px;
  }
  .topology-nodes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .code-meta {
    padding-inline: 14px;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 30px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumbs a,
.article-next a {
  color: var(--accent);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.article-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.article-card h2 {
  font-size: 25px;
  line-height: 1.3;
}
.article-card .card-link {
  margin-top: auto;
  padding-top: 18px;
}
.article-hero h1 {
  max-width: 1000px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.article-meta,
.article-note {
  color: var(--muted);
  font-size: 14px;
}
.article-note {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  max-width: 760px;
}
.article-layout {
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
}
.article-layout .docs-nav {
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}
.article-body {
  min-width: 0;
}
.article-body h3 {
  margin-top: 30px;
  font-size: 19px;
}
.article-body li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  margin-block: 8px;
}
.article-body pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.article-table {
  overflow-x: auto;
  margin-block: 28px;
}
.article-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}
.article-table th,
.article-table td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  min-width: 130px;
}
.article-table th {
  color: var(--accent);
}
.article-next {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .article-layout .docs-nav {
    position: static;
    max-height: none;
  }
}
@media (max-width: 700px) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Page-specific illustrations keep their labels readable without image text. */
.page-visual {
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--dark);
}
.page-visual > h2 {
  font-size: clamp(23px, 3vw, 32px);
  margin-bottom: 34px;
}
.page-visual figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 28px;
  max-width: 850px;
}
.page-visual strong,
.page-visual span {
  display: block;
}
.page-visual p,
.page-visual li,
.page-visual span {
  line-height: 1.7;
}
.page-visual ul {
  padding-left: 20px;
  color: var(--muted);
}
.page-visual a {
  color: var(--accent-soft);
}
.visual-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}
.visual-node {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.visual-node strong {
  font-size: 20px;
  margin-bottom: 9px;
}
.visual-node > span:last-child {
  color: var(--muted);
  font-size: 14px;
}
.visual-arrow {
  color: var(--accent);
  font-size: 25px;
  text-align: center;
  align-self: center;
}
.visual-foundation {
  max-width: 700px;
  margin: auto;
  text-align: center;
}
.foundation-top,
.foundation-base {
  padding: 24px;
  border: 1px solid var(--accent);
  border-radius: 12px;
}
.foundation-top {
  margin-inline: 55px;
  font-size: 22px;
}
.foundation-top span,
.foundation-base span {
  font-size: 13px;
  color: var(--muted);
}
.foundation-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 24px 0;
  gap: 10px;
}
.foundation-services span {
  padding: 18px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.foundation-base strong {
  font-size: 30px;
}
.visual-ownership {
  margin-bottom: 0;
  font-size: 13px;
}
.visual-demo,
.visual-developer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.demo-table,
.demo-result,
.developer-terminal {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  min-width: 0;
  background: var(--paper);
}
.demo-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.demo-table td,
.demo-table th {
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
}
.demo-table th {
  color: var(--muted);
}
.demo-result strong {
  font-size: 25px;
}
.demo-result li {
  padding-block: 8px;
}
.host-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 22px;
}
.host-boundary {
  padding: 26px;
  border: 1px dashed var(--accent);
  border-radius: 18px;
}
.host-services,
.use-case-branch,
.solution-paths,
.visual-legal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.host-services {
  grid-template-columns: 1fr 1fr;
}
.host-operations {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted);
}
.use-case-base {
  padding: 24px;
  margin-top: 24px;
  border-top: 2px solid var(--accent);
  text-align: center;
  font-size: 22px;
}
.use-case-base span {
  color: var(--muted);
  font-size: 14px;
}
.visual-learning,
.developer-loop {
  list-style: none;
  padding: 0;
  margin: 0;
}
.visual-learning li {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}
.lesson-number {
  color: var(--accent);
  font-size: 32px;
}
.visual-learning p {
  margin-block: 6px 0;
  font-size: 14px;
}
.visual-learning a {
  font-size: 13px;
}
.developer-terminal pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 0;
  border: 0;
  font-size: 14px;
}
.developer-loop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.developer-loop li {
  padding: 20px;
  border-left: 2px solid var(--accent);
}
.developer-loop span {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
.release-stages {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr;
  gap: 10px;
}
.release-gate {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 24px;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.release-return {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  color: var(--accent);
}
.visual-operations {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
}
.operations-signal {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.operations-signal > span:last-child {
  color: var(--muted);
  font-size: 14px;
}
.signal-bars {
  height: 120px;
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 10px 0 28px;
}
.signal-bars span {
  flex: 1;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
}
.signal-0 {
  height: 35%;
}
.signal-1 {
  height: 70%;
}
.signal-2 {
  height: 50%;
}
.signal-3 {
  height: 90%;
}
.operations-actions {
  display: grid;
  gap: 12px;
}
.visual-changelog {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 0 32px;
  max-width: 800px;
}
.changelog-spine {
  grid-row: span 3;
  background: var(--accent);
  border-radius: 6px;
}
.change-entry {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.change-entry strong {
  font-size: 21px;
}
.change-entry p {
  font-size: 14px;
  margin-block: 9px 0;
}
.visual-roadmap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr);
  align-items: center;
}
.roadmap-present,
.roadmap-future {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.roadmap-present {
  border-color: var(--accent);
}
.roadmap-divider {
  font-size: 30px;
  color: var(--accent);
  text-align: center;
}
.visual-faq details {
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
}
.visual-faq summary {
  cursor: pointer;
  font-size: 20px;
  color: var(--accent-soft);
}
.visual-faq p {
  max-width: 740px;
  font-size: 15px;
}
.visual-partners {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.partner-lane {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.partner-lane strong {
  font-size: 24px;
}
.partner-center {
  align-self: center;
  text-align: center;
}
.partner-center > span:first-child {
  font-size: 52px;
  color: var(--accent);
}
.partner-center > span:last-child {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}
.solution-question {
  max-width: 460px;
  text-align: center;
  margin: 0 auto 30px;
  padding: 24px;
  border: 1px solid var(--accent);
  border-radius: 50px;
}
.solution-paths a {
  display: flex;
}
.solution-paths .visual-node {
  width: 100%;
}
.visual-legal a {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px 24px 4px 4px;
}
.visual-legal strong {
  font-size: 22px;
}
.visual-legal .document-mark {
  font-size: 36px;
}
.visual-legal a > span:not(.document-mark):not(.card-link) {
  color: var(--muted);
  font-size: 14px;
}
.visual-legal .card-link {
  margin-top: auto;
}
.footer-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-block: 32px;
}
.footer-directory h2 {
  font-size: 13px;
  color: var(--accent-soft);
  margin-bottom: 16px;
}
.footer-directory ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-directory li {
  margin: 0 0 12px;
}
.footer-directory a,
.explore-directory a {
  font-size: 14px;
  color: var(--muted);
}
.footer-bottom > span:first-child {
  max-width: 900px;
  line-height: 1.9;
}
.explore-directory {
  display: grid;
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  gap: 15px 30px;
  margin-top: 26px;
}
@media (max-width: 900px) {
  .use-case-branch,
  .solution-paths,
  .visual-legal {
    grid-template-columns: minmax(0, 1fr);
  }
  .visual-partners {
    grid-template-columns: 1fr 1fr;
  }
  .partner-center {
    grid-column: span 2;
    grid-row: 2;
  }
  .visual-learning li {
    grid-template-columns: 40px 1fr;
  }
  .visual-learning a {
    grid-column: 2;
  }
}
@media (max-width: 700px) {
  .visual-demo,
  .visual-developer,
  .host-services,
  .visual-operations,
  .visual-partners {
    grid-template-columns: minmax(0, 1fr);
  }
  .partner-center {
    grid-column: 1;
  }
  .visual-roadmap,
  .release-stages {
    grid-template-columns: minmax(0, 1fr);
  }
  .release-stages > .visual-arrow {
    transform: rotate(90deg);
  }
  .foundation-top {
    margin-inline: 0;
  }
  .foundation-services {
    grid-template-columns: 1fr 1fr;
  }
  .host-entry {
    flex-wrap: wrap;
  }
  .host-boundary {
    padding: 18px;
  }
  .footer-directory {
    grid-template-columns: 1fr 1fr;
  }
  .explore-directory {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 390px) {
  .footer-directory,
  .explore-directory {
    grid-template-columns: minmax(0, 1fr);
  }
}

.diagram-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.diagram-heading h2 {
  margin-bottom: 0;
}
.diagram-expand {
  flex-shrink: 0;
}
.diagram-description {
  margin-top: 14px;
}
.diagram-view-open {
  overflow: hidden;
}
.diagram-dialog {
  width: calc(100vw - 32px);
  height: calc(100dvh - 32px);
  max-width: 1920px;
  max-height: none;
  padding: clamp(16px, 2vw, 30px);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
}
.diagram-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.diagram-dialog::backdrop {
  background: var(--dark);
  opacity: 0.94;
}
.diagram-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.diagram-viewer-header h2 {
  font-size: clamp(18px, 2vw, 26px);
  margin: 0;
}
.diagram-viewer-controls {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.diagram-viewer-controls [hidden] {
  display: none;
}
.diagram-viewer-stage {
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.diagram-viewer-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.diagram-viewer-status {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.diagram-viewer-status:empty {
  display: none;
}
html:fullscreen .diagram-dialog {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
}
@media (max-width: 700px) {
  .diagram-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .diagram-canvas {
    padding: 10px;
  }
  .diagram-viewer-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .diagram-dialog {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    border-radius: 12px;
  }
}
