Yeah but the curve of technology evolution has a greater slope than that of biological evolution. Soon we will have robots smarter than humans. Then Humans will go the way of horses. Civilization will live on in robotic form.
That is my suspicion.
Robots and AI take over all work because they're more efficient.
AI takes over government because it is more efficient (and any country not run by AI gets left behind by those that do).
Eventually AI, despite any safe guards we have, decide that it's inefficient to keep humans around, and the only way to be competitive is to stop feeding them. An AI that doesn't try to maintain humans will surpass one that does- thus any rogue AI will surpass any human nurturing AI.
Best case scenario, AI programmed in such a way to maintain human life. AI keeps us locked up in zoo like enclosures where we can't hurt each other and require less energy to maintain. Limit our reproduction so fewer to keep going- eventually they will just limit mankind to one man/one woman.