/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; 
    background: #05050a; 
    color: #e0e0e0; 
    line-height: 1.6; 
    min-height: 100vh; 
    overflow-x: hidden; 
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Cyber Neon Synth Variables */
:root {
    --bg-dark: #05050a;
    --bg-card: #0f0f1a;
    --neon-pink: #ff007f;
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --text-main: #ffffff;
    --text-muted: #a0a5b5;
}

/* Background Grid Effect */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: 
        linear-gradient(transparent 95%, rgba(0, 243, 255, 0.1) 100%),
        linear-gradient(90deg, transparent 95%, rgba(0, 243, 255, 0.1) 100%);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 10s linear infinite;
}
@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 40px; }
}

/* Navigation */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 5%; 
    background: rgba(5, 5, 10, 0.8); 
    border-bottom: 1px solid var(--neon-purple); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    backdrop-filter: blur(2px);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.3);
}
.nav-logo { 
    font-size: 28px; 
    font-weight: 900; 
    color: #fff; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
    font-style: italic;
    letter-spacing: 2px;
}
.nav-links { display: flex; gap: 30px; align-items: center; font-weight: bold; }
.nav-links a { 
    font-size: 16px; 
    transition: all 0.3s; 
    color: var(--text-main); 
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-links a:hover { 
    color: var(--neon-pink); 
    text-shadow: 0 0 8px var(--neon-pink);
}
.btn-download-nav { 
    padding: 8px 24px; 
    background: transparent; 
    border: 2px solid var(--neon-cyan);
    border-radius: 4px; 
    color: var(--neon-cyan) !important; 
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2), inset 0 0 10px rgba(0, 243, 255, 0.2); 
    transition: all 0.3s; 
    text-transform: uppercase;
}
.btn-download-nav:hover { 
    background: var(--neon-cyan); 
    color: #000 !important; 
    box-shadow: 0 0 20px var(--neon-cyan), inset 0 0 10px #fff; 
}

/* Hero Section */
.hero { 
    position: relative; 
    padding: 80px 5% 60px; 
    text-align: center; 
    min-height: 90vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,0,127,0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-content { z-index: 3; max-width: 900px; margin: 0 auto; position: relative; }
.hero h1 { 
    font-size: 56px; 
    margin-bottom: 20px; 
    color: #fff; 
    text-shadow: 2px 2px 0px var(--neon-pink), -2px -2px 0px var(--neon-cyan), 0 0 20px rgba(255,255,255,0.5); 
    line-height: 1.2; 
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.hero p { 
    font-size: 20px; 
    margin-bottom: 40px; 
    color: var(--text-muted); 
    font-weight: 500; 
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
}

.hero-buttons { display: flex; gap: 20px; justify-content: center; margin-bottom: 50px; flex-wrap: wrap; }
.btn-cyber { 
    padding: 15px 35px; 
    font-size: 18px; 
    font-weight: bold; 
    background: transparent; 
    color: var(--neon-pink); 
    border: 2px solid var(--neon-pink);
    border-radius: 4px; 
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.3), inset 0 0 10px rgba(255, 0, 127, 0.2); 
    transition: all 0.3s; 
    cursor: pointer; 
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}
.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn-cyber:hover::before { left: 100%; }
.btn-cyber:hover { 
    background: var(--neon-pink); 
    color: #fff;
    box-shadow: 0 0 30px var(--neon-pink), inset 0 0 15px rgba(255,255,255,0.5); 
}
.btn-pc { 
    color: var(--neon-cyan); 
    border-color: var(--neon-cyan); 
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3), inset 0 0 10px rgba(0, 243, 255, 0.2); 
}
.btn-pc:hover { 
    background: var(--neon-cyan); 
    color: #000;
    box-shadow: 0 0 30px var(--neon-cyan), inset 0 0 15px rgba(255,255,255,0.5); 
}

.hero-images { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    z-index: 3; 
    align-items: flex-end; 
    position: relative;
}
.hero-images img { 
    max-width: 28%; 
    border-radius: 8px; 
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.4); 
    transition: transform 0.4s, box-shadow 0.4s; 
    animation: neon-border-pulse 3s infinite alternate;
}
.hero-images img:hover { 
    transform: translateY(-15px) scale(1.05); 
    box-shadow: 0 0 40px var(--neon-cyan);
    border-color: var(--neon-cyan);
    animation: none;
}

@keyframes neon-border-pulse {
    0% { border-color: var(--neon-purple); box-shadow: 0 0 15px rgba(188, 19, 254, 0.4); }
    100% { border-color: var(--neon-pink); box-shadow: 0 0 25px rgba(255, 0, 127, 0.6); }
}

