:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --bg-2: #e6ece8;
  --surface: #ffffff;
  --surface-2: #edf2ee;
  --ink: #171a18;
  --muted: #5b625f;
  --plum: #183d3a;
  --plum-2: #255550;
  --amber: #bc6a17;
  --amber-2: #d58a2b;
  --teal: #0d766e;
  --line: rgba(24, 61, 58, 0.16);
  --line-strong: rgba(24, 61, 58, 0.28);
  --shadow: 0 22px 70px rgba(23, 26, 24, 0.12);
  --shadow-hard: 0 16px 0 rgba(24, 61, 58, 0.07);
  --radius: 8px;
  --max: 1180px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(24, 61, 58, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 61, 58, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f8faf6 0%, var(--bg) 42%, #edf3ef 100%);
  background-size: 38px 38px, 38px 38px, auto;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(188, 106, 23, 0.08) 48% 50%, transparent 50%),
    linear-gradient(45deg, transparent 0 48%, rgba(24, 61, 58, 0.06) 48% 50%, transparent 50%);
  background-size: 112px 112px;
  mask-image: linear-gradient(180deg, #000, transparent 72%);
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-color: rgba(217, 141, 18, 0.55);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

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

:focus-visible {
  outline: 3px solid rgba(217, 141, 18, 0.9);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: var(--radius);
  background: var(--plum);
  color: var(--surface);
  padding: 0.7rem 1rem;
  transition: transform 160ms ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(24, 61, 58, 0.13);
  background: rgba(245, 247, 244, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  color: var(--plum);
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(24, 61, 58, 0.14));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  border-radius: 999px;
  color: #2f3d3a;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.72rem 0.9rem;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-links a:hover {
  background: rgba(50, 17, 54, 0.08);
  color: var(--plum);
  transform: translateY(-1px);
}

.nav-links .nav-github {
  background: var(--plum);
  color: var(--surface);
  margin-left: 0.35rem;
}

.nav-links .nav-github:hover {
  background: var(--amber);
  color: #20131f;
}

.nav-toggle {
  display: none;
}

.hero {
  padding: 3.1rem 0 2rem;
  overflow: hidden;
}

.hero-grid,
.section,
.footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 1.02fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.system-label,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 930;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 9.8em;
  margin-bottom: 1.4rem;
  color: var(--plum);
  font-size: 4.4rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.96;
}

h2 {
  margin-bottom: 1rem;
  color: var(--plum);
  font-size: clamp(2.05rem, 4.2vw, 4.25rem);
  font-weight: 930;
  letter-spacing: 0;
  line-height: 0.98;
}

h3 {
  margin-bottom: 0.58rem;
  color: var(--plum);
  font-size: clamp(1.08rem, 2vw, 1.26rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
}

.hero-subhead {
  max-width: 44rem;
  color: #4d4150;
  font-size: 1.18rem;
  line-height: 1.52;
}

.lead {
  color: #403543;
  font-size: clamp(1.18rem, 2.1vw, 1.46rem);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.84rem 1.14rem;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  background: var(--plum);
  color: var(--surface);
  box-shadow: 0 13px 28px rgba(50, 17, 54, 0.24);
}

.button.primary:hover {
  background: var(--amber);
  color: #20131f;
}

.button.secondary {
  border-color: rgba(50, 17, 54, 0.26);
  background: rgba(255, 250, 241, 0.82);
  color: var(--plum);
}

.button.secondary:hover {
  border-color: rgba(217, 141, 18, 0.8);
  box-shadow: var(--shadow);
}

.text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: var(--plum);
  font-weight: 900;
}

.trust-line {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-weight: 800;
}

.hero-system {
  position: relative;
  min-height: 580px;
  border: 1px solid rgba(24, 61, 58, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(237, 242, 238, 0.82)),
    linear-gradient(90deg, rgba(24, 61, 58, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 61, 58, 0.07) 1px, transparent 1px);
  background-size: auto, 30px 30px, 30px 30px;
  box-shadow: var(--shadow-hard), var(--shadow);
  overflow: hidden;
}

.logo-orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(48vw, 320px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 242, 238, 0.56));
}

.logo-orbit::before,
.logo-orbit::after {
  content: "";
  position: absolute;
  inset: -34px;
  border: 1px dashed rgba(24, 61, 58, 0.24);
  border-radius: 22px;
  transform: rotate(8deg);
}

