Stockholders' Equity - Summary of Total Stock-based Compensation Expense (Details) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Jun. 30, 2022 |
Jun. 30, 2021 |
Jun. 30, 2022 |
Jun. 30, 2021 |
|
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | ||||
| Total | $ 318,810 | $ 256,600 | $ 594,254 | $ 493,673 |
| Cost of Revenue | ||||
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | ||||
| Total | 2,849 | 2,847 | 5,295 | 5,503 |
| Research and Development | ||||
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | ||||
| Total | 221,650 | 174,491 | 404,516 | 338,284 |
| Sales and Marketing | ||||
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | ||||
| Total | 48,577 | 37,491 | 90,648 | 66,575 |
| General and Administrative | ||||
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | ||||
| Total | $ 45,734 | $ 41,771 | $ 93,795 | $ 83,311 |