<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PayRankJobs - Find Jobs That Match Your True Worth</title>
    <link rel="icon" type="image/svg+xml" href="/logo.svg">
    <link rel="alternate icon" href="/logo.svg">
    
    <!-- REQUIRED: PayRankJobs Design System -->
    <link rel="stylesheet" href="/designsystem.css">
    
    <!-- Cookiebot - Must be first script -->
    <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="59ecdf52-2290-4916-adc5-141d27092190" data-blockingmode="auto" type="text/javascript"></script>
    
    <!-- Google Analytics with GDPR Consent Integration -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-98R5KRCTGC" data-cookieconsent="statistics"></script>
    <script data-cookieconsent="statistics">
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        
        // Initialize with consent denied by default (GDPR compliant)
        gtag('consent', 'default', {
            'analytics_storage': 'denied',
            'ad_storage': 'denied',
            'wait_for_update': 500
        });
        
        gtag('js', new Date());
        gtag('config', 'G-98R5KRCTGC', {
            'anonymize_ip': true, // GDPR requirement
            'cookie_flags': 'SameSite=None;Secure'
        });
        gtag('config', 'AW-17410099267');
        
        // Update consent when Cookiebot consent changes
        window.addEventListener('CookiebotOnConsentReady', function() {
            gtag('consent', 'update', {
                'analytics_storage': Cookiebot.consent.statistics ? 'granted' : 'denied'
            });
        });
    </script>
    
    <!-- Reddit Pixel with GDPR Consent Integration -->
    <script data-cookieconsent="marketing">
        function initRedditPixel() {
            const urlParams = new URLSearchParams(window.location.search);
            const utmSource = urlParams.get('utm_source');
            
            if (utmSource === 'reddit') {
                !function(w,d){if(!w.rdt){var p=w.rdt=function(){p.sendEvent?p.sendEvent.apply(p,arguments):p.callQueue.push(arguments)};p.callQueue=[];var t=d.createElement("script");t.src="https://www.redditstatic.com/ads/pixel.js",t.async=!0;var s=d.getElementsByTagName("script")[0];s.parentNode.insertBefore(t,s)}}(window,document);
                rdt('init','a2_hbx5v2ufiamh');
                rdt('track', 'PageVisit');
                console.log('Reddit Pixel fired with consent for utm_source=reddit');
            }
        }
        
        // Only initialize if marketing consent is granted
        window.addEventListener('CookiebotOnConsentReady', function() {
            if (Cookiebot.consent.marketing) {
                initRedditPixel();
            }
        });
    </script>
    <!-- End Reddit Pixel -->
    
    <!-- Facebook Pixel with GDPR Consent Integration -->
    <script data-cookieconsent="marketing">
        function initFacebookPixel() {
            !function(f,b,e,v,n,t,s)
            {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
            n.callMethod.apply(n,arguments):n.queue.push(arguments)};
            if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
            n.queue=[];t=b.createElement(e);t.async=!0;
            t.src=v;s=b.getElementsByTagName(e)[0];
            s.parentNode.insertBefore(t,s)}(window, document,'script',
            'https://connect.facebook.net/en_US/fbevents.js');
            
            fbq('init', '678363935263118');
            fbq('track', 'PageView');
        }
        
        // Only initialize if marketing consent is granted
        window.addEventListener('CookiebotOnConsentReady', function() {
            if (Cookiebot.consent.marketing) {
                initFacebookPixel();
            }
        });
        
        // Handle consent changes
        window.addEventListener('CookiebotOnDialogDisplay', function() {
            window.addEventListener('CookiebotOnAccept', function() {
                if (Cookiebot.consent.marketing && typeof fbq === 'undefined') {
                    initFacebookPixel();
                }
            });
        });
    </script>
    <noscript data-cookieconsent="marketing">
        <img height="1" width="1" style="display:none"
        src="https://www.facebook.com/tr?id=678363935263118&ev=PageView&noscript=1" />
    </noscript>
    <!-- End Facebook Pixel -->
