Improved particle-flow event reconstruction with scalable neural networks for current and future particle detectors