/* Elite Design System - Red/Black Premium Theme */
:root {
    /* Core Colors */
    --elite-red: #ff0000;
    --elite-red-glow: rgba(255, 0, 0, 0.6);
    --elite-black: #0a0a0a;
    --elite-dark: #121212;
    --elite-dark-elevated: #1a1a1a;
    --elite-text-main: #ffffff;
    --elite-text-muted: #a0a0a0;

    /* Gradients */
    --elite-gradient-main: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    --elite-gradient-red: linear-gradient(135deg, #ff0000 0%, #990000 100%);
    --elite-gradient-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);

    /* Effects */
    --glass-blur: blur(12px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --neon-shadow: 0 0 20px rgba(255, 0, 0, 0.4);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --safe-bottom: env(safe-area-inset-bottom, 20px);
}

/* Global Reset & Typography */
html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Inter', sans-serif;
    background-color: var(--elite-black);
    color: var(--elite-text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--elite-gradient-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    /* iOS Support */
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Responsive Grid System */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
    box-sizing: border-box;
}

.col-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 15px;
    box-sizing: border-box;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Tables */
.elite-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.elite-table th {
    text-align: left;
    padding: 16px;
    color: var(--elite-text-muted);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.elite-table td {
    padding: 16px;
    color: var(--elite-text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.elite-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-block;
}

.status-new {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.status-seen {
    background: rgba(0, 113, 227, 0.1);
    color: #0071e3;
    border: 1px solid rgba(0, 113, 227, 0.2);
}

.status-working {
    background: rgba(255, 159, 10, 0.1);
    color: #ff9f0a;
    border: 1px solid rgba(255, 159, 10, 0.2);
}

.status-completed {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

/* Buttons */
.btn-elite {
    background: var(--elite-red);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--neon-shadow);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-elite:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
    background: #ff1a1a;
}

.btn-elite-outline {
    background: transparent;
    border: 1px solid var(--elite-red);
    color: var(--elite-red);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-elite-outline:hover {
    background: rgba(255, 0, 0, 0.1);
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Mobile & Tablet Optimizations */
@media (max-width: 1024px) {
    .col-3 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 768px) {

    .col-3,
    .col-4,
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    h1 {
        font-size: 32px !important;
    }

    h2 {
        font-size: 28px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .col-3,
    .col-4,
    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 24px;
    }

    .pricing-grid,
    .testimonials-grid,
    .steps-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-title {
        font-size: 36px !important;
        line-height: 1.2;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .nav-links {
        display: none;
        /* Hide standard nav on mobile */
    }

    .mobile-menu-toggle {
        display: block !important;
    }
}

/* iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {

    /* Touch target sizing */
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Safe Area */
}

/* ===== NAVIGATION & UX ENHANCEMENTS ===== */

/* 1. Fixed Navigation */
.marketing-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    background: transparent;
    padding: 20px 0;
}

.marketing-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Scrolled State (Triggered by JS) */
.marketing-nav.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.marketing-nav.scrolled .nav-logo img {
    height: 45px;
    /* Shrink logo slightly */
}

/* 2. Nav Links Active State */
.nav-links a.active {
    color: var(--elite-red);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--elite-red);
    box-shadow: 0 0 10px var(--elite-red);
}

/* 3. Back To Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--elite-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: none;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    pointer-events: none;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
    background: #ff1a1a;
}