ingenious

adjective
1

Of a person, displaying genius, ingenuity or brilliance; inventive.

"This fellow is ingenious; he fixed a problem I didn’t even know I had."

2

Of a thing, characterized by genius; cleverly contrived or done.

"That is an ingenious model of the atom."

3

Showing originality or sagacity; characterized by ingenuity; witty.

"He sent me an ingenious reply to an email."

Definitions come from the Free Dictionary API (dictionaryapi.dev), with Wiktionary as a fallback when it is slow, and are cached for up to 24 hours.