Thinking in terms of decades is a really good start. Decide where you want to be and then work backwards.
Go after soft/horizontal skills. Get a mentor above all - even if you have to pay for it.
Learning new fancy tech is not going to get you anywhere after some time.
How that tech can be leveraged for business & when that tech is useful/or not will see you through.
Actually product companies today are not building any lasting skills, they are simply using available deep skills. Whatever skills have been built in FK/Ola/Razorpay is not because of their institutional efforts but individual drive.
Developers are simply coding in new language in a different company.
Companies like Wipro/Infy invested BIG in skill building but they do not pay that well.
Some hybrid model might be good but difficult to pull off.