How do I engineer a system for my own system

The idea is to make my own device in terms of the system and the same device Hardware and software I know how to program a system But I don’t know what the hardware will be like here is the problem the question is
How can I build or engineer my own device and run my own system on it?