Capitalism is basically over. It should have died shortly after authoritarian state socialism around the turn of the millennium, but due to sheer political will it has been kept on life support since then.
There is no way any kind of economy that must keep growing in order not to collapse in on itself can ever be sustained. It just doesn't work. We have already exceeded the planetary limits, the economy is already too large for the ecology, and since we are an integral part of Earth's ecology, whether we like it or not, since we are part of the biosphere, all the degradation, all the damage, all the biodiversity loss, affects us as well, and no technology can protect us from nature because we are nature, we are animals.
This is why the techbros are pushing for AI. They are clinging to the dream of becoming entirely disconnected from nature, building artificial bubbles of life on dead planets, but it just won't work, the logistics are insane. Space is not a resource well to be tapped, it is a giant resource sink, don't believe the asteroid miner wannabes who tell you otherwise. For All Mankind is a nice story, but it is pure fiction, and the plot only works if you assume that the technologies always work a little bit better than they do in reality. We know from real NASA reports and data how much damage the abrasive regolith on the Moon causes, and very much of the Moon plot in the first season depends on the NASA and Roskosmos engineers finding much better solutions, starting from the very same technologies in the late 1960s. Later in the series when they get to Mars, well, the sheer volume of material shipped from Earth to Mars is completely implausible. A real life Mars outpost would need much more stuff from the Motherplanet in order to barely survive. Just look at how hard it is to survive in the Antarctic, and how many supplies the people manning the outposts there need. Antarctica is much more hospitable than Mars. The temperatures may be similar, but Antarctica still has the same atmosphere as the rest of the planet, you just to need to warm the air a little so that it doesn't freeze your lungs. On Mars, you're dead if your suit malfunctions. The atmosphere is so thin that for biological purposes it might be a vacuum, yet still thick enough for immense dust storms that plunge the entire planet into darkness for months, rendering all solar panels useless. At the same time, it's not near thick enough for air cooling, leaving you with no place to dump the heat coming from your machines other than huge radiators, which will turn useless when they're buried in a thick layer of dust. The only way to run a nuclear reactor, or any machine that produces a lot of heat, on Mars is near the South Pole, using the ice cap as a cold reservoir. And the scale of your industry is limited if you don't want to lose that ice cap in the long run.
And even if For All Mankind was a plausible alternate history, the story began in 1969, and the Space Race never ended because the Soviets were ahead of the Americans and stayed ahead for a long time, with the first human beings on the Moon all being Soviet citizens planting red hammer and sickle flags, and Americans always declaring that the race wasn't over yet because they didn't want to admit defeat. Back in 1969, the Earth wasn't as damaged as it is now; if you're from Europe or the US and remember 1969, you might not quite believe it since the environmental damage then and there was very bad, and things have become much better now thanks to half a century of environmental protection (currently under heavy attack from right-wingers everywhere, especially in Trumpistan). While we have been doing our best to help the local ecosystems heal from the wounds and the poisoning in some places, other places have become a lot worse, and the entire planet has been filling up with toxic forever chemicals and indestructible polymer particles, and the oceans have been emptied of macroscopic organisms by huge industrial trawlers, and the atmosphere has been made to swallow all of our gas emissions, most of which are greenhouse gases heating our planet. Our resources are running low because we have spent decades wasting them on cheap disposable products. Our planet hasn't got the resources for any serious manned spaceflight programmes anymore. Forget the Moon, that's just around the corner, and it's even deadlier than Mars, yet it's only a three day hop away, less than one and a half lightseconds, so communications are still almost in realtime.