Stockholders' Equity - Summary of Total Stock-based Compensation Expense (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2020 |
Dec. 31, 2019 |
Dec. 31, 2018 |
|
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | |||
| Total | $ 770,182 | $ 686,013 | $ 538,211 |
| Cost of Revenue | |||
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | |||
| Total | 9,367 | 6,365 | 4,393 |
| Research and Development | |||
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | |||
| Total | 533,272 | 464,639 | 340,533 |
| Sales and Marketing | |||
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | |||
| Total | 108,270 | 93,355 | 84,059 |
| General and Administrative | |||
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | |||
| Total | $ 119,273 | $ 121,654 | $ 109,226 |