:root {
  color-scheme: dark;
  --bg: #0b0f0a;
  --panel: rgba(19, 25, 16, 0.9);
  --panel-strong: rgba(24, 32, 20, 0.96);
  --ink: #f3f1dc;
  --muted: #adb595;
  --line: rgba(236, 203, 91, 0.28);
  --flare: #f0c44d;
  --danger: #d74d35;
  --green: #7ca34d;
  --blue: #81b9e8;
  --violet: #b78dff;
  --cyan: #5ee1d2;
  --steel: #8c9884;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(215, 77, 53, 0.22), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(240, 196, 77, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%) 0 0 / 26px 26px,
    linear-gradient(180deg, #182010, var(--bg));
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(240, 196, 77, 0.05) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(240, 196, 77, 0.04) 1px, transparent 1px) 0 0 / 48px 100%;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 82%);
}

.battlefield {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 44px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(215, 77, 53, 0.16), transparent 48%),
    var(--panel);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--flare);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.4rem);
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  color: var(--flare);
  font-size: 1rem;
  text-transform: uppercase;
}

.brief {
  max-width: 980px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.intel {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 20px;
  border-left: 6px solid var(--danger);
  background:
    repeating-linear-gradient(-45deg, rgba(240, 196, 77, 0.18) 0 8px, transparent 8px 18px),
    rgba(13, 17, 11, 0.88);
}

.intel span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intel strong {
  margin-bottom: 14px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-metrics span,
.node em {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(240, 196, 77, 0.22);
  color: var(--muted);
  background: rgba(8, 12, 7, 0.55);
}

.hero-metrics span {
  gap: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.hero-metrics b {
  color: var(--flare);
}

.scale-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.scale-panel article {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(240, 196, 77, 0.22);
  background:
    linear-gradient(135deg, rgba(94, 225, 210, 0.1), transparent 42%),
    rgba(15, 20, 12, 0.88);
}

.scale-panel article::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 84px;
  height: 84px;
  content: "";
  background: radial-gradient(circle, rgba(240, 196, 77, 0.18), transparent 62%);
}

.scale-panel span {
  display: block;
  margin-bottom: 9px;
  color: var(--flare);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scale-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.map-shell {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.vercel-shell {
  background:
    linear-gradient(135deg, rgba(94, 225, 210, 0.08), transparent 36%),
    var(--panel-strong);
}

.hybrid-shell {
  background:
    linear-gradient(135deg, rgba(183, 141, 255, 0.1), transparent 34%),
    linear-gradient(225deg, rgba(240, 196, 77, 0.08), transparent 36%),
    var(--panel-strong);
}

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

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.client {
  background: var(--blue);
}

.control {
  background: var(--flare);
}

.data {
  background: #8dd96c;
}

.edge {
  background: var(--cyan);
}

.traffic {
  background: var(--danger);
  box-shadow: 0 0 14px var(--danger);
}

.command-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 14px;
  min-height: 1180px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(240, 196, 77, 0.24);
  background:
    radial-gradient(circle at 50% 40%, rgba(124, 163, 77, 0.16), transparent 58%),
    linear-gradient(rgba(240, 196, 77, 0.04) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, rgba(240, 196, 77, 0.04) 1px, transparent 1px) 0 0 / 34px 100%,
    rgba(8, 12, 7, 0.84);
}

.command-map::after {
  position: absolute;
  inset: 12px;
  z-index: 4;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(240, 196, 77, 0.18);
  box-shadow: inset 0 0 34px rgba(124, 163, 77, 0.18);
}

.route-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.route-layer path {
  fill: none;
  stroke: rgba(94, 225, 210, 0.56);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 12 13;
  animation: routeFlow 2.8s linear infinite;
  filter: drop-shadow(0 0 5px rgba(240, 196, 77, 0.38));
}

.route-layer path.edge-edge {
  stroke: rgba(94, 225, 210, 0.7);
}

.route-layer path.edge-download {
  stroke: rgba(141, 217, 108, 0.76);
  stroke-width: 3;
}

.route-layer path.edge-build,
.route-layer path.edge-deploy {
  stroke: rgba(240, 196, 77, 0.72);
  stroke-width: 3;
}

.route-layer path.edge-multiplayer {
  stroke: rgba(129, 185, 232, 0.78);
  stroke-width: 3;
}

.route-layer path.edge-commerce {
  stroke: rgba(215, 77, 53, 0.76);
}

.route-layer path.edge-community {
  stroke: rgba(183, 141, 255, 0.7);
}

.route-layer path.edge-compute {
  stroke: rgba(129, 185, 232, 0.78);
  stroke-width: 3;
}

.route-layer path.edge-cache {
  stroke: rgba(141, 217, 108, 0.76);
}

.route-layer path.edge-storage {
  stroke: rgba(183, 141, 255, 0.72);
}

.route-layer path.edge-security {
  stroke: rgba(215, 77, 53, 0.76);
}

.route-layer path.edge-release {
  stroke: rgba(255, 255, 255, 0.72);
}

.route-layer path.edge-observe {
  stroke: rgba(173, 181, 149, 0.46);
  stroke-dasharray: 4 10;
}

.route-layer path.edge-async {
  stroke: rgba(240, 196, 77, 0.58);
  stroke-dasharray: 5 12;
}

.route-layer path.edge-scale {
  stroke: rgba(255, 255, 255, 0.68);
  stroke-dasharray: 16 8;
}

.route-layer path.edge-muted {
  stroke: rgba(173, 181, 149, 0.32);
  stroke-width: 1.4;
}

.route-layer path.is-dimmed {
  opacity: 0.12;
}

.route-layer path.is-active {
  opacity: 1;
  stroke-width: 4;
}

.radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 90vmin;
  height: 90vmin;
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg 310deg, rgba(240, 196, 77, 0.18) 340deg, transparent 360deg);
  border-radius: 50%;
  opacity: 0.48;
  transform: translate(-50%, -50%);
  animation: radarSweep 14s linear infinite;
}

.zone {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 210px;
  padding: 14px;
  border: 1px solid rgba(240, 196, 77, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 32%),
    rgba(14, 19, 12, 0.74);
}

.zone header {
  display: grid;
  gap: 6px;
  min-height: 122px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(240, 196, 77, 0.18);
}

.zone header span {
  width: max-content;
  padding: 4px 8px;
  color: #0b0f0a;
  background: var(--flare);
  font-size: 0.74rem;
  font-weight: 900;
}

.zone header h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.zone header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.38;
}

