Flam raises $40M Series B led by QED Investors for AI expansion