:root {
  color-scheme: dark;
  --ink: #f4f1e8;
  --muted: #a7a9b8;
  --quiet: #747887;
  --night: #070812;
  --night-soft: #0b0e1b;
  --panel: rgba(16, 19, 34, 0.76);
  --panel-solid: #111522;
  --line: rgba(185, 196, 229, 0.14);
  --line-strong: rgba(185, 196, 229, 0.26);
  --gold: #d7b56d;
  --gold-light: #f0dca9;
  --cyan: #66d5cc;
  --blue: #819cf5;
  --violet: #aa8add;
  --danger: #f0978e;
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: min(1180px, calc(100vw - 48px));
  --radius: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: #3a4056 var(--night);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -15%, rgba(83, 91, 159, 0.22), transparent 38%),
    linear-gradient(180deg, #080913 0%, #070812 38%, #090b15 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.54) 0 0.55px, transparent 0.8px),
    radial-gradient(circle, rgba(129, 156, 245, 0.42) 0 0.7px, transparent 0.9px);
  background-position: 0 0, 47px 63px;
  background-size: 73px 73px, 137px 137px;
  content: "";
  opacity: 0.34;
  pointer-events: none;
}

a {
  color: inherit;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

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

button {
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

::selection {
  background: rgba(215, 181, 109, 0.3);
  color: #fff;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
}

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

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

.ambient {
  position: absolute;
  z-index: -2;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.ambient-one {
  top: 540px;
  right: -520px;
  background: rgba(78, 98, 201, 0.12);
}

.ambient-two {
  top: 1680px;
  left: -600px;
  background: rgba(169, 127, 213, 0.1);
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: var(--shell);
  min-height: 92px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(215, 181, 109, 0.72);
  content: "";
  transform: rotate(45deg);
}

.brand-mark::after {
  inset: 8px;
  border-color: rgba(129, 156, 245, 0.42);
}

.brand-mark span {
  position: relative;
  z-index: 1;
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: 0.22em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.38em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-header nav a,
.header-link {
  color: #b7bac7;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 180ms ease;
}

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

.header-link {
  justify-self: end;
}

.header-link span {
  margin-left: 6px;
  color: var(--gold);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(440px, 0.96fr);
  gap: 76px;
  align-items: center;
  min-height: 730px;
  padding-block: 74px 92px;
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.eyebrow span {
  position: relative;
  display: block;
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.eyebrow span::after {
  position: absolute;
  top: -2px;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 14px var(--gold);
  content: "";
}

.hero h1,
.section-heading h2,
.closing h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.97;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(58px, 6.3vw, 92px);
}

.hero h1 em,
.closing h2 em {
  color: var(--gold-light);
  font-weight: 400;
}

.hero-lede {
  max-width: 650px;
  margin: 30px 0 0;
  color: #b7b9c6;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.65;
}

.hero-actions,
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, #f0dca9, #cda75e);
  color: #12100c;
  box-shadow: 0 10px 32px rgba(215, 181, 109, 0.14);
}

.button-primary:hover {
  background: linear-gradient(135deg, #f8e8bd, #d8b369);
}

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

.button-secondary:hover {
  border-color: rgba(215, 181, 109, 0.46);
  background: rgba(215, 181, 109, 0.05);
}

.hero-signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 50px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-signals li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 19px 18px 0 0;
}

.hero-signals li + li {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.hero-signals strong {
  color: #e6e2d8;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.hero-signals span {
  color: var(--quiet);
  font-size: 14px;
}

.source-orbit {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  margin-inline: auto;
  isolation: isolate;
}

.source-orbit::before {
  position: absolute;
  inset: 2%;
  z-index: -2;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(117, 135, 222, 0.09) 0 17%, transparent 18%),
    repeating-radial-gradient(circle at center, transparent 0 23%, rgba(159, 173, 225, 0.09) 23.2% 23.4%, transparent 23.6% 38%);
  content: "";
}

.orbit-glow {
  position: absolute;
  inset: 24%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(95, 113, 213, 0.18);
  filter: blur(52px);
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(159, 173, 225, 0.14);
  border-radius: 50%;
}

.ring-one {
  inset: 14%;
}

.ring-two {
  inset: 28%;
  border-style: dashed;
  border-color: rgba(215, 181, 109, 0.16);
  animation: spin 40s linear infinite;
}

.exchange-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 162px;
  height: 162px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid rgba(215, 181, 109, 0.5);
  background: linear-gradient(145deg, rgba(24, 28, 46, 0.94), rgba(10, 12, 24, 0.98));
  box-shadow: 0 0 0 12px rgba(129, 156, 245, 0.025), 0 26px 80px rgba(0, 0, 0, 0.42);
}

.exchange-core::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(129, 156, 245, 0.16);
  content: "";
}

.exchange-core > * {
  position: relative;
  z-index: 1;
  transform: rotate(-45deg);
}

.core-overline {
  margin: 0 0 -2px -32px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.27em;
}

.exchange-core strong {
  font-family: var(--display);
  font-size: 60px;
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 1;
}

.core-state {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px -22px 0 0;
  color: #9c9fae;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.core-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
}

.orbit-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 164px;
  padding: 11px 14px 11px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(11, 14, 27, 0.9);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.orbit-node::after {
  position: absolute;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, rgba(129, 156, 245, 0.5), transparent);
  content: "";
}

.node-public {
  top: 11%;
  left: 1%;
}

.node-public::after {
  top: 100%;
  left: 76%;
  transform: rotate(45deg);
  transform-origin: left center;
}

.node-private {
  top: 23%;
  right: -2%;
}

.node-private::after {
  top: 112%;
  right: 80%;
  transform: rotate(130deg);
  transform-origin: right center;
}

.node-intranet {
  right: 13%;
  bottom: 7%;
}

.node-intranet::after {
  right: 84%;
  bottom: 108%;
  transform: rotate(45deg);
  transform-origin: right center;
}

.node-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(129, 156, 245, 0.28);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 14px;
}

.orbit-node div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.orbit-node strong {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.orbit-node small {
  margin-top: 3px;
  color: var(--quiet);
  font-size: 14px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.exchange-section,
.source-section,
.architecture-section {
  padding-block: 122px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 58px;
}

.section-heading .section-kicker {
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(42px, 5vw, 68px);
}

.section-heading > p {
  max-width: 440px;
  margin: 0 0 4px auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px auto auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 18, 31, 0.68);
  box-shadow: var(--shadow);
}

.search-field,
.select-field {
  display: flex;
  align-items: center;
  min-height: 49px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.search-field:focus-within,
.select-field:focus-within {
  border-color: rgba(215, 181, 109, 0.44);
}

.search-field > span:first-child {
  margin: 0 13px 0 16px;
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
  transform: rotate(-15deg);
}

.search-field input,
.select-field select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-field input:focus-visible,
.select-field select:focus-visible {
  outline: 0;
}

.search-field input {
  height: 100%;
  padding-right: 14px;
  font-size: 14px;
}

.search-field input::placeholder {
  color: #6e7281;
}

.select-field {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 4px 30px 3px 15px;
}

.select-field::after {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--gold);
  content: "⌄";
  pointer-events: none;
  transform: translateY(-55%);
}

.select-field span {
  color: var(--quiet);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1;
  text-transform: uppercase;
}

.select-field select {
  margin-top: 5px;
  color: #dddce1;
  font-size: 14px;
  font-weight: 650;
  appearance: none;
}

.select-field option {
  background: var(--panel-solid);
}

.toolbar-button {
  min-width: 104px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: #c2c4ce;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.toolbar-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

.toolbar-button span {
  margin-right: 5px;
  color: var(--gold);
  font-size: 15px;
}

.toolbar-button:disabled {
  cursor: progress;
  opacity: 0.55;
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 64px;
  margin-bottom: 22px;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
}

.filter-chip {
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: #8f92a0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.filter-chip:hover,
.filter-chip[aria-pressed="true"] {
  border-color: rgba(215, 181, 109, 0.42);
  background: rgba(215, 181, 109, 0.08);
  color: var(--gold-light);
}

#catalog-status {
  flex: 0 0 auto;
  margin: 12px 0 0;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  min-height: 220px;
}

.app-grid[aria-busy="true"] {
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.015) 30%, rgba(255, 255, 255, 0.045) 50%, rgba(255, 255, 255, 0.015) 70%) 0 0 / 200% 100%,
    rgba(255, 255, 255, 0.01);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.app-card {
  position: relative;
  display: flex;
  min-height: 388px;
  flex-direction: column;
  padding: 23px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--app-accent) 8%, transparent), transparent 35%),
    linear-gradient(145deg, rgba(19, 23, 39, 0.82), rgba(11, 14, 25, 0.84));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.app-card::before {
  position: absolute;
  top: 0;
  left: 23px;
  width: 44px;
  height: 1px;
  background: var(--app-accent);
  box-shadow: 0 0 15px var(--app-accent);
  content: "";
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 196, 229, 0.25);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.25);
}

