/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', 'Roboto', 'Microsoft YaHei', sans-serif;
    background-color: #020617;
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
    --brand-blue: #3b82f6;
    --brand-cyan: #22d3ee;
    --brand-glow: #67e8f9;
    --flame: #38bdf8;
    --bg-card: rgba(15, 23, 42, 0.75);
    --text-muted: #94a3b8;
}

h1, h2, h3, h4 { color: #ffffff; font-weight: 700; }

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(2px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
    box-shadow: 0 4px 30px rgba(0,0,0,0.8);
}
.nav-logo {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-shadow: 0 0 15px var(--brand-cyan);
}
.nav-logo svg {
    width: 30px;
    height: 30px;
    fill: var(--brand-glow);
    filter: drop-shadow(0 0 8px var(--brand-cyan));
}
.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: #fff; text-shadow: 0 0 10px var(--brand-cyan); }
.btn-download-nav {
    padding: 8px 22px !important;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
    color: #fff !important;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
}
.btn-download-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(34, 211, 238, 0.6);
}

/* Hero - Meteor Shower */
.hero-wrapper {
    position: relative;
    min-height: 110vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 5% 120px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 100%, #0c1a3a 0%, #020617 55%, #000 100%);
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 30% 40%, #fff, transparent),
        radial-gradient(1px 1px at 50% 15%, #bae6fd, transparent),
        radial-gradient(1.5px 1.5px at 70% 35%, #fff, transparent),
        radial-gradient(1px 1px at 85% 25%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 20% 70%, #fff, transparent),
        radial-gradient(1px 1px at 60% 80%, #bae6fd, transparent),
        radial-gradient(1.5px 1.5px at 90% 60%, #fff, transparent),
        radial-gradient(1px 1px at 40% 90%, #fff, transparent);
    background-size: 100% 100%;
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

.meteor-field {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.meteor {
    position: absolute;
    width: 48px;
    height: 48px;
    animation: meteorFall var(--dur) linear infinite;
    animation-delay: var(--delay);
    opacity: 0;
}
.meteor svg {
    width: 100%;
    height: 100%;
    fill: #e0f2fe;
    filter:
        drop-shadow(0 0 6px #22d3ee)
        drop-shadow(0 0 14px #3b82f6)
        drop-shadow(-12px 12px 8px rgba(56, 189, 248, 0.9));
}
.meteor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #22d3ee, #67e8f9, transparent);
    transform: translate(-100%, -50%) rotate(-45deg);
    transform-origin: right center;
    box-shadow: 0 0 12px #22d3ee, 0 0 24px #3b82f6;
    border-radius: 50%;
}

@keyframes meteorFall {
    0% {
        transform: translate(0, 0) rotate(-45deg);
        opacity: 0;
    }
    8% { opacity: 1; }
    70% { opacity: 1; }
    100% {
        transform: translate(calc(var(--travel) * 1px), calc(var(--travel) * 1.15px)) rotate(-45deg);
        opacity: 0;
    }
}

.m1 { top: -5%; left: 5%; --dur: 4.2s; --delay: 0s; --travel: 700; }
.m2 { top: -8%; left: 25%; --dur: 5s; --delay: 0.8s; --travel: 820; }
.m3 { top: 0%; left: 45%; --dur: 3.8s; --delay: 1.5s; --travel: 650; }
.m4 { top: -10%; left: 65%; --dur: 4.6s; --delay: 0.3s; --travel: 780; }
.m5 { top: 5%; left: 80%; --dur: 5.2s; --delay: 2s; --travel: 720; }
.m6 { top: -3%; left: 15%; --dur: 4s; --delay: 2.8s; --travel: 760; }
.m7 { top: 8%; left: 55%; --dur: 3.5s; --delay: 1.2s; --travel: 600; }
.m8 { top: -6%; left: 90%; --dur: 4.8s; --delay: 3.2s; --travel: 700; }

.hero-content {
    z-index: 10;
    max-width: 900px;
    text-align: center;
    position: relative;
    background: rgba(2, 6, 23, 0.65);
    padding: 50px 60px;
    border-radius: 30px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    backdrop-filter: blur(2px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.85), inset 0 0 40px rgba(34, 211, 238, 0.08);
    margin-top: 80px;
}

.hero-title {
    font-size: 30px;
    margin-bottom: 20px;
    line-height: 1.4;
    background: linear-gradient(to right, #fff, #cffafe, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
}

.hero p {
    font-size: 18px;
    margin-bottom: 35px;
    color: #cbd5e1;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons { display: flex; gap: 20px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }

.btn-primary {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
    border: none;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.35);
    transition: all 0.3s;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(34, 211, 238, 0.55);
}
.btn-outline {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(34, 211, 238, 0.4);
    border-radius: 50px;
    transition: all 0.3s;
}
.btn-outline:hover {
    transform: translateY(-3px);
    background: rgba(34, 211, 238, 0.12);
    border-color: var(--brand-glow);
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.25);
}

.hero-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: flex-end;
    margin-top: 40px;
    z-index: 20;
}
.hero-images img {
    max-width: 28%;
    border-radius: 16px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    transition: all 0.4s ease;
}
.hero-images img:nth-child(2) {
    transform: translateY(-20px);
    z-index: 2;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.9), 0 0 40px rgba(34, 211, 238, 0.3);
}
.hero-images img:hover {
    transform: translateY(-30px) scale(1.05);
    box-shadow: 0 40px 60px rgba(0, 0, 0, 1), 0 0 50px rgba(34, 211, 238, 0.5);
    z-index: 10;
}

/* Features */
.features {
    padding: 120px 5%;
    background: #020617;
    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;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    padding: 40px 30px;
    text-align: left;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-glow), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 15px 30px rgba(0,0,0,0.8), inset 0 0 20px rgba(34, 211, 238, 0.08);
}
.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 */
.blog { padding: 100px 5%; background: #f8fafc; color: #0f172a; position: relative; }
.blog .section-title { color: #0f172a; text-shadow: none; }
.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.08);
    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(34, 211, 238, 0.15);
    border-color: rgba(34, 211, 238, 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(--brand-blue); 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(--brand-blue);
    font-weight: 600;
    border: 2px solid var(--brand-blue);
    border-radius: 50px;
    transition: all 0.3s;
}
.btn-more:hover { background: var(--brand-blue); color: #fff; box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); }

/* FAQ */
.faq {
    padding: 100px 5%;
    max-width: 900px;
    margin: 40px auto 80px;
    background: #0f172a;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.faq-item {
    background: rgba(255,255,255,0.02);
    margin-bottom: 15px;
    padding: 25px 30px;
    border-radius: 16px;
    border-left: 4px solid var(--brand-cyan);
    transition: all 0.3s;
}
.faq-item:hover {
    background: rgba(255,255,255,0.05);
    border-left-color: var(--brand-blue);
}
.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: #01040f;
    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(--brand-cyan); }
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
}

/* Download 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(--bg-card);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
    backdrop-filter: blur(2px);
}
.download-card:hover {
    transform: translateY(-8px);
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 15px 30px rgba(0,0,0,0.8), 0 0 30px rgba(34, 211, 238, 0.2);
}
.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(135deg, var(--brand-blue), var(--brand-cyan));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 5px 15px rgba(34, 211, 238, 0.4);
}

/* Page header */
.page-header {
    padding: 100px 5% 80px;
    text-align: center;
    background: #0f172a;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.page-header::before {
    content: '';
    position: absolute;
    top: -50%; left: 0; width: 100%; height: 200%;
    background: radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 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;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.page-header p { font-size: 18px; color: var(--text-muted); }

@media (max-width: 900px) {
    .features-grid, .blog-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 28px; }
    .nav-links { gap: 12px; font-size: 13px; flex-wrap: wrap; justify-content: flex-end; }
    .hero-content { padding: 30px 24px; margin-top: 40px; }
}

/* === 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;
    }
}
