Logic Gates

You can not use the 74HTC00 instead of a CD4011.
The problem lies within the 2 different chips input circuits.

The basic idea of this circuit is exactly using the CD4011 as an analog op-amp.
It can do so, although somewhat poorly.

The HCT00 can not, it will require a true logic TTL level to shift its ouput.