Falling birthrates, rising longevity and artificial intelligence will reshape the global economy in the coming century.