Smooth gradient transition using PixelNormalWS in material

Hello.
I have small problem with material. I am planning to create mask to display Night texture on planet but I can’t figure out how to create gradient transition.
My current material :

Any ideas?

Than you for your help.