Relativity would prevent this. If the train moves at the speed of light, then nothing inside it will move because time will stop. The amount of trains inside trains doesn’t really change much except the effect of time dilation (slowdown) on each train. You can’t actually accelerate to the speed of light.
If you thought about the planet you wouldn’t be using smart devices at all, especially not completely unnecessary ones.