/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; 
    background: #f8f9fa; 
    color: #333; 
    line-height: 1.6; 
    min-height: 100vh; 
    overflow-x: hidden; 
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Mix Theme Variables */
:root {
    --pixel-bg: #1a1a24;
    --pixel-text: #4af626;
    --pixel-border: #000;
    --modern-bg: #ffffff;
    --modern-text: #333333;
    --modern-accent: #0078FF;
}

/* Navigation */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 5%; 
    background: #fff; 
    border-bottom: 2px solid var(--pixel-border); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.nav-logo { 
    font-size: 24px; 
    font-weight: 900; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}
.nav-logo .pixel-part { color: var(--pixel-border); font-family: 'Courier New', monospace; letter-spacing: -2px;}
.nav-logo .modern-part { color: var(--modern-accent); font-family: sans-serif; font-style: italic; }

.nav-links { display: flex; gap: 30px; align-items: center; font-weight: bold; }
.nav-links a { color: var(--modern-text); transition: color 0.3s; }
.nav-links a:hover { color: var(--modern-accent); }
.btn-download-nav { 
    padding: 8px 24px; 
    background: var(--modern-accent); 
    color: #fff !important; 
    border-radius: 20px; 
    transition: all 0.3s; 
}
.btn-download-nav:hover { background: #005bb5; box-shadow: 0 4px 15px rgba(0, 120, 255, 0.4); }

/* Hero Section */
.hero { 
    position: relative; 
    padding: 80px 5% 60px; 
    text-align: center; 
    min-height: 85vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    background: linear-gradient(90deg, var(--pixel-bg) 50%, var(--modern-bg) 50%);
}

.split-plane-icon {
    margin-bottom: 30px;
    z-index: 3;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.2));
}

.hero-content { 
    z-index: 3; 
    max-width: 900px; 
    margin: 0 auto; 
    background: rgba(150, 150, 150, 0.2); 
    padding: 40px; 
    border-radius: 20px; 
    backdrop-filter: blur(2px); 
    border: 1px solid rgba(255, 255, 255, 0.4); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    color: #fff;
}
.hero h1 { 
    font-size: 48px; 
    margin-bottom: 20px; 
    line-height: 1.3; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero p { 
    font-size: 18px; 
    margin-bottom: 40px; 
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    font-weight: 500;
}

.hero-buttons { display: flex; gap: 20px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.btn-pixel { 
    padding: 15px 35px; 
    font-size: 16px; 
    font-weight: bold; 
    background: var(--pixel-bg); 
    color: var(--pixel-text); 
    border: 3px solid var(--pixel-text);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 var(--pixel-text);
    transition: all 0.1s;
}
.btn-pixel:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--pixel-text); }

.btn-modern { 
    padding: 15px 35px; 
    font-size: 16px; 
    font-weight: bold; 
    background: var(--modern-accent); 
    color: #fff; 
    border-radius: 30px; 
    border: none;
    box-shadow: 0 10px 20px rgba(0, 120, 255, 0.3);
    transition: all 0.3s;
}
.btn-modern:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(0, 120, 255, 0.4); }

