:root {
  color-scheme: dark;
  --ink: #071113;
  --ink-soft: #0d1b1e;
  --ink-lift: #132528;
  --line: rgba(184, 224, 214, 0.18);
  --line-strong: rgba(184, 224, 214, 0.34);
  --paper: #f0faf7;
  --muted: #afc7c1;
  --quiet: #7f9e97;
  --mint: #8cf2d4;
  --mint-soft: #b9f8e6;
  --amber: #f0c982;
  --violet: #b8a7ff;
  --shell: 76rem;
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 85% 4%, rgba(74, 196, 164, 0.13), transparent 26rem),
    radial-gradient(circle at 5% 32%, rgba(152, 129, 255, 0.08), transparent 28rem),
    var(--ink);
  color: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--mint);
}

a:focus-visible {
  border-radius: 0.2rem;
  outline: 0.2rem solid var(--amber);
  outline-offset: 0.25rem;
}

code {
  border: 1px solid var(--line);
  border-radius: 0.28rem;
  padding: 0.08rem 0.32rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--mint-soft);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

.shell {
  width: min(calc(100% - 2.5rem), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.8rem;
  left: 0.8rem;
  transform: translateY(-180%);
  border-radius: 0.45rem;
  padding: 0.7rem 1rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 19, 0.84);
  backdrop-filter: blur(1.1rem);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
  font-size: 1.04rem;
  font-weight: 780;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--paper);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 1.35rem;
}

nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 680;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--mint);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(24rem, 0.98fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  min-height: min(51rem, calc(100svh - 5.2rem));
  padding-block: clamp(5rem, 10vw, 8.5rem);
}

.eyebrow,
.card-label {
  margin: 0 0 0.9rem;
  color: var(--mint);
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--paper);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.45rem;
  font-size: clamp(3.1rem, 7vw, 6.4rem);
}

h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.3rem, 4.7vw, 4.4rem);
}

h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.hero-lede {
  max-width: 41rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
}

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

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 780;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-0.12rem);
}

.button-primary {
  background: var(--mint);
  color: #04100d;
}

.button-primary:hover {
  background: var(--mint-soft);
  color: #04100d;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--paper);
}

.button-secondary:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.scope-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  max-width: 39rem;
  margin: 2rem 0 0;
  color: var(--quiet);
  font-size: 0.86rem;
}

.scope-note span {
  color: var(--amber);
  font-weight: 760;
}

.hero-figure {
  margin: 0;
}

.visual-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent);
  box-shadow: var(--shadow);
}

.visual-frame::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  content: "";
  pointer-events: none;
}

.hero-figure figcaption {
  max-width: 34rem;
  margin: 0.9rem 0 0;
  color: var(--quiet);
  font-size: 0.78rem;
}

.principles {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

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

.principle-grid p {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  border-left: 1px solid var(--line);
  padding: 1.6rem 2rem;
}

.principle-grid p:last-child {
  border-right: 1px solid var(--line);
}

.principle-grid strong {
  color: var(--paper);
  font-size: 0.86rem;
}

.principle-grid span {
  color: var(--quiet);
  font-size: 0.78rem;
}

.section {
  padding-block: clamp(5.5rem, 10vw, 9rem);
  scroll-margin-top: 2rem;
}

.section-tinted {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.018)),
    radial-gradient(circle at 20% 20%, rgba(140, 242, 212, 0.06), transparent 24rem);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 3.2rem;
}

.section-heading > p:last-child,
.boundary-grid > div > p:last-child,
.planned-panel > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline li {
  position: relative;
  min-height: 18.5rem;
  border: 1px solid var(--line);
  border-right: 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
}

.pipeline li:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.pipeline li:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.pipeline li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 2rem;
  right: -0.47rem;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
  content: "";
}

.step-number {
  display: block;
  margin-bottom: 4.3rem;
  color: var(--mint);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
}

.pipeline p,
.feature-grid article > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.feature-grid article {
  min-height: 16rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.7rem;
  background: rgba(7, 17, 19, 0.54);
}

.feature-grid article:nth-child(2),
.feature-grid article:nth-child(5) {
  transform: translateY(1rem);
}

.layer-stack {
  border-top: 1px solid var(--line);
}

.layer-stack article {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(13rem, 0.58fr);
  gap: 1.5rem;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0.4rem;
}

.layer-stack h3,
.layer-stack p {
  margin-top: 0;
}

.layer-stack div > p,
.layer-boundary {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.layer-index {
  padding-top: 0.24rem;
  color: var(--mint);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
}

.layer-boundary {
  border-left: 1px solid var(--line-strong);
  padding-left: 1.2rem;
  color: var(--quiet);
}

.differentiator {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 20%, rgba(240, 201, 130, 0.11), transparent 24rem),
    var(--ink-soft);
}

