<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="csrf-token" content="YnSYDz3glrlvWndgISdrrKelfsQjVjFo2tehPnuJ">
    <title>UpFan - Exclusive content from your favorite creators</title>
  
    
    <link href="https://upfan.me/public/index.php/dist/cssBuilds/08aa795723a13a6dacc3890fbb31321c1753133761.css" rel="stylesheet">

    
   
</head>
<body>
    <!-- Navigation -->
    <nav>
        <div class="nav-container">
            <a href="https://upfan.me/public/index.php" class="logo">UpFan.</a>
            
            <!-- Desktop Navigation -->
            <div class="nav-buttons">
                                    <a href="https://upfan.me/public/index.php/login" class="btn btn-outline">Login</a>
                    <a href="https://upfan.me/public/index.php/register" class="btn btn-primary">Get Started</a>
                            </div>
            
            <!-- Mobile Hamburger -->
            <div class="hamburger" id="hamburger">
                <span></span>
                <span></span>
                <span></span>
            </div>
        </div>
    </nav>

    <!-- Mobile Menu Overlay -->
    <div class="mobile-menu-overlay" id="mobileMenuOverlay"></div>

    <!-- Mobile Menu -->
    <div class="mobile-menu" id="mobileMenu">
        <div class="mobile-menu-buttons">
                    <a href="https://upfan.me/public/index.php/login" class="btn btn-outline">Login</a>
            <a href="https://upfan.me/public/index.php/register" class="btn btn-primary">Get Started</a>
                    
            <!-- Language Selector in Mobile Menu -->
            <div class="bereal-language-selector" style="margin-top: 40px;">
                <button class="bereal-lang-btn" onclick="toggleLanguageMenuMobile()" style="width: 100%; justify-content: center;">
                    <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                        <circle cx="12" cy="12" r="10"/>
                        <path d="M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>
                    </svg>
                    <span>EN</span>
                    <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="chevron">
                        <polyline points="6 9 12 15 18 9"/>
                    </svg>
                </button>
                
                <div class="bereal-lang-menu" id="langMenuMobile" style="bottom: auto; top: 100%; margin-top: 8px; margin-bottom: 0;">
                    <div class="bereal-lang-header">
                        <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                            <circle cx="12" cy="12" r="10"/>
                            <path d="M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>
                        </svg>
                        <span>Choose a language</span>
                    </div>
                    
                    <div class="bereal-lang-options">
                        <a href="#" class="bereal-lang-option " onclick="setLocale('fr'); return false;">
                            <span class="lang-code">FR</span>
                            <span class="lang-name">Français</span>
                                                    </a>
                        <a href="#" class="bereal-lang-option active" onclick="setLocale('en'); return false;">
                            <span class="lang-code">EN</span>
                            <span class="lang-name">English</span>
                                                            <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                                    <polyline points="20 6 9 17 4 12"/>
                                </svg>
                                                    </a>
                        <a href="#" class="bereal-lang-option " onclick="setLocale('es'); return false;">
                            <span class="lang-code">ES</span>
                            <span class="lang-name">Español</span>
                                                    </a>
                        <a href="#" class="bereal-lang-option " onclick="setLocale('tr'); return false;">
                            <span class="lang-code">TR</span>
                            <span class="lang-name">Türkçe</span>
                                                    </a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Hero Section -->
    <section class="hero">
        <div class="hero-container">
            <div class="hero-content">
                <h1>Your daily dose of exclusive content.</h1>
                <p>Access premium content from your favorite creators, directly on your phone.</p>
                
                <!-- Ajouter ce code juste avant la section Hero -->

<!-- Username Claim Bar -->
<div class="username-claim-bar">
    <div class="claim-bar-container">
        <div class="claim-bar-content">
            <div class="claim-bar-icon">
                <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                    <path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path>
                    <path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>
                </svg>
            </div>
            <form class="claim-bar-form" onsubmit="handleUsernameSubmit(event)">
                <div class="claim-input-group">
                    <span class="claim-prefix">upfan.me/@</span>
                    <input 
                        type="text" 
                        id="username-input"
                        class="claim-input" 
                        placeholder="yourname"
                        pattern="[a-zA-Z0-9_-]+"
                        required
                        autocomplete="off"
                        autocorrect="off"
                        autocapitalize="off"
                        spellcheck="false"
                    >
                    <button type="submit" class="claim-submit-btn">
                        Claim your username
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>


                
                <ul class="emoji-list">
                    <li><span class="emoji">🎨</span> Exclusive and authentic content</li>
                    <li><span class="emoji">💬</span> Direct interactions with your creators</li>
                    <li><span class="emoji">🔔</span> Notifications to never miss anything</li>
                </ul>

                <div class="cta-buttons">
                    <a href="https://upfan.me/public/index.php/register" class="btn btn-primary btn-large">Become a creator</a>
                    <a href="https://upfan.me/public/index.php/register/fans" class="btn btn-outline btn-large">Sign up as a Fan</a>
                </div>
            </div>

            <div class="phone-mockup">
                <div class="phone-frame">
                    <div class="phone-screen">
                        <div class="swipe-container" id="swipeContainer">
                            <!-- Screen 1 - Welcome Screen -->
                            <div class="screen screen-1">
                                <div class="phone-overlay"></div>
                                
                                <!-- Notification -->
                                <div class="notification-badge">New content available 🔥</div>
                                
                                <!-- Content -->
                                <div class="phone-content">
                                    <!-- Avatar avec image -->
                                    <div class="creator-avatar">
                                        <img src="https://image.noelshack.com/fichiers/2025/27/7/1751794225-design-sans-titre-36.jpg" alt="Sarah">
                                    </div>
                                    
                                    <h3 class="creator-name">Sarah.créative</h3>
                                    <p class="creator-status">Exclusive content available</p>
                                    
                                    <div class="stats-grid">
                                        <div class="stat-card">
                                            <div class="stat-number">156</div>
                                            <div class="stat-label">Posts</div>
                                        </div>
                                        <div class="stat-card">
                                            <div class="stat-number">12.5k</div>
                                            <div class="stat-label">Fans</div>
                                        </div>
                                    </div>
                                    <button class="cta-button">Subscribe</button>
                                </div>
                            </div>

                            <!-- Screen 2 - Instagram Feed -->
                            <div class="screen screen-2">
                                <div class="instagram-header">
                                    <div class="profile-info">
                                        <div class="creator-avatar">
                                            <img src="https://image.noelshack.com/fichiers/2025/27/7/1751794225-design-sans-titre-36.jpg" alt="Sarah">
                                        </div>
                                        <div class="creator-name">Sarah.créative</div>
                                    </div>
                                    <div style="font-size: 20px;">⋯</div>
                                </div>

                                <div class="feed-container">
                                    <!-- Post 1 -->
                                    <div class="post-item">
                                        <div class="post-image">
                                            <img src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=400&h=400&fit=crop" alt="Content">
                                            <div class="lock-overlay">
                                                <div class="lock-icon">🔒</div>
                                                <div class="unlock-text">Subscribe to unlock</div>
                                            </div>
                                        </div>
                                        <div class="post-actions">
                                            <span>❤️</span>
                                            <span>💬</span>
                                            <span>📤</span>
                                        </div>
                                        <div class="post-description">
                                            <strong>Sarah.créative</strong> New exclusive photoshoot available! 📸✨
                                        </div>
                                    </div>

                                    <!-- Post 2 -->
                                    <div class="post-item">
                                        <div class="post-image">
                                            <img src="https://images.unsplash.com/photo-1517841905240-472988babdf9?w=400&h=400&fit=crop" alt="Content">
                                            <div class="lock-overlay">
                                                <div class="lock-icon">🔒</div>
                                                <div class="unlock-text">Subscribe to unlock</div>
                                            </div>
                                        </div>
                                        <div class="post-actions">
                                            <span>❤️</span>
                                            <span>💬</span>
                                            <span>📤</span>
                                        </div>
                                        <div class="post-description">
                                            <strong>Sarah.créative</strong> Behind the scenes of my latest project 🎬
                                        </div>
                                    </div>

                                    <!-- Post 3 -->
                                    <div class="post-item">
                                        <div class="post-image">
                                            <img src="https://images.unsplash.com/photo-1488426862026-3ee34a7d66df?w=400&h=400&fit=crop" alt="Content">
                                            <div class="lock-overlay">
                                                <div class="lock-icon">🔒</div>
                                                <div class="unlock-text">Subscribe to unlock</div>
                                            </div>
                                        </div>
                                        <div class="post-actions">
                                            <span>❤️</span>
                                            <span>💬</span>
                                            <span>📤</span>
                                        </div>
                                        <div class="post-description">
                                            <strong>Sarah.créative</strong> Special content for my fans 💖
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Features Section -->
    <section class="features">
        <div class="features-container">
            <h2 style="text-align: center; font-size: 3rem; margin-bottom: 20px;">Why UpFan?</h2>
            <p style="text-align: center; font-size: 1.3rem; color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto;">A platform designed for creators and their most loyal fans.</p>
            
            <div class="features-grid">
                <div class="feature-card fade-in">
                    <div class="feature-icon">🎯</div>
                    <h3>Targeted content</h3>
                    <p>Share exactly what your fans want to see, when they want it.</p>
                </div>
                
                <div class="feature-card fade-in">
                    <div class="feature-icon">💎</div>
                    <h3>Simple monetization</h3>
                    <p>Turn your passion into income with intuitive monetization tools.</p>
                </div>
                
                <div class="feature-card fade-in">
                    <div class="feature-icon">🔒</div>
                    <h3>100% Secure</h3>
                    <p>Your data and content are protected with the highest security standards.</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Creator Learn More Button -->
    <div class="creator-learn-more-section">
        <a href="https://upfan.me/public/index.php/creator" class="creator-learn-more-btn">
            Im a creator, learn more
        </a>
    </div>

    <!-- Stats Section -->
    <section class="stats">
        <div class="stats-container">
            <div class="stat-item">
                <h2>10K+</h2>
                <p>Active creators</p>
            </div>
            <div class="stat-item">
                <h2>150K+</h2>
                <p>Satisfied fans</p>
            </div>
            <div class="stat-item">
                <h2>2M+</h2>
                <p>Shared content</p>
            </div>
            <div class="stat-item">
                <h2>98%</h2>
                <p>Satisfaction rate</p>
            </div>
        </div>
    </section>



