Software stocks surged as ServiceNow, Snowflake, Microsoft and others rally on upbeat earnings and AI optimism.