hive-like and vast beyond belief , these cities each contained over a hundred million inhabitants and were environmentally self-sufficient , contained within q-shields that insulated them from the planets hostile climate ; relying on off-world imports to sustain their huge populations , as well as advanced technologies to manufacture local food resources .