Stockholders' Equity - Summary of Total Stock-based Compensation Expense (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Sep. 30, 2022 |
Sep. 30, 2021 |
Sep. 30, 2022 |
Sep. 30, 2021 |
|
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | ||||
| Total | $ 342,959 | $ 300,898 | $ 937,213 | $ 794,571 |
| Cost of Revenue | ||||
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | ||||
| Total | 2,745 | 9,132 | 8,040 | 14,635 |
| Research and Development | ||||
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | ||||
| Total | 246,783 | 198,893 | 651,299 | 537,177 |
| Sales and Marketing | ||||
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | ||||
| Total | 43,098 | 51,675 | 133,746 | 118,250 |
| General and Administrative | ||||
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | ||||
| Total | $ 50,333 | $ 41,198 | $ 144,128 | $ 124,509 |