Religious government or not, Iran has plenty of engineers, statisticians, scientists and intelligence analysts working for their foreign policy and war effort. Your underestimating this betrays prejudice.
Why not? Smart people can make decisions that look weird from the outside.
The foreign policy of the US been looking weird for decades to most outside parties, yet I'm sure there are smart people involved in it on a daily basis. But even with smart people involved, the US been invading countries based on false premises more than once, not sure why it would need to be different for Iran or any other country.
And yet Iranian proxies have repeatedly challenged these powers across the Middle East, in Yemen, Lebanon, Syria, Iraq, Palestine, Sinai, etc. And a lot of Iran's actions have broad support in many other Middle Eastern countries, including strong US allies, those where there are no natural ethnic, religious or linguistic ties to Iran, and where there is prosperity based on peace and the American world order.
Whatever else the Iranian govt are, they are not foreign policy under-hitters or flawed tacticians blinded by dogmatism.
Imagine if they'd spent the money on education, or developing their economy. They could easily have reconciled with the U.S. if they stopped chanting "Death to America" and done something productive with their time and money. This was the inevitable result of their plans, and easily predictable.
2. There are plenty of engineers, statisticians, scientists and intelligence analysts who are religious fanatics or just power hungry or want to advance in the IRGC ranks/carrier ladder. Khamene.ai is a Living God and there are many engineers, statisticians, scientists and intelligence analysts who worship this deity
3. There are also lots of engineers, statisticians, scientists and intelligence analysts who are threatened and forced to work for the IRGC. Just like it was in the Soviet Union under the Communism
We will just forget that von Neumann advocated for nuclear first strike based on game theory.
America also has lots of brilliant people. Then we have Hegseth, Noem and the other fuck.