Insomnia is difficulty falling or staying asleep. It affects health, mood, and energy, but with the right habits and treatments, restful nights are possible.