<!-- Section Why UpFan for Creators -->
<section class="why-upfan-creators">
    <div class="why-upfan-container">
        <div class="section-header">
            <h2 class="section-title">UpFan is the best platform for creators</h2>
            <p class="section-subtitle">Here&#039;s why ↓</p>
        </div>

        <div class="features-bento">
            <!-- Feature 1 - Subscriptions -->
            <div class="bento-card bento-subscriptions">
                <div class="card-content">
                    <div class="card-icon">
                        <svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                            <path d="M12 2L2 7L12 12L22 7L12 2Z"></path>
                            <path d="M2 17L12 22L22 17"></path>
                            <path d="M2 12L12 17L22 12"></path>
                        </svg>
                    </div>
                    <h3>Flexible subscriptions</h3>
                    <p>Create custom subscription tiers to monetize your content</p>
                    <div class="card-badge">Recurring income</div>
                </div>
                <div class="card-visual">
                    <div class="subscription-tiers">
                        <div class="tier tier-basic">Basic - €9.99</div>
                        <div class="tier tier-premium">Premium - €19.99</div>
                        <div class="tier tier-vip">VIP - €49.99</div>
                    </div>
                </div>
            </div>

            <!-- Feature 2 - Paid Links -->
            <div class="bento-card bento-paid-links">
                <div class="card-content">
                    <div class="card-icon">
                        <svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                            <path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path>
                            <path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>
                        </svg>
                    </div>
                    <h3>Paid links</h3>
                    <p>Sell exclusive content through secure links</p>
                    <div class="card-badge">One-time payment</div>
                </div>
                <div class="card-visual">
                    <div class="link-preview">
                        <div class="link-card">
                            <span class="link-icon">🔒</span>
                            <span class="link-text">upfan.me/p/exclusive-content</span>
                            <span class="link-price">€15</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Feature 3 - Messaging -->
            <div class="bento-card bento-messaging">
                <div class="card-content">
                    <div class="card-icon">
                        <svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                            <path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
                        </svg>
                    </div>
                    <h3>Private messaging</h3>
                    <p>Chat directly with your most loyal fans</p>
                    <div class="card-badge">Paid messages</div>
                </div>
                <div class="card-visual">
                    <div class="chat-preview">
                        <div class="chat-bubble chat-fan">Hi! I love your content 💖</div>
                        <div class="chat-bubble chat-creator">Thank you so much! 🙏</div>
                        <div class="chat-bubble chat-tip">💎 Tip received: €10</div>
                    </div>
                </div>
            </div>

            <!-- Feature 4 - Mobile Apps -->
            <div class="bento-card bento-mobile">
                <div class="card-content">
                    <div class="card-icon">
                        <svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                            <rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect>
                            <line x1="12" y1="18" x2="12.01" y2="18"></line>
                        </svg>
                    </div>
                    <h3>Mobile apps</h3>
                    <p>Available on iOS and Android for your fans</p>
                    <div class="app-stores">
                        <div class="app-store">
                            <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
                                <path d="..."/> <!-- raccourci pour gagner de la place -->
                            </svg>
                            <span>App Store</span>
                        </div>
                        <div class="app-store">
                            <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
                                <path d="..."/>
                            </svg>
                            <span>Google Play</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Feature 5 - Notifications -->
            <div class="bento-card bento-notifications">
                <div class="card-content">
                    <div class="card-icon">
                        <svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                            <path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path>
                            <path d="M13.73 21a2 2 0 0 1-3.46 0"></path>
                        </svg>
                    </div>
                    <h3>Push notifications</h3>
                    <p>Receive payment alerts on your phone</p>
                    <div class="card-badge">Real time</div>
                </div>
                <div class="card-visual">
                    <div class="notification-preview">
                        <div class="notif-item">
                            <span class="notif-icon">💰</span>
                            <div class="notif-content">
                                <strong>New payment</strong>
                                <p>Marie bought your content - €25</p>
                            </div>
                        </div>
                        <div class="notif-item">
                            <span class="notif-icon">🎁</span>
                            <div class="notif-content">
                                <strong>Tip received</strong>
                                <p>Jean sent you €10</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Feature 6 - Agencies -->
            <div class="bento-card bento-agencies">
                <div class="card-content">
                    <div class="card-icon">
                        <svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                            <path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
                            <circle cx="9" cy="7" r="4"></circle>
                            <path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
                            <path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
                        </svg>
                    </div>
                    <h3>Built for agencies</h3>
                    <p>Multi-account management, chatters, and advanced dashboards</p>
                    <div class="card-badge">Complete solution</div>
                </div>
                <div class="card-visual">
                    <div class="agency-features">
                        <div class="agency-feature">
                            <span>👥</span>
                            <span>Team management</span>
                        </div>
                        <div class="agency-feature">
                            <span>📊</span>
                            <span>Advanced analytics</span>
                        </div>
                        <div class="agency-feature">
                            <span>💬</span>
                            <span>Dedicated chatters</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Feature 7 - Deeplink -->
            <div class="bento-card bento-deeplink">
                <div class="card-content">
                    <div class="card-icon">
                        <svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                            <circle cx="12" cy="12" r="10"></circle>
                            <line x1="2" y1="12" x2="22" y2="12"></line>
                            <path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>
                        </svg>
                    </div>
                    <h3>Smart deeplinks</h3>
                    <p>Automatically redirect to app or web</p>
                    <div class="card-badge">Mobile optimization</div>
                </div>
                <div class="card-visual">
                    <div class="deeplink-flow">
                        <div class="flow-step">📱 Click</div>
                        <div class="flow-arrow">→</div>
                        <div class="flow-step">🚀 App?</div>
                        <div class="flow-arrow">→</div>
                        <div class="flow-step">✅ Direct</div>
                    </div>
                </div>
            </div>

            <!-- Feature 8 - Link Page -->
            <div class="bento-card bento-linkpage">
                <div class="card-content">
                    <div class="card-icon">
                        <svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                            <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
                            <line x1="9" y1="9" x2="15" y2="9"></line>
                            <line x1="9" y1="13" x2="15" y2="13"></line>
                            <line x1="9" y1="17" x2="13" y2="17"></line>
                        </svg>
                    </div>
                    <h3>Link page</h3>
                    <p>Centralize all your links in one place</p>
                    <div class="card-badge">100% customizable</div>
                </div>
