/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Segoe UI', 'Roboto', 'Microsoft YaHei', sans-serif; 
    /* Aurora Night Sky Background */
    background-color: #020617; 
    color: #f8fafc; 
    line-height: 1.6; 
    min-height: 100vh; 
    overflow-x: hidden; 
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Theme Variables - Aurora Borealis */
:root {
    --aurora-green: #10b981;
    --aurora-teal: #14b8a6;
    --aurora-blue: #3b82f6;
    --aurora-purple: #8b5cf6;
    --night-dark: #020617;
    --night-light: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-main);
    font-weight: 700;
}

/* Navigation */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 5%; 
    background: rgba(2, 6, 23, 0.6); 
    backdrop-filter: blur(2px);
    position: sticky; 
    top: 0; 
    z-index: 100; 
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-logo { 
    font-size: 24px; 
    font-weight: 800; 
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, var(--aurora-green), var(--aurora-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-logo svg {
    width: 30px;
    height: 30px;
    fill: url(#aurora-grad);
}
.nav-links { display: flex; gap: 30px; align-items: center; font-size: 15px; font-weight: 500;}
.nav-links a { 
    color: var(--text-muted); 
    transition: all 0.3s; 
}
.nav-links a:hover { 
    color: var(--aurora-teal); 
    text-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
}

/* Aurora Glow Button */
.btn-download-nav { 
    padding: 8px 22px !important; 
    background: rgba(20, 184, 166, 0.1);
    color: var(--aurora-teal) !important; 
    border: 1px solid var(--aurora-teal);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s; 
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.2);
}
.btn-download-nav:hover { 
    background: var(--aurora-teal);
    color: var(--night-dark) !important;
    box-shadow: 0 0 25px rgba(20, 184, 166, 0.6);
}

/* Hero Section - Aurora Sky */
.hero-wrapper {
    position: relative;
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 5% 100px;
    overflow: hidden;
}

/* Aurora CSS Animation Background */
.aurora-bg {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    filter: blur(2px);
    z-index: 0;
    animation: auroraMove 20s ease-in-out infinite alternate;
}

@keyframes auroraMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, -5%) rotate(5deg); }
}

/* Aurora Formed Plane SVG */
.hero-plane-svg {
    position: absolute;
    top: 40%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    z-index: 1;
    filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.3));
    animation: planeFloat 6s ease-in-out infinite alternate;
}
.aurora-path {
    fill: none;
    stroke: url(#aurora-grad);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: blur(1px);
}
.aurora-glow {
    fill: url(#aurora-grad);
    opacity: 0.1;
    filter: blur(2px);
}

@keyframes planeFloat {
    0% { transform: translate(-50%, -48%) rotate(-2deg) scale(1); filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.3));}
    100% { transform: translate(-50%, -52%) rotate(2deg) scale(1.05); filter: drop-shadow(0 0 50px rgba(59, 130, 246, 0.5));}
}

.hero-content { 
    z-index: 20; 
    max-width: 900px; 
    text-align: center;
    position: relative;
    margin-top: 20px;
}

.hero-title {
    font-size: 56px; 
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #a7f3d0, #bfdbfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255,255,255,0.1);
}

