import React, { useState, useEffect } from 'react'; import { initializeApp } from 'firebase/app'; import { getAuth, signInAnonymously, signInWithCustomToken, onAuthStateChanged } from 'firebase/auth'; import { getFirestore, collection, addDoc, serverTimestamp } from 'firebase/firestore'; // --- FIREBASE CONFIGURATION --- // These globals are provided by the environment const firebaseConfig = JSON.parse(__firebase_config); const app = initializeApp(firebaseConfig); const auth = getAuth(app); const db = getFirestore(app); const appId = typeof __app_id !== 'undefined' ? __app_id : 'neural-guard-default'; export default function App() { const [user, setUser] = useState(null); const [email, setEmail] = useState(''); const [status, setStatus] = useState({ loading: false, success: false, error: null }); // 1. Initialize Authentication (Rule 3) useEffect(() => { const initAuth = async () => { try { if (typeof __initial_auth_token !== 'undefined' && __initial_auth_token) { await signInWithCustomToken(auth, __initial_auth_token); } else { await signInAnonymously(auth); } } catch (err) { console.error("Auth failed", err); } }; initAuth(); const unsubscribe = onAuthStateChanged(auth, setUser); return () => unsubscribe(); }, []); // 2. Handle Form Submission const handleSubscribe = async (e) => { e.preventDefault(); if (!user) { setStatus({ ...status, error: "Authentication not ready. Please try again." }); return; } setStatus({ loading: true, success: false, error: null }); try { // Save to Public Data (Rule 1) const signupRef = collection(db, 'artifacts', appId, 'public', 'data', 'newsletter_signups'); await addDoc(signupRef, { email: email, timestamp: serverTimestamp(), userId: user.uid }); setStatus({ loading: false, success: true, error: null }); setEmail(''); } catch (err) { setStatus({ loading: false, success: false, error: "Submission failed. Please try again." }); console.error(err); } }; return (
{/* Navigation */} {/* Hero Section */}
Guarding Human Potential

Don't Lose Your
Cognitive Strength

Neural Guard Institute teaches you to use AI as an extension of your mind, not a replacement for your brain. Master the art of Augmentation.

Join the Institute See the Methodology
{/* Mission Section */}

The Decline of Human Reasoning

As AI adoption accelerates, we face a silent crisis: Cognitive Atrophy. Just as GPS weakened our sense of direction and cell phones replaced our memory, generative AI is replacing our ability to think, reason, and create.

01.

Total automation leads to the weakening of creative neural pathways.

02.

Prompt-based creation "Write me a story" bypasses human logic entirely.

"At Neural Guard Institute, we encourage everyone to use AI effectively. We are not against AI; we believe there is a responsible way to use it."
Our Core Mission
{/* The Method Section */}

The Storytelling Example

Here is how we teach responsible AI interaction. It's the difference between being a "Prompt Operator" and a "Creative Director."

Automation (Passive)

"AI, write me a story about a detective in 1920s Paris."

  • • No mental effort required
  • • Generic tropes and cliches
  • • Your brain learns nothing

Augmentation (Active)

"I have a concept: A detective in Paris who can't see the color blue. Here are my character notes. Help me fix the grammar."

  • • Human logic drives the vision
  • • AI handles structure and polish
  • • Brain strengthens through iteration
{/* Join/Subscribe Section */}

Join the Movement

We are building a community of "Neural Guards" who prioritize human intelligence. Get our latest guides on responsible AI use.

setEmail(e.target.value)} placeholder="Enter your email" className="flex-1 bg-white/10 border border-white/20 rounded-2xl px-6 py-4 text-white placeholder:text-indigo-200 focus:outline-none focus:ring-2 focus:ring-white/50 transition-all" />
{status.success && (
Welcome to the Institute! Your data is saved.
)} {status.error && (
{status.error}
)}

Your data is stored securely in our cloud database

{/* Footer */}
); }