What's happening
A sudden wave of heat from the inside out.
A hot flash is your body cooling itself for no reason. A wave of heat rises through your chest, neck, and face. Your skin flushes. Your heart races. You sweat. And then, often, you're cold and clammy as it passes. The whole episode can last anywhere from 30 seconds to ten minutes, and can hit a few times a week or ten times a day.
Night sweats are the same physiology, just timed to your sleep. Some women wake up warm. Some wake up soaked. Either way, the sleep itself is the casualty, you're up at 2 or 3 a.m., the room feels wrong, and falling back asleep doesn't happen. That broken sleep is what turns a "warm phase of life" into months of fog, irritability, and exhaustion.
Clinically, these are called vasomotor symptoms (VMS). They are the single most common, and most disruptive, signal that perimenopause has started.