<?php
require_once 'header.php';
?>

<div class="app-page-container">
    <div class="app-hero">
        <div class="app-hero-content">
            <h1 class="app-title"><?php echo __('app_hero_title', 'NovaEx App'); ?></h1>
            <p class="app-subtitle"><?php echo __('app_hero_subtitle', 'Trade anywhere, anytime. The world\'s leading crypto exchange is in your pocket.'); ?></p>
            
            <!-- Mobile Buttons (Visible only on mobile) -->
            <div class="mobile-download-buttons">
                <a href="#" class="btn-app-download">
                    <i class="fab fa-apple"></i>
                    <span>App Store</span>
                </a>
                <a href="#" class="btn-app-download">
                    <i class="fab fa-google-play"></i>
                    <span>Google Play</span>
                </a>
                <a href="#" class="btn-app-download">
                    <i class="fas fa-android"></i>
                    <span>Android APK</span>
                </a>
            </div>

            <!-- Desktop QR Section (Visible only on desktop) -->
            <div class="desktop-qr-section">
                <div class="qr-container">
                    <img src="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=https://novaex.com/app" alt="QR Code">
                </div>
                <div class="qr-text">
                    <p style="font-weight: bold; font-size: 1.1rem; margin-bottom: 5px;"><?php echo __('scan_to_download', 'Scan to Download'); ?></p>
                    <p style="color: var(--text-muted); font-size: 0.9rem;"><?php echo __('ios_android_support', 'iOS & Android support'); ?></p>
                </div>
            </div>
        </div>
        
        <div class="app-hero-image">
            <!-- Mockup image of a phone -->
            <div class="phone-mockup">
                <div class="phone-screen">
                    <div class="app-mockup-content">
                        <div class="app-mockup-header">
                            <div class="logo-text" style="font-size: 1.2rem;">NovaEx</div>
                            <i class="fas fa-user-circle"></i>
                        </div>
                        <div class="app-mockup-balance">
                            <p style="color: #848e9c; font-size: 0.8rem;">Total Balance</p>
                            <h3>$ 48,250.42</h3>
                        </div>
                        <div class="app-mockup-actions">
                            <div class="action-item"><i class="fas fa-plus-circle"></i><span>Deposit</span></div>
                            <div class="action-item"><i class="fas fa-arrow-circle-up"></i><span>Withdraw</span></div>
                            <div class="action-item"><i class="fas fa-exchange-alt"></i><span>Transfer</span></div>
                        </div>
                        <div class="app-mockup-list">
                            <div class="list-item">
                                <div style="display:flex; align-items:center; gap:10px;">
                                    <div class="coin-icon" style="background: #f3ba2f;">B</div>
                                    <div>BTC</div>
                                </div>
                                <div style="text-align:right;">
                                    <div>$ 43,251.20</div>
                                    <div style="color: #00c087;">+2.45%</div>
                                </div>
                            </div>
                            <div class="list-item">
                                <div style="display:flex; align-items:center; gap:10px;">
                                    <div class="coin-icon" style="background: #627eea;">E</div>
                                    <div>ETH</div>
                                </div>
                                <div style="text-align:right;">
                                    <div>$ 2,541.10</div>
                                    <div style="color: #f6465d;">-0.15%</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="app-features">
        <div class="feature-card">
            <i class="fas fa-bolt"></i>
            <h4><?php echo __('feature_fast', 'Fast & Reliable'); ?></h4>
            <p><?php echo __('feature_fast_desc', 'High-speed matching engine for lightning-fast trades.'); ?></p>
        </div>
        <div class="feature-card">
            <i class="fas fa-shield-alt"></i>
            <h4><?php echo __('feature_secure', 'Bank-Grade Security'); ?></h4>
            <p><?php echo __('feature_secure_desc', 'Advanced encryption and multi-sig wallets to protect your funds.'); ?></p>
        </div>
        <div class="feature-card">
            <i class="fas fa-headset"></i>
            <h4><?php echo __('feature_support', '24/7 Support'); ?></h4>
            <p><?php echo __('feature_support_desc', 'Our dedicated support team is always here to help you.'); ?></p>
        </div>
    </div>
