Zane Smith took the checkered flag at Circuit of The Americas after winning both stages and taking advantage of a chaotic double-overtime finish.