/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; 
    background: #060b14; /* Deep dark blue/black */
    color: #e0e5ec; 
    line-height: 1.6; 
    min-height: 100vh; 
    overflow-x: hidden; 
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Theme Variables */
:root {
    --glass-bg: rgba(10, 25, 50, 0.4);
    --glass-border: rgba(0, 150, 255, 0.3);
    --glass-highlight: rgba(0, 240, 255, 0.8);
    --text-main: #ffffff;
    --text-muted: #a0b0c0;
    --accent-blue: #0099ff;
    --accent-cyan: #00f0ff;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 50, 100, 0.3);
}

/* Navigation */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 5%; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    background: rgba(6, 11, 20, 0.8);
    backdrop-filter: blur(2px);
    border-bottom: 1px solid var(--glass-border);
}
.nav-logo { 
    font-size: 24px; 
    font-weight: 900; 
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px var(--accent-cyan);
}
.nav-links { display: flex; gap: 30px; align-items: center; font-weight: bold; }
.nav-links a { color: var(--text-muted); transition: all 0.3s; }
.nav-links a:hover { color: var(--accent-cyan); text-shadow: 0 0 8px var(--accent-cyan); }
.btn-download-nav { 
    padding: 8px 24px; 
    background: rgba(0, 150, 255, 0.2); 
    color: var(--accent-cyan) !important; 
    border-radius: 4px; 
    border: 1px solid var(--accent-cyan);
    transition: all 0.3s; 
}
.btn-download-nav:hover { 
    background: var(--accent-cyan); 
    color: #000 !important;
    box-shadow: 0 0 15px var(--accent-cyan);
}

/* Hero Section - Shattered Glass */
.hero-wrapper {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px 5%;
}