.logo-orbit::after {
  inset: 20px;
  border-color: rgba(217, 141, 18, 0.4);
  transform: rotate(-10deg);
}

.logo-orbit img {
  position: relative;
  z-index: 2;
  width: min(76%, 270px);
  height: auto;
  filter: drop-shadow(0 28px 32px rgba(50, 17, 54, 0.22));
}

.orbit-dot {
  position: absolute;
  z-index: 3;
  width: 13px;
  height: 13px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 8px rgba(217, 141, 18, 0.15);
}

.dot-a {
  left: 6%;
  top: 22%;
}

.dot-b {
  right: 0;
  top: 58%;
  background: var(--plum);
}

.dot-c {
  bottom: 4%;
  left: 45%;
  background: var(--teal);
}

.graph-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.graph-lines path {
  fill: none;
  stroke: rgba(24, 61, 58, 0.28);
  stroke-width: 3;
  stroke-dasharray: 8 12;
  stroke-linecap: round;
  animation: dash 6s linear infinite;
}

.graph-lines .thread-amber {
  stroke: rgba(217, 141, 18, 0.54);
}

.graph-node {
  position: absolute;
  z-index: 4;
  width: min(230px, 43%);
  border: 1px solid rgba(24, 61, 58, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(23, 26, 24, 0.1);
  padding: 1rem;
}

.graph-node span,
.registry-facts span,
.architecture-rail span,
.roadmap-item span {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.graph-node strong {
  display: block;
  color: var(--plum);
  font-weight: 950;
}

.graph-node code {
  display: block;
  margin-top: 0.55rem;
  color: #614d63;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.node-a {
  left: 6%;
  top: 8%;
}

.node-b {
  right: 5%;
  top: 22%;
}

.node-c {
  left: 9%;
  bottom: 10%;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.quick-read {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 clamp(2.5rem, 5vw, 4rem);
}

.quick-read-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(24, 61, 58, 0.15);
  border-radius: var(--radius);
  background: rgba(24, 61, 58, 0.15);
  box-shadow: var(--shadow);
}

.quick-read-grid p {
  min-height: 112px;
  margin: 0;
  background: rgba(255, 255, 255, 0.88);
  color: var(--plum);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 900;
  line-height: 1.18;
  padding: 1.1rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.section-body {
  max-width: 920px;
}

.section-heading {
  max-width: 840px;
  margin-bottom: clamp(2rem, 5vw, 3.6rem);
}

.section-heading p:not(.section-kicker) {
  color: #574d59;
  font-size: 1.14rem;
}

.pain-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.pain-matrix span {
  border: 1px solid rgba(50, 17, 54, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.68);
  color: #4e4051;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  padding: 0.9rem;
  box-shadow: 0 8px 22px rgba(50, 17, 54, 0.07);
}

.terminal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1rem;
}

.terminal-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, 0.14);
  border-radius: var(--radius);
  background: var(--plum);
  box-shadow: var(--shadow-hard), var(--shadow);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid rgba(255, 250, 241, 0.12);
  background: rgba(0, 0, 0, 0.16);
  padding: 0.85rem 1rem;
}

.terminal-top span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #f05f57;
}

.terminal-top span:nth-child(2) {
  background: #f4bf50;
}

.terminal-top span:nth-child(3) {
  background: #4fc06d;
}

.terminal-top strong {
  margin-left: 0.5rem;
  color: rgba(255, 250, 241, 0.74);
  font-size: 0.86rem;
}

pre {
  margin: 0;
  white-space: pre-wrap;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.terminal-panel pre {
  color: #fff4dd;
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  line-height: 1.62;
  padding: 1.2rem;
}

.registry-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.registry-facts article,
.feature-card,
.use-card,
.roadmap-item {
  border: 1px solid rgba(50, 17, 54, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.78);
  box-shadow: 0 12px 34px rgba(50, 17, 54, 0.08);
}

.registry-facts article {
  min-height: 188px;
  padding: 1.15rem;
}

.registry-facts strong {
  display: block;
  color: var(--plum);
  font-size: 1.26rem;
  line-height: 1.05;
}

.registry-facts p,
.feature-card p,
.use-card p,
.roadmap-item li,
.today-grid p,
.architecture-rail p,
.docs-card p,
.comparison-grid p,
.contribution-box p,
.footer p {
  color: #574d59;
}

.today-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.today-grid article,
.docs-card {
  border: 1px solid rgba(24, 61, 58, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(237, 242, 238, 0.84)),
    var(--surface);
  box-shadow: 0 12px 34px rgba(23, 26, 24, 0.07);
  padding: 1.2rem;
}

.quickstart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
}