<div class="card-visual">
    <div class="linkpage-preview">
        <div class="linkpage-slider">
            <div class="linkpage-slide">
                <img src="https://image.noelshack.com/fichiers/2025/30/1/1753113319-photo.png" alt="Link page example 1">
            </div>
            <div class="linkpage-slide">
                <img src="https://image.noelshack.com/fichiers/2025/30/1/1753113319-5454.png" alt="Link page example 2">
            </div>
        </div>
    </div>
</div>
            </div>
        </div>
    </div>
</section>



    <!-- CTA Section -->
    <section class="cta-section">
        <h2>Ready to join UpFan?</h2>
        <p>Start creating, sharing and monetizing your content today.</p>
        <div class="cta-buttons" style="justify-content: center;">
            <a href="https://upfan.me/public/index.php/register" class="btn btn-primary btn-large">Start for free</a>
        </div>
    </section>

    <!-- Footer -->
    <footer>
        <div class="footer-container">
            <div class="footer-sections">
                <!-- Section Principale -->
                <div class="footer-section">
                    <h4 class="footer-title">UpFan</h4>
                    <div class="footer-links">
                        <a href="/about">About</a>
                        <a href="/creator">Become a creator</a>
                        <a href="/ambassador">Ambassador</a>
                        <a href="#">Blog</a>
                    </div>
                </div>
                
                <!-- Section Comparaisons -->
                <div class="footer-section">
                    <h4 class="footer-title">Comparisons</h4>
                    <div class="footer-links">
                        <a href="/comparaison-upfan-mym">UpFan vs MYM</a>
                        <a href="/comparaison-upfan-reveal">UpFan vs Reveal</a>
                        <a href="/comparaison-upfan-fanvue">UpFan vs Fanvue</a>
                    </div>
                </div>
                
                <!-- Section Légal -->
                <div class="footer-section">
                    <h4 class="footer-title">Legal</h4>
                    <div class="footer-links">
                        <a href="/mentionslegales">Legal notices</a>
                        <a href="/terms">Terms</a>
                        <a href="/privacy">Privacy</a>
                    </div>
                </div>
                
                <!-- Section Support -->
                <div class="footer-section">
                    <h4 class="footer-title">Support</h4>
                    <div class="footer-links">
                        <a href="/contact">Contact</a>
                        <a href="/faq">FAQ</a>
                        <a href="/faq">Help Center</a>
                    </div>
                </div>
            </div>
            
            <div class="footer-bottom">
                <div class="footer-center">
                    <div class="bereal-language-selector" id="desktopLanguageSelector">
                        <button class="bereal-lang-btn" onclick="toggleLanguageMenu()">
                            <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                                <circle cx="12" cy="12" r="10"/>
                                <path d="M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>
                            </svg>
                            <span>EN</span>
                            <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="chevron">
                                <polyline points="6 9 12 15 18 9"/>
                            </svg>
                        </button>
                        
                        <div class="bereal-lang-menu" id="langMenu">
                            <div class="bereal-lang-header">
                                <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                                    <circle cx="12" cy="12" r="10"/>
                                    <path d="M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>
                                </svg>
                                <span>Choose a language</span>
                            </div>
                            
                            <div class="bereal-lang-options">
                                <a href="#" class="bereal-lang-option " onclick="setLocale('fr'); return false;">
                                    <span class="lang-code">FR</span>
                                    <span class="lang-name">Français</span>
                                                                    </a>
                                <a href="#" class="bereal-lang-option active" onclick="setLocale('en'); return false;">
                                    <span class="lang-code">EN</span>
                                    <span class="lang-name">English</span>
                                                                            <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                                            <polyline points="20 6 9 17 4 12"/>
                                        </svg>
                                                                    </a>
                                <a href="#" class="bereal-lang-option " onclick="setLocale('es'); return false;">
                                    <span class="lang-code">ES</span>
                                    <span class="lang-name">Español</span>
                                                                    </a>
                                <a href="#" class="bereal-lang-option " onclick="setLocale('tr'); return false;">
                                    <span class="lang-code">TR</span>
                                    <span class="lang-name">Türkçe</span>
                                                                    </a>
                            </div>
                        </div>
                    </div>
                    <div class="copyright">
                        © 2025 UpFan. All rights reserved.
                    </div>
                </div>
            </div>
        </div>
    </footer>

    <script>
    
    function handleUsernameSubmit(event) {
    event.preventDefault();
    
    const input = document.getElementById('username-input');
    const button = event.target.querySelector('.claim-submit-btn');
    const username = input.value.trim().toLowerCase();
    
    // Validation
    if (!username) {
        return;
    }
    
    if (username.length < 3) {
        alert("Username must be at least 3 characters");
        return;
    }
    
    if (!/^[a-zA-Z0-9_-]+$/.test(username)) {
        alert("Only letters, numbers, underscores and hyphens allowed");
        return;
    }
    
    // Show loading state
    button.classList.add('loading');
    button.disabled = true;
    button.textContent = "Checking...";
    
    // Simulate check and redirect (replace with actual API call if needed)
    setTimeout(() => {
        window.location.href = `/register/creator?username=${encodeURIComponent(username)}`;
    }, 500);
}

