Is investment also speculation or gambling?

At first glance, investing seems like the responsible opposite of gambling. But when you’re buying stocks on a hunch or chasing crypto trends without real research, the line gets blurry. Is it still investing—or just dressed-up speculation? Maybe the difference isn’t what you’re doing, but why and how you’re doing it.