.quickstart-layout pre {
  overflow: auto;
  border: 1px solid rgba(24, 61, 58, 0.16);
  border-radius: var(--radius);
  background: #102826;
  box-shadow: var(--shadow-hard), var(--shadow);
}

.quickstart-layout code {
  display: block;
  color: #f5f7f4;
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  line-height: 1.68;
  padding: 1.25rem;
}

.quickstart-notes {
  border-left: 4px solid var(--amber);
  background: rgba(255, 255, 255, 0.72);
  padding: 1.2rem 0 1.2rem 1.3rem;
}

.quickstart-notes .button {
  margin-top: 1.4rem;
}

.today-grid span,
.docs-card span {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.docs-hero {
  min-height: auto;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.docs-hero .section-heading {
  width: min(var(--max), calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.docs-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.docs-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 141, 18, 0.62);
  box-shadow: 0 18px 42px rgba(50, 17, 54, 0.13);
}

.docs-card strong {
  color: var(--plum);
  font-size: 1.42rem;
  font-weight: 950;
  line-height: 1.05;
}

.docs-card em {
  margin-top: 1.5rem;
  color: var(--amber);
  font-style: normal;
  font-weight: 900;
}

.docs-note {
  margin-top: 1rem;
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.78);
  color: #574d59;
  padding: 1rem 1.2rem;
}

.doc-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
}

.doc-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  padding: 0.6rem;
}

.doc-sidebar a {
  display: block;
  border-radius: 6px;
  color: #2f3d3a;
  font-size: 0.94rem;
  font-weight: 850;
  padding: 0.72rem 0.8rem;
  text-decoration: none;
}

.doc-sidebar a:hover,
.doc-sidebar a[aria-current="page"] {
  background: rgba(24, 61, 58, 0.09);
  color: var(--plum);
}

.doc-content {
  max-width: 860px;
  border-left: 1px solid var(--line);
  padding-left: clamp(1.2rem, 3vw, 2.4rem);
}

.doc-content h1 {
  max-width: 12.4em;
  margin-bottom: 1.6rem;
  font-size: clamp(2.5rem, 5.6vw, 4.8rem);
  line-height: 0.98;
}

.doc-content h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.doc-content h3 {
  margin-top: 1.8rem;
}

.doc-content p,
.doc-content li {
  color: #3f4744;
  font-size: 1.04rem;
  line-height: 1.72;
}

.doc-content ul,
.doc-content ol {
  margin: 0 0 1.4rem;
  padding-left: 1.4rem;
}

.doc-content li + li {
  margin-top: 0.45rem;
}

.doc-content pre {
  overflow-x: auto;
  border: 1px solid rgba(24, 61, 58, 0.18);
  border-radius: var(--radius);
  background: #101817;
  color: #e9f1ee;
  padding: 1.1rem;
}

.doc-content code {
  border-radius: 5px;
  background: rgba(24, 61, 58, 0.09);
  color: var(--plum);
  padding: 0.1rem 0.26rem;
  font-size: 0.92em;
}

.doc-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.doc-content img {
  width: 100%;
  height: auto;
  margin: 1rem 0 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(23, 26, 24, 0.12);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.feature-card {
  grid-column: span 4;
  min-height: 170px;
  padding: 1.2rem;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.feature-card:hover,
.use-card:hover,
.roadmap-item:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 141, 18, 0.6);
  box-shadow: 0 18px 42px rgba(50, 17, 54, 0.13);
}

.feature-card-wide {
  grid-column: span 8;
  background:
    linear-gradient(135deg, rgba(50, 17, 54, 0.94), rgba(74, 24, 74, 0.9)),
    var(--plum);
}

