:root {
  color-scheme: dark;
  font-family: Ubuntu, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --canvas: #160f14;
  --canvas-deep: #0d090c;
  --surface: #211820;
  --surface-raised: #2c2029;
  --surface-subtle: #352832;
  --text: #f7eef4;
  --muted: #c7b8c1;
  --line: #5b4754;
  --line-soft: rgba(199, 184, 193, 0.18);
  --orange: #e95420;
  --orange-bright: #ff8a5b;
  --orange-soft: #ffd1bd;
  --aubergine: #2c001e;
  --green: #67d49b;
  --code: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 6%, rgba(94, 39, 80, 0.3), transparent 27rem),
    var(--canvas);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 4rem;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--orange-bright);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--orange-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--aubergine);
  background: var(--orange-soft);
  font-weight: 700;
  transform: translateY(-180%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 3rem, 82rem);
  min-height: 5.5rem;
  margin: 0 auto;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.7rem;
  width: fit-content;
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img {
  border-radius: 0.65rem;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header nav a,
.header-link {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

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

.header-link {
  justify-self: end;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(24rem, 0.92fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  width: min(100% - 3rem, 82rem);
  min-height: min(49rem, calc(100svh - 5.5rem));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.eyebrow,
.section-number,
.step-heading > span,
.after-install > span,
.fingerprint > span {
  font-family: var(--code);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.6rem;
  color: var(--orange-soft);
}

.eyebrow span {
  display: block;
  width: 1.8rem;
  height: 2px;
  background: var(--orange);
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 1.8rem;
  font-size: clamp(3.4rem, 7.2vw, 6.8rem);
  font-weight: 730;
  line-height: 0.93;
  letter-spacing: -0.07em;
}

h1 em {
  color: var(--orange-bright);
  font-style: normal;
  font-weight: 520;
}

.hero-summary {
  max-width: 39rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  font-weight: 720;
  text-decoration: none;
}

.button-primary {
  color: white;
  background: #c34113;
}

.button-primary:hover {
  color: white;
  background: #a9360e;
}

.button-secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(44, 32, 41, 0.55);
}

.button-secondary:hover {
  border-color: var(--orange-bright);
  color: var(--text);
}

.hero-meta {
  margin: 1.4rem 0 0;
  color: #9e8f98;
  font-family: var(--code);
  font-size: 0.75rem;
}

.hero-meta span {
  margin: 0 0.35rem;
  color: var(--line);
}

.control-map {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(33, 24, 32, 0.88);
  box-shadow: 1.5rem 1.5rem 0 rgba(44, 0, 30, 0.45);
}

.control-map::before,
.control-map::after {
  position: absolute;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.control-map::before {
  z-index: -1;
  top: -2.2rem;
  right: -1.7rem;
  width: 4.7rem;
  height: 4.7rem;
  opacity: 0.9;
}

.control-map::after {
  bottom: -0.5rem;
  left: -0.5rem;
  width: 1rem;
  height: 1rem;
}

.map-heading {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  color: #a898a2;
  font-family: var(--code);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.map-status {
  color: var(--green);
}

.map-status i {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0.2rem rgba(103, 212, 155, 0.1);
}

.map-flow {
  display: grid;
  justify-items: center;
  padding: 1.5rem clamp(1.3rem, 4vw, 2.5rem);
}

.map-node {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  width: 100%;
  min-height: 4.8rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-soft);
  background: var(--surface-raised);
}

.map-node strong,
.map-node small {
  grid-column: 2;
}

.map-node strong {
  align-self: end;
  font-size: 0.95rem;
}

.map-node small {
  align-self: start;
  margin-top: 0.2rem;
  color: var(--muted);
  font-family: var(--code);
  font-size: 0.67rem;
}

.map-index {
  grid-row: 1 / 3;
  align-self: center;
  margin-right: 1rem;
  color: var(--orange-bright);
  font-family: var(--code);
  font-size: 0.65rem;
}

.map-agent {
  border-color: rgba(233, 84, 32, 0.65);
  background: #38212c;
}

.map-ubuntu {
  border-color: rgba(255, 138, 91, 0.45);
}

.map-connector {
  width: 1px;
  height: 1.2rem;
  background: var(--line);
}

.trust-boundary {
  display: grid;
  place-items: center;
  width: calc(100% + 2rem);
  height: 3rem;
  margin: 0.35rem 0;
  border-top: 1px dashed var(--orange);
  border-bottom: 1px dashed var(--orange);
  color: var(--orange-soft);
  font-family: var(--code);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.map-caption {
  margin: 0;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.principle-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(13, 9, 12, 0.5);
}

.principle-strip div {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem clamp(1rem, 3vw, 2.2rem);
  border-right: 1px solid var(--line-soft);
}

.principle-strip div:last-child {
  border-right: 0;
}

.principle-strip strong {
  color: var(--text);
  font-size: 0.85rem;
}

.principle-strip span {
  color: #9e8f98;
  font-size: 0.72rem;
}

.section {
  width: min(100% - 3rem, 82rem);
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 11rem) 0;
}

.section + .section {
  border-top: 1px solid var(--line-soft);
}

.section-number {
  margin-bottom: 1.4rem;
  color: var(--orange-bright);
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 670;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(10rem, 0.34fr) minmax(0, 1fr);
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.section-intro .section-number {
  grid-row: 1;
}

.section-intro h2 {
  grid-column: 2;
  max-width: 14ch;
}

.principle-list {
  margin-left: 34%;
  border-top: 1px solid var(--line);
}

.principle-list article {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.principle-list article > span {
  color: var(--orange-bright);
  font-family: var(--code);
  font-size: 0.7rem;
}

.principle-list article p {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.architecture-intro {
  grid-template-rows: auto auto;
}

.architecture-intro > p:last-child {
  grid-column: 2;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.7;
}

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

.architecture-steps li {
  position: relative;
  min-height: 14rem;
  padding: 1.6rem;
  border-right: 1px solid var(--line);
}

.architecture-steps li:last-child {
  border-right: 0;
}

.architecture-steps li::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -0.45rem;
  display: grid;
  place-items: center;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--orange);
  content: "";
  transform: translateY(-50%);
}

.architecture-steps li:last-child::after {
  display: none;
}

.architecture-steps span {
  display: block;
  margin-bottom: 3.5rem;
  color: var(--orange-bright);
  font-family: var(--code);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.architecture-steps strong {
  display: block;
  margin-bottom: 0.75rem;
}

.architecture-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.install {
  display: grid;
  grid-template-columns: minmax(15rem, 0.36fr) minmax(0, 0.64fr);
  column-gap: clamp(2rem, 7vw, 7rem);
}

.install-intro {
  grid-row: 1 / span 3;
}

.install-intro h2 {
  max-width: 10ch;
}

.install-intro > p:last-child {
  max-width: 29rem;
  color: var(--muted);
  line-height: 1.7;
}

.install-intro code,
.after-install code {
  color: var(--orange-soft);
  font-family: var(--code);
  font-size: 0.9em;
}

.install-step {
  margin-bottom: 4rem;
}

.step-heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-heading > span {
  color: var(--orange-bright);
}

.step-heading h3 {
  margin: 0;
}

.command-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--canvas-deep);
}

.command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.7rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--line);
  color: #9e8f98;
  font-family: var(--code);
  font-size: 0.68rem;
}

.copy-button {
  display: none;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface-raised);
  font: inherit;
  cursor: pointer;
}

.js .copy-button {
  display: inline-flex;
}

.copy-button:hover {
  border-color: var(--orange-bright);
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 1.2rem;
  color: #eee3ea;
  font-family: var(--code);
  font-size: 0.76rem;
  line-height: 1.7;
  tab-size: 2;
}

pre code {
  font: inherit;
}

.fingerprint {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--orange);
  background: var(--surface);
}

