“The idea is to multiply the signal with a pure sine wave.”
Multiply the signal by a probe wave, add it up, and see if anything matches. Use a sine and a cosine and you get phase too. That’s the whole transform. Engineering school buries it under integrals and complex exponentials for a semester. Interactive charts explain it in an afternoon.