Stock-Based Compensation - Condensed Consolidated Statements of Operations and Comprehensive Loss (Details) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
Jun. 30, 2026 |
Jun. 30, 2025 |
|
| Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Stock-based compensation | $ 7,595 | $ 18,803 | $ 23,448 | $ 36,189 |
| Location, Statement of Income, Balance [Axis]: us-gaap:CostOfRevenue | ||||
| Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Stock-based compensation | 246 | 1,516 | 673 | 2,485 |
| Location, Statement of Income, Balance [Axis]: us-gaap:GeneralAndAdministrativeExpense | ||||
| Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Stock-based compensation | 2,527 | 8,770 | 9,930 | 16,194 |
| Location, Statement of Income, Balance [Axis]: us-gaap:ResearchAndDevelopmentExpense | ||||
| Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Stock-based compensation | $ 4,822 | $ 8,517 | $ 12,845 | $ 17,510 |