What are you hoping to invest in?
Morocco has no golden visa and no citizenship by investment. Buying property or making a passive investment does not by itself give you the right to live there. What does exist is residence for someone who sets up and runs a business in Morocco, and no minimum investment is published.