Goal: Architect a secure, scalable system base, design seamless authentication pipelines, and establish a bulletproof database structure.

The Journey: Every robust software project begins with two core pillars: a beautiful, responsive user interface and a rock-solid security framework. During the first three weeks, the focus was entirely on establishing a secure and visually premium entry point.

To solve the onboarding puzzle, we integrated Firebase Authentication, creating a dual-auth loop that supports both Google OAuth (for instant web3 user onboarding) and traditional email/password credentials.

Behind the scenes, we had to solve a major data segregation challenge. In a decentralized network, user privacy is paramount. We crafted granular Firestore Security Rules to sandbox data states. These rules ensure that while regular users can read tasks and submit answers for their own dossiers, their private states remain strictly private. Simultaneously, we built separate rules for the user_answers and surveys collections, locking down survey creation exclusively to verified administrators while keeping completed survey logs immutable and tamper-proof.

Milestone: A highly responsive, premium dark-themed dashboard shell equipped with real-time profile listeners that automatically synchronize points, active streaks, and referral tiers the moment changes occur in the database.