The USA has had an advantage after WW2 for not having anything destroyed in the war, and being able to out produce everyone else. There came many innovations in technology. The other nations buy that technology and now make that technology because the labor is cheaper over there.
The USA had a good economy in the 1990s during the startup bubble rising before it burst in 1999-2000. Good enough to build a military superiority. Sun/Oracle had government contracts to make military systems using their software. I worked as a federal contractor in 1996-1997 to help migration systems from ATCOM to MICOM to save money and move the aviation databases and systems down to the missile command base to save money and combine them so they could work on the drone program.
The drone is remote controlled and not AI based, it is very effective. No risk of our pilots in using them.
But the tech in other nations has caught up to match our military technology. We lost the superiority.
The same with NASA, lost the advantage there due to mismanagement and mistakes. No planned replacement for the space shuttle, have to hitch a ride to the ISS with the Russians. Still using rockets to put things into space.
Many one of the commercial space companies will also make a better fighter jet or something, who knows?