The family of a teenager who died on a railway line have paid tribute to a “truly remarkable young man”.