:root {
  --bg: #f3f5f7;
  --ink: #151a20;
  --muted: rgba(21, 26, 32, 0.58);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.graph-app {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 74%, rgba(139, 102, 255, 0.11), transparent 25rem),
    radial-gradient(circle at 78% 24%, rgba(72, 130, 172, 0.11), transparent 31rem),
    radial-gradient(circle at 48% 50%, rgba(255, 255, 255, 0.74), transparent 34rem),
    linear-gradient(180deg, #f8fafb 0%, #eef2f5 100%);
}

#networkCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#networkCanvas:active {
  cursor: grabbing;
}

.minimal-brand {
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.82;
}

.minimal-brand img {
  width: clamp(116px, 10vw, 168px);
  height: auto;
}

.node-caption {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 2;
  width: min(480px, calc(100vw - 56px));
  color: var(--muted);
  pointer-events: none;
  opacity: 0.9;
}

.node-caption span {
  display: block;
  margin-bottom: 6px;
  color: rgba(120, 88, 255, 0.76);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.node-caption strong {
  display: block;
  color: rgba(21, 26, 32, 0.72);
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  line-height: 1.45;
}

@media (max-width: 760px) {
  .minimal-brand {
    top: 14px;
    left: 14px;
  }

  .node-caption {
    left: 18px;
    bottom: 18px;
    width: calc(100vw - 36px);
  }
}
