:root {
  --bg: #090d0f;
  --bg-soft: #0d1316;
  --surface: #11191c;
  --surface-raised: #162125;
  --line: rgba(232, 242, 238, 0.12);
  --line-strong: rgba(232, 242, 238, 0.22);
  --text: #edf4f1;
  --muted: #91a09b;
  --accent: #8dd8bc;
  --accent-bright: #b6f2dc;
  --accent-dim: rgba(141, 216, 188, 0.12);
  --blue: #7faec2;
  --max-width: 1240px;
  --radius: 1.25rem;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

html[data-theme="light"] {
  --bg: #f4f7f5;
  --bg-soft: #edf2ef;
  --surface: #ffffff;
  --surface-raised: #f8fbf9;
  --line: rgba(21, 45, 38, 0.12);
  --line-strong: rgba(21, 45, 38, 0.22);
  --text: #14231e;
  --muted: #61726c;
  --accent: #287d65;
  --accent-bright: #126149;
  --accent-dim: rgba(40, 125, 101, 0.1);
  --blue: #167cb4;
  --shadow: 0 26px 70px rgba(32, 62, 52, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(76, 126, 111, 0.12), transparent 28rem),
    var(--bg);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  transition: color 220ms ease, background-color 220ms ease;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

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

button {
  color: inherit;
  font: inherit;
}

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

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

.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;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  color: var(--bg);
  background: var(--accent-bright);
  transform: translateY(-160%);
}

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 1rem;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max-width), calc(100% - 2rem));
  margin: auto;
  padding: 0.65rem 0.75rem 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(9, 13, 15, 0.78);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line-strong);
  background: rgba(9, 13, 15, 0.94);
}

html[data-theme="light"] .site-header {
  border-color: rgba(21, 45, 38, 0.12);
  background: rgba(244, 247, 245, 0.84);
  box-shadow: 0 12px 38px rgba(32, 62, 52, 0.1);
}

