She did win. By 3 MILLION votes.
The system failed all of us.
The system - and the Constitutional protections - worked exactly as intended.
The president is elected by the several states through the Electoral College - not by popular vote. This prevents populous states from shutting smaller states (and their citizens) out of the electoral process.
Without the Electoral College, only 5 states would matter - no candidate would care what citizens of smaller states thought or wanted.
Remember, Hillary Clinton won in just 58 counties.
Donald Trump won in over 3,000 counties. The system worked perfectly and exactly as designed.
PS: if you passed High School civics, I recommend that you request a refund.