.differentiator-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 9vw, 8rem);
}

.statement-list {
  border-top: 1px solid var(--line);
}

.statement-list p {
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
  color: var(--muted);
}

.statement-list strong {
  color: var(--paper);
}

.boundary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.boundary-card {
  border: 1px solid rgba(240, 201, 130, 0.3);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background: rgba(240, 201, 130, 0.045);
}

.boundary-card ul,
.planned-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.boundary-card li + li,
.planned-list li + li {
  margin-top: 0.65rem;
}

.boundary-card li::marker,
.planned-list li::marker {
  color: var(--amber);
}

.planned-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(22rem, 1.2fr);
  gap: clamp(2rem, 7vw, 6rem);
  margin-top: clamp(4rem, 8vw, 7rem);
  border-block: 1px solid var(--line);
  padding-block: 2.5rem;
}

.planned-list {
  columns: 2;
  column-gap: 2.5rem;
}

.planned-list li {
  break-inside: avoid;
  padding-right: 1rem;
}

.demo-note {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.3rem;
  margin-top: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.018);
}

.demo-mark {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--mint);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 0.42rem var(--ink),
    inset 0 0 0 0.52rem var(--mint);
}

.demo-note h3 {
  margin-bottom: 0.4rem;
}

.demo-note p {
  max-width: 55rem;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem;
  background: #050c0e;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 3rem;
  align-items: start;
}

.footer-brand + p {
  margin: 0.65rem 0 0;
  color: var(--quiet);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

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

.footer-fine {
  grid-column: 1 / -1;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  color: var(--quiet);
  font-size: 0.76rem;
}

.document-main {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.document {
  max-width: 54rem;
}

.document-header {
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3rem;
}

.document-header h1,
.error-content h1 {
  max-width: none;
}

.document-header > p:not(.eyebrow, .effective-date) {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.effective-date {
  margin: 1.5rem 0 0;
  color: var(--quiet);
  font-size: 0.82rem;
}

.document section {
  margin-top: 3rem;
  scroll-margin-top: 2rem;
}

.document section h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.document section p {
  color: var(--muted);
}

.document-return {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.text-link {
  color: var(--mint);
  font-weight: 760;
}

.error-main {
  position: relative;
  display: grid;
  min-height: calc(100svh - 5.2rem);
  place-items: center;
  overflow: hidden;
  padding-block: 4rem;
}

.error-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.error-content p:not(.eyebrow) {
  margin: 0 0 2rem;
  color: var(--muted);
}

.error-content .button {
  justify-self: center;
}

.error-orbit {
  position: absolute;
  width: min(75vw, 48rem);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow:
    0 0 0 6rem rgba(140, 242, 212, 0.018),
    0 0 0 12rem rgba(184, 167, 255, 0.012);
}

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

  .hero-copy {
    max-width: 49rem;
  }

  .hero-figure {
    max-width: 42rem;
  }

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

  .pipeline li,
  .pipeline li:first-child,
  .pipeline li:last-child {
    min-height: 15rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
  }

  .pipeline li:not(:last-child)::after {
    display: none;
  }

  .step-number {
    margin-bottom: 2.4rem;
  }

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

  .feature-grid article:nth-child(2),
  .feature-grid article:nth-child(5) {
    transform: none;
  }
}

@media (max-width: 48rem) {
  .shell {
    width: min(calc(100% - 1.5rem), var(--shell));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 4.5rem;
  }

  h1 {
    font-size: clamp(2.85rem, 14vw, 4.3rem);
  }

  .scope-note,
  .principle-grid,
  .feature-grid,
  .layer-stack article,
  .differentiator-grid,
  .boundary-grid,
  .planned-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .principle-grid p,
  .principle-grid p:last-child {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-inline: 1.2rem;
  }

  .principle-grid p:last-child {
    border-bottom: 0;
  }

  .layer-boundary {
    grid-column: 1;
    margin-left: 0;
  }

  .planned-list {
    columns: 1;
  }

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

@media (max-width: 34rem) {
  .pipeline {
    grid-template-columns: 1fr;
  }

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

  .button {
    width: 100%;
  }

  .demo-note {
    grid-template-columns: 1fr;
  }
}

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

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

@media (prefers-contrast: more) {
  :root {
    --line: rgba(240, 250, 247, 0.44);
    --line-strong: rgba(240, 250, 247, 0.72);
    --muted: #d4e5e1;
    --quiet: #b8cdc8;
  }
}