.hero p { 
    font-size: 18px; 
    margin-bottom: 40px; 
    color: var(--text-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons { display: flex; gap: 20px; justify-content: center; margin-bottom: 60px; flex-wrap: wrap; }

.btn-primary { 
    padding: 16px 40px; 
    font-size: 16px; 
    font-weight: 600; 
    color: var(--night-dark); 
    background: linear-gradient(90deg, var(--aurora-green), var(--aurora-teal));
    border: none;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    transition: all 0.3s;
}
.btn-primary:hover { 
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
    background: linear-gradient(90deg, var(--aurora-teal), var(--aurora-blue));
}

.btn-outline { 
    padding: 16px 40px; 
    font-size: 16px; 
    font-weight: 600; 
    color: #fff; 
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    backdrop-filter: blur(2px);
    transition: all 0.3s;
}
.btn-outline:hover { 
    transform: translateY(-3px);
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.hero-images { 
    display: flex; 
    justify-content: center; 
    gap: 25px; 
    align-items: flex-end; 
    margin-top: 20px;
    z-index: 20;
}
.hero-images img { 
    max-width: 28%; 
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease; 
    backdrop-filter: blur(2px);
}
.hero-images img:nth-child(2) {
    transform: translateY(-20px);
    z-index: 2;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(59, 130, 246, 0.2);
}
.hero-images img:hover { 
    transform: translateY(-30px) scale(1.05); 
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(16, 185, 129, 0.3);
    z-index: 10;
}

/* Features Section */
.features { padding: 120px 5%; background: var(--night-light); position: relative; z-index: 10; border-top: 1px solid rgba(255,255,255,0.05);}
.section-title { 
    text-align: center; 
    font-size: 36px; 
    margin-bottom: 60px; 
    background: linear-gradient(90deg, #fff, var(--aurora-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.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: left; 
    background: rgba(2, 6, 23, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s; 
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--aurora-teal), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { 
    transform: translateY(-5px); 
    background: rgba(2, 6, 23, 0.8);
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(20, 184, 166, 0.05);
}
.feature-card:hover::before { opacity: 1; }
.feature-card h3 { 
    font-size: 22px; 
    margin-bottom: 15px; 
    color: #fff;
}
.feature-card p { color: var(--text-muted); font-size: 15px;}

/* Blog Section */
.blog { padding: 100px 5%; background: #f8fafc; color: #0f172a; position: relative;}
.blog .section-title { background: none; -webkit-text-fill-color: #0f172a; color: #0f172a; }
.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; 
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}
.blog-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.3);
}
.blog-card img { 
    width: 100%; height: 260px; object-fit: cover; 
}
.blog-content { padding: 35px; }
.blog-date { display: inline-block; margin-bottom: 15px; font-size: 13px; color: var(--aurora-teal); font-weight: 600;}
.blog-content h3 { font-size: 22px; margin-bottom: 15px; color: #0f172a;}
.blog-content p { color: #64748b; margin-bottom: 0; font-size: 15px;}
.btn-more { 
    display: block; 
    width: 240px; 
    margin: 60px auto 0; 
    text-align: center; 
    padding: 16px; 
    background: #fff;
    color: var(--aurora-teal); 
    font-weight: 600; 
    border: 1px solid var(--aurora-teal);
    border-radius: 50px;
    transition: all 0.3s; 
}
.btn-more:hover { background: var(--aurora-teal); color: #fff; box-shadow: 0 10px 20px rgba(20, 184, 166, 0.2);}

/* FAQ Section */
.faq { padding: 100px 5%; max-width: 900px; margin: 0 auto; background: var(--night-dark); margin-top: 40px; margin-bottom: 80px; border-radius: 24px; border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 20px 50px rgba(0,0,0,0.5);}
.faq-item { 
    background: rgba(255,255,255,0.02); 
    margin-bottom: 15px; 
    padding: 25px 30px; 
    border-radius: 16px;
    border-left: 3px solid var(--aurora-blue);
    transition: all 0.3s;
}
.faq-item:hover { 
    background: rgba(255,255,255,0.05);
    border-left-color: var(--aurora-green);
}
.faq-question { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: #fff; }
.faq-answer { color: var(--text-muted); font-size: 15px; line-height: 1.8;}

/* Footer */
.footer { background: #000; padding: 80px 5% 30px; color: #94a3b8; border-top: 1px solid rgba(255,255,255,0.05);}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto 50px; }
.footer-col h4 { font-size: 16px; color: #fff; margin-bottom: 25px; font-weight: 600; letter-spacing: 1px;}
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: #64748b; transition: all 0.2s; font-size: 14px;}
.footer-col ul li a:hover { color: var(--aurora-teal);}
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 13px;}

/* 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: var(--night-light); 
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}
.download-card:hover { 
    transform: translateY(-8px); 
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 20px rgba(59, 130, 246, 0.1);
}
.download-card h3 { font-size: 22px; margin-bottom: 15px; color: #fff;}
.download-card p { color: var(--text-muted); margin-bottom: 30px; font-size: 14px;}
.btn-dl-card { 
    display: inline-block; 
    padding: 12px 30px; 
    background: rgba(255,255,255,0.05);
    color: #fff; 
    font-weight: 600; 
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s; 
}
.btn-dl-card:hover { 
    background: linear-gradient(90deg, var(--aurora-green), var(--aurora-blue));
    border-color: transparent;
    color: #fff;
}

/* Page specific headers */
.page-header { 
    padding: 100px 5% 80px; 
    text-align: center; 
    background: var(--night-dark);
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; top: -50%; left: 0; width: 100%; height: 200%;
    background: radial-gradient(ellipse at 50% 0%, rgba(20, 184, 166, 0.15) 0%, transparent 50%);
    pointer-events: none;
}
.page-header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.page-header h1 { 
    font-size: 42px; 
    margin-bottom: 20px; 
    background: linear-gradient(90deg, #fff, var(--aurora-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-header p { font-size: 18px; color: var(--text-muted);}

/* SVG Definitions */
svg.defs-only { display: none; }

/* === 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;
    }
}
