v3.26.3
Debt - Additional Information (Details)
$ / shares in Units, $ in Thousands, shares in Millions
1 Months Ended 12 Months Ended
Jun. 06, 2024
USD ($)
Feb. 28, 2025
USD ($)
Dec. 31, 2024
USD ($)
PurchasePeriod
$ / shares
shares
Sep. 30, 2021
USD ($)
PurchasePeriod
$ / shares
Jul. 31, 2026
USD ($)
Jul. 31, 2025
USD ($)
Jul. 31, 2024
USD ($)
Sep. 30, 2020
USD ($)
Sep. 24, 2020
Debt Instrument [Line Items]                  
Proceeds from the issuance of convertible notes, net of issuance costs         $ 0 $ 848,010 $ 0    
Payments of debt issuance costs         0 3,448 0    
Inducement expense         0 11,347 0    
2023 Convertible Senior Notes                  
Debt Instrument [Line Items]                  
Loss on debt extinguishment         64,900        
2027 Convertible Senior Notes                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage       0.25%          
Principal amount       $ 1,000          
2029 Convertible Senior Notes                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage     0.50%            
Principal amount     $ 1,000            
Revolving Credit Agreement [Member]                  
Debt Instrument [Line Items]                  
Face amount   $ 500,000              
Letters of Credit Outstanding, Amount         $ 0        
Issuance of Letter Credit, Amount   $ 25,000              
Convertible Debt                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage     0.50%            
Debt repurchase amount     $ 75,000            
Debt Instrument Conversion For Cash     95,500            
Inducement expense             11,300    
Reduction to equity             $ 9,700    
Convertible Debt | 2023 Convertible Senior Notes                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage       0.00%          
Convertible debt       $ 416,500          
Convertible Debt | 2026 Convertible Senior Notes                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage         2.50%       2.50%
Face amount $ 817,600             $ 750,000  
Conversion ratio 16,900,000                
Debt Instrument Conversion For Cash $ 817,600                
Convertible Debt | 2027 Convertible Senior Notes                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage       0.25%          
Principal amount         $ 500,000 500,000      
Face amount     862,500 $ 575,000          
Repurchase an additional principal amount, in a offering     75,000            
Convertible debt       $ 477,300          
Conversion ratio       17.3192          
Conversion price (in dollars per share) | $ / shares       $ 57.74          
Threshold trading days | PurchasePeriod       20          
Threshold consecutive trading days | PurchasePeriod       30          
Debt outstanding     500,000            
Net proceeds from the offering     95,500            
Debt repurchase amount     75,000            
Redemption price, percentage       100.00%          
Debt Instrument Issued For Cash       $ 97,700          
Debt Instrument Conversion For Cash     $ 95,500            
Debt instrument, term         1 year 2 months 12 days        
Debt instrument, principal amount for conversion into common stock       $ 1,000          
Convertible Debt | 2029 Convertible Senior Notes                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage     0.50%            
Principal amount         $ 862,500 $ 862,500      
Face amount     $ 862,500            
Repurchase an additional principal amount, in a offering     $ 112,500            
Conversion ratio     11.6505            
Conversion price (in dollars per share) | $ / shares     $ 85.83            
Threshold trading days | PurchasePeriod     20            
Threshold consecutive trading days | PurchasePeriod     30            
Net proceeds from the offering     $ 844,600            
Redemption price, percentage     100.00%            
Debt instrument, term         3 years 4 months 24 days        
Debt instrument, principal amount for conversion into common stock     $ 1,000            
Maximum | Revolving Credit Agreement [Member]                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage   1.25%              
Unused Capacity, Commitment Fee Percentage   0.30%              
Leverage ratio   0.0375              
Maximum | Revolving Credit Agreement [Member] | Secured Overnight Financing Rate Sofr [Member]                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage   2.25%              
Minimum | Revolving Credit Agreement [Member]                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage   0.25%              
Unused Capacity, Commitment Fee Percentage   0.175%              
Leverage ratio   0.01              
Minimum | Revolving Credit Agreement [Member] | Secured Overnight Financing Rate Sofr [Member]                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage   1.25%              
Minimum | Convertible Debt | 2027 Convertible Senior Notes                  
Debt Instrument [Line Items]                  
Threshold percentage of stock price trigger       130.00%          
Minimum | Convertible Debt | 2029 Convertible Senior Notes                  
Debt Instrument [Line Items]                  
Threshold percentage of stock price trigger     130.00%            
Common Class A | Convertible Debt | 2029 Convertible Senior Notes                  
Debt Instrument [Line Items]                  
Debt repurchase amount     $ 200,000            
Stock Repurchase Program, Number of Shares Authorized to be Repurchased | shares     3.1            
Common Class A | Maximum | Convertible Debt | 2027 Convertible Senior Notes                  
Debt Instrument [Line Items]                  
Threshold percentage of stock price trigger       98.00%          
Common Class A | Maximum | Convertible Debt | 2029 Convertible Senior Notes                  
Debt Instrument [Line Items]                  
Threshold percentage of stock price trigger     98.00%