v3.25.0.1
Restructuring - Schedule of Restructuring and Related Costs (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2024
Dec. 31, 2023
Dec. 31, 2022
Restructuring Cost and Reserve [Line Items]      
Restructuring charges $ 70,157 $ 40,800 $ 188,949
Severance and Related Charges      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 55,318   97,061
Stock-Based Compensation Expense (Benefit)      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 9,402   34,504
Lease Exit and Related Charges      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges     31,227
Other      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 5,437   26,157
Cost of revenue      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 1,121   20,585
Cost of revenue | Severance and Related Charges      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 932   2,291
Cost of revenue | Stock-Based Compensation Expense (Benefit)      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 189   709
Cost of revenue | Lease Exit and Related Charges      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges     0
Cost of revenue | Other      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 0   17,585
Research and development      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 38,847   78,915
Research and development | Severance and Related Charges      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 30,845   46,994
Research and development | Stock-Based Compensation Expense (Benefit)      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 4,801   29,188
Research and development | Lease Exit and Related Charges      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges     0
Research and development | Other      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 3,201   2,733
Sales and marketing      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 19,931   30,791
Sales and marketing | Severance and Related Charges      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 15,755   30,565
Sales and marketing | Stock-Based Compensation Expense (Benefit)      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 4,176   (504)
Sales and marketing | Lease Exit and Related Charges      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges     0
Sales and marketing | Other      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 0   730
General and administrative      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 10,258   58,658
General and administrative | Severance and Related Charges      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 7,786   17,211
General and administrative | Stock-Based Compensation Expense (Benefit)      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 236   5,111
General and administrative | Lease Exit and Related Charges      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges     31,227
General and administrative | Other      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges $ 2,236   $ 5,109