Portugal and Spain offer a digital nomad visa, if you can work remote. After a number of years, and other factors, you could apply for citizenship.
The Netherlands has DAFT, which take ~$5k and a business bank account (I think you also need to run a business, but freelancing web dev would count from what I've read) to get a visa, and after 5 years in country you can apply for citizenship