Harnessing the complexity of coastal ecosystems: from fundamental science to application