About 25% [1] of the population are foreigners, so it can't be that bad?
If you're not white, still move here (I've been living here since 2016, love it). If you work in IT you most likely end up in a bigger city anyway, and as in most big cities in western europe nobody cares about the color of your skin. Or what languages besides english you speak.
[1] https://www.bfs.admin.ch/bfs/en/home/statistics/population/m...
It's not a convincing argument. As counterexample, until not to recently, black people were a sizable portion of the US population, and it was literally that bad for them...
Regarding the first: Yes, I'm sure it exists, including, to some extent, in government representatives. It can express itself in more stark ways in rural areas (If you want to get naturalized and live in a rural village, the village gets to vote on your application; it larger places, the process purely bureaucratic). OTOH Switzerland is not a particularly violent country, so generally the racism does not express itself in physical violence.
The standoffishness is a big cultural thing. When we moved back to Switzerland after 8+ years in California, this was something we had to get used to again. OTOH, as others said, 25% of the population is foreign born, so you can always socialize with those… and, who knows, maybe over time you'll develop a taste yourself for keeping your distance and playing your cards close to your vest ;-)