Prepare the Pie Crust
In a large bowl, whisk together flour, salt, and sugar.
Add the cold cubed butter to the flour mixture.
Using a pastry cutter or your fingertips, work the butter into the flour until the mixture resembles coarse crumbs with some pea-sized pieces remaining.
Sprinkle ice-cold water, 1 tablespoon at a time, mixing gently with a fork after each addition until the dough just comes together. You might not need all the water – stop when the dough holds together when pinched.
Divide the dough in half, shape into disks, wrap in plastic, and refrigerate for at least 30 minutes or up to 2 days.
Prepare the Spicy Apple Filling
In a large bowl, combine sliced apples, granulated sugar, brown sugar, cornstarch, cinnamon, nutmeg, cloves, and salt. Toss gently to coat evenly.
Add lemon juice, minced habanero, and vanilla extract. Mix thoroughly to ensure the heat is distributed evenly throughout the filling.
Let the mixture sit for 15-20 minutes to allow the flavors to meld and the apples to release some of their juices.
Strain the accumulated juice into a small saucepan and reduce it over medium heat until slightly thickened, about 3-5 minutes.
Assemble the Pie
Preheat your oven to 425°F (220°C) and place a baking sheet on the lower rack to catch any potential drips.
Roll one disk of dough on a lightly floured surface into a 12-inch circle, about ⅛-inch thick.
Carefully transfer the dough to a 9-inch pie dish, pressing gently into the bottom and sides. Leave any overhang for now.
Pour the reduced apple juices back into the apple mixture and stir gently.
Spoon the filling into the pie crust, mounding slightly in the center. Dot with small pieces of butter.
Roll out the second disk of dough to the same thickness. You can either create a full top crust with vents or get creative with a lattice pattern or decorative cutouts.
If using a full top crust, place it over the filling, trim excess dough leaving about ½-inch overhang, then fold and crimp the edges together.
Brush the top crust with egg wash and sprinkle with turbinado sugar if desired. If using a full crust, cut 4-5 slits in the top to allow steam to escape.
Bake to Perfection
Place the pie on the preheated baking sheet in the oven. Bake at 425°F for 20 minutes to set the crust.
Reduce the oven temperature to 375°F (190°C) and continue baking for 30-35 minutes, or until the crust is golden brown and filling is bubbling.
Optional: During the last 5 minutes of baking, brush the top with the honey-cayenne mixture for an extra layer of sweet heat and a beautiful glaze.
Remove from the oven and place on a wire rack to cool completely, at least 2-3 hours.