:root {
  color-scheme: dark;
  --bg: #03060d;
  --text: #eef7ff;
  --muted: #8091a6;
  --line: rgba(100, 205, 255, .2);
  --glow: rgba(73, 196, 255, .8);
  --panel: rgba(8, 17, 30, .88);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(17, 61, 92, .22), transparent 32%),
    radial-gradient(circle at 50% 50%, #07101d 0%, var(--bg) 67%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background 1.2s ease;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle, #000 22%, transparent 76%);
}
#network { position: fixed; inset: 0; width: 100%; height: 100%; }
.stage { position: relative; min-height: 100vh; isolation: isolate; }
.brand { position: fixed; top: 38px; left: 48px; z-index: 3; }
.brand__eyebrow, .panel__eyebrow { color: #58c7ff; font-size: .68rem; letter-spacing: .42em; }
.brand h1 { margin: 7px 0 2px; font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 350; letter-spacing: .2em; }
.brand p { margin: 0; color: var(--muted); font-size: .82rem; }
.nexus { position: fixed; left: 50%; top: 51%; width: min(86vw, 1080px); height: min(78vh, 760px); transform: translate(-50%, -50%); }
.nexus__core {
  position: absolute;
  left: 50%; top: 50%;
  width: 154px; height: 154px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(116, 221, 255, .55);
  border-radius: 42% 58% 52% 48% / 48% 44% 56% 52%;
  background: radial-gradient(circle at 42% 36%, rgba(214, 248, 255, .96), rgba(56, 180, 231, .56) 12%, rgba(14, 65, 97, .62) 43%, rgba(3, 12, 24, .94) 72%);
  box-shadow: 0 0 18px rgba(75, 204, 255, .8), 0 0 70px rgba(49, 178, 234, .38), inset 0 0 35px rgba(108, 218, 255, .45);
  color: white;
  cursor: pointer;
  animation: morph 8s ease-in-out infinite, float 5s ease-in-out infinite;
  transition: opacity .7s ease, filter .7s ease, box-shadow .7s ease;
}
.nexus__core:hover { filter: brightness(1.2); }
.nexus__label { display: block; font-size: 1.08rem; letter-spacing: .28em; margin-left: .28em; }
.nexus__state { display: block; margin-top: 9px; color: #8ce7ff; font-size: .55rem; letter-spacing: .26em; }
.nexus__pulse { position: absolute; inset: -16px; border: 1px solid rgba(85, 212, 255, .28); border-radius: inherit; animation: pulse 2.8s ease-out infinite; }
.nexus__halo { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(91, 198, 255, .12); border-radius: 50%; transform: translate(-50%, -50%); }
.nexus__halo--inner { width: 360px; height: 360px; animation: spin 30s linear infinite; }
.nexus__halo--outer { width: 660px; height: 660px; border-style: dashed; animation: spin 58s linear infinite reverse; }
.project {
  position: absolute;
  padding: 9px 14px;
  border: 1px solid rgba(102, 202, 255, .2);
  border-radius: 999px;
  background: rgba(7, 18, 31, .72);
  box-shadow: 0 0 24px rgba(55, 175, 229, .08);
  color: #a8bacb;
  font-size: .62rem;
  letter-spacing: .14em;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  animation: nodeFloat 7.4s ease-in-out infinite;
  transition: opacity .6s ease, border-color .6s ease, color .6s ease, box-shadow .6s ease;
}
.project::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: #65d5ff; box-shadow: 0 0 10px #65d5ff; vertical-align: 1px; }
.project[data-status="connected"], .project[data-status="active"] { color: #d8f7ff; border-color: rgba(101, 213, 255, .42); box-shadow: 0 0 28px rgba(55, 175, 229, .14); }
.project[data-status="planned"] { opacity: .76; }
.project[data-status="unknown"] { opacity: .62; filter: saturate(.55); }
.project--ops { left: 15%; top: 14%; }
.project--dos { right: 16%; top: 13%; animation-delay: -1s; }
.project--web { right: 2%; top: 29%; animation-delay: -2s; }
.project--connector { right: 0; top: 50%; animation-delay: -3s; }
.project--atlas { right: 6%; bottom: 26%; animation-delay: -2.4s; }
.project--importer { right: 19%; bottom: 10%; animation-delay: -4s; }
.project--assistant { left: 43%; bottom: 1%; animation-delay: -1.8s; }
.project--analytics { left: 16%; bottom: 10%; animation-delay: -3.2s; }
.project--rsx-ops { left: 7%; bottom: 27%; animation-delay: -4.7s; }
.project--research { left: 0; top: 50%; animation-delay: -.6s; }
.project--rsx { left: 1%; top: 30%; animation-delay: -2.7s; }
.stats { position: fixed; right: 42px; top: 39px; display: grid; gap: 8px; z-index: 3; }
.stats article { min-width: 188px; padding: 12px 15px; border-left: 1px solid rgba(94, 205, 255, .38); background: linear-gradient(90deg, rgba(17, 42, 62, .45), transparent); }
.stats strong { display: block; font-size: 1rem; font-weight: 450; letter-spacing: .08em; }
.stats span { color: var(--muted); font-size: .66rem; }
.panel { position: fixed; left: 50%; top: 50%; z-index: 10; width: min(92vw, 480px); padding: 30px; transform: translate(-50%, -50%); border: 1px solid rgba(105, 215, 255, .28); border-radius: 18px; background: var(--panel); box-shadow: 0 25px 90px rgba(0,0,0,.6), 0 0 60px rgba(45, 179, 237, .12); backdrop-filter: blur(22px); }
.panel h2 { margin: 9px 0 12px; font-weight: 400; letter-spacing: .07em; }
.panel p { color: #a4b2c0; line-height: 1.65; font-size: .9rem; }
.panel dl { margin: 22px 0 0; }
.panel dl div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: .78rem; }
.panel dt { color: var(--muted); }
.panel dd { margin: 0; }
.panel__close { position: absolute; right: 15px; top: 10px; border: 0; background: transparent; color: #98a9b8; font-size: 1.7rem; cursor: pointer; }
footer { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); color: #4e6174; font-size: .58rem; letter-spacing: .3em; }

body[data-nexus-mode="processing"] .nexus__core { animation-duration: 4.6s, 3.2s; box-shadow: 0 0 24px rgba(75, 204, 255, .95), 0 0 95px rgba(49, 178, 234, .5), inset 0 0 40px rgba(108, 218, 255, .52); }
body[data-nexus-mode="insight"] { background: radial-gradient(circle at 50% 46%, rgba(79, 51, 126, .3), transparent 34%), radial-gradient(circle at 50% 50%, #07101d 0%, var(--bg) 67%); }
body[data-nexus-mode="insight"] .nexus__core { box-shadow: 0 0 30px rgba(181, 140, 255, .9), 0 0 115px rgba(115, 93, 220, .48), inset 0 0 42px rgba(181, 140, 255, .42); }
body[data-nexus-mode="standby"] .nexus__core { opacity: .58; filter: saturate(.45); }
body[data-nexus-mode="standby"] .project { opacity: .42; }
body[data-nexus-mode="standby"] .nexus__pulse { animation-duration: 7s; }

@keyframes morph { 0%,100% { border-radius: 42% 58% 52% 48% / 48% 44% 56% 52%; } 50% { border-radius: 58% 42% 46% 54% / 42% 57% 43% 58%; } }
@keyframes float { 0%,100% { transform: translate(-50%, -50%) translateY(-5px) rotate(-1deg); } 50% { transform: translate(-50%, -50%) translateY(7px) rotate(1deg); } }
@keyframes nodeFloat { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@keyframes pulse { 0% { transform: scale(.86); opacity: .85; } 100% { transform: scale(1.38); opacity: 0; } }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (max-width: 760px) {
  .brand { top: 22px; left: 22px; }
  .stats { right: 18px; top: auto; bottom: 46px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats article { min-width: 0; padding: 8px 10px; }
  .nexus { width: 120vw; height: 75vh; top: 45%; transform: translate(-50%, -50%) scale(.62); }
  footer { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