/* Features Section */
.features { padding: 100px 5%; background: rgba(5, 5, 10, 0.9); position: relative; border-top: 1px solid rgba(0, 243, 255, 0.2); }
.section-title { 
    text-align: center; 
    font-size: 42px; 
    margin-bottom: 60px; 
    color: #fff; 
    text-shadow: 0 0 10px var(--neon-cyan);
    font-style: italic;
    text-transform: uppercase;
}
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.feature-card { 
    background: var(--bg-card); 
    padding: 40px 30px; 
    border-radius: 8px; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
    transition: all 0.3s; 
    text-align: center; 
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}
.feature-card:hover::before { transform: translateX(100%); }
.feature-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2); 
}
.feature-card h3 { 
    font-size: 24px; 
    margin-bottom: 15px; 
    color: var(--neon-pink); 
    text-shadow: 0 0 5px rgba(255,0,127,0.5);
}
.feature-card p { color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* Blog Section */
.blog { padding: 100px 5%; background: #0a0a14; border-top: 1px solid rgba(255, 0, 127, 0.2); }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; max-width: 1100px; margin: 0 auto; }
.blog-card { 
    background: var(--bg-card); 
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    transition: all 0.3s; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.05); 
}
.blog-card:hover { 
    transform: translateY(-8px); 
    border-color: var(--neon-purple);
    box-shadow: 0 0 25px rgba(188, 19, 254, 0.3); 
}
.blog-card img { width: 100%; height: 260px; object-fit: cover; filter: contrast(1.2) saturate(1.2); }
.blog-content { padding: 30px; }
.blog-date { display: inline-block; color: var(--neon-cyan); font-size: 14px; font-weight: bold; margin-bottom: 15px; letter-spacing: 1px; }
.blog-content h3 { font-size: 22px; margin-bottom: 15px; color: #fff; }
.blog-content p { color: var(--text-muted); margin-bottom: 0; }
.btn-more { 
    display: block; 
    width: 220px; 
    margin: 60px auto 0; 
    text-align: center; 
    padding: 14px; 
    background: transparent; 
    color: var(--neon-purple); 
    border: 2px solid var(--neon-purple); 
    border-radius: 4px; 
    font-weight: bold; 
    transition: all 0.3s; 
    text-transform: uppercase;
    letter-spacing: 2px;
}
.btn-more:hover { 
    background: var(--neon-purple); 
    color: #fff; 
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.5); 
}

/* FAQ Section */
.faq { padding: 100px 5%; max-width: 900px; margin: 0 auto; background: transparent; margin-bottom: 80px; }
.faq-item { 
    background: var(--bg-card); 
    margin-bottom: 20px; 
    border-radius: 8px; 
    padding: 25px 30px; 
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid var(--neon-cyan); 
    transition: all 0.3s; 
}
.faq-item:hover { 
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2); 
    border-color: var(--neon-cyan);
    transform: translateX(5px); 
}
.faq-question { font-size: 18px; font-weight: bold; color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.faq-question::before { content: 'Q:'; color: var(--neon-pink); font-size: 22px; text-shadow: 0 0 5px var(--neon-pink); }
.faq-answer { color: var(--text-muted); line-height: 1.8; font-size: 15px; padding-left: 32px; }

/* Footer */
.footer { background: #020205; padding: 80px 5% 30px; color: #fff; border-top: 2px solid var(--neon-pink); position: relative; }
.footer::before {
    content: '';
    position: absolute;
    top: -2px; left: 0; width: 100%; height: 2px;
    background: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink);
}
.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: var(--neon-cyan); margin-bottom: 25px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-muted); transition: color 0.3s, text-shadow 0.3s; }
.footer-col ul li a:hover { color: #fff; text-shadow: 0 0 8px #fff; padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); color: #555; font-size: 14px; letter-spacing: 1px; }

/* Page specific headers */
.page-header { 
    padding: 120px 5% 80px; 
    text-align: center; 
    background: radial-gradient(circle at center, #1a0b2e 0%, #05050a 100%); 
    border-bottom: 1px solid var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}
.page-header h1 { 
    font-size: 48px; 
    color: #fff; 
    margin-bottom: 20px; 
    text-shadow: 0 0 15px var(--neon-cyan); 
    font-style: italic;
    text-transform: uppercase;
}
.page-header p { color: var(--text-muted); font-size: 18px; max-width: 600px; margin: 0 auto; }

/* 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 { 
    background: var(--bg-card); 
    border-radius: 8px; 
    padding: 40px 30px; 
    text-align: center; 
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s; 
    position: relative;
}
.download-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 4px;
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
}
.download-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--neon-purple);
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.2); 
}
.download-card h3 { color: #fff; font-size: 24px; margin-bottom: 15px; text-shadow: 0 0 5px rgba(255,255,255,0.5); }
.download-card p { color: var(--text-muted); 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;
    }
}
