Stockholders' Equity - Summary of Total Stock-based Compensation Expense (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2022 |
Dec. 31, 2021 |
Dec. 31, 2020 |
|
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | |||
| Total | $ 1,387,787 | $ 1,092,135 | $ 770,182 |
| Cost of revenue | |||
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | |||
| Total | 12,288 | 17,221 | 9,367 |
| Research and development | |||
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | |||
| Total | 970,746 | 740,130 | 533,272 |
| Sales and marketing | |||
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | |||
| Total | 203,092 | 164,241 | 108,270 |
| General and administrative | |||
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | |||
| Total | $ 201,661 | $ 170,543 | $ 119,273 |