US stocks hovered near record levels as gains in Nvidia and Microsoft on AI optimism countered rising geopolitical tensions ...