/* 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; }

/* Theme Variables - Lighthouse in Clouds */
:root {
    --brand-blue: #3b82f6;
    --brand-cyan: #06b6d4;
    --brand-glow: #7dd3fc;
    --bg-card: rgba(15, 23, 42, 0.7);
    --text-muted: #94a3b8;
}

/* Typography */
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.8); 
    backdrop-filter: blur(2px);
    position: sticky; 
    top: 0; 
    z-index: 100; 
    border-bottom: 1px solid rgba(255,255,255,0.05);
    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(6, 182, 212, 0.4);
}
.btn-download-nav:hover { 
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(6, 182, 212, 0.6);
}

/* Hero Section - Lighthouse */
.hero-wrapper {
    position: relative;
    min-height: 110vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 5% 150px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 100%, #1e293b 0%, #020617 80%);
}

/* Starry Sky */
.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.3;
    z-index: 0;
}

/* Lighthouse Scene */
.lighthouse-scene {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

.tower {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 500px;
    background: linear-gradient(to right, #020617, #1e293b, #020617);
    clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%);
    border-top: 5px solid #334155;
}

.tower-light {
    position: absolute;
    bottom: 500px; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 80px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 60px #06b6d4, 0 0 120px #3b82f6, 0 0 200px #fff;
    z-index: 2;
}

.beam {
    position: absolute;
    bottom: 540px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 800px;
    background: linear-gradient(to top, rgba(6, 182, 212, 0.8), rgba(59, 130, 246, 0.2), transparent);
    clip-path: polygon(50% 100%, 10% 0, 90% 0);
    animation: pulseBeam 4s infinite alternate ease-in-out;
    z-index: 1;
}

.projected-plane {
    position: absolute;
    bottom: 850px; left: 50%;
    transform: translateX(-50%);
    width: 400px; height: 400px;
    fill: #ffffff;
    filter: drop-shadow(0 0 40px #06b6d4) drop-shadow(0 0 80px #3b82f6);
    animation: floatPlane 6s infinite ease-in-out;
    z-index: 3;
}

/* Sea of Clouds */
.sea-of-clouds {
    position: absolute;
    bottom: -100px; left: 0;
    width: 100%; height: 400px;
    z-index: 2;
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: #0f172a;
    border-radius: 50%;
    filter: blur(2px);
}
.cloud1 { width: 800px; height: 400px; bottom: -100px; left: -200px; background: #1e293b; }
.cloud2 { width: 1000px; height: 500px; bottom: -150px; right: -200px; background: #0f172a; }
.cloud3 { width: 600px; height: 300px; bottom: -50px; left: 50%; transform: translateX(-50%); background: #020617; }

@keyframes pulseBeam {
    0% { opacity: 0.6; transform: translateX(-50%) scaleY(0.9); }
    100% { opacity: 1; transform: translateX(-50%) scaleY(1.1); }
}
@keyframes floatPlane {
    0% { transform: translate(-50%, 0) rotate(-2deg); }
    50% { transform: translate(-50%, -30px) rotate(2deg); }
    100% { transform: translate(-50%, 0) rotate(-2deg); }
}

/* Hero Content */
.hero-content { 
    z-index: 10; 
    max-width: 900px; 
    text-align: center;
    position: relative;
    background: rgba(2, 6, 23, 0.6);
    padding: 50px 60px;
    border-radius: 30px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    backdrop-filter: blur(2px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.9), inset 0 0 40px rgba(6, 182, 212, 0.15);
    margin-top: 250px; /* Push down to show the plane projection */
}

.hero-title {
    font-size: 42px; 
    margin-bottom: 20px;
    line-height: 1.3;
    background: linear-gradient(to right, #fff, #cffafe, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
}

.hero p { 
    font-size: 18px; 
    margin-bottom: 35px; 
    color: #cbd5e1;
    max-width: 700px;
    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(6, 182, 212, 0.4);
    transition: all 0.3s;
}
.btn-primary:hover { 
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.6);
}

.btn-outline { 
    padding: 15px 35px; 
    font-size: 16px; 
    font-weight: 600; 
    color: #fff; 
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 50px;
    transition: all 0.3s;
}
.btn-outline:hover { 
    transform: translateY(-3px);
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--brand-cyan);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

.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(6, 182, 212, 0.3);
    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(6, 182, 212, 0.4);
}
.hero-images img:hover { 
    transform: translateY(-30px) scale(1.05); 
    box-shadow: 0 40px 60px rgba(0, 0, 0, 1), 0 0 50px rgba(6, 182, 212, 0.6);
    z-index: 10;
}

/* Features Section */
.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-cyan), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { 
    transform: translateY(-5px); 
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 15px 30px rgba(0,0,0,0.8), inset 0 0 20px rgba(6, 182, 212, 0.1);
}
.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 { 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(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.4);
}
.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 Section */
.faq { padding: 100px 5%; max-width: 900px; margin: 0 auto; background: #0f172a; margin-top: 40px; margin-bottom: 80px; 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: #020617; 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 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(--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(6, 182, 212, 0.4);
    box-shadow: 0 15px 30px rgba(0,0,0,0.8), 0 0 30px rgba(6, 182, 212, 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(6, 182, 212, 0.4);
}

/* Page specific headers */
.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(6, 182, 212, 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);}

/* 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;
    }
}
