Afghan voters lined up at polling stations, defying a nationwide threat of violence by the Taliban to cast ballots in what promises to be the nation's first democratic transfer of power.