Unified theory of vibrational spectra in hard amorphous materials