Let \( y = y(x) \) be a solution curve of the differential equation \( (y+1)\tan^2 x \, dx + \tan x \, dy + y \, dx = 0, \, x \in \left(0, \frac{\pi}{2}\right) \). If \( \displaystyle \lim_{x \to 0^+} x y(x) = 1 \), then the value of \( y\!\left(\frac{\pi}{4}\right) \) is: