US stocks closed lower as hotter-than-expected inflation and escalating US-Iran tensions weighed on sentiment. The S&P 500 and Nasdaq retreated from record highs, led by tech weakness, while Dow held steady. Rising oil prices and fears of prolonged inflation reduced hopes of Fed rate cuts and lifted rate-hike bets.