/* Prefrontal Node — subdued PCB field with guaranteed moving electrons */
:root {
  --pcb-teal: #46ffe2;
  --pcb-cyan: #42daff;
  --pcb-blue: #6b8cff;
  --pcb-violet: #a678ff;
}

body.electric-intelligence {
  background: #010612;
}

body.electric-intelligence::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(1, 7, 19, .38), rgba(1, 7, 19, .38)),
    radial-gradient(circle at 72% 28%, rgba(20, 76, 103, .08), transparent 39%),
    linear-gradient(180deg, #010817 0%, #010612 100%);
}

.pcb-motion-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  opacity: .92;
  filter: none;
}

.pcb-board-fill { fill: rgba(1, 7, 18, .34); }
.pcb-core-haze { opacity: .42; }

.pcb-trace-shadow { opacity: .7; }
.pcb-trace-shadow path {
  fill: none;
  stroke: rgba(0, 3, 10, .68);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pcb-traces { opacity: .54; }
.pcb-traces path {
  fill: none;
  stroke: rgba(38, 145, 178, .19);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pcb-vias { opacity: .58; }
.pcb-vias circle {
  fill: #020b18;
  stroke: rgba(70, 225, 239, .43);
  stroke-width: 1.3;
}

.pcb-electron-layer { opacity: .98; }
.pcb-electron circle:first-child { fill: #f4ffff; }
.pcb-electron.teal circle:not(:first-child) { fill: var(--pcb-teal); }
.pcb-electron.cyan circle:not(:first-child) { fill: var(--pcb-cyan); }
.pcb-electron.blue circle:not(:first-child) { fill: var(--pcb-blue); }
.pcb-electron.violet circle:not(:first-child) { fill: var(--pcb-violet); }
.pcb-electron.teal circle:first-child { stroke: var(--pcb-teal); stroke-width: 1.2; }
.pcb-electron.cyan circle:first-child { stroke: var(--pcb-cyan); stroke-width: 1.2; }
.pcb-electron.blue circle:first-child { stroke: var(--pcb-blue); stroke-width: 1.2; }
.pcb-electron.violet circle:first-child { stroke: var(--pcb-violet); stroke-width: 1.2; }

.electric-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, transparent 18%, rgba(0, 4, 14, .18) 57%, rgba(0, 3, 11, .82) 100%),
    linear-gradient(180deg, rgba(0, 4, 15, .1), transparent 21%, transparent 74%, rgba(0, 3, 12, .52));
}

.electric-scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .06;
  background: repeating-linear-gradient(180deg, transparent 0 4px, rgba(90, 220, 255, .018) 5px);
}

body.electric-intelligence > main,
body.electric-intelligence > footer,
body.electric-intelligence > .error-page {
  position: relative;
  z-index: 2;
}

body.electric-intelligence .site-header { z-index: 1000; }
body.electric-intelligence .mobile-conversion,
body.electric-intelligence .back-to-top,
body.electric-intelligence .scroll-progress,
body.electric-intelligence .nav-scrim { z-index: 1050; }

body.electric-intelligence .hero,
body.electric-intelligence .section,
body.electric-intelligence .inner-hero,
body.electric-intelligence .content-page { background-color: transparent; }

body.electric-intelligence .trust-strip,
body.electric-intelligence .site-footer {
  background-color: rgba(1, 7, 20, .9);
  backdrop-filter: blur(20px);
}

/* Local contrast wells separate the message and dashboard from the board. */
body.electric-intelligence .hero-copy,
body.electric-intelligence .hero-visual,
body.electric-intelligence .section-head,
body.electric-intelligence .signal-lab-shell,
body.electric-intelligence .architecture-shell,
body.electric-intelligence .contact-grid {
  position: relative;
  isolation: isolate;
}

body.electric-intelligence .hero-copy::before {
  content: "";
  position: absolute;
  inset: -42px -55px -50px -58px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 44% 46%, rgba(1, 8, 22, .92) 0%, rgba(1, 8, 22, .68) 47%, rgba(1, 8, 22, 0) 76%);
  filter: blur(10px);
}

body.electric-intelligence .hero-visual::before {
  content: "";
  position: absolute;
  inset: -38px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(1, 8, 22, .72), rgba(1, 8, 22, 0) 72%);
  filter: blur(8px);
}

body.electric-intelligence .control-window,
body.electric-intelligence .simulator-shell,
body.electric-intelligence .architecture-board,
body.electric-intelligence .contact-card,
body.electric-intelligence .content-layout {
  background-color: rgba(3, 16, 39, .9);
  backdrop-filter: blur(16px);
}

.electric-live-badge {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 1040;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(75, 235, 224, .18);
  border-radius: 999px;
  color: rgba(188, 248, 245, .7);
  background: rgba(2, 14, 34, .72);
  box-shadow: 0 0 18px rgba(34, 222, 210, .06), inset 0 1px rgba(255,255,255,.03);
  backdrop-filter: blur(14px);
  font: 750 7px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
}

.electric-live-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pcb-teal);
  box-shadow: 0 0 0 4px rgba(54,244,228,.055), 0 0 10px rgba(54,244,228,.8);
  animation: pcb-status 1.55s ease-out infinite;
}

@media (max-width: 820px) {
  .pcb-motion-field {
    opacity: .88;
    filter: none;
  }
  .pcb-trace-shadow { opacity: .7; }
.pcb-trace-shadow path { stroke-width: 10; }
  .pcb-traces { opacity: .54; }
.pcb-traces path { stroke-width: 2; stroke: rgba(38, 145, 178, .2); }
  .pcb-electron-layer g:nth-child(n+11) { display: none; }
  .electric-scanlines { opacity: .035; }
  body.electric-intelligence .hero-copy::before {
    inset: -28px -20px -38px;
    background: radial-gradient(ellipse at 42% 44%, rgba(1, 8, 22, .96) 0%, rgba(1, 8, 22, .75) 53%, rgba(1, 8, 22, 0) 80%);
  }
  .electric-live-badge {
    right: 10px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    padding: 7px 9px;
    font-size: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Keep a slow, legible current instead of freezing the board entirely. */
  .electric-live-badge i { animation-duration: 4s; }
  .electric-scanlines { display: none; }
}

@keyframes pcb-status {
  0% { box-shadow: 0 0 0 0 rgba(54,244,228,.26), 0 0 10px rgba(54,244,228,.8); }
  100% { box-shadow: 0 0 0 10px rgba(54,244,228,0), 0 0 10px rgba(54,244,228,.24); }
}
.pcb-motion-field.is-surging .pcb-electron-layer {
  opacity: 1;
  filter: brightness(1.45) saturate(1.2);
}
