Motivic homotopy theory and refined enumerative geometry