Apple surpasses Microsoft as world’s most valuable company after unveiling AI plans