.feature-card-wide h3,
.feature-card-wide p {
  color: var(--surface);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow li {
  position: relative;
  min-height: 128px;
  border: 1px solid rgba(50, 17, 54, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(217, 141, 18, 0.13), transparent 58%),
    rgba(255, 250, 241, 0.82);
  color: var(--plum);
  font-size: 1.02rem;
  font-weight: 900;
  padding: 1rem;
  box-shadow: 0 10px 28px rgba(50, 17, 54, 0.08);
}

.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.6rem;
  width: 0.75rem;
  height: 0.75rem;
  border-top: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
  transform: translateY(-50%) rotate(45deg);
  background: var(--bg);
  z-index: 2;
}

.flow span {
  display: block;
  margin-bottom: 2rem;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 950;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.use-card {
  padding: 1.15rem;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.use-card p {
  margin-bottom: 0.65rem;
}

.use-card p:last-child {
  margin-bottom: 0;
}

.comparison {
  border-top: 1px solid rgba(50, 17, 54, 0.13);
  border-bottom: 1px solid rgba(50, 17, 54, 0.13);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

.comparison-grid > div {
  border-left: 3px solid rgba(217, 141, 18, 0.72);
  padding: 0.2rem 0 0.2rem 1rem;
}

.comparison-grid .comparison-answer {
  grid-column: 1 / -1;
  border: 1px solid rgba(50, 17, 54, 0.18);
  border-left: 6px solid var(--plum);
  border-radius: var(--radius);
  background: rgba(50, 17, 54, 0.07);
  padding: 1.2rem;
}

.ai-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.ai-principle {
  display: grid;
  gap: 0.85rem;
}

.ai-principle p {
  margin: 0;
  border-radius: var(--radius);
  background: var(--plum);
  color: var(--surface);
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  font-weight: 950;
  line-height: 1;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.ai-principle p:nth-child(2) {
  margin-left: 1.25rem;
  background: var(--teal);
}

.ai-principle p:nth-child(3) {
  margin-left: 2.5rem;
  background: var(--amber);
  color: #20131f;
}

.check-list {
  display: grid;
  gap: 0.8rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
  color: #403543;
  font-size: 1.02rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.75rem;
  height: 0.18rem;
  border-radius: 999px;
  background: var(--amber);
}

.architecture-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(50, 17, 54, 0.16);
  border-radius: var(--radius);
  background: rgba(50, 17, 54, 0.16);
  box-shadow: var(--shadow);
}

.architecture-rail > div {
  min-height: 224px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.94), rgba(243, 230, 208, 0.88)),
    var(--surface);
  padding: 1.2rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.roadmap-item {
  padding: 1.15rem;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.roadmap-item ul {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.contribution {
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.contribution-box {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(50, 17, 54, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(50, 17, 54, 0.95), rgba(74, 24, 74, 0.9)),
    var(--plum);
  color: var(--surface);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-hard), var(--shadow);
}

.contribution-box::after {
  content: "";
  position: absolute;
  inset: auto -12% -42% 38%;
  height: 300px;
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.contribution-box > img {
  position: relative;
  z-index: 2;
  width: clamp(92px, 12vw, 140px);
  height: auto;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.28));
}

.contribution-box > div {
  position: relative;
  z-index: 2;
}

.contribution-box h2,
.contribution-box .section-kicker,
.contribution-box p {
  color: var(--surface);
}

.contribution-box p {
  max-width: 760px;
  color: rgba(255, 250, 241, 0.84);
}

.contribution-box .button.primary {
  background: var(--amber);
  color: #20131f;
}

.contribution-box .button.secondary {
  border-color: rgba(255, 250, 241, 0.35);
  background: rgba(255, 250, 241, 0.08);
  color: var(--surface);
}

.support-line {
  margin-top: 1.4rem;
  font-weight: 820;
}

.founder-contact {
  padding-top: 0;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.founder-contact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  border-top: 1px solid var(--line-strong);
  padding-top: clamp(1.6rem, 4vw, 2.6rem);
}

.founder-contact h2 {
  max-width: 9.5em;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.founder-contact-copy {
  max-width: 760px;
}

.founder-contact-copy p {
  color: #46504c;
  font-size: 1.04rem;
}

.founder-contact-copy p:last-of-type {
  margin-bottom: 1.4rem;
  color: var(--plum);
  font-weight: 760;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
  border-top: 1px solid rgba(50, 17, 54, 0.14);
  padding: 2.4rem 0;
}

.footer-brand {
  margin-bottom: 0.65rem;
}

.footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  font-weight: 800;
}

.footer-line {
  grid-column: 1 / -1;
  color: var(--plum) !important;
  font-weight: 950;
}

@keyframes dash {
  to {
    stroke-dashoffset: -80;
  }
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-system {
    min-height: 520px;
  }

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

  .doc-shell {
    grid-template-columns: 1fr;
  }

  .doc-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
  }

  .doc-sidebar a {
    padding: 0.62rem 0.72rem;
  }

  .doc-content {
    max-width: none;
    border-left: 0;
    padding-left: 0;
  }

  .quickstart-layout {
    grid-template-columns: 1fr;
  }

  .quick-read-grid,
  .today-grid,
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card {
    grid-column: span 6;
  }

  .feature-card-wide {
    grid-column: span 12;
  }

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

  .flow li:nth-child(even)::after {
    display: none;
  }

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

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

@media (max-width: 760px) {
  :root {
    --header-height: 66px;
  }

  .nav {
    width: min(100% - 24px, var(--max));
  }

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

  .nav-toggle {
    position: relative;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(24, 61, 58, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--plum);
  }

  .nav-toggle span:not(.sr-only),
  .nav-toggle span:not(.sr-only)::before,
  .nav-toggle span:not(.sr-only)::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition:
      transform 160ms ease,
      opacity 160ms ease;
  }

  .nav-toggle span:not(.sr-only)::before,
  .nav-toggle span:not(.sr-only)::after {
    content: "";
    position: absolute;
  }

  .nav-toggle span:not(.sr-only)::before {
    transform: translateY(-6px);
  }

  .nav-toggle span:not(.sr-only)::after {
    transform: translateY(6px);
  }

  .nav-open .nav-toggle span:not(.sr-only) {
    background: transparent;
  }

  .nav-open .nav-toggle span:not(.sr-only)::before {
    transform: rotate(45deg);
  }

  .nav-open .nav-toggle span:not(.sr-only)::after {
    transform: rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: grid;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(24, 61, 58, 0.16);
    background: rgba(245, 247, 244, 0.98);
    padding: 1rem;
    transform: translateY(-120%);
    transition: transform 180ms ease;
  }

  .nav-open .nav-links {
    transform: translateY(0);
  }

  .nav-links a,
  .nav-links .nav-github {
    margin-left: 0;
    border-radius: var(--radius);
    padding: 0.9rem;
  }

  .hero {
    min-height: auto;
    padding-top: 1.65rem;
    padding-bottom: 1.35rem;
  }

  .hero-grid,
  .section,
  .footer {
    width: min(100% - 24px, var(--max));
  }

  h1 {
    margin-bottom: 1.05rem;
    font-size: 2.55rem;
    line-height: 0.98;
  }

  .system-label {
    margin-bottom: 0.72rem;
    font-size: 0.72rem;
  }

  .hero-subhead {
    margin-bottom: 1rem;
    font-size: 1.02rem;
    line-height: 1.48;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.58rem;
    margin-top: 1.3rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions .text-link {
    min-height: 32px;
    justify-content: center;
  }

  .trust-line {
    margin-top: 0.95rem;
    font-size: 0.94rem;
  }

  .hero-system {
    display: none;
  }

  .logo-orbit {
    width: 235px;
  }

  .graph-node {
    width: 46%;
    padding: 0.78rem;
  }

  .graph-node strong {
    font-size: 0.9rem;
  }

  .graph-node code {
    font-size: 0.66rem;
  }

  .section-grid,
  .ai-section,
  .contribution-box,
  .founder-contact-grid {
    grid-template-columns: 1fr;
  }

  .section-kicker {
    margin-bottom: 0.7rem;
  }

  .pain-matrix,
  .registry-facts,
  .quick-read-grid,
  .today-grid,
  .docs-grid,
  .quickstart-layout,
  .feature-grid,
  .use-case-grid,
  .timeline,
  .comparison-grid,
  .architecture-rail {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card-wide {
    grid-column: span 1;
    min-height: 0;
  }

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

  .flow li {
    min-height: 112px;
  }

  .flow li:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -0.6rem;
    transform: translateX(50%) rotate(135deg);
  }

  .ai-principle p:nth-child(2),
  .ai-principle p:nth-child(3) {
    margin-left: 0;
  }

  .footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
