GREEN BAY, Wis. The 49ers had been diagramming plays, brainstorming ideas and otherwise scheming for the Packers as soon as the schedule came out in April.
Sunday, it showed.
Quarterback Alex Smith calmly and efficiently ran an offense that incorporated a dizzying array of personnel groups, while the defense, using a "dime" formation seldom seen a year ago, pestered Aaron Rodgers and held the dangerous Green Bay offense in check.
As a result, the 49ers accomplished in Week 1 what no team did in the regular season last year hand the Packers a loss at Lambeau Field.
"The fight to 60 minutes was there, but I thought we played our best game with our minds than we've ever played," Jim Harbaugh said of his team's 30-22 victory. "I'm very proud of our guys."
At the top of his list was Smith, who went through the draft process with Rodgers in 2005 and then watched as Rodgers went onto NFL stardom while he floundered on bad and sometimes dysfunctional 49ers squads. The quarterbacks had faced off twice before, with Rodgers and the Packers winning both contests.
Sunday, however, Smith coolly handled a complex and creative offense that rolled out different groups of skill players three receivers one snap, no receivers the next from one play to the next.
He threw one touchdown to tight end Vernon Davis and another to the biggest Packer killer of them all, Randy Moss. It was Moss' 16th touchdown reception against Green Bay and the 154th of his career, moving him into second place behind Jerry Rice on the NFL's all-time list.
Smith also had a notable achievement.
When he flipped a 15-yard pass to Bruce Miller late in the fourth quarter, he passed Steve Young to set the franchise record of 185 consecutive pass attempts without an interception.
The way Smith took care of the football last season was noteworthy he threw only five interceptions in 18 games but it also led to the derisive description of him as a "game manager."
Sunday, that care proved to be the difference in the game.
After Randall Cobb's 75-yard punt return early in the fourth quarter cut San Francisco's lead to eight points, the Packers defense forced a three-and-out series by the 49ers.
Rodgers took over with the momentum decidedly in his favor and the crowd suspecting that the winning magic they had witnessed throughout 2011 was about to return.
But inside linebacker NaVorro Bowman intercepted Rodgers' first pass of the series. And on the play after that, Frank Gore ran around the left side of the Packers defense and pinballed into the end zone for a 23-yard touchdown.
Rodgers was bothered throughout the afternoon.
For much of the first half, defensive coordinator Vic Fangio turned to a formation he seldom used last season, one that incorporated six defensive backs to counter Green Bay's pass-heavy attack.
Most of the time, that sixth defensive back, Perrish Cox, was substituting for perhaps the 49ers' best and most recognized player, linebacker Patrick Willis.
"It's difficult," Fangio said of taking a four-time Pro Bowl player like Willis out of the game. "But it's either that or you've got to line him up on a receiver sometimes, which he did a couple of times."
Rodgers certainly didn't have a bad game. He threw for 303 yards and finished with a 93.3 passer rating. Smith, however, was the better quarterback on this day, going 20 of 26 for 211 yards and a 125.6 rating.
According to the gossip show TMZ, during the offseason Rodgers made a bet with Boyz II Men member Nathan Morris, who is a longtime 49ers fan.
If Boyz II Men sang the national anthem at Sunday's game, they agreed, Rodgers would do something humiliating if the Packers lost: He'd wear an Alex Smith 49ers jersey this week.
"I did hear about the bet, (Saturday) someone told me about it," said Smith, who has become good friends with Rodgers. "I'll have to call him and get a picture."