The Evolution of Intelligent Systems: How Molecules Became Minds