.app-card-top,
.app-title-row,
.app-source,
.app-links,
.source-row,
.source-row-heading,
.source-actions,
.panel-heading,
.boundary-note {
  display: flex;
  align-items: center;
}

.app-card-top {
  justify-content: space-between;
}

.app-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--app-accent) 55%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--app-accent) 9%, rgba(10, 12, 22, 0.9));
  color: var(--app-accent);
  font-family: var(--display);
  font-size: 20px;
}

.app-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-badge,
.trust-badge,
.built-in-label,
.custom-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-available {
  border-color: rgba(102, 213, 204, 0.28);
  background: rgba(102, 213, 204, 0.07);
  color: #89ded7;
}

.status-preview {
  border-color: rgba(215, 181, 109, 0.3);
  background: rgba(215, 181, 109, 0.07);
  color: var(--gold-light);
}

.status-planned {
  border-color: rgba(170, 138, 221, 0.28);
  background: rgba(170, 138, 221, 0.07);
  color: #c8afea;
}

.trust-badge {
  color: #8d909d;
}

.trust-custom {
  border-color: rgba(240, 151, 142, 0.25);
  color: #d5a09d;
}

.app-title-row {
  gap: 12px;
  margin-top: 24px;
}

.app-title-row h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.app-version {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 14px;
}

