:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: #07111f;
  color: #f7f9fc;
  --canvas: #07111f;
  --surface: #0b1728;
  --surface-raised: #102039;
  --line: #2b3e58;
  --line-strong: #405777;
  --muted: #a8b6c9;
  --primary: #6288ff;
  --primary-strong: #a7bcff;
  --primary-ink: #05101e;
  --signal: #ffd45e;
  --success: #70d9b1;
  --warning: #ffbd6b;
  --content: 80rem;
  --gutter: clamp(1.1rem, 4vw, 4rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: #f7f9fc;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset-block: 0;
  inset-inline-start: max(0px, calc((100vw - var(--content)) / 2));
  z-index: -1;
  width: 1px;
  background: rgb(43 62 88 / 55%);
  content: '';
}

a {
  color: inherit;
  text-underline-offset: 0.24em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

code,
pre {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

code:not(pre code) {
  color: var(--primary-strong);
}

.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 20;
  padding-block: 0.65rem;
  padding-inline: 0.85rem;
  background: var(--signal);
  color: var(--primary-ink);
  font-weight: 800;
  transform: translateY(-160%);
}

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

.site-header,
main,
footer {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  border-block-end: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.wordmark img {
  display: block;
  width: auto;
  height: 2.5rem;
}

.header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem 1rem;
  font-size: 0.83rem;
  font-weight: 720;
}

.header-actions a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--primary-strong);
}

.release-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  white-space: nowrap;
}

.release-status::before {
  width: 0.52rem;
  flex: 0 0 auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--signal);
  content: '';
}

