:root {
  color-scheme: dark;
  --bg: #101215;
  --surface: #15191e;
  --surface-2: #1b2026;
  --surface-3: #222933;
  --ink: #f2f3f5;
  --muted: #a7adb7;
  --faint: #777f8c;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .17);
  --accent: #9ba9ce;
  --accent-strong: #b8c4e1;
  --accent-soft: rgba(155, 169, 206, .12);
  --teal: #75c7b7;
  --gold: #d3b779;
  --shadow: 0 28px 80px rgba(0, 0, 0, .3);
  --radius: 18px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eceef0;
  --surface: #f7f7f6;
  --surface-2: #ffffff;
  --surface-3: #e4e7eb;
  --ink: #171a1f;
  --muted: #535b67;
  --faint: #707886;
  --line: rgba(18, 24, 34, .11);
  --line-strong: rgba(18, 24, 34, .2);
  --accent: #586a99;
  --accent-strong: #415682;
  --accent-soft: rgba(88, 106, 153, .1);
  --teal: #337f73;
  --gold: #8c6b25;
  --shadow: 0 28px 70px rgba(29, 35, 46, .13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

svg {
  display: block;
}

.shell {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: .65rem .9rem;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-strong) 72%, white);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px max(24px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  font-weight: 780;
  letter-spacing: -.025em;
}

.brand svg {
  width: 38px;
  color: var(--accent);
}

.brand span {
  font-size: 17px;
}

.brand small {
  margin-left: 2px;
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--muted);
  font: 600 8px/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  gap: 5px;
}

.site-header nav a {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.site-header nav a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--surface-2);
}

.theme-toggle svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .sun {
  display: none;
}

html[data-theme="light"] .theme-toggle .sun {
  display: block;
}

html[data-theme="light"] .theme-toggle .moon {
  display: none;
}

.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .7rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent-strong);
  color: #10141a;
  font-size: 13px;
  font-weight: 760;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 20%, transparent);
}

.button-small {
  min-height: 36px;
  padding: .5rem .8rem;
  font-size: 11px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--muted);
  font-size: 13px;
  font-weight: 670;
}

.text-link:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 58px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .4), transparent 72%);
  opacity: .22;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr);
  align-items: center;
  gap: clamp(50px, 7vw, 100px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: var(--accent-strong);
  font: 650 10px/1.2 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 22px;
  height: 1px;
  background: currentColor;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 22px;
  font-size: clamp(48px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.06em;
}

.lede {
  max-width: 610px;
  margin-bottom: 27px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-facts {
  display: flex;
  gap: 30px;
  margin: 42px 0 0;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  display: grid;
  gap: 3px;
}

.hero-facts dt {
  color: var(--faint);
  font: 610 9px/1.2 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  font-size: 12px;
  font-weight: 680;
}

.product-window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #111417;
  color: #eef0f4;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.window-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: #171b20;
}

.window-bar > span,
.terminal-bar > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4b515b;
}

.window-bar > span:first-child,
.terminal-bar > span:first-child {
  background: #83605f;
}

.window-bar > span:nth-child(2),
.terminal-bar > span:nth-child(2) {
  background: #8f7a52;
}

.window-bar > span:nth-child(3),
.terminal-bar > span:nth-child(3) {
  background: #527d70;
}

.window-bar p {
  margin: 0 0 0 auto;
  color: #68717e;
  font: 500 8px/1 var(--mono);
}

.product-head {
  height: 49px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #88909d;
  font-size: 9px;
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: auto;
  color: #edf0f4;
}

.mini-brand svg {
  width: 24px;
  color: #929fbe;
}

.mini-brand b {
  font-size: 11px;
}

.product-content {
  padding: 34px 42px 40px;
}

.product-content .micro {
  margin-bottom: 7px;
  color: #8995b2;
  font: 600 7px/1.2 var(--mono);
  letter-spacing: .16em;
}

.product-content h2 {
  margin-bottom: 20px;
  font-size: 36px;
  letter-spacing: -.055em;
}

.search-sim {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
  color: #8d949f;
  font-size: 10px;
}

.search-sim span {
  font-size: 18px;
}

.chips {
  display: flex;
  gap: 6px;
  margin: 12px 0 17px;
}

.chips span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: #aeb4bd;
  font-size: 7px;
}

.chips span:first-child {
  border-color: #8996b5;
  background: rgba(137, 150, 181, .12);
  color: #eef0f4;
}

.job-sim {
  display: flex;
  gap: 20px;
  align-items: start;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: #171c21;
}

.job-sim small,
.job-sim strong,
.job-sim p {
  display: block;
}

.job-sim small {
  margin-bottom: 6px;
  color: #78bbae;
  font: 570 6px/1.2 var(--mono);
  letter-spacing: .08em;
}

.job-sim strong {
  font-size: 10px;
}

.job-sim p {
  margin: 5px 0 0;
  color: #8f97a3;
  font-size: 7px;
  line-height: 1.45;
}

.job-sim .arrow {
  margin-left: auto;
  color: #7784a3;
  font-size: 11px;
}

.muted-card {
  margin-top: 7px;
  opacity: .68;
}

.lake-line {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 100px;
  color: var(--accent);
  opacity: .28;
}

.lake-line svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.lake-line path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.lake-line .serpent {
  stroke-width: 4;
}

.lake-line circle {
  fill: currentColor;
}

.section {
  padding-block: 104px;
}

.section-intro {
  max-width: 670px;
  margin-bottom: 52px;
}

.section-intro.compact {
  max-width: 720px;
}

.section h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 4.5vw, 57px);
  line-height: 1.04;
  letter-spacing: -.05em;
}

