I think you should use the border-image property and se it to a linear gradient and tweak until you have achieved what you want. After all css does treat linear-gradient() as an image.
If you have an image of what you want to produce maybe I can help bring it to life. I hope this helps