Investments - Schedule of Cash Equivalents, and Short term Investments (Details) - USD ($) $ in Thousands |
6 Months Ended |
|
Jun. 30, 2025 |
Jun. 30, 2024 |
Dec. 31, 2024 |
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Total, Amortized Cost |
$ 1,187,950
|
|
$ 726,061
|
Total, Gross Unrealized Gains |
813
|
|
845
|
Total, Gross Unrealized Losses |
(171)
|
|
(1,352)
|
Total Fair Value |
1,188,592
|
|
725,554
|
Proceeds from sale of cash equivalent investments |
7,500
|
$ 16,600
|
|
Short-term Investments |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Amortized Cost |
511,758
|
|
509,067
|
Short-term investments, Gross Unrealized Gains |
813
|
|
841
|
Short-term investments, Gross Unrealized Losses |
(171)
|
|
(1,352)
|
Short-term investments, Total Fair Value |
512,400
|
|
508,556
|
Asset-backed securities |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Amortized Cost |
60,112
|
|
63,256
|
Short-term investments, Gross Unrealized Gains |
95
|
|
168
|
Short-term investments, Gross Unrealized Losses |
(58)
|
|
(1,038)
|
Short-term investments, Total Fair Value |
60,149
|
|
62,386
|
Certificate of deposits |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Amortized Cost |
20,199
|
|
15,121
|
Short-term investments, Gross Unrealized Gains |
0
|
|
0
|
Short-term investments, Gross Unrealized Losses |
0
|
|
0
|
Short-term investments, Total Fair Value |
20,199
|
|
15,121
|
Commercial paper |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Amortized Cost |
27,158
|
|
36,829
|
Short-term investments, Gross Unrealized Gains |
0
|
|
0
|
Short-term investments, Gross Unrealized Losses |
0
|
|
0
|
Short-term investments, Total Fair Value |
27,158
|
|
36,829
|
Corporate bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Amortized Cost |
259,584
|
|
258,191
|
Short-term investments, Gross Unrealized Gains |
532
|
|
567
|
Short-term investments, Gross Unrealized Losses |
(49)
|
|
(101)
|
Short-term investments, Total Fair Value |
260,067
|
|
258,657
|
Foreign government bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Amortized Cost |
3,165
|
|
1,590
|
Short-term investments, Gross Unrealized Gains |
0
|
|
0
|
Short-term investments, Gross Unrealized Losses |
(2)
|
|
0
|
Short-term investments, Total Fair Value |
3,163
|
|
1,590
|
Mortgage-backed securities |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Amortized Cost |
4,633
|
|
11,159
|
Short-term investments, Gross Unrealized Gains |
1
|
|
2
|
Short-term investments, Gross Unrealized Losses |
(4)
|
|
(18)
|
Short-term investments, Total Fair Value |
4,630
|
|
11,143
|
Municipal bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Amortized Cost |
1,006
|
|
1,007
|
Short-term investments, Gross Unrealized Gains |
3
|
|
2
|
Short-term investments, Gross Unrealized Losses |
0
|
|
0
|
Short-term investments, Total Fair Value |
1,009
|
|
1,009
|
U.S. government agency bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Amortized Cost |
10,051
|
|
11,392
|
Short-term investments, Gross Unrealized Gains |
0
|
|
0
|
Short-term investments, Gross Unrealized Losses |
(6)
|
|
(25)
|
Short-term investments, Total Fair Value |
10,045
|
|
11,367
|
U.S. government bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Amortized Cost |
125,850
|
|
110,522
|
Short-term investments, Gross Unrealized Gains |
182
|
|
102
|
Short-term investments, Gross Unrealized Losses |
(52)
|
|
(170)
|
Short-term investments, Total Fair Value |
125,980
|
|
110,454
|
Cash equivalents |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Cash equivalents, Amortized Cost |
676,192
|
|
216,994
|
Cash equivalents, Gross Unrealized Gains |
0
|
|
4
|
Cash equivalents, Gross Unrealized Losses |
0
|
|
0
|
Cash equivalent, Total Fair Value |
676,192
|
|
216,998
|
Commercial paper |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Cash equivalents, Amortized Cost |
82,284
|
|
53,110
|
Cash equivalents, Gross Unrealized Gains |
0
|
|
0
|
Cash equivalents, Gross Unrealized Losses |
0
|
|
0
|
Cash equivalent, Total Fair Value |
82,284
|
|
53,110
|
Corporate bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Cash equivalents, Amortized Cost |
|
|
755
|
Cash equivalents, Gross Unrealized Gains |
|
|
0
|
Cash equivalents, Gross Unrealized Losses |
|
|
0
|
Cash equivalent, Total Fair Value |
|
|
755
|
Money market funds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Cash equivalents, Amortized Cost |
584,940
|
|
146,679
|
Cash equivalents, Gross Unrealized Gains |
0
|
|
0
|
Cash equivalents, Gross Unrealized Losses |
0
|
|
0
|
Cash equivalent, Total Fair Value |
584,940
|
|
146,679
|
U.S. government bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Cash equivalents, Amortized Cost |
8,968
|
|
16,450
|
Cash equivalents, Gross Unrealized Gains |
0
|
|
4
|
Cash equivalents, Gross Unrealized Losses |
0
|
|
0
|
Cash equivalent, Total Fair Value |
8,968
|
|
16,454
|
Level 1 |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Total Fair Value |
740,087
|
|
288,708
|
Level 1 | Short-term Investments |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
146,179
|
|
125,575
|
Level 1 | Asset-backed securities |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
0
|
|
0
|
Level 1 | Certificate of deposits |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
20,199
|
|
15,121
|
Level 1 | Commercial paper |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
0
|
|
0
|
Level 1 | Corporate bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
0
|
|
0
|
Level 1 | Foreign government bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
0
|
|
0
|
Level 1 | Mortgage-backed securities |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
0
|
|
0
|
Level 1 | Municipal bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
0
|
|
0
|
Level 1 | U.S. government agency bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
0
|
|
0
|
Level 1 | U.S. government bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
125,980
|
|
110,454
|
Level 1 | Cash equivalents |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Cash equivalent, Total Fair Value |
593,908
|
|
163,133
|
Level 1 | Commercial paper |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Cash equivalent, Total Fair Value |
0
|
|
0
|
Level 1 | Corporate bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Cash equivalent, Total Fair Value |
|
|
0
|
Level 1 | Money market funds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Cash equivalent, Total Fair Value |
584,940
|
|
146,679
|
Level 1 | U.S. government bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Cash equivalent, Total Fair Value |
8,968
|
|
16,454
|
Level 2 |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Total Fair Value |
448,505
|
|
436,846
|
Level 2 | Short-term Investments |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
366,221
|
|
382,981
|
Level 2 | Asset-backed securities |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
60,149
|
|
62,386
|
Level 2 | Certificate of deposits |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
0
|
|
0
|
Level 2 | Commercial paper |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
27,158
|
|
36,829
|
Level 2 | Corporate bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
260,067
|
|
258,657
|
Level 2 | Foreign government bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
3,163
|
|
1,590
|
Level 2 | Mortgage-backed securities |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
4,630
|
|
11,143
|
Level 2 | Municipal bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
1,009
|
|
1,009
|
Level 2 | U.S. government agency bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
10,045
|
|
11,367
|
Level 2 | U.S. government bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Short-term investments, Total Fair Value |
0
|
|
0
|
Level 2 | Cash equivalents |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Cash equivalent, Total Fair Value |
82,284
|
|
53,865
|
Level 2 | Commercial paper |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Cash equivalent, Total Fair Value |
82,284
|
|
53,110
|
Level 2 | Corporate bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Cash equivalent, Total Fair Value |
|
|
755
|
Level 2 | Money market funds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Cash equivalent, Total Fair Value |
0
|
|
0
|
Level 2 | U.S. government bonds |
|
|
|
Debt Securities, Available-for-sale [Line Items] |
|
|
|
Cash equivalent, Total Fair Value |
$ 0
|
|
$ 0
|