Iran vows to beat "enemy" but ready for nuclear compromise