html[data-theme="light"] .site-header.is-scrolled {
  background: rgba(244, 247, 245, 0.96);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid rgba(141, 216, 188, 0.45);
  border-radius: 50%;
  color: var(--accent-bright);
  background: var(--accent-dim);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-copy {
  display: grid;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-copy small,
.footer-brand small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 500;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.7rem);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.main-navigation a {
  position: relative;
  transition: color 180ms ease;
}

.main-navigation a::after {
  position: absolute;
  right: 0;
  bottom: -0.42rem;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.main-navigation a:hover,
.main-navigation a.is-active {
  color: var(--text);
}

.main-navigation a:hover::after,
.main-navigation a.is-active::after {
  transform: scaleX(1);
}

.main-navigation .nav-cta {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(141, 216, 188, 0.4);
  border-radius: 100px;
  color: var(--accent-bright);
  background: var(--accent-dim);
}

.main-navigation .nav-cta::after {
  display: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.3rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 700;
}

.theme-icon {
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  font-size: 0.85rem;
}

.theme-icon-sun,
html[data-theme="light"] .theme-icon-moon {
  display: none;
}

html[data-theme="light"] .theme-icon-sun {
  display: grid;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.menu-toggle {
  display: none;
}

.section-shell {
  width: min(var(--max-width), calc(100% - 3rem));
  margin-inline: auto;
}

.section {
  padding-block: clamp(6rem, 11vw, 10rem);
}

.section-dark {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.section-resources {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 20%, rgba(141, 216, 188, 0.08), transparent 24rem),
    var(--surface);
}

.resource-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.resource-card {
  min-width: 0;
  padding: 1.7rem 1.5rem 1.3rem;
  border-right: 1px solid var(--line);
  text-align: center;
}

.resource-card:last-child {
  border-right: 0;
}

.resource-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 750;
}

.resource-gauge {
  position: relative;
  width: min(100%, 240px);
  margin: 1rem auto 0;
}

.resource-gauge svg {
  display: block;
  width: 100%;
}

.gauge-track,
.gauge-value {
  fill: none;
  stroke-linecap: butt;
  stroke-width: 10;
}

.gauge-track {
  stroke: var(--line);
}

.gauge-value {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gauge-blue { stroke: #1689c5; }
.gauge-green { stroke: #3ca77e; }
.gauge-violet { stroke: #8b78d1; }

.resource-gauge strong {
  position: absolute;
  right: 0;
  bottom: 0.55rem;
  left: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  font-weight: 350;
  letter-spacing: -0.06em;
}

.resource-gauge strong small {
  margin-left: 0.1rem;
  color: var(--muted);
  font-size: 0.45em;
}

.resource-card > p {
  margin: -0.1rem 0 0;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.65rem;
}

.resource-note {
  margin: 0;
  padding: 0.9rem 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.65rem;
  text-align: center;
}

.section-deep {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.hero {
  display: grid;
  min-height: 100svh;
  align-items: center;
  padding-top: 9rem;
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 1.7rem;
  height: 1px;
  background: var(--accent);
}

h1,
h2 {
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

h1 {
  font-size: clamp(4.4rem, 9vw, 8.5rem);
}

h2 {
  font-size: clamp(3.4rem, 7vw, 7rem);
}

h1 strong,
h2 strong {
  color: var(--accent-bright);
  font-weight: 300;
}

.hero-role {
  margin: 2.2rem 0 0;
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  letter-spacing: 0.05em;
  line-height: 1.8;
  text-transform: uppercase;
}

.hero-intro {
  max-width: 620px;
  margin: 1.7rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.17rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  border-color: var(--accent);
  color: #07100d;
  background: var(--accent);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.hero-system {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(22, 33, 37, 0.95), rgba(10, 16, 18, 0.98));
  box-shadow: var(--shadow);
  transition: transform 200ms ease;
}

html[data-theme="light"] .hero-system {
  color: var(--text);
  background: linear-gradient(145deg, #ffffff, #edf4f0);
}

html[data-theme="light"] .system-grid article,
html[data-theme="light"] .network-node,
html[data-theme="light"] .topology-node {
  background: rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] .topology-lines path {
  stroke: rgba(25, 111, 86, 0.62);
  stroke-width: 2;
}

html[data-theme="light"] .topology-node:hover,
html[data-theme="light"] .topology-node.is-selected {
  border-color: #16765a;
  box-shadow: 0 12px 30px rgba(27, 77, 62, 0.18);
}

html[data-theme="light"] .detail-index {
  color: rgba(21, 45, 38, 0.07);
}

.hero-system::after {
  position: absolute;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: rgba(141, 216, 188, 0.09);
  content: "";
  filter: blur(40px);
  inset: auto -4rem -4rem auto;
}

.system-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.65rem;
}

.system-tabs {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 100px;
}

.system-tab {
  padding: 0.35rem 0.65rem;
  border: 0;
  border-radius: 100px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.58rem;
}

.system-tab.is-active {
  color: #07100d;
  background: var(--accent);
}

.system-state {
  color: var(--accent);
}

.system-resources {
  min-height: 344px;
  padding: 1.4rem;
}

.compact-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.compact-resource-grid article {
  position: relative;
  min-width: 0;
  min-height: 230px;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
}

.resource-orb {
  display: block;
  width: 3rem;
  height: 3rem;
  margin-bottom: 2.7rem;
  border: 6px solid currentColor;
  border-radius: 50%;
  opacity: 0.72;
}

.resource-orb-blue { color: #1689c5; }
.resource-orb-green { color: #3ca77e; }
.resource-orb-violet { color: #8b78d1; }

.compact-resource-grid .resource-label {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.56rem;
}

.compact-resource-grid strong {
  display: block;
  margin-top: 0.4rem;
  font-size: clamp(1.3rem, 2.3vw, 2.1rem);
  font-weight: 350;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.compact-resource-grid em {
  color: var(--muted);
  font-size: 0.4em;
  font-style: normal;
  letter-spacing: 0;
}

.compact-resource-grid p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.55rem;
}

.compact-resource-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.58rem;
  text-align: center;
}

html[data-theme="light"] .compact-resource-grid article {
  background: rgba(255, 255, 255, 0.8);
}

.system-state i {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(141, 216, 188, 0.09);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1.4rem;
  gap: 0.7rem;
}

.system-grid article {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
}

.metric-value,
.metric-text {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.06em;
}

.metric-unit {
  color: var(--accent);
  font-size: 0.65rem;
}

.system-grid small {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.57rem;
}

.system-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1.4rem 1.4rem;
}

.system-stack span {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font-size: 0.62rem;
}

.system-log {
  display: grid;
  gap: 0.7rem;
  padding: 1.3rem 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.62rem;
}

.system-log span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.system-log i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

.scroll-cue {
  align-self: end;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 4rem;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue span {
  width: 2.5rem;
  height: 1px;
  background: var(--line-strong);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.6fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-heading > p {
  max-width: 490px;
  margin: 0 0 0.3rem;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.topology-view-switch {
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--bg);
}

.view-switch-button {
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 100px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.view-switch-button:hover,
.view-switch-button.is-active {
  color: #07100d;
  background: var(--accent);
}

[hidden] {
  display: none !important;
}

.filter-button {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 650;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: rgba(141, 216, 188, 0.5);
  color: var(--accent-bright);
  background: var(--accent-dim);
}

.topology-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.topology-map {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(141, 216, 188, 0.06), transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 35px 35px, 35px 35px;
}

.topology-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}

.topology-lines path {
  fill: none;
  stroke: rgba(141, 216, 188, 0.3);
  stroke-dasharray: 5 8;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  animation: data-flow 12s linear infinite;
  transition: opacity 180ms ease, stroke 180ms ease;
}

@keyframes data-flow {
  to { stroke-dashoffset: -130; }
}

.topology-node {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 122px;
  justify-items: start;
  padding: 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  color: var(--text);
  background: rgba(17, 25, 28, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.topology-node:hover,
.topology-node.is-selected {
  z-index: 3;
  border-color: var(--accent);
  transform: translateY(-3px);
}

.topology-node.is-muted {
  opacity: 0.18;
}

.node-icon {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: 0.65rem;
  place-items: center;
  border: 1px solid rgba(141, 216, 188, 0.42);
  border-radius: 0.35rem;
  color: var(--accent-bright);
  background: var(--accent-dim);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.56rem;
}

.topology-node strong {
  font-size: 0.74rem;
}

.topology-node small {
  color: var(--muted);
  font-size: 0.56rem;
}

.node-firewall { top: 40%; left: 3%; }
.node-proxmox { top: 9%; left: 34%; }
.node-ceph { top: 7%; left: 69%; }
.node-fabric { top: 41%; left: 48%; }
.node-kubernetes { top: 40%; right: 3%; }
.node-gitlab { bottom: 7%; left: 14%; }
.node-awx { bottom: 7%; left: 37%; }
.node-monitoring { right: 9%; bottom: 7%; }
.node-apps { right: 29%; bottom: 7%; }

.topology-detail {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.detail-kicker,
.technology-detail > span,
.card-label {
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-index {
  margin: 1rem 0 auto;
  color: rgba(255, 255, 255, 0.06);
  font-size: 7rem;
  font-weight: 700;
  letter-spacing: -0.1em;
  line-height: 1;
}

.topology-detail h3,
.technology-detail h3 {
  margin: 2rem 0 0.7rem;
  font-size: 1.7rem;
  font-weight: 450;
  line-height: 1.15;
}

.topology-detail > p,
.technology-detail p {
  color: var(--muted);
  font-size: 0.86rem;
}

.topology-detail dl {
  margin: 1.5rem 0 0;
}

.topology-detail dl div {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.topology-detail dt {
  color: var(--muted);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.topology-detail dd {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
}

.network-topology {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.network-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background:
    linear-gradient(90deg, transparent, rgba(141, 216, 188, 0.12), transparent),
    var(--surface);
}

.network-toolbar > span {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.network-toolbar .filter-bar {
  margin: 0;
}

.network-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
}

.network-diagram {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background:
    radial-gradient(circle at 40% 50%, rgba(141, 216, 188, 0.07), transparent 35%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.location-zone {
  position: absolute;
  z-index: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.014);
}

.location-zone span {
  position: absolute;
  top: 0.65rem;
  left: 0.8rem;
  color: rgba(237, 244, 241, 0.28);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[data-theme="light"] .location-zone {
  border-color: rgba(21, 78, 61, 0.28);
  background: rgba(40, 125, 101, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .location-zone span {
  z-index: 5;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(21, 78, 61, 0.2);
  border-radius: 100px;
  color: #285e4e;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.location-home {
  top: 16%;
  left: 3%;
  width: 68%;
  height: 80%;
}

.location-dc1 {
  top: 3%;
  right: 2%;
  width: 25%;
  height: 43%;
}

.location-dc2 {
  right: 2%;
  bottom: 3%;
  width: 25%;
  height: 43%;
}

.location-dc1 span,
.location-dc2 span {
  right: 0.8rem;
  left: auto;
  max-width: calc(100% - 1.6rem);
  text-align: right;
}

.network-links,
.network-nodes {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  inset: 0;
}

.network-link {
  stroke: rgba(141, 216, 188, 0.42);
  stroke-dasharray: 5 8;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  animation: network-flow 9s linear infinite;
  transition: opacity 180ms ease, stroke-width 180ms ease;
}

.network-link[data-network="ceph"] {
  stroke: #72d8f0;
}

.network-link[data-network="corosync"] {
  stroke: #e6ba72;
}

.network-link[data-network="sdn"] {
  stroke: #b391e8;
  stroke-dasharray: 10 7;
}

.network-link[data-network="wan"] {
  stroke: #e58da4;
}

html[data-theme="light"] .network-link {
  stroke: #287d65;
  stroke-width: 2;
}

html[data-theme="light"] .network-link[data-network="ceph"] {
  stroke: #087da5;
}

html[data-theme="light"] .network-link[data-network="corosync"] {
  stroke: #a96e08;
}

html[data-theme="light"] .network-link[data-network="sdn"] {
  stroke: #7652bb;
}

html[data-theme="light"] .network-link[data-network="wan"] {
  stroke: #b84262;
}

.network-link.is-muted,
.network-node.is-muted {
  opacity: 0.09;
}

.network-link.is-related {
  opacity: 1;
  stroke-width: 3;
}

@keyframes network-flow {
  to { stroke-dashoffset: -130; }
}

.network-node {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 105px;
  padding: 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.7rem;
  color: var(--text);
  background: rgba(17, 25, 28, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  text-align: left;
  transform: translate(-50%, -50%);
  transition: border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.network-node:hover,
.network-node.is-selected {
  z-index: 4;
  border-color: var(--accent);
  transform: translate(-50%, calc(-50% - 3px));
}

.network-node-icon {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.45rem;
  place-items: center;
  border: 1px solid rgba(141, 216, 188, 0.42);
  border-radius: 0.35rem;
  color: var(--accent-bright);
  background: var(--accent-dim);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.5rem;
}

.network-node strong {
  font-size: 0.67rem;
}

.network-node small {
  color: var(--muted);
  font-size: 0.52rem;
}

.network-detail {
  padding: 1.5rem;
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.network-detail h3 {
  margin: 2rem 0 0.7rem;
  font-size: 1.45rem;
  font-weight: 450;
}

.network-detail > p {
  min-height: 8rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.network-detail dl {
  margin-top: 2rem;
}

.network-detail dl div {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.network-detail dt {
  color: var(--muted);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.network-detail dd {
  margin: 0.2rem 0 0;
  font-size: 0.7rem;
}

.network-note {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 2rem;
  padding: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  font-size: 0.72rem;
}

.network-note strong {
  color: var(--text);
}

.network-note p {
  max-width: 720px;
  margin: 0;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.highlight-card {
  position: relative;
  min-height: 430px;
  padding: 1.8rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 180ms ease, transform 180ms ease;
}

.highlight-card:hover {
  border-color: rgba(141, 216, 188, 0.4);
  transform: translateY(-5px);
}

.highlight-wide {
  grid-column: span 2;
}

.highlight-card h3 {
  margin: 0.5rem 0 0.8rem;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.highlight-card > p:not(.card-label) {
  max-width: 580px;
  color: var(--muted);
  font-size: 0.88rem;
}

.highlight-card ul {
  position: absolute;
  right: 1.8rem;
  bottom: 1.8rem;
  left: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.highlight-card li {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font-size: 0.6rem;
}

.card-visual {
  position: relative;
  height: 150px;
  margin: -0.4rem 0 1.6rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.visual-storage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.8rem;
}

.visual-storage span {
  width: 14%;
  height: 60%;
  border: 1px solid rgba(141, 216, 188, 0.35);
  border-radius: 0.5rem 0.5rem 0 0;
  background: linear-gradient(to top, var(--accent-dim), transparent);
}

.visual-storage span:nth-child(2) { height: 82%; }
.visual-storage span:nth-child(3) { height: 70%; }
.visual-storage span:nth-child(4) { height: 92%; }

.visual-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.visual-cluster::before {
  position: absolute;
  width: 65%;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.visual-cluster i {
  z-index: 1;
  width: 2.8rem;
  height: 3.7rem;
  border: 1px solid rgba(141, 216, 188, 0.42);
  border-radius: 0.4rem;
  background: var(--surface-raised);
}

.visual-orbit {
  display: grid;
  place-items: center;
}

.visual-orbit i {
  width: 6rem;
  height: 6rem;
  border: 1px solid rgba(141, 216, 188, 0.35);
  border-radius: 50%;
}

.visual-orbit span {
  position: absolute;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 30px rgba(141, 216, 188, 0.4);
}

.visual-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.visual-flow::before {
  position: absolute;
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  content: "";
}

.visual-flow span {
  z-index: 1;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
}

.visual-monitor {
  display: grid;
  align-items: center;
}

.visual-monitor svg {
  width: 100%;
}

.visual-monitor polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}

.visual-segments {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  align-items: end;
}

.visual-segments span {
  height: 70%;
  border: 1px solid var(--line-strong);
  background: var(--accent-dim);
}

.visual-segments span:nth-child(2n) { height: 45%; }

.technology-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1rem;
  align-items: start;
}

.technology-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.technology-grid button {
  min-height: 86px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 650;
  text-align: left;
  transition: border-color 180ms ease, color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.technology-grid button:hover,
.technology-grid button.is-selected {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.technology-grid button.is-hidden {
  display: none;
}

.technology-detail {
  position: sticky;
  top: 7rem;
  min-height: 260px;
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
}

.section-profile {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.profile-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 9vw, 9rem);
}

.profile-heading {
  position: sticky;
  top: 8rem;
  align-self: start;
}

.profile-copy {
  color: var(--muted);
}

.profile-copy .lead {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.4;
}

.profile-copy > p {
  max-width: 680px;
}

.profile-facts {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.profile-facts div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.76rem;
}

.profile-facts strong {
  color: var(--text);
}

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

.timeline li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.5fr) minmax(220px, 0.6fr);
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-marker {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.62rem;
}

.timeline p {
  margin: 0 0 0.3rem;
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.timeline div > span {
  color: var(--muted);
  font-size: 0.85rem;
}

.timeline ul {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li li {
  display: block;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font-size: 0.58rem;
}

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

.principle-grid article {
  min-height: 260px;
  padding: 1.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle-grid article > span {
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.62rem;
}

.principle-grid h3 {
  margin: 4rem 0 0.7rem;
  font-size: 1.4rem;
  font-weight: 450;
}

.principle-grid p {
  color: var(--muted);
  font-size: 0.82rem;
}

.section-contact {
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface), #0d1718);
}

html[data-theme="light"] .section-contact {
  color: var(--text);
  background:
    radial-gradient(circle at 88% 25%, rgba(40, 125, 101, 0.1), transparent 28rem),
    linear-gradient(135deg, #ffffff, #eaf2ee);
}

html[data-theme="light"] .contact-links > p {
  color: #536b63;
}

html[data-theme="light"] .contact-links span {
  color: #526860;
}

html[data-theme="light"] .contact-links strong {
  color: #14231e;
}

html[data-theme="light"] .contact-links a:hover strong {
  color: #126149;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(3rem, 9vw, 9rem);
  align-items: start;
}

.contact-links > p {
  margin-top: 0;
  color: var(--muted);
}

.contact-links a,
.contact-links .location {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-links > :nth-child(2) {
  border-top: 1px solid var(--line);
}

.contact-links span {
  color: var(--muted);
  font-size: 0.68rem;
}

.contact-links strong {
  font-size: 0.82rem;
}

.contact-links i {
  color: var(--accent);
  font-style: normal;
}

.contact-links a:hover strong {
  color: var(--accent-bright);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem max(1.5rem, calc((100% - var(--max-width)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg);
  font-size: 0.68rem;
}

.footer-brand strong,
.footer-brand small {
  display: block;
}

.site-footer p {
  margin: 0;
}

.to-top {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.to-top:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero-system {
    max-width: 680px;
  }

  .topology-layout,
  .technology-layout {
    grid-template-columns: 1fr;
  }

  .topology-detail {
    min-height: 320px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .detail-index {
    margin-bottom: -3rem;
  }

  .technology-detail {
    position: static;
  }

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

  .network-detail {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .profile-heading {
    position: static;
  }
}

@media (max-width: 800px) {
  .section-shell {
    width: min(100% - 2rem, var(--max-width));
  }

  .menu-toggle {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-content: center;
    gap: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    width: 1rem;
    height: 1px;
    background: var(--accent);
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-last-child(2) {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .main-navigation {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 0.8rem;
    border: 1px solid var(--line-strong);
    border-radius: 1rem;
    background: rgba(9, 13, 15, 0.98);
    box-shadow: var(--shadow);
  }

  html[data-theme="light"] .main-navigation {
    background: rgba(244, 247, 245, 0.98);
  }

  .main-navigation.is-open {
    display: grid;
    gap: 0.2rem;
  }

  .main-navigation a {
    padding: 0.7rem;
  }

  .theme-toggle {
    justify-content: center;
    margin-top: 0.35rem;
  }

  .main-navigation a::after {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .highlight-wide {
    grid-column: span 2;
  }

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

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

  .timeline li {
    grid-template-columns: 60px 1fr;
  }

  .timeline ul {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .brand-copy small {
    display: none;
  }

  .hero {
    padding-top: 8rem;
  }

  h1 {
    font-size: clamp(3.7rem, 19vw, 6rem);
  }

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

  .compact-resource-grid {
    grid-template-columns: 1fr;
  }

  .compact-resource-grid article {
    min-height: 180px;
  }

  .resource-orb {
    margin-bottom: 1.3rem;
  }

  .topology-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    min-height: 0;
    padding: 1rem;
  }

  .topology-view-switch {
    display: grid;
    border-radius: 1rem;
  }

  .view-switch-button {
    border-radius: 0.75rem;
  }

  .topology-lines {
    display: none;
  }

  .topology-node {
    position: static;
    min-width: 0;
  }

  .network-toolbar {
    display: grid;
  }

  .network-toolbar .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }

  .network-layout {
    overflow-x: auto;
  }

  .network-diagram {
    min-width: 820px;
  }

  .network-note {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .highlight-grid,
  .technology-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .highlight-wide {
    grid-column: auto;
  }

  .highlight-card {
    min-height: 440px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .timeline ul {
    grid-column: auto;
  }

  .profile-facts div,
  .contact-links a,
  .contact-links .location {
    grid-template-columns: 1fr auto;
  }

  .contact-links span {
    grid-column: 1 / -1;
  }

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

  .site-footer > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
