Is there a way to make a gradient move along the same path as an inset would?

You could use pointiness attribute in Geometry node to drive the gradient.