Preheat oven to 325°F (165°C) and line a 9×13-inch pan with parchment paper
Mix graham cracker crumbs, melted butter, and sugar
Press mixture firmly into the bottom of the pan
Bake crust for 10 minutes and let cool slightly
Melt butter in a skillet over medium heat
Add apples, brown sugar, cinnamon, and nutmeg
Cook until apples are tender but not mushy
Stir in cornstarch and cook 1 minute more
Remove apple mixture from heat and cool slightly
Beat cream cheese until smooth
Add sugar and mix gently
Add eggs one at a time on low speed
Mix in vanilla extract and sour cream
Spread cheesecake batter evenly over crust
Spoon apple mixture evenly over cheesecake layer
Drizzle caramel sauce on top
Sprinkle nuts if using
Bake for 40–45 minutes until edges are set and center slightly jiggles
Turn off oven, crack door, and cool bars inside for 30 minutes
Cool completely, then refrigerate before slicing