Innovation and competition in complex environments