.fingerprint span {
  color: var(--muted);
}

.fingerprint code {
  overflow-wrap: anywhere;
  color: var(--orange-soft);
  font-family: var(--code);
  font-size: 0.8rem;
}

.after-install {
  grid-column: 2;
  padding: 1.4rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.after-install > span {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--green);
}

.after-install p {
  margin-bottom: 0.7rem;
  color: var(--muted);
  line-height: 1.6;
}

.after-install p:last-child {
  margin-bottom: 0;
  font-size: 0.82rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 4rem;
  padding: clamp(3rem, 7vw, 5rem) max(1.5rem, calc((100% - 82rem) / 2));
  border-top: 1px solid var(--line);
  background: var(--canvas-deep);
}

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

.site-footer p {
  margin: 0;
  color: #9e8f98;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: end;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
}

.affiliation {
  grid-column: 1 / -1;
  max-width: 55rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  line-height: 1.6;
}

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

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

  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .control-map {
    width: min(100%, 38rem);
    margin-left: auto;
  }

  .principle-strip {
    grid-template-columns: 1fr 1fr;
  }

  .principle-strip div:nth-child(2) {
    border-right: 0;
  }

  .principle-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

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

  .architecture-steps li:nth-child(2) {
    border-right: 0;
  }

  .architecture-steps li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .architecture-steps li:nth-child(2)::after {
    display: none;
  }

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

  .install-intro {
    grid-row: auto;
    margin-bottom: 3rem;
  }

  .install-intro h2 {
    max-width: 13ch;
  }

  .after-install {
    grid-column: 1;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .section {
    width: min(100% - 2rem, 82rem);
  }

  .site-header {
    min-height: 4.7rem;
  }

  .header-link {
    padding: 0;
    border: 0;
  }

  .hero {
    padding: 4.5rem 0 6rem;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .control-map {
    width: calc(100% - 0.8rem);
    margin-right: 0.8rem;
    box-shadow: 0.8rem 0.8rem 0 rgba(44, 0, 30, 0.45);
  }

  .control-map::before {
    top: -1.2rem;
    right: -1rem;
    width: 2.8rem;
    height: 2.8rem;
  }

  .principle-strip {
    grid-template-columns: 1fr;
  }

  .principle-strip div,
  .principle-strip div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .principle-strip div:last-child {
    border-bottom: 0;
  }

  .section-intro {
    display: block;
  }

  .principle-list {
    margin-left: 0;
  }

  .principle-list article {
    grid-template-columns: 2.5rem 1fr;
    gap: 0.7rem;
  }

  .architecture-intro > p:last-child {
    grid-column: auto;
  }

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

  .architecture-steps li,
  .architecture-steps li:nth-child(2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .architecture-steps li:last-child {
    border-bottom: 0;
  }

  .architecture-steps li::after {
    display: none;
  }

  .architecture-steps span {
    margin-bottom: 1.7rem;
  }

  .step-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.4rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-right: 1rem;
    padding-left: 1rem;
  }

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

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