.node {
  position: relative;
  min-height: 126px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 48%),
    rgba(20, 27, 17, 0.95);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.node::before {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--steel);
  box-shadow: 0 0 12px currentColor;
}

.node b {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.25;
}

.node small {
  display: block;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.42;
}

.node em {
  margin-top: 12px;
  padding: 5px 7px;
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.node.strong {
  border-color: rgba(240, 196, 77, 0.5);
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.28),
    inset 0 0 24px rgba(240, 196, 77, 0.06);
}

.client-node::before {
  color: var(--blue);
  background: var(--blue);
}

.edge-node::before {
  color: var(--cyan);
  background: var(--cyan);
}

.control-node::before {
  color: var(--flare);
  background: var(--flare);
}

.data-node::before {
  color: #8dd96c;
  background: #8dd96c;
}

.node:hover,
.node.is-focused {
  z-index: 5;
  transform: translateY(-5px);
  border-color: rgba(240, 196, 77, 0.9);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(240, 196, 77, 0.15);
}

.command-map.has-focus .node:not(.is-focused):not(.is-related) {
  opacity: 0.42;
}

.vercel-brief {
  margin-top: 24px;
}

.vercel-map {
  background:
    radial-gradient(circle at 50% 40%, rgba(94, 225, 210, 0.16), transparent 58%),
    linear-gradient(rgba(240, 196, 77, 0.04) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, rgba(240, 196, 77, 0.04) 1px, transparent 1px) 0 0 / 34px 100%,
    rgba(7, 11, 12, 0.88);
}

.hybrid-brief {
  margin-top: 24px;
}

.hybrid-map {
  background:
    radial-gradient(circle at 30% 30%, rgba(94, 225, 210, 0.12), transparent 48%),
    radial-gradient(circle at 72% 38%, rgba(183, 141, 255, 0.16), transparent 52%),
    linear-gradient(rgba(240, 196, 77, 0.04) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, rgba(240, 196, 77, 0.04) 1px, transparent 1px) 0 0 / 34px 100%,
    rgba(9, 9, 13, 0.9);
}

.mission-strips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.mission-strips article {
  padding: 18px;
  border: 1px solid rgba(240, 196, 77, 0.22);
  background:
    linear-gradient(90deg, rgba(215, 77, 53, 0.12), transparent),
    rgba(15, 19, 12, 0.86);
}

.mission-strips span {
  display: block;
  margin-bottom: 8px;
  color: var(--flare);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mission-strips p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

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

.scaling-grid article {
  padding: 20px;
  border: 1px solid rgba(240, 196, 77, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 38%),
    rgba(15, 19, 12, 0.9);
}

.scaling-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.notes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.notes article,
.sources {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(15, 19, 12, 0.86);
}

.notes p,
.sources li {
  color: var(--muted);
  line-height: 1.55;
}

.sources {
  margin-top: 18px;
}

.sources ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-left: 18px;
}

@media (max-width: 1180px) {
  .command-map {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .hero,
  .scale-panel,
  .mission-strips,
  .scaling-grid,
  .sources ul {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .battlefield {
    width: min(100% - 18px, 1500px);
    padding-top: 12px;
  }

  .hero,
  .map-shell {
    padding: 16px;
  }

  .command-map {
    grid-template-columns: minmax(240px, 1fr);
    min-height: 0;
    padding: 14px;
  }
}

@keyframes routeFlow {
  to {
    stroke-dashoffset: -50;
  }
}

@keyframes radarSweep {
  to {
    transform: translate(-50%, -50%) rotate(1turn);
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-layer path,
  .radar-sweep {
    animation: none;
  }
}
