v3.26.1
Debt - Additional Information (Details)
$ / shares in Units, $ in Thousands, shares in Millions
1 Months Ended 3 Months Ended 9 Months Ended
Feb. 28, 2025
USD ($)
Dec. 31, 2024
USD ($)
PurchasePeriod
$ / shares
shares
Sep. 30, 2021
USD ($)
PurchasePeriod
$ / shares
Apr. 30, 2026
USD ($)
Apr. 30, 2025
USD ($)
Apr. 30, 2026
USD ($)
Apr. 30, 2025
USD ($)
Jul. 31, 2025
USD ($)
Jan. 31, 2025
Debt Instrument [Line Items]                  
Other income, net       $ 10,805 $ 15,954 $ 40,412 $ 25,172    
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     $ 1,000            
Repurchase amount   $ 75,000              
2029 Convertible Senior Notes                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage   0.50%              
Principal   $ 1,000              
Revolving Credit Agreement                  
Debt Instrument [Line Items]                  
Face amount $ 500,000                
Issuance of letters of credit       $ 0   $ 0      
Issuance of letter credit $ 25,000                
Revolving Credit Agreement | Minimum                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage 0.25%                
Leverage ratio 0.01                
Unused Capacity, Commitment Fee Percentage 0.175%                
Revolving Credit Agreement | Minimum | Secured Overnight Financing Rate                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage 1.25%                
Revolving Credit Agreement | Maximum                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage 1.25%                
Leverage ratio 0.0375                
Unused Capacity, Commitment Fee Percentage 0.30%                
Revolving Credit Agreement | Maximum | Secured Overnight Financing Rate                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage 2.25%                
Convertible Debt                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage   0.50%   0.25%   0.25%      
Debt Instrument Conversion For Cash   $ 95,500              
Repurchase amount   75,000              
Other income, net   11,300              
Reduction in 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 | 2027 Convertible Senior Notes                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage     0.25%            
Face amount   862,500 $ 575,000 $ 500,000   $ 500,000      
Debt Instrument Conversion For Cash   95,500              
Principal       500,000   $ 500,000   $ 500,000  
Convertible debt     477,300            
Notes for cash     $ 97,700            
Repurchase an additional principal amount, in a offering   75,000              
Net proceeds from the offering   $ 95,500              
Conversion ratio     17.3192            
Conversion price (in dollars per share) | $ / shares     $ 57.74            
Threshold trading days | PurchasePeriod     20            
Threshold consecutive trading days | PurchasePeriod     30            
Redemption price, percentage     100.00%            
Debt instrument, term           1 year 4 months 24 days      
Debt instrument, principal amount for conversion into common stock       1,000   $ 1,000      
Convertible Debt | 2027 Convertible Senior Notes | Minimum                  
Debt Instrument [Line Items]                  
Threshold percentage of stock price trigger     130.00%            
Convertible Debt | 2027 Convertible Senior Notes | Common Class A | Maximum                  
Debt Instrument [Line Items]                  
Threshold percentage of stock price trigger     98.00%            
Convertible Debt | 2029 Convertible Senior Notes                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage   0.50%              
Face amount   $ 862,500              
Principal       $ 862,500   $ 862,500   $ 862,500  
Repurchase an additional principal amount, in a offering   112,500              
Net proceeds from the offering   $ 844,600              
Conversion ratio   11.6505              
Conversion price (in dollars per share) | $ / shares   $ 85.83              
Threshold trading days | PurchasePeriod   20              
Threshold consecutive trading days | PurchasePeriod   30              
Redemption price, percentage   100.00%              
Debt instrument, term           3 years 7 months 6 days      
Debt instrument, principal amount for conversion into common stock   $ 1,000              
Convertible Debt | 2029 Convertible Senior Notes | Minimum                  
Debt Instrument [Line Items]                  
Threshold percentage of stock price trigger   130.00%              
Convertible Debt | 2029 Convertible Senior Notes | Common Class A                  
Debt Instrument [Line Items]                  
Repurchase amount   $ 200,000              
Number of share repurchase | shares   3.1              
Convertible Debt | 2029 Convertible Senior Notes | Common Class A | Maximum                  
Debt Instrument [Line Items]                  
Threshold percentage of stock price trigger   98.00%