The first thing you did wrong was stop thinking. Ragna doesnt have the best matchups and especially against zoners, he has to think intelligently to find a gap to get closer. Some examples are super jumping, dash barrier, trying 5B, 2B, 5C when in range, super jump C, j.a. all of these are just some normal ways to get in. Ragna doesnt have fireball-esque moves (deadspike has limited distance, is slow) so you have to be patient. Be okay with that