We present a unified model that solves four major problems of the standard model, i.e., neutrino masses, origin of matter, the strong $CP$ problem and dark matter using the framework of the Affleck-Dine (AD) mechanism. The AD field is responsible for inflation, origin of matter, and neutrino masses which arise at the one loop level. Neutrino masses are therefore intimately connected to the baryon-to-photon ratio of the Universe. The dark matter in the model is the axion field used to solve the strong $CP$ problem. The model has a near massless Majorana fermion which contributes to $\mathrm{\ensuremath{\Delta}}{N}_{\mathrm{eff}}\ensuremath{\sim}0.1$ in the early Universe that can be tested in the upcoming CMB-S4 experiment.