if you want to know more about the lightning network, i can recommend watching this video from andreas antonopoulos.
https://www.youtube.com/watch?v=E1n3sKKPD_k&t=2135s
and if you want to know even more, you can read Mastering the Lightning Network (LN) on github.
https://github.com/lnbook/lnbook