Sounds like ur reading the wrong authors
Discussion
Now I want to hear your reccs for optimistic sci fi
The culture series by Iain M Banks comes to mind. An AI powered interstellar superpower libertarian paradise civilization goes to war with religious zealot aliens.
The Moon Is A Harsh Mistress by Heinlein is really great. Lunar colonists start a rebellion to win independence from their Earthly masters.
In this book the moon is a libertarian paradise peopled by blue collar workers in a hostile environment.