Superhero movies are graded on a curveā€”even in the midst of the best ones, we look past the genreā€™s failings. Weā€™re willing to sit through another dull origin story to see likeable actors doing goofy shit (see Doctor Strange). We know that by the third act, anything funny and unique will be obliterated in a maelstrom of CGI (see Guardians of the Galaxy). And we make peace with the fact that character, story, and momentum will be sacrificed upon the altar of corporate synergy (see Batman v Superman: Dawn of Justice, or, better yet, donā€™t).

Even when a superhero movie is legitimately goodā€”be it The Avengers or Captain America: The Winter Soldierā€”it usually comes with a disclaimer. The Dark Knight is impressive, so long as you focus on its stunning parts and not the crudely taped-together whole. Iron Man 3 is witty and subversive, so long as youā€™ve memorized every Marvel movie leading up to it.

But now, 17 years after X-Men kickstarted the superhero genre, we get something like Logan. Something that isnā€™t just a great superhero movie, but a great movie. No disclaimers, no curve. Logan is fantastic.

Make no mistake: Logan is such a superhero movieā€”such an X-Men movieā€”that at one point Logan (Hugh Jackman) flips through an X-Men comic featuring his spandexed alter-ego, Wolverine. Heā€™s not impressed. ā€œMaybe a quarter of it happened,ā€ he grumbles, ā€œand not like this.ā€ Despite his crankiness, Logan is full of the same stuff as the yellowed pages of X-Men and Wolverine: Super-powered mutants. Nefarious evildoers. A rock-solid belief that violence fixes everything.

But for all Loganā€™s nods to genreā€”and itā€™s as much a western as a superhero movieā€”itā€™s about bigger things, too. This Logan is burned out and worn down: Not for nothing does he grunt softly when hoisting himself out of a car. Not for nothing does he wear cheap reading glasses. (Superman wears glasses as a disguise; Logan wears glasses because his eyes arenā€™t what they used to be.) And not for nothing does he glower when one of his claws refuses to SNIKT. (Whether they make Viagra for mutants is, alas, never addressed.) Logan is a movie about what itā€™s like to get oldā€”to realize that oneā€™s body and memories offer more pain than power, that oneā€™s optimism and love have hardened to stubbornness and regret.

Logan spends much of his time looking after Charles Xavier (Patrick Stewart)ā€”the once-great man now feeble and flailing and furiousā€”and Laura (Dafne Keen), a silent young mutant with powers suspiciously similar to Loganā€™s. Xavier is leaving this world, Laura is coming into it, and Logan stands between themā€”he knows the pain Xavier has endured, and he knows the sorrow waiting for Laura. Xavier, meanwhile, knows something Logan is still learning: that our legacies are rarely what we think they are, and that in the end, all that matters is what we leave behind.

If Iā€™m making Logan sound sad (very sad), thatā€™s because it is. But I donā€™t want to diminish everything else it offers: The bloody (very bloody) action is exhilarating. The humor is sharp and knowing. And the performances, from Dafne Keenā€™s stoic determination to Boyd Holbrookā€™s winking sneer, are dead-on. (Logan also contains some of the best work Jackman and Stewart have ever done, and itā€™s clear why both have declared this is the final time theyā€™ll play these charactersā€”best to quit while ahead.) Director James Mangold deftly balances Loganā€™s mayhem and melancholy, keeping this whole bloody, dusty thing moving, cutting through its stripped-down narrative with bursts of emotional resonance. Like its protagonist, Logan doesnā€™t pull its punches.

In other words, thereā€™s a reason Logan ends with a Johnny Cash songā€”and a reason it seems to slam the door on future X-Men movies. There will, of course, be more. Seventeen years after X-Men, Fox is still cranking out sequels, reboots, and spinoffs. Seventeen years from now, theyā€™ll likely be doing the same. None of them will be this good.