.hero-images { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    z-index: 3; 
    align-items: flex-end; 
}
.hero-images img { 
    max-width: 28%; 
    transition: transform 0.3s; 
}
.hero-images img:nth-child(1) { image-rendering: pixelated; border: 4px solid #000; border-radius: 0; box-shadow: 8px 8px 0 #000;}
.hero-images img:nth-child(2) { border-radius: 12px; box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.hero-images img:nth-child(3) { border-radius: 20px; border: 2px solid #fff; box-shadow: 0 15px 30px rgba(0, 120, 255, 0.2);}

/* Features Section */
.features { padding: 100px 5%; background: #f8f9fa; }
.section-title { text-align: center; font-size: 36px; margin-bottom: 60px; color: var(--modern-text); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }

.feature-card { padding: 40px 30px; text-align: center; transition: all 0.3s; }
.feature-card.pixel-style {
    background: #fff;
    border: 4px solid var(--pixel-border);
    box-shadow: 6px 6px 0 var(--pixel-border);
    font-family: 'Courier New', monospace;
}
.feature-card.pixel-style:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--pixel-border); }
.feature-card.pixel-style h3 { color: #000; font-size: 20px; margin-bottom: 15px; text-transform: uppercase; }

.feature-card.modern-style {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}
.feature-card.modern-style:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0, 120, 255, 0.1); }
.feature-card.modern-style h3 { color: var(--modern-accent); font-size: 22px; margin-bottom: 15px; }

/* Blog Section */
.blog { padding: 100px 5%; background: #fff; border-top: 2px dashed #ccc; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 1100px; margin: 0 auto; }
.blog-card { 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
}
.blog-card.pixel-style {
    border: 4px solid #000;
    box-shadow: 8px 8px 0 #000;
    background: #fff;
}
.blog-card.modern-style {
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    background: #fff;
}
.blog-card img { width: 100%; height: 260px; object-fit: cover; }
.blog-card.pixel-style img { image-rendering: pixelated; border-bottom: 4px solid #000; filter: contrast(1.2); }
.blog-content { padding: 30px; }
.blog-date { display: inline-block; margin-bottom: 15px; font-weight: bold; }
.pixel-style .blog-date { background: #000; color: #fff; padding: 4px 10px; font-family: 'Courier New', monospace; }
.modern-style .blog-date { color: var(--modern-accent); font-size: 14px; }
.blog-content h3 { font-size: 22px; margin-bottom: 15px; color: var(--modern-text); }
.blog-content p { color: #666; margin-bottom: 0; }
.btn-more { 
    display: block; 
    width: 220px; 
    margin: 60px auto 0; 
    text-align: center; 
    padding: 15px; 
    background: linear-gradient(90deg, #000 50%, var(--modern-accent) 50%);
    color: #fff; 
    font-weight: bold; 
    border-radius: 4px;
    transition: all 0.3s; 
}
.btn-more:hover { opacity: 0.9; box-shadow: 0 10px 20px rgba(0,0,0,0.2);}

/* FAQ Section */
.faq { padding: 100px 5%; max-width: 900px; margin: 0 auto; background: #f8f9fa; margin-bottom: 80px; }
.faq-item { 
    background: #fff; 
    margin-bottom: 20px; 
    padding: 25px 30px; 
    display: flex;
    flex-direction: column;
}
.faq-item:nth-child(odd) {
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
    font-family: 'Courier New', monospace;
}
.faq-item:nth-child(even) {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-left: 4px solid var(--modern-accent);
}
.faq-question { font-size: 18px; font-weight: bold; color: var(--modern-text); margin-bottom: 12px; }
.faq-item:nth-child(odd) .faq-question::before { content: '> '; color: #000; }
.faq-item:nth-child(even) .faq-question::before { content: 'Q: '; color: var(--modern-accent); }
.faq-answer { color: #666; font-size: 15px; }

/* Footer */
.footer { background: #111; padding: 80px 5% 30px; color: #fff; border-top: 4px solid var(--modern-accent); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto 50px; }
.footer-col h4 { font-size: 18px; color: #fff; margin-bottom: 25px; font-weight: bold; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: #aaa; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--modern-accent); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid #333; color: #777; font-size: 14px; }

/* Page specific headers */
.page-header { 
    padding: 120px 5% 80px; 
    text-align: center; 
    background: linear-gradient(90deg, var(--pixel-bg) 50%, var(--modern-bg) 50%);
    position: relative;
}
.page-header-content {
    background: rgba(150, 150, 150, 0.2); 
    padding: 40px; 
    border-radius: 20px; 
    backdrop-filter: blur(2px); 
    border: 1px solid rgba(255, 255, 255, 0.4); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}
.page-header h1 { font-size: 42px; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.page-header p { font-size: 18px; text-shadow: 0 1px 5px rgba(0,0,0,0.5); font-weight: 500;}

/* Download Page Grid */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; max-width: 1100px; margin: 60px auto; padding: 0 5%; }
.download-card { padding: 40px 30px; text-align: center; background: #fff; }
.download-card.pixel-style { border: 4px solid #000; box-shadow: 8px 8px 0 #000; font-family: 'Courier New', monospace; }
.download-card.modern-style { border-radius: 16px; box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.download-card h3 { font-size: 22px; margin-bottom: 15px; color: #333;}
.download-card p { color: #666; margin-bottom: 30px; font-size: 15px; }

/* === perf: reduce motion & lower GPU cost === */
.feature-card,
.blog-card,
.hero-content,
.glass-panel,
.pearl-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.navbar {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* perf: limit decorative infinite layers on mid/low-end devices */
@media (max-width: 768px) {
    .bubble:nth-child(n+3),
    .tiny-plane:nth-child(n+3),
    .bg-shard:nth-child(n+4),
    .orb:nth-child(n+2) {
        display: none !important;
    }
}
