Dynamical zero-temperature phase transitions and cosmic inflation/deflation