Startups that master the art of pivoting—driven by data, market feedback, and strategic foresight—are the ones that thrive.