Behind the Magic: How Does AI Actually Think?