.section-intro > p:last-child,
.section-heading-row > p {
  color: var(--muted);
  font-size: 16px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principle-grid article {
  min-height: 255px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.number {
  color: var(--accent);
  font: 600 10px/1 var(--mono);
}

.principle-grid h3 {
  margin: 76px 0 11px;
  font-size: 18px;
  letter-spacing: -.025em;
}

.principle-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.process-section {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 52px;
}

.section-heading-row > div {
  max-width: 720px;
}

.section-heading-row h2 {
  margin-bottom: 0;
}

.section-heading-row > p {
  max-width: 340px;
  margin-bottom: 5px;
}

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

.process li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 21px 20px 21px 0;
  border-top: 1px solid var(--line-strong);
}

.process li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: -2px;
  right: 16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.process > li > span {
  color: var(--accent);
  font: 650 10px/1.5 var(--mono);
}

.process strong {
  font-size: 14px;
}

.process p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.architecture-section {
  padding-bottom: 92px;
}

.architecture-board {
  display: grid;
  grid-template-columns: 1fr 80px 1fr 80px 1fr;
  align-items: center;
  gap: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.arch-column {
  display: grid;
  gap: 9px;
}

.arch-label {
  margin: 0 0 5px;
  color: var(--faint);
  font: 610 9px/1.2 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.arch-node {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
}

.arch-node.accent-node {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-soft);
}

.arch-node > span {
  color: var(--accent);
  font: 600 9px/1.5 var(--mono);
}

.arch-node strong,
.arch-node small {
  display: block;
}

.arch-node strong {
  margin-bottom: 4px;
  font-size: 12px;
}

.arch-node small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.arch-connector {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.arch-connector span {
  color: var(--faint);
  font: 600 7px/1 var(--mono);
  letter-spacing: .1em;
}

.arch-connector i {
  position: relative;
  width: 55px;
  height: 1px;
  background: var(--line-strong);
}

.arch-connector i::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -1px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: rotate(45deg);
}

.tech-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.tech-strip span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 570 9px/1 var(--mono);
}

.capabilities {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-grid article {
  min-height: 225px;
  padding: 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-grid b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--accent);
  font: 500 16px/1 var(--mono);
}

.capability-grid h3 {
  margin: 42px 0 9px;
  font-size: 16px;
}

.capability-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.contribute-panel {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: clamp(45px, 8vw, 105px);
  align-items: center;
  padding: clamp(30px, 5vw, 62px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface), var(--bg));
}

.contribute-panel h2 {
  max-width: 11ch;
}

.contribute-panel > div:first-child > p:not(.eyebrow) {
  max-width: 580px;
  color: var(--muted);
}

.contribute-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #0d1013;
  color: #d8dce2;
  box-shadow: var(--shadow);
}

.terminal-bar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: #15191e;
}

.terminal-bar small {
  margin-left: auto;
  color: #6f7783;
  font: 500 8px/1 var(--mono);
}

.terminal pre {
  overflow-x: auto;
  margin: 0;
  padding: 23px;
  font: 500 11px/1.75 var(--mono);
}

.terminal code span {
  color: #75c7b7;
}

.copy-command {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: transparent;
  color: #9299a5;
  font: 600 9px/1 var(--mono);
  cursor: pointer;
  text-align: left;
}

.copy-command:hover {
  background: rgba(255, 255, 255, .04);
  color: #eef0f4;
}

.closing {
  padding-block: 76px;
  background: var(--accent-strong);
  color: #11151b;
}

.closing-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.closing .eyebrow {
  color: #303b50;
}

.closing h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(35px, 4.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -.052em;
}

.button-light {
  flex: 0 0 auto;
  border-color: #11151b;
  background: #11151b;
  color: #f2f3f5;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 25px;
  min-height: 110px;
  color: var(--muted);
  font-size: 11px;
}

.footer-brand svg {
  width: 31px;
}

.footer-brand span {
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer > div {
  display: flex;
  gap: 15px;
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer small {
  color: var(--faint);
}

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

  .site-header nav {
    display: none;
  }

  .hero {
    padding-top: 64px;
  }

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

  .hero-copy {
    max-width: 760px;
  }

  h1 {
    max-width: 11ch;
  }

  .product-window {
    max-width: 720px;
    margin-inline: auto;
    transform: none;
  }

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

  .principle-grid article {
    min-height: 225px;
  }

  .principle-grid h3 {
    margin-top: 48px;
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
  }

  .architecture-board {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .arch-connector {
    min-height: 42px;
  }

  .arch-connector i {
    width: 1px;
    height: 30px;
  }

  .arch-connector i::after {
    top: auto;
    right: -3px;
    bottom: -1px;
    transform: rotate(135deg);
  }

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

  .contribute-panel {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: auto 1fr auto;
  }

  .site-footer > p {
    display: none;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    min-height: 62px;
    padding-inline: 14px;
  }

  .brand small,
  .header-actions .button {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 60px);
  }

  .lede {
    font-size: 16px;
  }

  .hero-actions,
  .contribute-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-facts {
    gap: 18px;
  }

  .product-content {
    padding: 26px 20px 30px;
  }

  .chips span:nth-child(3) {
    display: none;
  }

  .section {
    padding-block: 72px;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .principle-grid,
  .capability-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .principle-grid article,
  .capability-grid article {
    min-height: auto;
  }

  .principle-grid h3,
  .capability-grid h3 {
    margin-top: 35px;
  }

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

  .architecture-board {
    padding: 17px;
  }

  .contribute-panel {
    padding: 25px 18px;
  }

  .terminal pre {
    padding: 18px;
    font-size: 9px;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 28px;
  }
}

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

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

