It's natural to be amazed by all the advantages that Bitcoin has because this discovery is a technological marvel that is difficult to match because the blockchain code is perfectly combined with economic game theory (decentralization). Bitcoin did not appear without a reason, its presence is the culmination of years of cryptographic research, Satoshi designed Bitcoin as a response to distrust in the banking system and inflation.
How did such a
remarkable idea come to mind?

Possibly starting from the pre-existing ideas of Cypherpunk as a foundation that Satoshi utilized, he managed to develop and integrate them into a complete and functional system.
I can't Believe but wonder was Satoshi really just one person, or a team of scientist of brilliant minds?
The speed of early code development was too fast for one person to complete it, so it's no surprise that some analysts speculate "Satoshi" was a group of geniuses working together for a common goal.