:root {
  color-scheme: dark;
  --bg: #0b0e12;
  --bg-soft: #0f1318;
  --surface: #12171d;
  --surface-2: #161c23;
  --surface-3: #1a2129;
  --border: #27313b;
  --border-strong: #35414d;
  --text: #eef2f5;
  --text-soft: #c9d0d6;
  --muted: #95a1ac;
  --muted-2: #77838e;
  --accent: #8eb7d0;
  --accent-strong: #b8d4e5;
  --accent-dim: #1a2a35;
  --success: #77b992;
  --success-dim: #14251d;
  --warning: #c9aa6b;
  --danger: #c98a8a;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  --container: 1180px;
  --radius: 8px;
  --radius-sm: 5px;
  --header-height: 72px;
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(142, 183, 208, 0.035), transparent 420px),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

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

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-weight: 610;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 6vw, 5.15rem);
  font-weight: 590;
  letter-spacing: -0.052em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  letter-spacing: -0.038em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  letter-spacing: -0.018em;
}

p {
  margin-bottom: 1rem;
}

::selection {
  background: rgba(142, 183, 208, 0.26);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(calc(100% - 40px), 820px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  transition: transform 150ms ease;
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(53, 65, 77, 0.68);
  background: rgba(11, 14, 18, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.018em;
}

.brand img {
  width: 28px;
  height: 28px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.site-nav a {
  position: relative;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 520;
  transition: color 150ms ease, background-color 150ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.site-nav .nav-contact {
  margin-left: 8px;
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
}

.site-nav .nav-contact:hover {
  border-color: #465665;
  background: var(--surface-2);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  width: 17px;
  height: 1px;
  background: var(--text-soft);
  content: "";
  transition: transform 150ms ease, opacity 150ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  position: absolute;
  left: 0;
}

.menu-toggle-lines::before {
  top: -5px;
}

.menu-toggle-lines::after {
  top: 5px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(74px, 11vw, 140px) 0 clamp(74px, 10vw, 124px);
  border-bottom: 1px solid rgba(39, 49, 59, 0.76);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(142, 183, 208, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(142, 183, 208, 0.026) 1px, transparent 1px);
  background-position: center top;
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 84%);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(330px, 0.78fr);
  align-items: center;
  gap: clamp(44px, 7vw, 90px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 20px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.hero-copy {
  max-width: 700px;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: clamp(1.06rem, 2vw, 1.24rem);
  line-height: 1.66;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 620;
  line-height: 1;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

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

.button-primary {
  border-color: #a1c7dd;
  background: #a1c7dd;
  color: #0b1116;
}

.button-primary:hover {
  border-color: #bad8e8;
  background: #bad8e8;
}

.button-secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text-soft);
}

.button-secondary:hover {
  border-color: #485765;
  background: var(--surface-2);
  color: var(--text);
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 590;
}

.inline-link::after {
  content: "→";
  transition: transform 150ms ease;
}

.inline-link:hover::after {
  transform: translateX(3px);
}

.spec-panel {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent), var(--surface);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  text-transform: none;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(119, 185, 146, 0.08);
}

.spec-list {
  margin: 0;
  padding: 8px 18px;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(39, 49, 59, 0.72);
}

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

.spec-row dt {
  color: var(--muted);
  font-size: 0.88rem;
}

.spec-row dd {
  margin: 0;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: right;
}

.panel-note {
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 0.79rem;
  line-height: 1.55;
}

.section {
  padding: clamp(76px, 10vw, 122px) 0;
}

.section-tight {
  padding: clamp(58px, 8vw, 92px) 0;
}

.section-bordered {
  border-top: 1px solid rgba(39, 49, 59, 0.75);
}

.section-muted {
  background: var(--bg-soft);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 42px;
}

.section-header > div:first-child {
  max-width: 760px;
}

.section-label {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 710px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  grid-column: span 4;
  min-height: 275px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.service-card:nth-child(4),
.service-card:nth-child(5) {
  grid-column: span 6;
  min-height: 240px;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.service-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 36px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.service-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.architecture-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(46px, 7vw, 92px);
}

.feature-list {
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(39, 49, 59, 0.7);
  color: var(--text-soft);
  font-size: 0.95rem;
}

.feature-list li:last-child {
  border-bottom: 0;
}

.feature-list li::before {
  color: var(--accent);
  font-family: var(--font-mono);
  content: "—";
}

.network-diagram {
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.network-diagram-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.network-flow {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: center;
  gap: 10px;
}

.network-node {
  min-height: 112px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.network-node strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 620;
}

.network-node span {
  display: block;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.55;
}

.network-node-accent {
  border-color: #385262;
  background: var(--accent-dim);
}

.flow-line {
  position: relative;
  height: 1px;
  background: var(--border-strong);
}

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

.diagram-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.diagram-chip {
  padding: 9px 10px;
  border: 1px solid rgba(39, 49, 59, 0.82);
  border-radius: var(--radius-sm);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.capabilities-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 670px;
}

.capabilities-table th,
.capabilities-table td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.capabilities-table tr:last-child td {
  border-bottom: 0;
}

.capabilities-table th {
  background: rgba(255, 255, 255, 0.016);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.capabilities-table td {
  color: var(--text-soft);
  font-size: 0.91rem;
}

.capabilities-table td:first-child {
  width: 28%;
  color: var(--text);
  font-weight: 590;
}

.capabilities-table code,
.code-label {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.status-summary {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.status-overall {
  padding: 30px;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(119, 185, 146, 0.06), transparent 72%);
}

.status-overall-mark {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 30px;
  place-items: center;
  border: 1px solid rgba(119, 185, 146, 0.35);
  border-radius: 50%;
  background: var(--success-dim);
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 1rem;
}

.status-overall h3 {
  font-size: 1.35rem;
}

.status-overall p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.status-components {
  padding: 11px 24px;
}

.status-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 58px;
  border-bottom: 1px solid var(--border);
}

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

.status-row-name {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 0.73rem;
}

.status-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-note {
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 0.8rem;
}

.contact-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 34px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-strip h2 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.contact-strip p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: clamp(66px, 9vw, 108px) 0 clamp(58px, 8vw, 90px);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  max-width: 890px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.page-hero-copy {
  max-width: 760px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1.03rem, 2vw, 1.2rem);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.breadcrumb a:hover {
  color: var(--text-soft);
}

.breadcrumb span[aria-hidden="true"] {
  color: var(--border-strong);
}

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

.detail-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(30px, 6vw, 80px);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-card-kicker {
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.detail-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.detail-card-body > p {
  margin-bottom: 22px;
  color: var(--text-soft);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.69rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.process-step {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.process-number {
  margin-bottom: 32px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.info-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.info-card p:last-child,
.info-card ul:last-child {
  margin-bottom: 0;
}

.info-card p,
.info-card li {
  color: var(--muted);
  font-size: 0.93rem;
}

.info-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.info-card li + li {
  margin-top: 8px;
}

.numbered-sections {
  display: grid;
  gap: 0;
}

.numbered-section {
  display: grid;
  grid-template-columns: 110px minmax(0, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(24px, 5vw, 62px);
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}

.numbered-section:first-child {
  border-top: 1px solid var(--border);
}

.numbered-section-number {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.numbered-section h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.numbered-section-content p {
  color: var(--text-soft);
}

.numbered-section-content p:last-child {
  margin-bottom: 0;
}

.notice-box {
  padding: 22px 24px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  color: var(--text-soft);
}

.notice-box p:last-child {
  margin-bottom: 0;
}

.status-page-card {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.status-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 36px);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(119, 185, 146, 0.055), transparent 66%);
}

.status-page-header h2 {
  margin-bottom: 6px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.status-page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.overall-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(119, 185, 146, 0.3);
  border-radius: var(--radius-sm);
  background: var(--success-dim);
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.overall-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.component-list {
  padding: 10px clamp(22px, 4vw, 36px);
}

.component-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
  align-items: center;
  gap: 26px;
  min-height: 70px;
  border-bottom: 1px solid var(--border);
}

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

.component-name strong {
  display: block;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.component-name span {
  color: var(--muted-2);
  font-size: 0.8rem;
}

.notice-list {
  display: grid;
  gap: 14px;
}

.notice-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 22px;
  padding: 21px 23px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.notice-item time,
.notice-item-label {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.notice-item h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.notice-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.docs-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: clamp(42px, 7vw, 92px);
}

.docs-nav {
  position: sticky;
  top: calc(var(--header-height) + 26px);
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.docs-nav-title {
  margin-bottom: 12px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-nav a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.docs-nav a:hover {
  color: var(--text);
}

.docs-content {
  min-width: 0;
}

.docs-section {
  padding: 0 0 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-height) + 26px);
}

.docs-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

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

.docs-section h3 {
  margin-top: 28px;
}

.docs-section p,
.docs-section li {
  color: var(--text-soft);
}

.docs-section ul,
.docs-section ol {
  padding-left: 22px;
}

.docs-section li + li {
  margin-top: 9px;
}

.code-block {
  overflow-x: auto;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #0a0d10;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: pre;
}

.policy-content h2 {
  margin-top: 44px;
  font-size: 1.45rem;
}

.policy-content h2:first-of-type {
  margin-top: 0;
}

.policy-content p,
.policy-content li {
  color: var(--text-soft);
}

.policy-content ul {
  padding-left: 22px;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 40px;
  padding: 17px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.error-page {
  display: grid;
  min-height: calc(100vh - var(--header-height) - 246px);
  place-items: center;
  padding: 80px 0;
}

.error-card {
  width: min(100%, 720px);
  padding: clamp(34px, 7vw, 64px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.error-code {
  margin-bottom: 22px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.error-card h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.error-card p {
  max-width: 540px;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: 1.04rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #090c0f;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 52px;
  padding: 54px 0 42px;
}

.footer-brand p {
  max-width: 500px;
  margin: 17px 0 0;
  color: var(--muted-2);
  font-size: 0.88rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

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

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 19px 0 24px;
  border-top: 1px solid rgba(39, 49, 59, 0.72);
  color: var(--muted-2);
  font-size: 0.78rem;
}

.footer-bottom a:hover {
  color: var(--text-soft);
}

@media (max-width: 980px) {
  .hero-grid,
  .architecture-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 54px;
  }

  .spec-panel {
    max-width: 700px;
  }

  .service-card {
    grid-column: span 6;
  }

  .service-card:nth-child(5) {
    grid-column: span 12;
  }

  .numbered-section {
    grid-template-columns: 70px minmax(180px, 0.38fr) minmax(0, 0.62fr);
    gap: 26px;
  }

  .docs-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 46px;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    height: auto;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px 14px;
    padding-block: 12px;
  }

  .site-nav {
    order: 3;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }

  .site-nav .nav-contact {
    margin-left: 0;
    text-align: center;
  }

  .js .site-header {
    position: sticky;
    height: var(--header-height);
  }

  .js .header-inner {
    flex-wrap: nowrap;
    min-height: var(--header-height);
    padding-block: 0;
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    order: initial;
    display: none;
    width: auto;
    padding: 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: #0d1115;
    box-shadow: var(--shadow);
  }

  .js .site-nav.is-open {
    display: grid;
  }

  .js .site-nav a {
    padding: 10px 12px;
  }

  .js .site-nav .nav-contact {
    margin: 3px 0 0;
    text-align: center;
  }

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

  .status-summary {
    grid-template-columns: 1fr;
  }

  .status-overall {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .detail-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .numbered-section {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .numbered-section-content {
    grid-column: 2;
  }

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

  .docs-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }

  .docs-nav-title {
    grid-column: 1 / -1;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  body {
    font-size: 15px;
  }

  .container,
  .container-narrow {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand {
    font-size: 0.93rem;
  }

  .brand img {
    width: 26px;
    height: 26px;
  }

  .js .site-nav {
    right: 14px;
    left: 14px;
  }

  .hero {
    padding-top: 70px;
  }

  .hero::before {
    background-size: 52px 52px;
  }

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

  .button {
    width: 100%;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .spec-row dd {
    text-align: left;
  }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: span 12;
    min-height: 0;
  }

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

  .flow-line {
    width: 1px;
    height: 26px;
    margin-inline: auto;
  }

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

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

  .contact-strip {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .status-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .component-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 16px 0;
  }

  .notice-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .numbered-section {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .numbered-section-content {
    grid-column: auto;
  }

  .docs-nav {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 11px 18px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

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

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