</div>

<style>
    .app-page-container {
        min-height: 100vh;
        background: radial-gradient(circle at top right, #1e2329 0%, #0b0e11 100%);
        color: white;
        padding: 100px 5% 50px;
    }
    
    .app-hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
        gap: 50px;
    }
    
    .app-hero-content {
        flex: 1;
    }
    
    .app-title {
        font-size: 4rem;
        font-weight: 800;
        margin-bottom: 20px;
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .app-subtitle {
        font-size: 1.5rem;
        color: #848e9c;
        margin-bottom: 40px;
        line-height: 1.4;
    }
    
    /* Mobile buttons */
    .mobile-download-buttons {
        display: none;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-app-download {
        background: #2b3139;
        color: white;
        padding: 15px 25px;
        border-radius: 12px;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 15px;
        font-size: 1.1rem;
        font-weight: 600;
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }
    
    .btn-app-download:hover {
        background: #1e2329;
        border-color: #4facfe;
        transform: translateY(-2px);
    }
    
    .btn-app-download i {
        font-size: 1.5rem;
        color: #4facfe;
    }
    
    /* Desktop QR */
    .desktop-qr-section {
        display: flex;
        align-items: center;
        gap: 20px;
        background: rgba(255,255,255,0.05);
        padding: 20px;
        border-radius: 16px;
        border: 1px solid rgba(255,255,255,0.1);
        width: fit-content;
    }
    
    .qr-container {
        background: white;
        padding: 10px;
        border-radius: 10px;
    }
    
    .qr-container img {
        display: block;
    }
    
    /* Phone Mockup */
    .app-hero-image {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .phone-mockup {
        width: 320px;
        height: 640px;
        background: #000;
        border-radius: 40px;
        border: 12px solid #2b3139;
        position: relative;
        box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    }
    
    .phone-mockup::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 150px;
        height: 25px;
        background: #2b3139;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        z-index: 2;
    }
    
    .phone-screen {
        width: 100%;
        height: 100%;
        background: #0b0e11;
        border-radius: 28px;
        overflow: hidden;
        padding: 40px 15px 20px;
    }
    
    .app-mockup-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }
    
    .app-mockup-balance {
        margin-bottom: 30px;
    }
    
    .app-mockup-actions {
        display: flex;
        justify-content: space-around;
        margin-bottom: 40px;
    }
    
    .action-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        font-size: 0.7rem;
        color: #848e9c;
    }
    
    .action-item i {
        font-size: 1.2rem;
        color: #4facfe;
    }
    
    .app-mockup-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .list-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.85rem;
    }
    
    .coin-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }
    
    /* Features */
    .app-features {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 1200px;
        margin: 100px auto 0;
    }
    
    .feature-card {
        background: rgba(255,255,255,0.03);
        padding: 40px;
        border-radius: 24px;
        text-align: center;
        transition: all 0.3s ease;
        border: 1px solid rgba(255,255,255,0.05);
    }
    
    .feature-card:hover {
        background: rgba(255,255,255,0.05);
        transform: translateY(-10px);
        border-color: rgba(79, 172, 254, 0.3);
    }
    
    .feature-card i {
        font-size: 2.5rem;
        color: #4facfe;
        margin-bottom: 20px;
    }
    
    .feature-card h4 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .feature-card p {
        color: #848e9c;
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Responsive */
    @media (max-width: 992px) {
        .app-hero {
            flex-direction: column;
            text-align: center;
        }
        
        .app-hero-content {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .desktop-qr-section {
            display: none;
        }
        
        .mobile-download-buttons {
            display: flex;
            width: 100%;
            max-width: 300px;
        }
        
        .app-title {
            font-size: 3rem;
        }
        
        .app-features {
            grid-template-columns: 1fr;
        }
    }
</style>

<?php
require_once 'footer.php';
?>
