v3.25.2
Fair Value Measurements - Schedule of Fair Values Company’s Investments (Details) - USD ($)
$ in Thousands
Jun. 30, 2025
Dec. 31, 2024
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Short-term investments $ 228,979 $ 228,322
Long-term investments 126,640 111,725
Fair Value, Inputs, Level 1, Level 2, and Level 3    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Cost 1,070,136 738,847
Gross Unrealized Holding Loss (48) (210)
Gross Unrealized Holding Gain 594 451
Fair Value 1,070,682 739,088
Cash and Cash Equivalents 729,549 413,857
Short-term investments 228,979 225,117
Long-term investments 112,154 100,114
Level 1    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Cost 793,609 473,919
Gross Unrealized Holding Loss (23) (109)
Gross Unrealized Holding Gain 121 71
Fair Value 793,707 473,881
Cash and Cash Equivalents 719,223 402,731
Short-term investments 48,608 41,477
Long-term investments 25,876 29,673
Level 1 | Money market funds    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Cost 719,223 402,731
Gross Unrealized Holding Loss 0 0
Gross Unrealized Holding Gain 0 0
Fair Value 719,223 402,731
Cash and Cash Equivalents 719,223 402,731
Short-term investments 0 0
Long-term investments 0 0
Level 1 | U.S. Government securities    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Cost 74,386 71,188
Gross Unrealized Holding Loss (23) (109)
Gross Unrealized Holding Gain 121 71
Fair Value 74,484 71,150
Cash and Cash Equivalents 0 0
Short-term investments 48,608 41,477
Long-term investments 25,876 29,673
Level 2    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Cost 263,527 257,428
Gross Unrealized Holding Loss (25) (101)
Gross Unrealized Holding Gain 473 380
Fair Value 263,975 257,707
Cash and Cash Equivalents 10,326 11,126
Short-term investments 180,371 183,140
Long-term investments 73,278 63,441
Level 2 | Certificate of deposit    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Cost 9,322 35,301
Gross Unrealized Holding Loss 0 (2)
Gross Unrealized Holding Gain 5 31
Fair Value 9,327 35,330
Cash and Cash Equivalents 0 3,638
Short-term investments 9,327 31,692
Long-term investments 0 0
Level 2 | Commercial paper    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Cost 58,227 57,035
Gross Unrealized Holding Loss (6) (1)
Gross Unrealized Holding Gain 16 39
Fair Value 58,237 57,073
Cash and Cash Equivalents 10,326 7,488
Short-term investments 47,911 49,585
Long-term investments 0 0
Level 2 | Corporate bonds    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Cost 195,978 165,092
Gross Unrealized Holding Loss (19) (98)
Gross Unrealized Holding Gain 452 310
Fair Value 196,411 165,304
Cash and Cash Equivalents 0 0
Short-term investments 123,133 101,863
Long-term investments 73,278 63,441
Level 3    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Cost 13,000 7,500
Gross Unrealized Holding Loss 0 0
Gross Unrealized Holding Gain 0 0
Fair Value 13,000 7,500
Cash and Cash Equivalents 0 0
Short-term investments 0 500
Long-term investments 13,000 7,000
Level 3 | Loans receivable - held for investment    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Cost 13,000 7,500
Gross Unrealized Holding Loss 0 0
Gross Unrealized Holding Gain 0 0
Fair Value 13,000 7,500
Cash and Cash Equivalents 0 0
Short-term investments 0 500
Long-term investments 13,000 7,000
Measured at NAV | Third-party managed funds    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Short-term investments   3,205
Long-term investments $ 14,486 $ 11,611