.hero {
  min-height: min(48rem, calc(100vh - 5rem));
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(25rem, 0.93fr);
  align-items: end;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.hero > *,
.proof-layout > *,
.section-intro > * {
  min-width: 0;
}

.context {
  margin: 0 0 1.25rem;
  color: var(--primary-strong);
  font-size: 0.88rem;
  font-weight: 760;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 6.8vw, 5.5rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

[dir='rtl'] h1 {
  max-width: 13ch;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 60ch;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  line-height: 1.72;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-block-start: 2.25rem;
}

.primary-action {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  padding-block: 0.75rem;
  padding-inline: 1.05rem;
  border: 1px solid var(--primary);
  border-radius: 0.2rem;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 800;
  text-decoration: none;
}

.primary-action:hover {
  border-color: var(--primary-strong);
  background: var(--primary-strong);
}

.text-action {
  color: var(--primary-strong);
  font-weight: 750;
}

a:focus-visible,
pre:focus-visible,
.capability-table-wrap:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.command-panel {
  max-width: 100%;
  border-block-start: 3px solid var(--signal);
  background: var(--surface);
  box-shadow: 0.85rem 0.85rem 0 rgb(0 0 0 / 32%);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  padding-inline: 1rem;
  border-block-end: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 700;
}

.panel-heading strong {
  color: var(--primary-strong);
}

pre {
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  color: #e8edf5;
  direction: ltr;
  font-size: 0.82rem;
  line-height: 1.78;
  text-align: left;
  unicode-bidi: isolate;
}

.command-panel pre {
  padding-block: 1.25rem;
  padding-inline: 1rem;
}

.command-panel pre span,
.command-panel pre strong {
  display: block;
}

.command-panel pre strong {
  color: var(--signal);
  font-weight: 680;
}

.command-panel > p {
  margin: 0;
  padding: 0 1rem 1.25rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.proof,
.saved,
.flow,
.responsibility,
.catalog {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-block-start: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(18rem, 1.08fr);
  align-items: end;
  gap: 1.5rem clamp(2rem, 7vw, 7rem);
}

.section-intro .context {
  grid-column: 1 / -1;
  margin-block-end: -0.25rem;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

[dir='rtl'] h2 {
  letter-spacing: -0.02em;
}

.section-intro > p:last-child {
  max-width: 55ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.68;
}

.proof-layout {
  display: grid;
  grid-template-columns: minmax(19rem, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  margin-block-start: clamp(3rem, 6vw, 5rem);
}

.tree {
  min-height: 25rem;
  padding-block: 1.5rem;
  padding-inline: 1.35rem;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--primary);
  background: var(--surface);
  color: var(--primary-strong);
  line-height: 1.85;
}

.proof-copy {
  align-self: center;
}

.proof-kicker {
  margin: 0 0 0.8rem;
  color: var(--signal);
  font-size: 0.84rem;
  font-weight: 760;
}

.proof-copy pre {
  padding-block: 1.35rem;
  padding-inline: 1.25rem;
  border-block: 1px solid var(--line);
  background: #081423;
}

.proof-copy pre span {
  display: block;
}

.proof-copy > p:last-child {
  max-width: 55ch;
  margin: 1.25rem 0 0;
  color: var(--muted);
}

.step-list {
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: 0;
  border-block-start: 1px solid var(--line);
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.45rem;
  border-block-end: 1px solid var(--line);
}

.step-list li > span {
  color: var(--signal);
  direction: ltr;
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 0.8rem;
  text-align: start;
}

.step-list h3 {
  margin: 0;
  color: var(--primary-strong);
  font-size: 1.05rem;
}

.step-list p {
  max-width: 67ch;
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.delivery-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: 0;
  border-block: 1px solid var(--line);
  list-style: none;
}

.delivery-flow li {
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-block: 1.4rem;
  padding-inline: 1.25rem;
  border-inline-end: 1px solid var(--line);
}

.delivery-flow li:first-child {
  padding-inline-start: 0;
}

.delivery-flow li:last-child {
  padding-inline-end: 0;
  border-inline-end: 0;
}

.delivery-flow strong {
  color: var(--signal);
  font-size: 0.98rem;
}

.delivery-flow span {
  color: var(--muted);
  font-size: 0.9rem;
}

.flow-command {
  margin-block-start: 2rem;
  padding-block: 1.2rem;
  padding-inline: 1.2rem;
  border-inline-start: 3px solid var(--primary);
  background: var(--surface);
}

.flow-command span {
  display: block;
}

.flow-command span::before {
  color: var(--muted);
  content: '$ ';
}

.responsibility {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(18rem, 1.08fr);
  gap: 1.5rem clamp(2rem, 7vw, 7rem);
  background: var(--surface);
  box-shadow:
    50vw 0 0 var(--surface),
    -50vw 0 0 var(--surface);
}

.responsibility h2 {
  max-width: 15ch;
}

.responsibility p {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.responsibility p + p {
  margin-block-start: 1.2rem;
}

.capability-table-wrap {
  margin-block-start: clamp(3rem, 6vw, 5rem);
  overflow-x: auto;
  border-block: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 50rem;
  border-collapse: collapse;
  text-align: start;
}

th,
td {
  padding-block: 1.05rem;
  padding-inline: 1rem;
  border-block-end: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

thead th {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 730;
}

tbody th {
  max-width: 28ch;
  color: var(--primary-strong);
  font-size: 0.94rem;
  font-weight: 740;
}

tbody td {
  color: var(--muted);
  font-size: 0.89rem;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-block-end: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 750;
  white-space: nowrap;
}

.status::before {
  width: 0.5rem;
  flex: 0 0 auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

.status.ready {
  color: var(--success);
}

.status.guarded {
  color: var(--primary-strong);
}

.status.pending {
  color: var(--warning);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.75rem 2.5rem;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.81rem;
}

footer p {
  margin: 0;
}

@media (max-width: 64rem) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .command-panel {
    width: 100%;
    max-width: 38rem;
  }

  .proof-layout {
    grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 54rem) {
  .section-intro,
  .proof-layout,
  .responsibility {
    grid-template-columns: 1fr;
  }

  .tree {
    min-height: 0;
  }

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

  .delivery-flow li:nth-child(2) {
    border-inline-end: 0;
  }

  .delivery-flow li:first-child,
  .delivery-flow li:last-child {
    padding-inline: 1.25rem;
  }

  .delivery-flow li:nth-child(-n + 2) {
    border-block-end: 1px solid var(--line);
  }
}

@media (max-width: 42rem) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1rem;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4.1rem);
  }

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

  footer {
    flex-direction: column;
  }
}

@media (max-width: 34rem) {
  .hero,
  .proof,
  .saved,
  .flow,
  .responsibility,
  .catalog {
    padding-block: 3.5rem;
  }

  pre {
    overflow-x: visible;
    white-space: pre-wrap;
  }

  pre code,
  pre span,
  pre strong {
    overflow-wrap: anywhere;
  }

  .tree {
    white-space: pre;
    overflow-x: auto;
  }

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

  .delivery-flow li,
  .delivery-flow li:first-child,
  .delivery-flow li:last-child {
    min-height: 0;
    padding-inline: 0;
    border-inline-end: 0;
    border-block-end: 1px solid var(--line);
  }

  .delivery-flow li:last-child {
    border-block-end: 0;
  }

  .capability-table-wrap {
    overflow: visible;
  }

  table {
    min-width: 0;
  }

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

  tbody,
  tbody tr,
  tbody th,
  tbody td {
    display: block;
  }

  tbody tr {
    display: grid;
    gap: 0.55rem;
    padding-block: 1.25rem;
    border-block-end: 1px solid var(--line);
  }

  tbody tr:last-child {
    border-block-end: 0;
  }

  tbody th,
  tbody td {
    max-width: none;
    padding: 0;
    border: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero-copy,
  .command-panel {
    animation: enter 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .command-panel {
    animation-delay: 80ms;
  }

  .primary-action,
  a {
    transition:
      background-color 150ms ease,
      border-color 150ms ease,
      color 150ms ease,
      text-decoration-thickness 150ms ease;
  }
}

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

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(0.65rem);
  }
}
