/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Newegg-inspired color palette */
    --newegg-orange: #FF6600;
    --newegg-orange-dark: #E55A00;
    --newegg-orange-light: #FF8533;
    --newegg-black: #0A0A0A;
    --newegg-dark: #1A1A1A;
    --newegg-gray: #2A2A2A;
    --newegg-gray-light: #3A3A3A;
    --newegg-text: #FFFFFF;
    --newegg-text-secondary: #CCCCCC;
    --newegg-text-muted: #999999;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
}

body {
    font-family: var(--font-primary);
    background-color: var(--newegg-black);
    color: var(--newegg-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 102, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--newegg-text);
    white-space: nowrap;
    flex-wrap: nowrap;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.nav-brand a:hover {
    opacity: 0.8;
}

.nav-brand .logo {
    font-size: 1.5rem;
}

.nav-brand .newegg-logo {
    max-height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 2px rgba(255, 102, 0, 0.3)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.1));
    padding: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-brand .newegg-logo:hover {
    filter: drop-shadow(0 0 4px rgba(255, 102, 0, 0.5)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
    background: rgba(255, 255, 255, 0.08);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--newegg-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: var(--spacing-xs) var(--spacing-sm);
    display: block;
}

.nav-menu a:hover:not(.btn-primary),
.nav-menu a.active:not(.btn-primary) {
    color: var(--newegg-orange);
}

/* Ensure btn-primary text is always visible */
.nav-menu a.btn-primary {
    color: white !important;
}

.nav-menu a.btn-primary:hover,
.nav-menu a.btn-primary.active {
    color: white !important;
    background: var(--newegg-orange-dark);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--newegg-text);
    font-size: 1.75rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    line-height: 1;
    transition: color 0.3s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover,
.menu-toggle:focus {
    color: var(--newegg-orange);
    outline: none;
}

.menu-toggle:active {
    transform: scale(0.95);
}

.menu-toggle .menu-icon,
.menu-toggle .menu-close {
    display: inline-block;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-weight: 300;
}

.menu-toggle .menu-close {
    font-size: 1.5rem;
    font-weight: 400;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-2xl) 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 102, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 102, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 102, 0, 0.1) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, #FFFFFF 0%, #FF6600 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .highlight {
    color: var(--newegg-orange);
    -webkit-text-fill-color: var(--newegg-orange);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--newegg-text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 102, 0, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--newegg-orange);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--newegg-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Styles */
section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #FFFFFF 0%, #FF6600 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--newegg-text-secondary);
}

/* Levels Section */
.levels-section {
    background: var(--newegg-dark);
    position: relative;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

/* Features Section */
.features-section {
    background: var(--newegg-black);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--newegg-dark) 0%, var(--newegg-black) 100%);
    border-top: 2px solid var(--newegg-orange);
    border-bottom: 2px solid var(--newegg-orange);
}

.cta-content {
    text-align: center;
    padding: var(--spacing-2xl) 0;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--newegg-text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* Footer */
.footer {
    background: var(--newegg-black);
    border-top: 1px solid var(--newegg-gray);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    color: var(--newegg-orange);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--newegg-text-secondary);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: var(--newegg-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--newegg-orange);
}

.footer-section .newegg-logo {
    max-height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 3px rgba(255, 102, 0, 0.3)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.1));
    padding: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-section .newegg-logo:hover {
    filter: drop-shadow(0 0 6px rgba(255, 102, 0, 0.5)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
    background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--newegg-gray);
    color: var(--newegg-text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        position: relative;
    }
    
    /* Show hamburger menu button on mobile */
    .menu-toggle {
        display: flex;
        order: 2;
        z-index: 1001;
    }
    
    /* Hide menu by default on mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: var(--newegg-black);
        border-left: 1px solid var(--newegg-orange);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: calc(var(--spacing-xl) + 60px) var(--spacing-lg) var(--spacing-lg);
        gap: 0;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    /* Show menu when active */
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--newegg-gray);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        padding: var(--spacing-md);
        font-size: 1.1rem;
        width: 100%;
        display: block;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover:not(.btn-primary),
    .nav-menu a.active:not(.btn-primary) {
        background: rgba(255, 102, 0, 0.1);
        padding-left: var(--spacing-lg);
    }
    
    .nav-menu a.btn-primary {
        margin-top: var(--spacing-md);
        text-align: center;
        width: 100%;
    }
    
    /* Overlay when menu is open */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .menu-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Adjust brand text on mobile */
    .nav-brand .brand-text {
        font-size: 1rem;
    }
    
    .nav-brand .newegg-logo {
        max-height: 24px;
    }
    
    .hero-stats {
        gap: var(--spacing-lg);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .levels-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
}

/* iPhone specific adjustments */
@media (max-width: 480px) {
    .nav-brand .brand-text {
        font-size: 0.9rem;
    }
    
    .nav-menu {
        width: 100%;
        max-width: 100vw;
        right: -100%;
    }
}

