Top Gunthe Tom Cruise-starring tale of brash Navy aviators flying with reckless abandon and a need for speed—wouldn't have its machismo without Kenny Loggins's hard-rocking (and very '80s) tune "Danger Zone" scoring the opening sequence. The song reached number two on the Billboard charts and, unlike thousands of other tunes written specifically for movies during that decade, it still stands tall today.

Long before "Danger Zone" achieved ironic fame status as a running gag on the likes of NPR's All Songs Considered and Archer, film producers Jerry Bruckheimer and Don Simpson and music supervisor Michael Dilbeck were just trying to find the perfect music for Top Gun. Hundreds of songs were submitted to the filmmakers for possible inclusion in the film, and they were put together on an estimated 100 cassette tapes. Bruckheimer, Simpson, and Dilbeck agreed to listen to all of the songs together, under the condition that if any one of them didn't like a song in the first five seconds, they would move on to the next one. They weren't satisfied with any of them.

It was then that Bruckheimer and Simpson turned to Giorgio Moroder, a producer who by then had already amassed an impressive music career, producing hits for Donna Summer, and bringing home Oscars for the Midnight Express and Flashdance soundtracks, the latter of which was another Bruckheimer/Simpson production. Moroder composed and recorded two songs. Bruckheimer and Simpson didn't like them. Moroder was disappointed, but then he composed "Danger Zone" and "Take My Breath Away" (which would win him another Oscar).

"Danger Zone"'s lyrics were written, essentially, by Moroder's car mechanic. Tom Whitlock started writing songs at 15, and after some false starts he moved to California in 1983 to advance his music career. One fateful day, Whitlock was helping his friend move some speakers at a studio in the Valley when he overheard someone stomping down the hallway cursing. It was Moroder, and he was angry; the brakes on his Ferrari were not responding to his liking coming down Coldwater Canyon.

Whitlock went to Pep Boys, bought some Castrol brake fluid, and got Moroder's Ferrari working just right. The producer liked what he saw in Whitlock and hired him to work as his assistant. During the day, Whitlock would work the phones, handle billings, and run errands.

"If the Lamborghini broke down in Venice Beach, I would go sit there all night until the right kind of tow truck was available," Whitlock said, looking back at his hustle and determination. "If I needed to sleep on the floor to get up and let carpenters in at 5 a.m., I did that. If Brian De Palma wanted bagels, I got bagels. If Giorgio's mother wanted groceries from Gelson's, I went to Gelson's. It was a blast!"

After 5 p.m., Whitlock's patience paid off when he learned how to record and witnessed the Flashdance and Scarface soundtracks getting made. He would also work on his own songs, finally getting one of Moroder's publishers' attention. When Bruckheimer and Simpson reached out to Moroder, his usual lyrical collaborators weren't around: Keith Forsey was producing Billy Idol's album in New York City, and Pete Bellote was living in the United Kingdom. But Whitlock was still in the neighborhood.

"In retrospect, I may have been a bit too clever (or obvious) with all of the allusions," Whitlock later admitted about his lyrics.

Over time, rumors have persisted that the song was originally offered to Toto, but that the band backed out either over legal issues or because they wanted the whole group to play on the track. (Kenny Loggins claimed he later found out the Toto story was not true.)

Once the two songs were approved, Moroder went to the band Berlin and its lead singer Terri Nunn (Moroder was co-producer on their previous hit, 1984's "No More Words"). He offered the band the choice between "Danger Zone" or "Take My Breath Away," hoping they would opt for the former. Nunn said Moroder intended for "Danger Zone" to be a duet between the band and Kenny Loggins, but Berlin went with "Take My Breath Away." (CBS records initially wanted Aimee Mann to record that one.)

It was Bruckheimer who came up with Loggins' name in the first place, knowing him from his work on the title track to Footloose. Still, Moroder's first meeting with Loggins was when he recorded "Danger Zone." ("We met and we did everything in one day— it was very fast," Moroder recalled.)

Loggins got the call asking if he wanted to sing "Danger Zone" when he was in the studio finishing up recording a different song for the Top Gun soundtrack, "Playing with the Boys." The only thing Loggins asked about the song, the demo of which he had yet to hear, was if it was "up-tempo" or not. When he was told it was, he agreed. Loggins thought a faster song would help him, believing he "needed some rock and roll" for his concerts.

Whitlock and Loggins met at a house in Encino, California to go over the lyrics, with Loggins adding some ideas of his own. Loggins sang the vocal a few days later at the studio. Loggins used Tina Turner as the vocal model for "Danger Zone," because he was deep into her "rock soul thing" at the time. "I think that's why I ended up singing DaaangAH zone," Loggins self-deprecatingly admitted on the DVD commentary.

Loggins would collaborate with the composer/lyricist duo again with "Meet Me Halfway," for the Over the Top (1987) soundtrack, but "Danger Zone" is, by Loggins' own admission, one of the biggest songs of his career.

"I didn't expect that song to be the type of song that would hold up for almost 30 years," he said in 2013. "At the time, it seemed like a pretty simple piece of rock and roll. I just really wanted an up-tempo thing for my show, and I thought it would be fun to have a movie song. It would kick the show in gear, and it sure did."