You were winning but sorry, the endgame was garbage.
There's Rd4 and black is winning because Rxc2 - Rb2
The idea was a clever tactic but the actual sequence placed your opponent's rook behind your pawn, while your rook had to have been there. Just known endgame theory.