:root {
  color-scheme: dark;
  --bg: #111315;
  --surface: #191c1f;
  --surface-2: #202428;
  --line: #34393e;
  --text: #f1f4f2;
  --muted: #a7b0ac;
  --green: #70d69a;
  --blue: #69a8e8;
  --blue-soft: rgba(105, 168, 232, .12);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }
img { max-width: 100%; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: 16px; font-weight: 750; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { padding: 28px 0 25px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; text-decoration: none; }
.nav a:hover, .nav a.active { border-bottom-color: var(--blue); color: var(--text); }
.region-label { color: var(--muted); font: 600 12px ui-monospace, SFMono-Regular, Consolas, monospace; white-space: nowrap; }

.hero { min-height: 620px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, .8fr); align-items: center; gap: 72px; padding-block: 70px; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: 12px; font-weight: 750; text-transform: uppercase; }
h1 { margin: 0; max-width: 760px; font-size: clamp(44px, 6vw, 76px); line-height: 1.04; font-weight: 720; }
.lead { max-width: 700px; margin: 28px 0 34px; color: var(--muted); font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none; }
.button.primary { border-color: var(--blue); background: var(--blue); color: #0f1720; }
.button.secondary { background: transparent; color: var(--text); }
.button:hover { filter: brightness(1.08); }

.edge-summary { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.summary-heading { display: flex; align-items: center; gap: 11px; padding: 20px 22px; border-bottom: 1px solid var(--line); font-size: 14px; }
.signal-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(112, 214, 154, .12); flex: 0 0 auto; }
.edge-summary dl { margin: 0; }
.edge-summary dl div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.edge-summary dl div:last-child { border-bottom: 0; }
.edge-summary dt { color: var(--muted); font-size: 13px; }
.edge-summary dd { margin: 0; font-size: 13px; font-weight: 650; text-align: right; }

.band { border-block: 1px solid var(--line); background: var(--surface); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-grid article { min-height: 280px; padding: 38px 26px; border-right: 1px solid var(--line); }
.service-grid article:first-child { padding-left: 0; }
.service-grid article:last-child { border-right: 0; }
.number { color: var(--blue); font: 700 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
h2 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 700; }
.service-grid h2 { margin: 46px 0 15px; font-size: 20px; }
.service-grid p, .section-copy p, .split-section p, .prose p, .prose li { color: var(--muted); font-size: 15px; line-height: 1.7; }

.topology-section { min-height: 560px; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 64px; padding-block: 72px; }
.section-copy h2 { max-width: 430px; }
.section-copy p { max-width: 480px; margin: 22px 0; }
.text-link { color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.topology-section > * { min-width: 0; }
.topology-map { width: 100%; min-width: 0; height: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }

.quiet-band { background: var(--surface-2); }
.split-section { min-height: 310px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; }
.split-section p { margin: 0 0 20px; }

.page-header { padding: 78px 0 58px; border-bottom: 1px solid var(--line); }
.page-header h1 { max-width: 800px; font-size: clamp(40px, 5vw, 62px); }
.page-header .lead { margin-bottom: 0; }
.page-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 70px; padding-block: 62px 88px; }
.side-nav { align-self: start; position: sticky; top: 24px; }
.side-nav strong { display: block; margin-bottom: 14px; font-size: 13px; }
.side-nav a { display: block; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-decoration: none; }
.side-nav a:hover { color: var(--text); }
.prose { max-width: 760px; }
.prose section { padding: 0 0 42px; margin: 0 0 42px; border-bottom: 1px solid var(--line); }
.prose section:last-child { border-bottom: 0; }
.prose h2 { margin-bottom: 18px; font-size: 27px; }
.prose h3 { margin: 26px 0 10px; font-size: 17px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose code { padding: 2px 5px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--text); font-size: 13px; }

.status-banner { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border: 1px solid rgba(112, 214, 154, .35); border-radius: 6px; background: rgba(112, 214, 154, .07); }
.status-banner div { display: grid; gap: 3px; }
.status-banner strong { font-size: 15px; }
.status-banner span { color: var(--muted); font-size: 13px; }
.component-list { margin-top: 28px; border-top: 1px solid var(--line); }
.component-row { display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: center; gap: 20px; min-height: 74px; border-bottom: 1px solid var(--line); }
.component-row span { color: var(--muted); font-size: 13px; }
.component-row .ok { color: var(--green); font-weight: 700; }
.event-list { border-top: 1px solid var(--line); }
.event-row { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.event-row time { color: var(--muted); font: 600 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.event-row p { margin: 0; }

.callout { padding: 20px 22px; border-left: 3px solid var(--blue); background: var(--blue-soft); }
.callout strong { display: block; margin-bottom: 6px; }
.callout p { margin: 0; }
.contact-table { border-top: 1px solid var(--line); }
.contact-table div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-table dt { color: var(--muted); font-size: 13px; }
.contact-table dd { margin: 0; font-size: 14px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 132px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 44px; color: var(--muted); font-size: 13px; }
.footer-inner > div { display: grid; gap: 5px; }
.footer-inner strong { color: var(--text); }
.footer-inner nav { display: flex; gap: 18px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

.not-found { min-height: calc(100vh - 211px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.not-found .code { color: var(--blue); font: 700 13px ui-monospace, SFMono-Regular, Consolas, monospace; }
.not-found h1 { margin: 16px 0; font-size: 54px; }
.not-found p { max-width: 580px; color: var(--muted); line-height: 1.7; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding-block: 16px; gap: 12px 24px; }
  .nav { order: 3; width: 100%; overflow-x: auto; margin: 0; gap: 20px; }
  .nav a { padding: 10px 0 12px; white-space: nowrap; }
  .region-label { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 42px; min-height: auto; }
  .edge-summary { max-width: 540px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid article, .service-grid article:first-child { min-height: 240px; padding: 32px 24px; border-bottom: 1px solid var(--line); }
  .service-grid article:nth-child(2) { border-right: 0; }
  .topology-section { grid-template-columns: 1fr; }
  .split-section { gap: 48px; }
  .page-layout { grid-template-columns: 1fr; gap: 34px; }
  .side-nav { position: static; display: flex; flex-wrap: wrap; gap: 0 18px; }
  .side-nav strong { width: 100%; }
  .side-nav a { border-top: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1120px); }
  .region-label { display: none; }
  .hero { padding-block: 64px 54px; }
  h1 { font-size: 43px; }
  .lead { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article, .service-grid article:first-child { min-height: 0; padding: 30px 0; border-right: 0; }
  .service-grid article:last-child { border-bottom: 0; }
  .service-grid h2 { margin-top: 24px; }
  .topology-section { min-height: auto; padding-block: 58px; gap: 38px; }
  .split-section { min-height: auto; grid-template-columns: 1fr; gap: 22px; padding-block: 54px; }
  .page-header { padding: 58px 0 44px; }
  .page-layout { padding-block: 42px 68px; }
  .component-row { grid-template-columns: 1fr auto; padding: 15px 0; }
  .component-row span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .event-row { grid-template-columns: 1fr; gap: 8px; }
  .contact-table div { grid-template-columns: 1fr; gap: 7px; }
  .footer-inner { min-height: 180px; grid-template-columns: 1fr; gap: 20px; padding-block: 32px; }
  .footer-inner nav { flex-wrap: wrap; }
}
