It's too late for industrial civilisation, and likely for billions of people. But even factoring for the very likely calamities to come throughout the 21st century, there is still some chance, however small, that our species can pull through and eventually prosper, even though the environment is ravaged and the world will doubtless be plagued with problems. When we look ahead to the future, we can only project based upon what's happened so far, and what's happening right now. So far, we've had vicious, corrupt, incompetent leaders, and an indifferent, belligerent population that largely feels disenfranchised and powerless before the status quo. And this combination is leading us down a path of self-destruction. However, that is not to say we cannot avert course, or that there isn't some chance of an unexpected, groundbreaking social and technological revolution that could save the human race from descending all the way into chaos, totalitarian terror and total economic and ecological meltdown.
Humankind has been lucky before. Just think of the number of nuclear near-misses we've had in the past three generations. Of the ones we know about, it clocks in at what, twenty or so? I wouldn't go so far as to call this providence. But when you roll the dice on nuclear obliteration twenty times in less than a century, and manage to roll a nat 20 each and every time, often based on the unlikeliest of factors, you do have to wonder if perhaps there are multiple branching universes and we categorically only get to experience the one where we don't all die. Or something. My point is, it's not out of the question that even when things look bleak and hopeless, even when our children grow up in a world where they shouldn't expect to have a future... there's always the possibility of something completely unexpected happening. It certainly isn't something you ought to count on. But it could happen.
In my fictional series, this case of anomalous serendipity takes place around the birth of AI, but not in the way you might expect. There is the bad AI I've described before that so many of you seem eager to sell your soul to, dominates all the remaining power institutions of the partially collapsed world. But there is a subversive underground strain that complements human abilities rather than trumps them, and that exists in symbiosis with the human race rather than dominating them. Similar case for transhumans, who are exploited for cruel and utilitarian purposes by the American world order, but developed for the purposes of genuinely honing the human mind and body in the underground. There are still big problems with the alternative model. Nonetheless, it ends up triumphing over the conventional model, which stagnates. The newer 'organic AI' proves superior and the reductionistic, lifeless system it opposes crashes and burns disastrously before it can completely enslave the human race. The alternative movement is headed by a highly controversial messianic figure, who ends up turning a middle power into a superpower through a major, post-industrial revolution that gives him an edge nobody else can compete with. Eventually, he is able to help build a new world out of the wreckage.
I would like something along these lines to happen. I'm not saying it will. I don't even think it will. But who knows. Unquestionably, we are heading into a time of crisis. The crisis does not need to be unmitigated however, and nor need it be fruitless. However, just as we're poised on the brink of nuclear annihilation at any moment, we could also be on the brink of some enormous breakthough. The breakthrough cannot be a purely technological one because societal change according to technology is reflexive and lacks wisdom. But the revolution cannot exist in some vacuum either, so it will be tied in to the development and competition of new technologies.
Most likely, the human race won't recover from the crash we're about to go through for at least a thousand years. We probably don't stand a chance of truly prospering, as many here think we are about to, for thousands of years more. But, I am not going to discount the possibility that the future may surprise me. Even if we wind up in the next century with our population brutally whittled down to a third, the atmosphere 5C hotter, radiation zones everywhere and all the minerals stripped bare from the earth, that does not preclude us from surviving and finding another way.