// Real-time validation
document.getElementById('username-input').addEventListener('input', function(e) {
    const value = e.target.value;
    
    // Remove spaces and special characters
    const cleaned = value.toLowerCase().replace(/[^a-zA-Z0-9_-]/g, '');
    if (cleaned !== value) {
        e.target.value = cleaned;
    }
});

// Add enter key support
document.getElementById('username-input').addEventListener('keypress', function(e) {
    if (e.key === 'Enter') {
        e.preventDefault();
        document.querySelector('.claim-bar-form').dispatchEvent(new Event('submit'));
    }
});
    
    
        // Hamburger Menu
        const hamburger = document.getElementById('hamburger');
        const mobileMenu = document.getElementById('mobileMenu');
        const mobileMenuOverlay = document.getElementById('mobileMenuOverlay');
        const body = document.body;

        function toggleMenu() {
            hamburger.classList.toggle('active');
            mobileMenu.classList.toggle('active');
            mobileMenuOverlay.classList.toggle('active');
            body.classList.toggle('menu-open');
        }

        hamburger.addEventListener('click', toggleMenu);
        mobileMenuOverlay.addEventListener('click', toggleMenu);

        // Close menu when clicking on a link
        document.querySelectorAll('.mobile-menu a').forEach(link => {
            link.addEventListener('click', () => {
                if (link.getAttribute('href') && link.getAttribute('href') !== '#') {
                    toggleMenu();
                }
            });
        });

        // Navbar scroll effect
        window.addEventListener('scroll', () => {
            const nav = document.querySelector('nav');
            if (window.scrollY > 50) {
                nav.style.background = 'rgba(0, 0, 0, 0.95)';
                nav.style.padding = '15px 40px';
            } else {
                nav.style.background = 'rgba(0, 0, 0, 0.8)';
                nav.style.padding = '20px 40px';
            }
        });

        // Phone swipe animation
        const swipeContainer = document.getElementById('swipeContainer');
        let currentScreen = 0;
        let animationInterval;

        function swipeToScreen(screenIndex) {
            currentScreen = screenIndex;
            swipeContainer.style.transform = `translateX(-${currentScreen * 100}%)`;
        }

        function startAnimation() {
            // Initial swipe to screen 2 after 7 seconds
            setTimeout(() => {
                swipeToScreen(1);
                
                // Then alternate between screens every 7 seconds
                animationInterval = setInterval(() => {
                    currentScreen = currentScreen === 0 ? 1 : 0;
                    swipeToScreen(currentScreen);
                }, 7000);
            }, 7000);
        }

        // Start the animation when page loads
        startAnimation();

        // Pause animation when user hovers over the phone (optional)
        const phoneScreen = document.querySelector('.phone-screen');
        phoneScreen.addEventListener('mouseenter', () => {
            if (animationInterval) {
                clearInterval(animationInterval);
            }
        });

        phoneScreen.addEventListener('mouseleave', () => {
            // Restart animation cycle
            animationInterval = setInterval(() => {
                currentScreen = currentScreen === 0 ? 1 : 0;
                swipeToScreen(currentScreen);
            }, 7000);
        });

        // Intersection Observer for animations
        const observerOptions = {
            threshold: 0.1,
            rootMargin: '0px 0px -50px 0px'
        };

        const observer = new IntersectionObserver((entries) => {
            entries.forEach(entry => {
                if (entry.isIntersecting) {
                    entry.target.style.animationPlayState = 'running';
                }
            });
        }, observerOptions);

        document.querySelectorAll('.fade-in').forEach(el => {
            el.style.animationPlayState = 'paused';
            observer.observe(el);
        });

        // Smooth scrolling
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                const target = document.querySelector(this.getAttribute('href'));
                if (target) {
                    target.scrollIntoView({
                        behavior: 'smooth',
                        block: 'start'
                    });
                }
            });
        });

        // Language Selector Functions
        function toggleLanguageMenu() {
            const menu = document.getElementById('langMenu');
            const button = document.querySelector('.bereal-lang-btn');
            
            menu.classList.toggle('active');
            button.classList.toggle('active');
        }

        function toggleLanguageMenuMobile() {
            const menu = document.getElementById('langMenuMobile');
            const button = document.querySelector('.mobile-menu .bereal-lang-btn');
            
            menu.classList.toggle('active');
            button.classList.toggle('active');
        }

        // Close menu when clicking outside
        document.addEventListener('click', function(e) {
            if (!e.target.closest('.bereal-language-selector')) {
                document.querySelectorAll('.bereal-lang-menu').forEach(menu => {
                    menu.classList.remove('active');
                });
                document.querySelectorAll('.bereal-lang-btn').forEach(btn => {
                    btn.classList.remove('active');
                });
            }
        });

        // Prevent menu close when clicking inside
        document.querySelectorAll('.bereal-lang-menu').forEach(menu => {
            menu.addEventListener('click', function(e) {
                e.stopPropagation();
            });
        });

        // Function to set locale (same as paid page)
        function setLocale(locale) {
            fetch(`/language/${locale}`, {
                method: 'GET',
                headers: {
                    'X-Requested-With': 'XMLHttpRequest',
                }
            }).then(() => {
                window.location.reload();
            });
        }

        // Hide desktop language selector on mobile
        function updateLanguageSelector() {
            const desktopSelector = document.getElementById('desktopLanguageSelector');
            if (window.innerWidth <= 768) {
                desktopSelector.style.display = 'none';
            } else {
                desktopSelector.style.display = 'block';
            }
        }

        updateLanguageSelector();
        window.addEventListener('resize', updateLanguageSelector);
    </script>
</body>
</html>