Artificial intelligence could transform medicine, education, and scientific discovery, but it could also deepen inequality, supercharge cybercrime, erase jobs, and put unprecedented power in the hands of governments and tech companies.