.app-summary {
  min-height: 72px;
  margin: 10px 0 17px;
  color: #a6a9b5;
  font-size: 14px;
  line-height: 1.55;
}

.app-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-categories li {
  padding: 3px 8px;
  border: 1px solid rgba(185, 196, 229, 0.1);
  border-radius: 4px;
  color: #858997;
  font-size: 14px;
}

.app-capabilities {
  min-height: 30px;
  margin: 12px 0 0;
  color: #969aa9;
  font-size: 14px;
  line-height: 1.45;
}

.app-source {
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.source-dot {
  width: 7px;
  height: 7px;
  border: 1px solid var(--app-accent);
  border-radius: 50%;
  box-shadow: 0 0 9px color-mix(in srgb, var(--app-accent) 58%, transparent);
}

.app-source div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.app-source small {
  color: #656978;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-source strong {
  margin-top: 3px;
  color: #b9bbc6;
  font-size: 14px;
  font-weight: 650;
}

.app-links {
  gap: 14px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.card-primary-link,
.card-secondary-link {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-decoration: none;
}

.card-primary-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--gold-light);
}

.card-primary-link span {
  order: 2;
}

.card-secondary-link {
  color: #777b89;
}

.card-primary-link:hover,
.card-secondary-link:hover {
  color: #fff;
}

.empty-state {
  padding: 70px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
  text-align: center;
}

.empty-state > span {
  color: var(--gold);
  font-size: 34px;
}

.empty-state h3 {
  margin: 14px 0 4px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
}

.empty-state p,
.noscript-note {
  color: var(--muted);
  font-size: 14px;
}

.empty-state .button {
  margin-top: 15px;
}

.source-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 15px;
}

.source-list-panel,
.source-editor {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 19, 34, 0.68);
  box-shadow: var(--shadow);
}

