Reinventing democracy in the digital era