The neglected heiress won the CEO’s heart with her intelligence.