:root {
  color-scheme: dark;
  --bg: #05080d;
  --bg-accent: #101723;
  --panel: rgba(13, 18, 27, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.02);
  --panel-strong: #111824;
  --panel-border: rgba(120, 143, 168, 0.22);
  --text: #f4f7fb;
  --muted: #97a7ba;
  --healthy: #54d38a;
  --degraded: #ffbf5c;
  --failed: #ff6b61;
  --unknown: #758294;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --page-margin: clamp(16px, 1.7vw, 32px);
  --content: calc(100vw - (var(--page-margin) * 2));
  --radius: 18px;
  --radius-small: 14px;
  font-family: "Bahnschrift", "Segoe UI Variable", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(66, 130, 255, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(84, 211, 138, 0.1), transparent 28%),
    linear-gradient(180deg, var(--bg-accent) 0%, var(--bg) 55%);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

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

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

ul {
  margin: 0;
  padding-left: 1.1rem;
}

li + li {
  margin-top: 0.45rem;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-140%);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-small);
  background: var(--panel-strong);
  color: var(--text);
  padding: 10px 14px;
  box-shadow: var(--shadow);
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: var(--content);
  margin: 14px auto 0;
  padding: 12px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.site-header[data-elevated="true"] {
  border-color: rgba(120, 143, 168, 0.32);
  color: var(--text);
  background: var(--panel-strong);
}

.brand,
.header-actions,
.site-nav,
.hero-actions,
.hero-stats,
.window-bar,
.quality-grid {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: transparent;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #06110b;
  background: var(--healthy);
  font-size: 0.75rem;
  font-weight: 900;
}

.brand-icon img {
  display: block;
  width: 34px;
  height: 34px;
}

.header-actions {
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  margin-left: auto;
}

.site-nav {
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0.78;
}

.header-repo {
  min-height: 42px;
  border: 1px solid rgba(84, 211, 138, 0.45);
  border-radius: var(--radius-small);
  padding: 9px 14px;
  color: #06110b;
  background: var(--healthy);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current],
.header-repo:hover,
.header-repo:focus-visible {
  border-color: rgba(84, 211, 138, 0.35);
  color: var(--text);
  background: rgba(84, 211, 138, 0.12);
  opacity: 1;
}

.header-repo:hover,
.header-repo:focus-visible {
  color: var(--healthy);
}

.hero {
  position: relative;
  display: grid;
  width: var(--content);
  min-height: min(760px, calc(100svh - 82px));
  margin: 16px auto;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
}

.hero-canvas,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-canvas {
  z-index: 0;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.94), rgba(5, 8, 13, 0.7) 48%, rgba(5, 8, 13, 0.28)),
    linear-gradient(0deg, rgba(5, 8, 13, 0.92), rgba(5, 8, 13, 0.06) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
  gap: 24px;
  align-items: end;
  width: 100%;
  margin: 0 auto;
  align-self: end;
  padding: clamp(38px, 9svh, 96px) clamp(22px, 3vw, 56px) clamp(42px, 8svh, 72px);
}

.hero-main {
  min-width: 0;
}

.hero-panel {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(13, 18, 27, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-panel-grid {
  display: grid;
  gap: 12px;
}

.hero-panel article {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(120, 143, 168, 0.16);
  border-radius: var(--radius-small);
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-panel span {
  justify-self: start;
  border: 1px solid rgba(117, 130, 148, 0.35);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--unknown);
  background: rgba(117, 130, 148, 0.14);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-panel span[data-status="healthy"] {
  border-color: rgba(84, 211, 138, 0.35);
  color: var(--healthy);
  background: rgba(84, 211, 138, 0.14);
}

.hero-panel span[data-status="degraded"] {
  border-color: rgba(255, 191, 92, 0.35);
  color: var(--degraded);
  background: rgba(255, 191, 92, 0.14);
}

.hero-panel strong {
  font-size: 1.02rem;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--healthy);
}

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

h1 {
  max-width: 840px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 10vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 32ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  line-height: 1.45;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-small);
  padding: 10px 16px;
  font-weight: 900;
  text-align: center;
  transition:
    border-color 140ms ease,
    color 140ms ease,
    background 140ms ease;
}

.button.primary {
  border-color: rgba(84, 211, 138, 0.35);
  color: #06110b;
  background: var(--healthy);
}

.button.secondary {
  color: var(--text);
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
}

.button.tertiary {
  border-color: transparent;
  color: var(--healthy);
  background: transparent;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(84, 211, 138, 0.55);
  color: var(--text);
  background: rgba(84, 211, 138, 0.14);
}

.button.primary:hover,
.button.primary:focus-visible {
  color: var(--healthy);
  background: rgba(84, 211, 138, 0.12);
}

.button:focus-visible,
.brand:focus-visible,
.header-repo:focus-visible,
.site-nav a:focus-visible,
.repo-url:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgba(84, 211, 138, 0.62);
  outline-offset: 3px;
}

