But I deleted all the files needed to get CFW in the first place...Here:
https://3ds.guide/troubleshooting#ts_safe_a9lh_screen
IN the glitched screen you got, you should have pressed SELECT to install A9LH, even with the glitched screen.
Repeat the steps of going into the dukesrg URL and do that.
--------------------- MERGED ---------------------------
No, just repeat the https://3ds.guide/installing-arm9loaderhax part.