に produces an adverb, or a word modifying a verb-like expression. な and の produce an adjective-like expression modifying a noun.