.hero-stats {
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.hero-stats div {
  width: min(190px, 100%);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-small);
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 2px 0 0;
  font-weight: 900;
}

.section {
  width: var(--content);
  margin: 16px auto;
  scroll-margin-top: 0;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(22px, 2.2vw, 34px);
  backdrop-filter: blur(14px);
}

.section-heading,
.map-grid,
.boundary-grid,
.service-lanes,
.quality-grid,
.site-footer {
  width: 100%;
}

.section-heading {
  max-width: 72ch;
  margin: 0 0 22px;
}

.section-heading p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.68;
}

.centered {
  text-align: center;
  margin-right: auto;
  margin-left: auto;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border: 0;
}

.map-item {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  border: 1px solid rgba(120, 143, 168, 0.16);
  border-radius: var(--radius-small);
  padding: clamp(18px, 1.8vw, 24px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.map-item:hover,
.map-item:focus-visible {
  border-color: rgba(84, 211, 138, 0.34);
  background: linear-gradient(180deg, rgba(84, 211, 138, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.map-link-label {
  margin-top: auto;
  color: var(--healthy);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.repo-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid rgba(84, 211, 138, 0.26);
  border-radius: var(--radius);
  padding: clamp(20px, 2vw, 30px);
  background:
    linear-gradient(135deg, rgba(84, 211, 138, 0.11), rgba(66, 130, 255, 0.06)),
    rgba(255, 255, 255, 0.03);
}

.repo-callout h3 {
  max-width: 760px;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.repo-callout p {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.65;
}

.repo-url {
  display: inline-block;
  max-width: 100%;
  color: var(--healthy);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.item-number {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--healthy);
  font-weight: 900;
}

.map-item p,
.feature-row p,
.capability-grid p,
.backup-diagram p,
.service-lanes p,
.quality p,
.site-footer p {
  max-width: 36ch;
  color: var(--muted);
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.split.reverse {
  grid-template-columns: 1fr;
}

.split.reverse .section-heading {
  grid-column: auto;
  grid-row: auto;
  order: initial;
}

.split.reverse .product-frame {
  grid-column: auto;
  grid-row: auto;
}

.sticky-heading {
  position: static;
  margin-bottom: 0;
}

.feature-stack,
.capability-grid,
.backup-diagram,
.service-lanes,
.quality-grid {
  display: grid;
  gap: 14px;
}

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

.feature-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  border: 1px solid rgba(120, 143, 168, 0.16);
  border-radius: var(--radius-small);
  padding: clamp(18px, 1.8vw, 24px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.feature-icon {
  width: 42px;
  height: 42px;
}

.product-frame {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #101723;
  box-shadow: var(--shadow);
}

.window-bar {
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d95f55;
}

.window-bar span:nth-child(2) {
  background: #d8a23a;
}

.window-bar span:nth-child(3) {
  background: #67d49a;
}

.preview-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 300px;
}

.preview-sidebar {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  background: #101723;
}

.preview-sidebar span,
.message-line,
.media-strip span,
.call-panel {
  border-radius: var(--radius);
}

.preview-sidebar span {
  display: block;
  height: 16px;
  background: rgba(120, 143, 168, 0.18);
}

.preview-sidebar .avatar {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--healthy), rgba(66, 130, 255, 0.8));
}

.preview-chat {
  display: grid;
  gap: 16px;
  align-content: end;
  padding: 22px;
}

.message-line {
  height: 54px;
  background: rgba(120, 143, 168, 0.16);
}

.message-line.outgoing {
  width: 72%;
  margin-left: auto;
  background: rgba(84, 211, 138, 0.24);
}

.media-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.media-strip span {
  aspect-ratio: 1.4;
  background:
    linear-gradient(135deg, rgba(84, 211, 138, 0.22), rgba(66, 130, 255, 0.16)),
    #101723;
}

.call-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.call-panel span {
  color: var(--muted);
}

.capability-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.capability-grid article,
.backup-diagram div,
.service-lanes article,
.quality-grid article {
  border: 1px solid rgba(120, 143, 168, 0.16);
  border-radius: var(--radius-small);
  padding: clamp(18px, 1.8vw, 24px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.privacy-band {
  color: var(--text);
  background: var(--panel);
}

.privacy-band .section-heading p,
.privacy-band li {
  color: var(--muted);
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.boundary-grid article {
  min-height: 270px;
  border: 1px solid rgba(120, 143, 168, 0.16);
  border-radius: var(--radius-small);
  padding: clamp(20px, 2vw, 28px);
  background: rgba(255, 255, 255, 0.02);
}

.backup-diagram {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.backup-diagram {
  margin: 0;
  padding: 0;
  list-style: none;
}

.backup-diagram > li {
  min-height: 250px;
}

.backup-diagram span,
.service-lanes span {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--healthy);
  font-weight: 900;
}

.backup-diagram strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.infrastructure {
  background: var(--panel);
}

.service-lanes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-lanes article {
  min-height: 250px;
}

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

.quality-grid article {
  text-align: center;
}

.quality-grid strong {
  display: block;
  color: var(--healthy);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1;
}

.quality-grid span {
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  width: var(--content);
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--panel-border);
}

.site-footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a {
  min-width: max-content;
  color: var(--healthy);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

@media (max-width: 920px) {
  :root {
    --content: min(100vw - 28px, 760px);
  }

  html {
    scroll-padding-top: 154px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .site-nav {
    width: auto;
    min-width: 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 84px;
  }

  .hero-panel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .map-grid,
  .repo-callout,
  .feature-stack,
  .split,
  .split.reverse,
  .boundary-grid,
  .backup-diagram,
  .service-lanes,
  .quality-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .split.reverse {
    gap: 28px;
  }

  .split.reverse .section-heading {
    grid-column: auto;
    grid-row: auto;
    order: initial;
  }

  .split.reverse .product-frame {
    grid-column: auto;
    grid-row: auto;
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 640px) {
  :root {
    --page-margin: 10px;
    --content: calc(100vw - (var(--page-margin) * 2));
  }

  html {
    scroll-padding-top: 154px;
  }

  .site-header {
    top: 10px;
  }

  .brand {
    max-width: 100%;
  }

  .brand > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .header-repo {
    justify-content: center;
    text-align: center;
  }

  .section {
    scroll-margin-top: 0;
    padding: 18px;
  }

  .hero {
    min-height: calc(100svh - 126px);
  }

  .hero-content {
    padding-top: 72px;
    padding-bottom: 42px;
  }

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

  .map-grid,
  .repo-callout,
  .feature-stack,
  .split,
  .split.reverse,
  .boundary-grid,
  .backup-diagram,
  .service-lanes,
  .quality-grid,
  .capability-grid,
  .preview-layout {
    grid-template-columns: 1fr;
  }

  .repo-callout .button {
    width: 100%;
  }

  .split.reverse .section-heading,
  .split.reverse .product-frame,
  .capability-grid {
    grid-column: auto;
    grid-row: auto;
  }

  .map-item,
  .backup-diagram > li,
  .service-lanes article,
  .boundary-grid article {
    min-height: auto;
  }

  .item-number,
  .backup-diagram span,
  .service-lanes span {
    margin-bottom: 30px;
  }

  .preview-sidebar {
    grid-template-columns: 56px repeat(3, 1fr);
    align-items: center;
  }

  .call-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}