:root {
  --ink: #071a2b;
  --navy: #0b2a3f;
  --navy-soft: #123c52;
  --lime: #baf25d;
  --coral: #ff7759;
  --paper: #ffffff;
  --cloud: #f3f8f9;
  --mist: #e7f0f2;
  --slate: #647a88;
  --line: #d9e5e8;
  --shadow: 0 24px 70px rgba(7, 26, 43, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 48px));
  height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transform: translateX(-50%);
  color: var(--paper);
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: rgba(7, 26, 43, 0.94);
  box-shadow: 0 18px 45px rgba(4, 18, 30, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.brand-logo {
  display: block;
  width: 100px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.7);
}

.site-nav a,
.site-footer a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--lime);
}

section[id] {
  scroll-margin-top: 116px;
}

.status-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.header-status {
  position: absolute;
  top: 50%;
  right: 144px;
  transform: translateY(-50%);
}

.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 150px;
}

.triarit-logo {
  display: block;
  width: 92px;
  height: auto;
}

.triarit-logo--footer {
  width: 78px;
}

.status-link i,
.system-state i,
.panel-signal i {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(186, 242, 93, 0.13);
}

.hero {
  position: relative;
  min-height: 940px;
  padding: 172px max(24px, calc((100% - 1180px) / 2)) 0;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 81% 30%, rgba(186, 242, 93, 0.1), transparent 31%),
    linear-gradient(118deg, var(--ink) 0%, #09243a 58%, #0b3046 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(650px, 56%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--lime);
}

.section-kicker {
  color: var(--slate);
}