.source-list-panel {
  padding: 25px;
}

.panel-heading {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.panel-heading h3,
.editor-heading h3 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
}

.text-button {
  padding: 5px;
  background: transparent;
  color: var(--quiet);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.source-list {
  display: grid;
  gap: 8px;
}

.source-row {
  gap: 14px;
  min-height: 91px;
  padding: 14px 15px;
  border: 1px solid rgba(185, 196, 229, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.source-status-icon {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border: 2px solid #555a69;
  border-radius: 50%;
}

.source-ready .source-status-icon {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(102, 213, 204, 0.5);
}

.source-loading .source-status-icon {
  border-color: var(--gold);
  border-top-color: transparent;
  animation: spin 800ms linear infinite;
}

.source-error .source-status-icon {
  border-color: var(--danger);
  background: rgba(240, 151, 142, 0.18);
}

.source-disabled .source-status-icon {
  opacity: 0.45;
}

.source-row-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.source-row-heading {
  gap: 8px;
}

.source-row-heading strong {
  font-size: 14px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.built-in-label,
.custom-label {
  min-height: 18px;
  padding: 0 6px;
  color: var(--gold);
  font-size: 14px;
}

.custom-label {
  border-color: rgba(240, 151, 142, 0.25);
  color: #d5a09d;
}

.source-endpoint,
.source-result {
  color: #9599a7;
  font-family: var(--mono);
  font-size: 14px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.source-endpoint {
  margin-top: 5px;
}

.source-result {
  margin-top: 3px;
  color: #a8abb7;
}

.source-error .source-result {
  color: #c48e89;
}

.source-actions {
  gap: 6px;
}

.source-action {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: #b1b4bf;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}

.source-action:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.source-remove:hover {
  border-color: rgba(240, 151, 142, 0.34);
  color: var(--danger);
}

.source-editor {
  padding: 29px;
  background:
    radial-gradient(circle at 100% 0, rgba(129, 156, 245, 0.08), transparent 34%),
    rgba(16, 19, 34, 0.68);
}

.editor-heading > p {
  max-width: 470px;
  margin: 13px 0 25px;
  color: #898c9a;
  font-size: 14px;
  line-height: 1.6;
}

.source-editor form {
  display: flex;
  flex-direction: column;
}

.source-editor label {
  margin: 13px 0 6px;
  color: #b7bac5;
  font-size: 14px;
  font-weight: 750;
}

.source-editor label span {
  color: #5f6371;
  font-weight: 500;
}

.source-editor input {
  width: 100%;
  height: 45px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: rgba(5, 7, 14, 0.48);
  font-family: var(--mono);
  font-size: 14px;
}

.source-editor input:focus {
  border-color: rgba(215, 181, 109, 0.46);
}

.source-editor input:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.source-editor input::placeholder {
  color: #555968;
}

.field-guidance,
.form-error {
  margin: 10px 0 0;
  color: #9da0ad;
  font-size: 14px;
  line-height: 1.55;
}

.form-error {
  min-height: 14px;
  color: var(--danger);
}

.source-editor .button {
  align-self: flex-start;
  margin-top: 15px;
}

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

.trust-path {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 22px;
  align-items: center;
}

.trust-path article {
  position: relative;
  min-height: 285px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(18, 22, 38, 0.82), rgba(10, 12, 22, 0.76));
}

.path-number {
  position: absolute;
  top: 20px;
  right: 22px;
  color: #4d5260;
  font-family: var(--mono);
  font-size: 14px;
}

.path-mark {
  display: grid;
  width: 57px;
  height: 57px;
  margin-bottom: 37px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--display);
  font-size: 20px;
}

.exchange-mark {
  border-radius: 10px;
  transform: rotate(45deg);
}

.exchange-mark::first-letter {
  transform: rotate(-45deg);
}

.sdk-mark {
  border-style: dashed;
  color: var(--violet);
}

.trust-path h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
}

.trust-path p {
  margin: 11px 0 0;
  color: #9093a0;
  font-size: 14px;
  line-height: 1.65;
}

.path-connector {
  color: rgba(215, 181, 109, 0.5);
  font-size: 22px;
}

.boundary-note {
  gap: 18px;
  margin-top: 17px;
  padding: 20px 22px;
  border: 1px solid rgba(215, 181, 109, 0.2);
  border-radius: 10px;
  background: rgba(215, 181, 109, 0.035);
}

.boundary-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(215, 181, 109, 0.35);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--display);
  font-size: 17px;
}

.boundary-note > div:nth-child(2) {
  flex: 1;
}

.boundary-note strong {
  font-size: 14px;
}

.boundary-note p {
  margin: 2px 0 0;
  color: #7f8390;
  font-size: 14px;
}

.boundary-note a {
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.boundary-note a span {
  margin-left: 5px;
}

.closing {
  display: flex;
  min-height: 610px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
  text-align: center;
}

.closing h2 {
  margin-top: 22px;
  font-size: clamp(54px, 7vw, 88px);
}

.closing > p:not(.section-kicker) {
  max-width: 650px;
  margin: 25px auto 0;
  color: var(--muted);
  font-size: 15px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 38px;
  align-items: center;
  width: var(--shell);
  min-height: 128px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
  color: #6d7180;
  font-size: 14px;
}

footer > p:last-child {
  text-align: right;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 1040px) {
  :root {
    --shell: min(100% - 40px, 900px);
  }

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

  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    gap: 26px;
    padding: 11px 0;
  }

  .site-header {
    padding-top: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 86px;
  }

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

  .source-orbit {
    max-width: 600px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .section-heading > p {
    max-width: 620px;
    margin-left: 0;
  }

  .catalog-toolbar {
    grid-template-columns: minmax(240px, 1fr) 170px auto;
  }

  .source-toolbar-button {
    display: none;
  }

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

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

  .trust-path {
    grid-template-columns: 1fr;
  }

  .trust-path article {
    min-height: 220px;
  }

  .path-mark {
    margin-bottom: 25px;
  }

  .path-connector {
    transform: rotate(90deg);
    justify-self: center;
  }

  footer {
    grid-template-columns: 1fr auto;
    padding-block: 30px;
  }

  footer > p:last-child {
    text-align: left;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .site-header {
    min-height: 78px;
  }

  .site-header nav {
    gap: 16px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .site-header nav a {
    flex: 0 0 auto;
    font-size: 14px;
  }

  .header-link {
    font-size: 0;
  }

  .header-link::before {
    font-size: 14px;
    content: "GitHub";
  }

  .header-link span {
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding-block: 70px 80px;
  }

  .hero h1 {
    font-size: clamp(52px, 15vw, 72px);
  }

  .hero-lede {
    font-size: 16px;
  }

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

  .hero-actions .button,
  .closing-actions .button {
    width: 100%;
  }

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

  .hero-signals li,
  .hero-signals li + li {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .source-orbit {
    margin-block: 30px 15px;
    transform: scale(0.9);
  }

  .orbit-node {
    min-width: 140px;
    padding: 9px;
  }

  .node-private {
    right: -5%;
  }

  .node-intranet {
    right: 7%;
  }

  .exchange-section,
  .source-section,
  .architecture-section {
    padding-block: 88px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading h2 {
    font-size: 43px;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr 100px;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .select-field {
    min-width: 0;
  }

  .toolbar-button {
    min-width: 0;
  }

  .catalog-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

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

  .app-card {
    min-height: 370px;
  }

  .source-list-panel,
  .source-editor {
    padding: 20px;
  }

  .source-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .source-actions {
    width: 100%;
    padding-left: 24px;
  }

  .boundary-note {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .boundary-note a {
    margin-left: 49px;
  }

  .closing {
    min-height: 560px;
  }

  .closing h2 {
    font-size: 50px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 17px;
    padding-block: 36px;
  }

  footer > p {
    margin: 0;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

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

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

.noscript-note { margin: 16px 0 0; padding: 0; font-size: 14px; line-height: 1.5; }
.noscript-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
