The celebrated Thouless-Anderson-Palmer approach suggests a way to relate the free energy of a mean-field spin glass model to the solutions of certain self-consistency equations for the local magnetizations. In this talk I will first describe a new geometric approach to define free energy landscapes for general spherical mixed p-spin models and derive from them a generalized TAP representation for the free energy. I will then explain how these landscapes are related to various concepts and problems: the pure states decomposition, ultrametricity, temperature chaos, and optimization of full-RSB models.