you can do "everything right" and it still doesn't work out, don't beat yourself up
sometimes people just don't want to commit to stuff like that. sometimes they have other stuff going on in their lives
dont feel like you failed somewhere that's just how shit goes
maybe she doesnt have that idea in mind yet. you have to know whether she is ready or looking for that kinda relationship before asking her out. maybe she just wanted company, not commitment