Bagnaia triumphs in a chaotic Americas GP after six-time MotoGP world champ Marquez slid out while leading the race.