.eyebrow span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span::before {
  width: 28px;
  height: 1px;
  content: "";
  background: var(--lime);
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(52px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero h1 em {
  color: var(--lime);
  font-style: normal;
  font-weight: 750;
}

.hero-lede {
  max-width: 615px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 21px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button--primary {
  color: var(--ink);
  background: var(--lime);
}

.button--primary:hover {
  background: #cafb75;
}

.button--ghost {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.09);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 650;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-proof span::before {
  color: var(--lime);
  content: "✓";
}

.request-panel {
  position: absolute;
  z-index: 2;
  top: 170px;
  left: calc(50% + 250px);
  width: 470px;
  overflow: hidden;
  color: #d8e7eb;
  background: rgba(4, 19, 31, 0.91);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  transform: rotate(1.2deg);
}

.request-panel__head,
.request-line,
.panel-signal {
  display: flex;
  align-items: center;
}

.request-panel__head {
  justify-content: space-between;
  padding: 17px 20px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.window-dots i:nth-child(2) {
  background: rgba(255, 255, 255, 0.34);
}

.window-dots i:nth-child(3) {
  background: var(--lime);
}

.request-line {
  gap: 12px;
  padding: 22px 20px 12px;
}

.request-line code {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.method {
  display: inline-flex;
  width: max-content;
  min-width: 45px;
  height: 23px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  border-radius: 5px;
}

.method--post {
  background: var(--lime);
}

.method--get {
  background: var(--mist);
}

.method--put,
.method--patch {
  background: #ffd987;
}

.method--delete {
  background: #ffad9a;
}

.request-panel pre {
  margin: 0;
  padding: 8px 22px 22px;
  font-size: 12px;
  line-height: 1.8;
}

.code-key {
  color: rgba(255, 255, 255, 0.86);
}

.code-value {
  color: #d3f79a;
}

.code-muted {
  color: #718b97;
}

.response-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 20px 10px;
}

.response-divider span {
  color: var(--lime);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
}

.response-divider i {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
}

.panel-signal {
  gap: 10px;
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
}

.panel-signal strong {
  margin-left: auto;
  color: var(--lime);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.metrics-bar {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 0;
  left: max(24px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--ink);
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  box-shadow: var(--shadow);
}

.metrics-bar div {
  display: flex;
  min-height: 105px;
  flex-direction: column;
  justify-content: center;
  padding: 0 28px;
  border-right: 1px solid var(--line);
}

.metrics-bar div:last-child {
  border-right: 0;
}

.metrics-bar strong {
  font-size: 28px;
  letter-spacing: -0.05em;
}

.metrics-bar span {
  margin-top: 5px;
  color: var(--slate);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section {
  padding: 110px max(24px, calc((100% - 1180px) / 2));
}

.section--intro {
  display: grid;
  grid-template-columns: 0.7fr 1.35fr;
  gap: 60px 90px;
  background: var(--paper);
}

.intro-copy h2,
.section-heading h2,
.flow-copy h2,
.cta-band h2 {
  margin: 0;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.intro-copy p {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--slate);
  font-size: 17px;
  line-height: 1.75;
}

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

.principles article {
  padding: 32px 34px 0 0;
  border-right: 1px solid var(--line);
}

.principles article:not(:first-child) {
  padding-left: 34px;
}

.principles article:last-child {
  border-right: 0;
}

.principles span,
.system-index {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.principles span {
  color: var(--slate);
}

.system-index {
  color: var(--lime);
}

.principles h3,
.system-card h3 {
  margin: 18px 0 10px;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.principles p,
.system-card p,
.section-heading > p,
.flow-copy > p {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.7;
}

.section--systems {
  color: var(--paper);
  background: var(--navy);
}

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

.section-heading > p {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.58);
}

.section-kicker--light {
  color: var(--lime);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.system-card {
  display: block;
  min-height: 290px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.system-card:hover,
.system-card:focus-visible {
  border-color: rgba(186, 242, 93, 0.34);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-3px);
}

.system-card:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

.system-card__topline,
.system-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.system-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.53);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.system-card h3 {
  margin-top: 48px;
  color: var(--paper);
  font-size: 28px;
}

.system-card p {
  max-width: 470px;
  color: rgba(255, 255, 255, 0.56);
}

.system-meta {
  margin-top: 28px;
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.system-card > code {
  display: block;
  margin-top: 12px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section--routes {
  background: var(--cloud);
}

.section-heading--dark > p {
  color: var(--slate);
}

.text-link {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.text-link span {
  margin-left: 10px;
  color: currentColor;
}

.route-table {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.route-row {
  display: grid;
  grid-template-columns: 0.55fr 2.6fr 1fr 0.45fr;
  gap: 20px;
  align-items: center;
  min-height: 74px;
  padding: 0 25px;
  border-bottom: 1px solid var(--line);
}

.route-row:last-child {
  border-bottom: 0;
}

.route-row--head {
  min-height: 45px;
  color: var(--slate);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #eaf2f4;
}

.route-row code {
  overflow: hidden;
  color: var(--navy);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-system,
.route-status {
  color: var(--slate);
  font-size: 11px;
  font-weight: 700;
}

.route-status {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.section--flow {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  align-items: center;
}

.flow-copy > p {
  margin-top: 24px;
  font-size: 16px;
}

.flow-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.flow-steps li {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 100px;
  border-bottom: 1px solid var(--line);
}

.flow-steps li > span {
  color: var(--slate);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.flow-steps strong,
.flow-steps code {
  display: block;
}

.flow-steps strong {
  margin-bottom: 8px;
  font-size: 14px;
}

.flow-steps code {
  color: var(--slate);
  font-size: 11px;
}

.cta-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  margin: 0 max(24px, calc((100% - 1180px) / 2)) 90px;
  padding: 44px 48px;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius);
}

.brand-icon {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 17px;
}

.brand--footer .brand-logo {
  width: 88px;
}

.cta-band p {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cta-band h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.button--light {
  color: var(--ink);
  background: var(--paper);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 38px max(24px, calc((100% - 1180px) / 2));
  color: var(--paper);
  background: #04121e;
}

.site-footer p {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, 0.43);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.site-footer p strong {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
}

.site-footer > div:last-child {
  justify-self: end;
  display: flex;
  gap: 22px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

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

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 0;
    padding-bottom: 0;
  }

  .hero-copy {
    width: 100%;
  }

  .request-panel {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: min(620px, 100%);
    margin-top: 54px;
    transform: none;
  }

  .metrics-bar {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 44px;
  }

  .section--intro,
  .section--flow {
    grid-template-columns: 1fr;
  }

  .section--flow {
    gap: 48px;
  }

  .cta-band {
    grid-template-columns: auto 1fr;
  }

  .cta-band .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: calc(100% - 32px);
    padding: 0 14px;
  }

  .triarit-logo {
    width: 76px;
  }

  .header-status {
    right: 104px;
  }

  .hero {
    min-height: 0;
    padding-top: 140px;
  }

  .header-actions {
    min-width: 0;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 62px);
  }

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

  .request-panel {
    margin-top: 44px;
  }

  .metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 34px;
  }

  .metrics-bar div {
    min-height: 82px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
  }

  .metrics-bar div:nth-child(2) {
    border-right: 0;
  }

  .section {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .section--intro {
    gap: 46px;
  }

  .principles,
  .system-grid {
    grid-template-columns: 1fr;
  }

  .principles article,
  .principles article:not(:first-child) {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-heading {
    display: block;
  }

  .section-heading > p,
  .section-heading .text-link {
    display: block;
    margin-top: 20px;
  }

  .route-row {
    grid-template-columns: 58px 1fr 38px;
    gap: 10px;
    padding: 0 14px;
  }

  .route-row .route-system,
  .route-row--head span:nth-child(3) {
    display: none;
  }

  .cta-band {
    grid-template-columns: 1fr;
    margin-bottom: 48px;
    padding: 34px 28px;
  }

  .cta-band .button {
    grid-column: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 22px;
    justify-items: start;
  }

  .site-footer p,
  .site-footer > div:last-child {
    justify-self: start;
  }

  .site-footer p {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 0;
    padding-top: 176px;
  }

  .header-status {
    top: calc(100% + 14px);
    right: 0;
    transform: none;
  }

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

  .hero-proof {
    display: none;
  }

  .request-panel {
    margin-top: 38px;
  }

  .request-panel pre {
    padding-right: 14px;
    padding-left: 14px;
    font-size: 10px;
  }

  .request-line {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: rise-in 600ms ease both;
  }

  .request-panel {
    animation: panel-in 700ms 120ms ease both;
  }

  .reveal {
    animation: rise-in 500ms var(--delay) ease both;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(1.2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(1.2deg);
  }
}

@media (max-width: 1040px) and (prefers-reduced-motion: no-preference) {
  .request-panel {
    animation-name: rise-in;
  }
}

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

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

/* Configured system catalogue */
.system-page {
  background: var(--paper);
}

.system-hero {
  min-height: 940px;
}

.system-hero__copy {
  max-width: 650px;
}

.system-hero h1 {
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

.system-page .eyebrow {
  color: var(--lime);
}

.system-page .eyebrow span::before {
  background: var(--lime);
}

.system-page .hero-proof span::before {
  color: var(--lime);
}

.system-page .section-heading .section-kicker {
  color: var(--slate);
}

.system-host {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 26px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.system-host i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(186, 242, 93, 0.13);
}

.system-host code {
  color: var(--paper);
  font-size: 13px;
}

.system-aliases {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-aliases code {
  padding: 4px 7px;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.system-panel {
  transform: rotate(0.8deg);
}

.system-panel__host {
  display: grid;
  gap: 8px;
  padding: 22px 20px 16px;
}

.system-panel__host span {
  color: rgba(255, 255, 255, 0.43);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.system-panel__host code {
  overflow: hidden;
  color: var(--paper);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-panel__links {
  display: grid;
  gap: 9px;
  padding: 0 20px 22px;
}

.system-panel__endpoint {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  transition: background 180ms ease, border-color 180ms ease;
}

.system-panel__endpoint:hover {
  border-color: rgba(186, 242, 93, 0.38);
  background: rgba(186, 242, 93, 0.08);
}

.system-panel__endpoint span {
  color: var(--lime);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 850;
}

.system-panel__endpoint strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-panel__endpoint code {
  color: var(--lime);
  font-size: 10px;
  font-weight: 850;
}

.system-route-section {
  background: var(--cloud);
}

.route-table--system .route-row {
  grid-template-columns: 0.55fr 2.3fr 1.15fr 0.45fr;
}

.system-detail-list {
  display: grid;
  gap: 34px;
}

.endpoint-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 42px rgba(7, 26, 43, 0.06);
  scroll-margin-top: 24px;
}

.endpoint-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  padding: 34px 38px;
  color: var(--paper);
  background: var(--navy);
}

.endpoint-number {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.endpoint-card__header h2 {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0;
}

.endpoint-card__header > div > p:last-child {
  max-width: 650px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.65;
}

.endpoint-facts {
  display: flex;
  gap: 22px;
  margin: 0;
}

.endpoint-facts div {
  min-width: 58px;
}

.endpoint-facts dt {
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.endpoint-facts dd {
  margin: 0;
  color: var(--lime);
  font-size: 21px;
  font-weight: 750;
}

.rule-section {
  padding: 30px 38px;
  border-top: 1px solid var(--line);
}

.rule-section__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.rule-section__heading h3 {
  margin: 0;
  font-size: 13px;
}

.rule-scope {
  padding: 5px 8px;
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cloud);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rule-scope--conditional {
  color: #8f402f;
  border-color: #ffd5cc;
  background: #fff1ee;
}

.bound-paths {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bound-paths li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 48px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--cloud);
}

.bound-paths code {
  overflow-x: auto;
  color: var(--navy-soft);
  font-size: 12px;
  white-space: nowrap;
}

.rule-default {
  margin: 0;
  color: var(--slate);
  font-size: 13px;
}

.rule-section--formula {
  padding-bottom: 38px;
}

.rule-json {
  max-height: 620px;
  margin: 0;
  padding: 22px 24px;
  overflow: auto;
  color: #dcecf0;
  border-radius: 12px;
  background: var(--ink);
  font-size: 11px;
  line-height: 1.65;
  tab-size: 2;
}

.section--traffic {
  background: var(--cloud);
}

.traffic-heading {
  margin-bottom: 34px;
}

.traffic-heading [data-traffic-status] {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cloud);
  font-size: 11px;
  font-weight: 750;
}

.traffic-log {
  display: grid;
  gap: 18px;
}

.traffic-api {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(7, 26, 43, 0.055);
}

.traffic-api__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 20px 22px;
  color: var(--paper);
  background: var(--navy);
}

.traffic-api__eyebrow {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.traffic-api h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 19px;
  letter-spacing: 0;
}

.traffic-api__header code {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.traffic-api__count {
  color: rgba(255, 255, 255, 0.54);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.traffic-records {
  display: grid;
}

.traffic-record {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.traffic-record__summary {
  display: grid;
  grid-template-columns: 24px minmax(150px, 0.9fr) 76px minmax(0, 1fr) 70px;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 0 22px;
  cursor: pointer;
  list-style: none;
}

.traffic-record__summary::-webkit-details-marker {
  display: none;
}

.traffic-record__summary::before {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  content: "+";
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cloud);
  font-size: 14px;
  font-weight: 800;
}

.traffic-record[open] .traffic-record__summary::before {
  content: "-";
}

.traffic-time,
.traffic-tmf,
.traffic-operation,
.traffic-status {
  min-width: 0;
  font-size: 11px;
  font-weight: 750;
}

.traffic-time {
  color: var(--slate);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.traffic-tmf {
  color: var(--navy);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.traffic-operation {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.traffic-status {
  justify-self: end;
  display: inline-flex;
  min-width: 46px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.traffic-status--ok {
  color: #244200;
  background: #d9f9a8;
}

.traffic-status--warn {
  color: #7a3c00;
  background: #ffe0a6;
}

.traffic-status--error {
  color: #81210f;
  background: #ffd2c9;
}

.traffic-record__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.traffic-payload {
  min-width: 0;
  padding: 20px 22px;
  color: #dcecf0;
  background: var(--ink);
}

.traffic-payload h4 {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.traffic-payload pre {
  max-height: 430px;
  margin: 0;
  overflow: auto;
  font-size: 11px;
  line-height: 1.65;
  tab-size: 2;
}

.traffic-empty {
  padding: 20px 22px;
  color: var(--slate);
  font-size: 12px;
}

.system-page .site-footer {
  background: var(--ink);
}

@media (max-width: 1040px) {
  .system-hero {
    min-height: 0;
  }

  .system-hero__copy {
    max-width: none;
  }

  .system-panel {
    transform: none;
  }
}

@media (max-width: 940px) {
  .route-table--system .route-row {
    grid-template-columns: 58px 1fr 0.6fr 44px;
  }
}

@media (max-width: 720px) {
  .system-hero {
    min-height: 0;
  }

  .endpoint-card__header {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .endpoint-facts {
    justify-content: space-between;
  }

  .route-table--system .route-row {
    grid-template-columns: 58px 1fr 42px;
  }

  .rule-section {
    padding: 26px 24px;
  }

  .bound-paths li {
    grid-template-columns: 1fr;
  }

  .rule-json {
    margin-right: -8px;
    margin-left: -8px;
    padding: 18px 16px;
    font-size: 10px;
  }

  .traffic-api__header,
  .traffic-record__body {
    grid-template-columns: 1fr;
  }

  .traffic-api__header {
    align-items: start;
  }

  .traffic-api__header .method,
  .traffic-api__count {
    justify-self: start;
  }

  .traffic-record__summary {
    grid-template-columns: 24px minmax(0, 1fr) 56px;
    gap: 8px 10px;
    min-height: 0;
    padding: 14px 16px;
  }

  .traffic-record__summary::before {
    grid-row: 1 / span 3;
  }

  .traffic-time {
    grid-column: 2;
  }

  .traffic-status {
    grid-column: 3;
    grid-row: 1;
  }

  .traffic-tmf {
    grid-column: 2 / 4;
  }

  .traffic-operation {
    grid-column: 2 / 4;
    white-space: normal;
  }

  .traffic-payload {
    padding: 18px 16px;
  }

  .traffic-payload pre {
    font-size: 10px;
  }
}
