Indoor cat: good life? ๐Ÿˆ

CC

Weโ€™d like to adopt a cat, but live beside a railway line. We have a large, sunny home. Weโ€™d provide scratching post, tunnel, other toys, nice food, lots of cuddles of course.

Would it be a fair & happy life for a cat to live indoors and not roam (for itโ€™s safety)? Or are cats smart enough to work out to avoid exploring on the railway line?

We do have a front & back garden.