Which sentence is correct?

The food is just as good, if not better, as the recipe.
The food is just as good, if not better than the recipe.
The food is just a good if not better than the recipe.
The food is just as good (if not better) as the recipe.