Define XC= everything except downhill. I’ve never raced so just for leisure
for gods sake dont spend 3k on an xc race bike! You WILL hate it after the first few rides. the position on them is designed for racing, not for pootling around the countryside and when designing the frame the comfort of it was way down the list of requirements. I cant say what bike to get, but it sounds as though you need to do a LOT more riding before even you know what you want. if in doubt, buy an orange 5, should hold its value if you want to buy something a bit faster in a few years.