/* Background floating shards */
.bg-shards {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}
.bg-shard {
    position: absolute;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(0,150,255,0.05));
    border: 1px solid rgba(0, 240, 255, 0.2);
    backdrop-filter: blur(2px);
    animation: floatShard 15s infinite linear;
}
@keyframes floatShard {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

.hero-content { 
    z-index: 3; 
    max-width: 1000px; 
    text-align: center;
    padding: 60px 40px;
    border-radius: 20px;
    position: relative;
}

/* Shattered Plane Graphic */
.shattered-container {
    position: relative;
    width: 300px;
    height: 200px;
    margin: 0 auto 20px;
}
.glass-plane {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.shard {
    fill: rgba(0, 150, 255, 0.3);
    stroke: rgba(0, 240, 255, 0.8);
    stroke-width: 1.5;
    transform-origin: center;
}
/* Assembly Animation */
.s1 { animation: assemble1 2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.s2 { animation: assemble2 2.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.s3 { animation: assemble3 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.s4 { animation: assemble4 2.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.s5 { animation: assemble5 2.1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

@keyframes assemble1 { 0% { transform: translate(-200px, -100px) rotate(-45deg); opacity: 0; } 100% { transform: translate(0, 0) rotate(0deg); opacity: 1; } }
@keyframes assemble2 { 0% { transform: translate(200px, -150px) rotate(60deg); opacity: 0; } 100% { transform: translate(0, 0) rotate(0deg); opacity: 1; } }
@keyframes assemble3 { 0% { transform: translate(-150px, 200px) rotate(-90deg); opacity: 0; } 100% { transform: translate(0, 0) rotate(0deg); opacity: 1; } }
@keyframes assemble4 { 0% { transform: translate(250px, 100px) rotate(120deg); opacity: 0; } 100% { transform: translate(0, 0) rotate(0deg); opacity: 1; } }
@keyframes assemble5 { 0% { transform: translate(0, -200px) rotate(180deg); opacity: 0; } 100% { transform: translate(0, 0) rotate(0deg); opacity: 1; } }

.float-shard {
    animation: hoverShard 4s infinite alternate ease-in-out;
}
@keyframes hoverShard { 0% { transform: translateY(0); } 100% { transform: translateY(-15px); } }

.glass-text {
    font-size: 42px; /* Adjusted for longer text */
    font-weight: 900;
    margin-top: -20px;
    background: linear-gradient(135deg, #ffffff, var(--accent-cyan));
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInText 1s 2s forwards;
}
@keyframes fadeInText { to { opacity: 1; } }

.hero p { 
    font-size: 18px; 
    margin-bottom: 40px; 
    color: var(--text-muted);
    opacity: 0;
    animation: fadeInText 1s 2.5s forwards;
}

.hero-buttons { 
    display: flex; gap: 20px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; 
    opacity: 0;
    animation: fadeInText 1s 2.8s forwards;
}
.btn-glass { 
    padding: 15px 35px; 
    font-size: 16px; 
    font-weight: bold; 
    background: rgba(0, 150, 255, 0.1); 
    color: var(--accent-cyan); 
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    backdrop-filter: blur(2px);
    transition: all 0.3s;
    text-transform: uppercase;
}
.btn-glass:hover { 
    background: rgba(0, 240, 255, 0.2); 
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    transform: translateY(-3px);
}

.btn-glass-solid { 
    padding: 15px 35px; 
    font-size: 16px; 
    font-weight: bold; 
    background: var(--accent-cyan); 
    color: #000; 
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transition: all 0.3s;
    text-transform: uppercase;
}
.btn-glass-solid:hover { 
    background: #fff; 
    border-color: #fff;
    box-shadow: 0 0 30px #fff;
    transform: translateY(-3px);
}

.hero-images { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    z-index: 3; 
    align-items: flex-end; 
    margin-top: 30px;
    opacity: 0;
    animation: fadeInText 1s 3s forwards;
}
.hero-images img { 
    max-width: 28%; 
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: all 0.4s; 
}
.hero-images img:hover { 
    transform: translateY(-10px) scale(1.05);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.3);
}

/* Features Section */
.features { padding: 100px 5%; position: relative; z-index: 2; }
.section-title { text-align: center; font-size: 36px; margin-bottom: 60px; color: var(--text-main); text-shadow: 0 0 10px rgba(0, 240, 255, 0.3); }
.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; 
    border-radius: 16px;
    transition: all 0.3s; 
}
.feature-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 30px rgba(0, 150, 255, 0.2);
}
.feature-card h3 { color: var(--accent-cyan); font-size: 22px; margin-bottom: 15px; }
.feature-card p { color: var(--text-muted); }

/* Blog Section */
.blog { padding: 100px 5%; background: rgba(0, 0, 0, 0.3); position: relative; z-index: 2; }
.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; 
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}
.blog-card:hover { border-color: var(--accent-cyan); box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15); }
.blog-card img { width: 100%; height: 260px; object-fit: cover; border-bottom: 1px solid var(--glass-border); }
.blog-content { padding: 30px; }
.blog-date { display: inline-block; margin-bottom: 15px; font-size: 14px; color: var(--accent-cyan); font-weight: bold; }
.blog-content h3 { font-size: 22px; margin-bottom: 15px; color: var(--text-main); }
.blog-content p { color: var(--text-muted); margin-bottom: 0; }
.btn-more { 
    display: block; 
    width: 220px; 
    margin: 60px auto 0; 
    text-align: center; 
    padding: 15px; 
    background: rgba(0, 150, 255, 0.1);
    color: var(--accent-cyan); 
    font-weight: bold; 
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    transition: all 0.3s; 
}
.btn-more:hover { background: var(--accent-cyan); color: #000; box-shadow: 0 0 20px var(--accent-cyan);}

/* FAQ Section */
.faq { padding: 100px 5%; max-width: 900px; margin: 0 auto; margin-bottom: 80px; position: relative; z-index: 2;}
.faq-item { 
    margin-bottom: 20px; 
    padding: 25px 30px; 
    border-radius: 12px;
    border-left: 4px solid var(--accent-blue);
    transition: all 0.3s;
}
.faq-item:hover { border-left-color: var(--accent-cyan); background: rgba(0, 150, 255, 0.1); }
.faq-question { font-size: 18px; font-weight: bold; color: var(--text-main); margin-bottom: 12px; }
.faq-question::before { content: 'Q: '; color: var(--accent-cyan); }
.faq-answer { color: var(--text-muted); font-size: 15px; }

/* Footer */
.footer { background: #03060a; padding: 80px 5% 30px; color: #fff; border-top: 1px solid var(--glass-border); position: relative; z-index: 2;}
.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(--text-main); margin-bottom: 25px; font-weight: bold; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: var(--text-muted); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent-cyan); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); color: #667788; font-size: 14px; }

/* 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%; position: relative; z-index: 2;}
.download-card { padding: 40px 30px; text-align: center; border-radius: 16px; transition: all 0.3s;}
.download-card:hover { transform: translateY(-5px); border-color: var(--accent-cyan); box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15); }
.download-card h3 { font-size: 22px; margin-bottom: 15px; color: var(--text-main); }
.download-card p { color: var(--text-muted); margin-bottom: 30px; font-size: 15px; }
.btn-dl-card { display: inline-block; padding: 12px 30px; background: rgba(0, 150, 255, 0.2); color: var(--accent-cyan); border: 1px solid var(--accent-cyan); border-radius: 4px; font-weight: bold; transition: all 0.3s; }
.btn-dl-card:hover { background: var(--accent-cyan); color: #000; box-shadow: 0 0 15px var(--accent-cyan); }

/* Page specific headers */
.page-header { 
    padding: 120px 5% 80px; 
    text-align: center; 
    position: relative;
    z-index: 2;
}
.page-header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 20px;
}
.page-header h1 { font-size: 42px; margin-bottom: 20px; font-weight: 900; color: var(--text-main); text-shadow: 0 0 15px var(--accent-cyan); }
.page-header p { font-size: 18px; color: var(--text-muted); }

/* === 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;
    }
}
