I would say that страшно is actually a short-form neuter adjective, rather than an adverb. (Mind you, for any given adjective, the neuter short-form is usually identical to the adverbial form, so...