Complex Envelope of Surface Gravity Waves