</head>
<body>
    <!-- Professional Header -->
    <header class="header">
        <nav class="container header-nav">
            <div class="nav-left">
                <a href="/" style="display: flex; align-items: center; text-decoration: none;">
                    <svg class="logo" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg" style="height: 32px; width: auto;">
                        <rect width="40" height="40" rx="8" fill="#0D47A1"/>
                        <text x="20" y="28" font-family="Arial" font-size="20" font-weight="bold" text-anchor="middle" fill="white">PR</text>
                    </svg>
                    <span style="font-size: 20px; font-weight: 600; color: #0D47A1; margin-left: 12px;">PayRankJobs</span>
                </a>
            </div>
            <div class="nav-center hide-mobile">
                <a href="#how-it-works" style="color: #6C757D; text-decoration: none; font-weight: 500; transition: color 0.2s; margin: 0 16px;">How It Works</a>
                <a href="#features" style="color: #6C757D; text-decoration: none; font-weight: 500; transition: color 0.2s; margin: 0 16px;">Features</a>
                <a href="/blog" style="color: #6C757D; text-decoration: none; font-weight: 500; transition: color 0.2s; margin: 0 16px;">Blog</a>
                <a href="/pricing" style="color: #6C757D; text-decoration: none; font-weight: 500; transition: color 0.2s; margin: 0 16px;">Pricing</a>
                <a href="/faq" style="color: #6C757D; text-decoration: none; font-weight: 500; transition: color 0.2s; margin: 0 16px;">FAQ</a>
                <a href="/contact" style="color: #6C757D; text-decoration: none; font-weight: 500; transition: color 0.2s; margin: 0 16px;">Contact</a>
            </div>
            <div class="nav-right">
                <a href="/dashboard/" id="dashboardBtn" class="btn btn-secondary">Dashboard</a>
            </div>
        </nav>
    </header>

    <!-- Hero Section -->
    <section class="section" style="background: linear-gradient(180deg, #F8F9FA 0%, #FFFFFF 100%); padding: 80px 0; text-align: center;">
        <div class="container">
            <h1 style="font-size: 48px; font-weight: 700; color: #212529; margin-bottom: 16px; letter-spacing: -0.5px; line-height: 1.2;">Our mission is to maximize your salary.</h1>
            <p style="font-size: 20px; color: #6C757D; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto;">
                We find higher paying opportunities that match your skills, help you manage applications, generate cover letters, prepare for interviews, and provide detailed salary analysis to help you earn what you deserve.
            </p>
            <div id="heroButtons" style="display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;">
                <button class="btn btn-primary btn-large" onclick="document.getElementById('fileInput').click()" style="position: relative;">
                    <div>
                        Upload Your Resume
                        <div style="font-size: 12px; font-weight: 400; opacity: 0.9; margin-top: 2px;">Make sure it includes your email</div>
                    </div>
                </button>
                <button class="btn btn-secondary btn-large" onclick="showQuickSignup()">
                    <div>
                        Quick Signup
                        <div style="font-size: 12px; font-weight: 400; opacity: 0.9; margin-top: 2px;">Start without a resume</div>
                    </div>
                </button>
            </div>
            
            <!-- Quick Signup Form (initially hidden) -->
            <div id="quickSignupForm" style="display: none; margin-top: 32px; max-width: 500px; margin-left: auto; margin-right: auto; background: #F8F9FA; border-radius: 8px; padding: 24px;">
                <h3 style="font-size: 20px; font-weight: 600; color: #212529; margin-bottom: 16px; text-align: center;">Quick Signup</h3>
                <p style="font-size: 14px; color: #6C757D; margin-bottom: 20px; text-align: center;">Tell us about yourself and we'll find matching jobs immediately</p>
                
                <div class="form-group" style="margin-bottom: 16px;">
                    <label class="form-label" style="display: block; margin-bottom: 6px; font-weight: 500; color: #212529;">Email Address <span style="color: red;">*</span></label>
                    <input type="email" class="form-control" id="quickEmail"
                           placeholder="your.email@example.com" required
                           style="width: 100%; padding: 12px; border: 1px solid #DEE2E6; border-radius: 6px; font-size: 14px;">
                </div>

                <div class="form-group" style="margin-bottom: 16px;">
                    <label class="form-label" style="display: block; margin-bottom: 6px; font-weight: 500; color: #212529;">Location <span style="color: red;">*</span></label>
                    <input type="text" class="form-control" id="quickLocation"
                           placeholder="e.g., San Francisco, CA, USA" required
                           style="width: 100%; padding: 12px; border: 1px solid #DEE2E6; border-radius: 6px; font-size: 14px;">
                </div>
                
                <div class="form-group" style="margin-bottom: 16px;">
                    <label class="form-label" style="display: block; margin-bottom: 6px; font-weight: 500; color: #212529;">Minimum Desired Salary (Optional)</label>
                    <input type="number" class="form-control" id="quickSalary" 
                           placeholder="Enter in your local currency (e.g., 75000)" min="0" step="1000"
                           style="width: 100%; padding: 12px; border: 1px solid #DEE2E6; border-radius: 6px; font-size: 14px;">
                </div>
                
                <div class="form-group" style="margin-bottom: 20px;">
                    <label class="form-label" style="display: block; margin-bottom: 6px; font-weight: 500; color: #212529;">Tell us about yourself <span style="color: red;">*</span></label>
                    <textarea class="form-control" id="quickJobDescription"
                              placeholder="e.g., Software Engineer with 5 years experience in React, Node.js, and Python. Looking for backend or full-stack roles at tech companies."
                              rows="4" required
                              style="width: 100%; padding: 12px; border: 1px solid #DEE2E6; border-radius: 6px; font-size: 14px; resize: vertical;"></textarea>
                    <div style="font-size: 12px; color: #6C757D; margin-top: 4px;">Describe your experience, skills, and the type of role you want</div>
                </div>
                
                <div style="display: flex; gap: 12px; margin-bottom: 16px;">
                    <button class="btn btn-primary" style="flex: 1;" onclick="submitQuickSignup()">
                        <span id="quickSignupButtonText">Get Job Matches</span>
                    </button>
                    <button class="btn btn-secondary" onclick="hideQuickSignup()">Cancel</button>
                </div>
                
                <div style="font-size: 12px; color: #6C757D; text-align: center;">
                    We'll analyze your profile and send you personalized job matches within 24 hours
                </div>
            </div>
            
            <!-- File info section moved to hero -->
            <div id="fileInfo" style="display: none; margin-top: 32px; max-width: 500px; margin-left: auto; margin-right: auto;">
                <div style="background: #E3F2FD; border: 1px solid #90CAF9; border-radius: 6px; padding: 12px 16px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between;">
                    <div style="display: flex; align-items: center; gap: 12px;">
                        <svg style="width: 24px; height: 24px; color: #0D47A1;" fill="currentColor" viewBox="0 0 20 20">
                            <path fill-rule="evenodd" d="M4 4a2 2 0 00-2 2v8a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-5L9 2H4z" clip-rule="evenodd"/>
                        </svg>
                        <div>
                            <div id="fileName" style="font-weight: 600; color: #212529; font-size: 14px;">resume.pdf</div>
                            <div id="fileSize" style="color: #6C757D; font-size: 12px;">2.5 MB</div>
                        </div>
                    </div>
                    <button onclick="clearFile()" style="background: none; border: none; color: #6C757D; cursor: pointer; padding: 4px;">
                        <svg style="width: 20px; height: 20px;" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
                        </svg>
                    </button>
                </div>
                <div class="form-group">
                    <label class="form-label">Minimum Desired Salary (Optional)</label>
                    <input type="number" class="form-control" id="salaryInput" 
                           placeholder="e.g., 75000" min="0" step="1000">
                    <div class="form-hint">Help us find jobs that meet your salary expectations</div>
                </div>
                <button class="btn btn-primary" style="width: 100%;" onclick="uploadResume()">
                    <span id="uploadButtonText">Analyze My Resume</span>
                </button>
            </div>
        </div>
    </section>

    <!-- Upload Section -->
    <section class="section" id="upload" style="padding: 20px 0 60px 0; background: #FFFFFF;">
        <div class="container">
            <div style="max-width: 600px; margin: 0 auto;">
                <div id="uploadArea" style="background: #FFFFFF; border: 2px solid #DEE2E6; border-radius: 8px; padding: 48px; text-align: center; transition: all 0.3s; cursor: pointer;" 
                     onclick="document.getElementById('fileInput').click()" 
                     ondrop="dropHandler(event);" ondragover="dragOverHandler(event);" 
                     ondragleave="dragLeaveHandler(event);">
                    <svg style="width: 64px; height: 64px; margin: 0 auto 16px; opacity: 0.4;" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" 
                              d="M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"/>
                    </svg>
                    <div id="uploadText" style="font-size: 18px; font-weight: 600; color: #212529; margin-bottom: 8px;">Drop your resume here or click to browse</div>
                    <div id="uploadSubtext" style="color: #6C757D; font-size: 14px;">
                        Supports PDF, DOC, DOCX (Max 10MB)
                        <div style="color: #0D47A1; font-weight: 500; margin-top: 8px;">
                            ⚠️ Important: Your resume must include your email address for us to send you results
                        </div>
                    </div>
                </div>
                <input type="file" id="fileInput" style="display: none;" accept=".pdf,.doc,.docx" onchange="handleFileSelect(event)">
                
                <div class="alert alert-success" id="successMessage" style="display: none;">
                    <strong>Success!</strong> We're analyzing your resume and will email you personalized job matches within 24 hours.
                </div>
                
                <div style="display: flex; justify-content: center; align-items: center; gap: 32px; margin-top: 32px; padding-top: 32px; border-top: 1px solid #E5E7EB; flex-wrap: wrap;">
                    <div style="display: flex; align-items: center; gap: 8px; color: #6C757D; font-size: 14px;">
                        <svg style="width: 20px; height: 20px; opacity: 0.6;" fill="currentColor" viewBox="0 0 20 20">
                            <path fill-rule="evenodd" d="M2.166 4.999A11.954 11.954 0 0010 1.944 11.954 11.954 0 0017.834 5c.11.65.166 1.32.166 2.001 0 5.225-3.34 9.67-8 11.317C5.34 16.67 2 12.225 2 7c0-.682.057-1.35.166-2.001zm11.541 3.708a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"/>
                        </svg>
                        TLS Encrypted
                    </div>
                    <div style="display: flex; align-items: center; gap: 8px; color: #6C757D; font-size: 14px;">
                        <svg style="width: 20px; height: 20px; opacity: 0.6;" fill="currentColor" viewBox="0 0 20 20">
                            <path fill-rule="evenodd" d="M18 8a6 6 0 01-7.743 5.743L10 14l-1 1-1 1H6v2H2v-4l4.257-4.257A6 6 0 1118 8zm-6-4a1 1 0 100 2 2 2 0 012 2 1 1 0 102 0 4 4 0 00-4-4z" clip-rule="evenodd"/>
                        </svg>
                        Privacy Protected
                    </div>
                    <div style="display: flex; align-items: center; gap: 8px; color: #6C757D; font-size: 14px;">
                        <svg style="width: 20px; height: 20px; opacity: 0.6;" fill="currentColor" viewBox="0 0 20 20">
                            <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"/>
                        </svg>
                        GDPR Compliant
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Trust Signals -->
    <section class="section section-light" style="background: #F8F9FA; padding: 60px 0;">
        <div class="container">
            <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 48px; text-align: center;">
                <div>
                    <h3 style="font-size: 36px; font-weight: 700; color: #0D47A1; margin-bottom: 8px;">$44.4B+</h3>
                    <p style="color: #6C757D; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px;">Total Salaries Matched</p>
                </div>
                <div>
                    <h3 style="font-size: 36px; font-weight: 700; color: #0D47A1; margin-bottom: 8px;">384,124+</h3>
                    <p style="color: #6C757D; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px;">Jobs analyzed</p>
                </div>
                <div>
                    <h3 style="font-size: 36px; font-weight: 700; color: #0D47A1; margin-bottom: 8px;">103,617+</h3>
                    <p style="color: #6C757D; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px;">Companies</p>
                </div>
                <div>
                    <h3 style="font-size: 36px; font-weight: 700; color: #0D47A1; margin-bottom: 8px;">24</h3>
                    <p style="color: #6C757D; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px;">Countries</p>
                </div>
            </div>
        </div>
    </section>

    <!-- How It Works -->
    <section class="section" id="how-it-works" style="padding: 80px 0; background: #FFFFFF;">
        <div class="container">
            <div class="section-header">
                <h2 style="font-size: 36px; font-weight: 700; color: #212529; margin-bottom: 16px;">How PayRankJobs Works</h2>
                <p style="font-size: 18px; color: #6C757D; max-width: 600px; margin: 0 auto;">Our AI-powered platform analyzes your experience and matches you with high-paying opportunities</p>
            </div>
            <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 48px; margin-top: 48px;">
                <div style="text-align: center;">
                    <div style="width: 56px; height: 56px; background: linear-gradient(135deg, #0D47A1, #1565C0); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-weight: bold; font-size: 24px; box-shadow: 0 4px 12px rgba(13,71,161,0.3);">1</div>
                    <h3 style="font-size: 20px; margin-bottom: 12px; color: #212529;">Upload Your Resume</h3>
                    <p style="color: #6C757D; font-size: 14px; line-height: 1.6;">Securely upload your resume in PDF format. Your data is encrypted and protected.</p>
                </div>
                <div style="text-align: center;">
                    <div style="width: 56px; height: 56px; background: linear-gradient(135deg, #0D47A1, #1565C0); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-weight: bold; font-size: 24px; box-shadow: 0 4px 12px rgba(13,71,161,0.3);">2</div>
                    <h3 style="font-size: 20px; margin-bottom: 12px; color: #212529;">AI Analysis</h3>
                    <p style="color: #6C757D; font-size: 14px; line-height: 1.6;">Our advanced AI analyzes your skills, experience, and market value to identify your true worth.</p>
                </div>
                <div style="text-align: center;">
                    <div style="width: 56px; height: 56px; background: linear-gradient(135deg, #0D47A1, #1565C0); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-weight: bold; font-size: 24px; box-shadow: 0 4px 12px rgba(13,71,161,0.3);">3</div>
                    <h3 style="font-size: 20px; margin-bottom: 12px; color: #212529;">Job Matching</h3>
                    <p style="color: #6C757D; font-size: 14px; line-height: 1.6;">Using hundreds of data points from your resume, we match you with positions that align with your skills and meet your salary expectations.</p>
                </div>
                <div style="text-align: center;">
                    <div style="width: 56px; height: 56px; background: linear-gradient(135deg, #0D47A1, #1565C0); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-weight: bold; font-size: 24px; box-shadow: 0 4px 12px rgba(13,71,161,0.3);">4</div>
                    <h3 style="font-size: 20px; margin-bottom: 12px; color: #212529;">Get Complete Support</h3>
                    <p style="color: #6C757D; font-size: 14px; line-height: 1.6;">Receive personalized job matches, AI-generated cover letters, and interview preparation plans to maximize your success.</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Features Section -->
    <section class="section section-light" id="features" style="background: #F8F9FA; padding: 80px 0;">
        <div class="container">
            <div class="section-header">
                <h2 style="font-size: 36px; font-weight: 700; color: #212529; margin-bottom: 16px;">Why Choose PayRankJobs</h2>
                <p style="font-size: 18px; color: #6C757D; max-width: 600px; margin: 0 auto;">Advanced features designed to maximize your career potential</p>
            </div>
            <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 48px;">
                <div class="card">
                    <div style="width: 48px; height: 48px; background: #E3F2FD; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 24px;">🎯</div>
                    <h3 style="font-size: 18px; margin-bottom: 12px; color: #212529;">Precision Matching</h3>
                    <p style="color: #6C757D; font-size: 14px; line-height: 1.6;">Our AI analyzes hundreds of data points to find jobs that perfectly match your skills and experience level.</p>
                </div>
                <div class="card">
                    <div style="width: 48px; height: 48px; background: #E3F2FD; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 24px;">💰</div>
                    <h3 style="font-size: 18px; margin-bottom: 12px; color: #212529;">Salary Intelligence</h3>
                    <p style="color: #6C757D; font-size: 14px; line-height: 1.6;">Get real salary data and insights to ensure you're paid what you're worth in today's market.</p>
                </div>
                <div class="card">
                    <div style="width: 48px; height: 48px; background: #E3F2FD; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 24px;">📝</div>
                    <h3 style="font-size: 18px; margin-bottom: 12px; color: #212529;">AI Cover Letters</h3>
                    <p style="color: #6C757D; font-size: 14px; line-height: 1.6;">Get personalized, professional cover letters generated by AI for each job match, tailored to your background.</p>
                </div>
                <div class="card">
                    <div style="width: 48px; height: 48px; background: #E3F2FD; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 24px;">🎤</div>
                    <h3 style="font-size: 18px; margin-bottom: 12px; color: #212529;">Interview Preparation</h3>
                    <p style="color: #6C757D; font-size: 14px; line-height: 1.6;">Receive customized interview prep plans with likely questions, key talking points, and strategy guidance.</p>
                </div>
                <div class="card">
                    <div style="width: 48px; height: 48px; background: #E3F2FD; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 24px;">🔒</div>
                    <h3 style="font-size: 18px; margin-bottom: 12px; color: #212529;">Complete Privacy</h3>
                    <p style="color: #6C757D; font-size: 14px; line-height: 1.6;">Your data is encrypted and never shared. We delete your resume after processing.</p>
                </div>
                <div class="card">
                    <div style="width: 48px; height: 48px; background: #E3F2FD; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 24px;">⚡</div>
                    <h3 style="font-size: 18px; margin-bottom: 12px; color: #212529;">Fast Results</h3>
                    <p style="color: #6C757D; font-size: 14px; line-height: 1.6;">Receive your personalized job matches within 30 minutes of uploading your resume.</p>
                </div>
                <div class="card">
                    <div style="width: 48px; height: 48px; background: #E3F2FD; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 24px;">🌍</div>
                    <h3 style="font-size: 18px; margin-bottom: 12px; color: #212529;">Global Opportunities</h3>
                    <p style="color: #6C757D; font-size: 14px; line-height: 1.6;">Access job opportunities from companies worldwide, including remote positions.</p>
                </div>
                <div class="card">
                    <div style="width: 48px; height: 48px; background: #E3F2FD; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 24px;">📊</div>
                    <h3 style="font-size: 18px; margin-bottom: 12px; color: #212529;">Market Insights</h3>
                    <p style="color: #6C757D; font-size: 14px; line-height: 1.6;">Understand your market value with detailed salary analysis and industry benchmarks.</p>
                </div>
            </div>
        </div>
    </section>

    <!-- About CTA Section -->
    <section style="background: linear-gradient(135deg, #0D47A1 0%, #1976D2 100%); padding: 60px 0; text-align: center;">
        <div class="container">
            <h2 style="color: white; font-size: 32px; margin-bottom: 16px;">Want to Learn More About PayRankJobs?</h2>
            <p style="color: rgba(255, 255, 255, 0.9); font-size: 18px; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto;">
                Discover how we're revolutionizing the job search experience with AI-powered salary insights and personalized job matching.
            </p>
            <a href="/about.html" style="display: inline-block; background: white; color: #0D47A1; padding: 14px 32px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 16px; transition: transform 0.2s, box-shadow 0.2s;">
                Learn About Our Mission →
            </a>
        </div>
    </section>

    <!-- Professional Footer -->
    <footer class="footer">
        <div class="container">
            <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 48px; margin-bottom: 32px;">
                <div>
                    <h4 style="font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; opacity: 0.8;">Product</h4>
                    <a href="#how-it-works" style="display: block; color: #ADB5BD; text-decoration: none; margin-bottom: 8px; font-size: 14px; transition: color 0.2s;">How It Works</a>
                    <a href="/pricing" style="display: block; color: #ADB5BD; text-decoration: none; margin-bottom: 8px; font-size: 14px; transition: color 0.2s;">Pricing</a>
                    <a href="#features" style="display: block; color: #ADB5BD; text-decoration: none; margin-bottom: 8px; font-size: 14px; transition: color 0.2s;">Features</a>
                    <a href="/api" style="display: block; color: #ADB5BD; text-decoration: none; margin-bottom: 8px; font-size: 14px; transition: color 0.2s;">API</a>
                </div>
                <div>
                    <h4 style="font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; opacity: 0.8;">Company</h4>
                    <a href="/about.html" style="display: block; color: #ADB5BD; text-decoration: none; margin-bottom: 8px; font-size: 14px; transition: color 0.2s;">About Us</a>
                    <a href="/careers" style="display: block; color: #ADB5BD; text-decoration: none; margin-bottom: 8px; font-size: 14px; transition: color 0.2s;">Careers</a>
                    <a href="/blog" style="display: block; color: #ADB5BD; text-decoration: none; margin-bottom: 8px; font-size: 14px; transition: color 0.2s;">Blog</a>
                    <a href="/contact" style="display: block; color: #ADB5BD; text-decoration: none; margin-bottom: 8px; font-size: 14px; transition: color 0.2s;">Contact</a>
                </div>
                <div>
                    <h4 style="font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; opacity: 0.8;">Resources</h4>
                    <a href="/faq" style="display: block; color: #ADB5BD; text-decoration: none; margin-bottom: 8px; font-size: 14px; transition: color 0.2s;">FAQ</a>
                    <a href="/guides" style="display: block; color: #ADB5BD; text-decoration: none; margin-bottom: 8px; font-size: 14px; transition: color 0.2s;">Career Guides</a>
                    <a href="/salary-calculator" style="display: block; color: #ADB5BD; text-decoration: none; margin-bottom: 8px; font-size: 14px; transition: color 0.2s;">Salary Calculator</a>
                    <a href="/resume-tips" style="display: block; color: #ADB5BD; text-decoration: none; margin-bottom: 8px; font-size: 14px; transition: color 0.2s;">Resume Tips</a>
                </div>
                <div>
                    <h4 style="font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; opacity: 0.8;">Legal</h4>
                    <a href="/privacy" style="display: block; color: #ADB5BD; text-decoration: none; margin-bottom: 8px; font-size: 14px; transition: color 0.2s;">Privacy Policy</a>
                    <a href="/terms" style="display: block; color: #ADB5BD; text-decoration: none; margin-bottom: 8px; font-size: 14px; transition: color 0.2s;">Terms of Service</a>
                    <a href="/cookies" style="display: block; color: #ADB5BD; text-decoration: none; margin-bottom: 8px; font-size: 14px; transition: color 0.2s;">Cookie Policy</a>
                    <a href="/privacy" style="display: block; color: #ADB5BD; text-decoration: none; margin-bottom: 8px; font-size: 14px; transition: color 0.2s;">GDPR</a>
                </div>
            </div>
            <div style="border-top: 1px solid #343A40; padding-top: 24px; margin-bottom: 24px;">
                <div style="text-align: center; margin-bottom: 20px;">
                    <h4 style="font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; opacity: 0.8; color: #ADB5BD;">Follow Us</h4>
                    <div style="display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;">
                        <a href="https://x.com/PayRankJobs" target="_blank" rel="noopener noreferrer" style="color: #ADB5BD; text-decoration: none; transition: color 0.2s;" title="X (Twitter)">
                            <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
                                <path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/>
                            </svg>
                        </a>
                        <a href="https://www.linkedin.com/company/payrankjobs" target="_blank" rel="noopener noreferrer" style="color: #ADB5BD; text-decoration: none; transition: color 0.2s;" title="LinkedIn">
                            <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
                                <path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/>
                            </svg>
                        </a>
                        <a href="https://www.reddit.com/r/payrankjobs/" target="_blank" rel="noopener noreferrer" style="color: #ADB5BD; text-decoration: none; transition: color 0.2s;" title="Reddit">
                            <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
                                <path d="M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z"/>
                            </svg>
                        </a>
                        <a href="https://www.facebook.com/people/PayRank-Jobs/61578943405040/" target="_blank" rel="noopener noreferrer" style="color: #ADB5BD; text-decoration: none; transition: color 0.2s;" title="Facebook">
                            <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
                                <path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/>
                            </svg>
                        </a>
                        <a href="https://www.instagram.com/payrankjobs/" target="_blank" rel="noopener noreferrer" style="color: #ADB5BD; text-decoration: none; transition: color 0.2s;" title="Instagram">
                            <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
                                <path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zM5.838 12a6.162 6.162 0 1 1 12.324 0 6.162 6.162 0 0 1-12.324 0zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm4.965-10.405a1.44 1.44 0 1 1 2.881.001 1.44 1.44 0 0 1-2.881-.001z"/>
                            </svg>
                        </a>
                        <a href="https://www.tiktok.com/@payrankjobs" target="_blank" rel="noopener noreferrer" style="color: #ADB5BD; text-decoration: none; transition: color 0.2s;" title="TikTok">
                            <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
                                <path d="M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"/>
                            </svg>
                        </a>
                    </div>
                </div>
                <div style="text-align: center; color: #6C757D; font-size: 14px;">
                    <p>&copy; 2024 PayRankJobs. All rights reserved.</p>
                </div>
            </div>
        </div>
    </footer>

    <script>
        // Check session and handle dashboard button
        document.addEventListener('DOMContentLoaded', function() {
            const dashboardBtn = document.getElementById('dashboardBtn');
            if (dashboardBtn) {
                dashboardBtn.addEventListener('click', function(e) {
                    e.preventDefault();
                    const session = localStorage.getItem('session');
                    
                    if (session) {
                        try {
                            const sessionData = JSON.parse(session);
                            if (sessionData && sessionData.sessionId) {
                                // Session exists, go to dashboard
                                window.location.href = '/dashboard/';
                            } else {
                                // Invalid session, go to login
                                localStorage.removeItem('session');
                                window.location.href = '/login.html';
                            }
                        } catch (error) {
                            // Invalid session data, go to login
                            localStorage.removeItem('session');
                            window.location.href = '/login.html';
                        }
                    } else {
                        // No session, go to login
                        window.location.href = '/login.html';
                    }
                });
            }
        });

        let selectedFile = null;
        
        function handleFileSelect(event) {
            const file = event.target.files[0];
            if (file) {
                selectedFile = file;
                showFileInfo(file);
            }
        }
        
        function showFileInfo(file) {
            // Hide upload area when file is selected
            document.getElementById('uploadArea').style.display = 'none';
            // Hide hero buttons when file is selected
            document.getElementById('heroButtons').style.display = 'none';
            // Show file info section
            document.getElementById('fileInfo').style.display = 'block';
            document.getElementById('fileName').textContent = file.name;
            document.getElementById('fileSize').textContent = `${(file.size / 1024 / 1024).toFixed(2)} MB`;
        }
        
        function clearFile() {
            selectedFile = null;
            document.getElementById('fileInput').value = '';
            // Hide file info section
            document.getElementById('fileInfo').style.display = 'none';
            // Show upload area again
            document.getElementById('uploadArea').style.display = 'flex';
            // Show hero buttons again
            document.getElementById('heroButtons').style.display = 'flex';
            document.getElementById('uploadText').textContent = 'Drop your resume here or click to browse';
            document.getElementById('uploadSubtext').innerHTML = `
                Supports PDF, DOC, DOCX (Max 10MB)
                <div style="color: #0D47A1; font-weight: 500; margin-top: 8px;">
                    ⚠️ Important: Your resume must include your email address for us to send you results
                </div>
            `;
        }
        
        function dragOverHandler(ev) {
            ev.preventDefault();
            document.getElementById('uploadArea').style.borderColor = '#0D47A1';
            document.getElementById('uploadArea').style.backgroundColor = '#F0F8FF';
        }
        
        function dragLeaveHandler(ev) {
            document.getElementById('uploadArea').style.borderColor = '#DEE2E6';
            document.getElementById('uploadArea').style.backgroundColor = '#FFFFFF';
        }
        
        function dropHandler(ev) {
            ev.preventDefault();
            dragLeaveHandler(ev);
            
            if (ev.dataTransfer.items) {
                for (var i = 0; i < ev.dataTransfer.items.length; i++) {
                    if (ev.dataTransfer.items[i].kind === 'file') {
                        var file = ev.dataTransfer.items[i].getAsFile();
                        selectedFile = file;
                        showFileInfo(file);
                        break;
                    }
                }
            }
        }
        
        async function uploadResume() {
            if (!selectedFile) {
                alert('Please select a resume file');
                return;
            }
            
            const uploadButton = document.querySelector('#uploadButtonText');
            uploadButton.innerHTML = '<span style="display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: white; animation: spin 0.8s ease-in-out infinite; margin-right: 8px;"></span>Processing...';
            uploadButton.parentElement.disabled = true;
            
            // Add spinner animation
            const style = document.createElement('style');
            style.textContent = '@keyframes spin { to { transform: rotate(360deg); } }';
            document.head.appendChild(style);
            
            const formData = new FormData();
            formData.append('resume', selectedFile);
            
            const salary = document.getElementById('salaryInput').value;
            if (salary) {
                formData.append('minimum_salary', salary);
            }
            
            // Track utm_source if present
            const urlParams = new URLSearchParams(window.location.search);
            const utmSource = urlParams.get('utm_source');
            if (utmSource) {
                formData.append('utm_source', utmSource);
            }
            
            try {
                const response = await fetch('/api/upload-resume', {
                    method: 'POST',
                    body: formData
                });
                
                const result = await response.json();
                
                if (response.ok && result.success) {
                    // Hide upload area and show success message
                    document.getElementById('uploadArea').style.display = 'none';
                    document.getElementById('fileInfo').style.display = 'none';
                    document.getElementById('successMessage').style.display = 'block';
                    
                    // Track conversion
                    if (typeof gtag !== 'undefined') {
                        gtag('event', 'conversion', {
                            'event_category': 'Resume',
                            'event_label': 'Upload Success'
                        });
                    }
                    
                    // Fire Facebook conversion if from Facebook
                    if (utmSource === 'facebook' && typeof fbq !== 'undefined') {
                        fbq('track', 'Lead');
                    }
                    
                    // Redirect to thank you page after 2 seconds, preserving utm_source
                    setTimeout(() => {
                        const redirectUrl = utmSource ? `/thank-you.html?utm_source=${utmSource}` : '/thank-you.html';
                        window.location.href = redirectUrl;
                    }, 2000);
                } else {
                    const errorMessage = result.error || result.message || 'Upload failed';
                    alert('Upload failed: ' + errorMessage);
                    uploadButton.innerHTML = 'Analyze My Resume';
                    uploadButton.parentElement.disabled = false;
                }
            } catch (error) {
                alert('Upload failed: ' + error.message);
                uploadButton.innerHTML = 'Analyze My Resume';
                uploadButton.parentElement.disabled = false;
            }
        }

        // Quick signup functions
        function showQuickSignup() {
            document.getElementById('heroButtons').style.display = 'none';
            document.getElementById('quickSignupForm').style.display = 'block';
            // Scroll to form
            document.getElementById('quickSignupForm').scrollIntoView({ behavior: 'smooth' });
        }
        
        function hideQuickSignup() {
            document.getElementById('quickSignupForm').style.display = 'none';
            document.getElementById('heroButtons').style.display = 'flex';
        }
        
        async function submitQuickSignup() {
            const email = document.getElementById('quickEmail').value.trim();
            const location = document.getElementById('quickLocation').value.trim();
            const salary = document.getElementById('quickSalary').value;
            const jobDescription = document.getElementById('quickJobDescription').value.trim();
            
            // Validation
            if (!email || !location || !jobDescription) {
                alert('Please fill in all required fields');
                return;
            }
            
            if (!email.includes('@') || !email.includes('.')) {
                alert('Please enter a valid email address');
                return;
            }
            
            const submitButton = document.getElementById('quickSignupButtonText');
            const originalText = submitButton.textContent;
            submitButton.innerHTML = '<span style="display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: white; animation: spin 0.8s ease-in-out infinite; margin-right: 8px;"></span>Processing...';
            submitButton.parentElement.disabled = true;
            
            try {
                const requestData = {
                    email: email,
                    location: location,
                    jobDescription: jobDescription
                };
                
                if (salary) {
                    requestData.salary = parseInt(salary);
                }
                
                const response = await fetch('/api/quick-signup', {
                    method: 'POST',
                    headers: {
                        'Content-Type': 'application/json'
                    },
                    body: JSON.stringify(requestData)
                });
                
                const result = await response.json();
                
                if (response.ok && result.success) {
                    // Hide quick signup form and show success message
                    document.getElementById('quickSignupForm').style.display = 'none';
                    document.getElementById('successMessage').style.display = 'block';
                    
                    // Track conversion
                    if (typeof gtag !== 'undefined') {
                        gtag('event', 'conversion', {
                            'event_category': 'Quick Signup',
                            'event_label': 'Signup Success'
                        });
                    }
                    
                    // Track utm_source if present
                    const urlParams = new URLSearchParams(window.location.search);
                    const utmSource = urlParams.get('utm_source');
                    
                    // Fire conversion pixels if applicable
                    if (utmSource === 'facebook' && typeof fbq !== 'undefined') {
                        fbq('track', 'Lead');
                    }
                    
                    // Redirect to thank you page after 2 seconds
                    setTimeout(() => {
                        const redirectUrl = utmSource ? `/thank-you.html?utm_source=${utmSource}` : '/thank-you.html';
                        window.location.href = redirectUrl;
                    }, 2000);
                } else {
                    const errorMessage = result.error || 'Quick signup failed';
                    alert('Signup failed: ' + errorMessage);
                    submitButton.textContent = originalText;
                    submitButton.parentElement.disabled = false;
                }
            } catch (error) {
                alert('Signup failed: ' + error.message);
                submitButton.textContent = originalText;
                submitButton.parentElement.disabled = false;
            }
        }

        // Smooth scrolling for anchor links
        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'
                    });
                }
            });
        });
    </script>
<!-- Cloudflare Pages Analytics --><script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "ebc8f939e03b4c46ac0ed0a9c2e2d25c"}'></script><!-- Cloudflare Pages Analytics --></body>
</html>
