brainwave

/ˈbreɪnˌweɪv/
noun
1.
(informal) a sudden inspiration or idea Also called brainstorm