The reactive high power impulse magnetron sputtering processes of carbon in argon/tetrafluoromethane (CF4) and argon/octafluorocyclobutane (c-C4F8) have been characterized. Amorphous carbon fluoride (CFx) films were synthesized at deposition pressure and substrate temperature of 400mPa and 110°C, respectively. The CFx film composition was controlled in the range of 0.15<x<0.35 by varying the partial pressure of the F-containing gases from 0mPa to 110mPa. The reactive plasma was studied employing time averaged positive ion mass spectrometry and the resulting thin films were characterized regarding their composition, chemical bonding and microstructure as well as mechanical properties by elastic recoil detection analysis, X-ray photoelectron spectroscopy, transmission electron microscopy, nanoindentation, and water droplet contact angle measurements, respectively. The experimental results were compared to results obtained by first-principles calculations based on density functional theory. The modeling of the most abundant precursor fragment from the dissociation of CF4 and C4F8 provided their relative stability, abundance, and reactivity, thus permitting to evaluate the role of each precursor during film growth. Positive ion mass spectrometry of both fluorine plasmas shows an abundance of CF+, C+, CF2+, and CF3+ (in this order) as corroborated by first-principles calculations. Only CF3+ exceeded the Ar+ signal in a CF4 plasma. Two deposition regimes are found depending on the partial pressure of the fluorine-containing reactive gas, where films with fluorine contents below 24at.% exhibit a graphitic nature, whereas a polymeric structure applies to films with fluorine contents exceeding 27at.%. Moreover, abundant precursors in the plasma are correlated to the mechanical response of the different CFx thin films. The decreasing hardness with increasing fluorine content can be attributed to the abundance of CF3+ precursor species, weakening the carbon matrix.