/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Helvetica Neue', 'Arial Black', 'Microsoft YaHei', sans-serif; 
    background-color: #050505; 
    color: #f4f4f5; 
    line-height: 1.6; 
    min-height: 100vh; 
    overflow-x: hidden; 
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Theme Variables - Kinetic Typography */
:root {
    --brand-blue: #2563eb;
    --brand-cyan: #06b6d4;
    --brand-dark: #0f172a;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --bg-card: #111827;
    --bg-light: #f1f5f9;
}

/* Background Typography Noise */
.bg-typography {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.03;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    font-size: 120px;
    font-weight: 900;
    line-height: 0.8;
    word-break: break-all;
    color: #ffffff;
    text-transform: uppercase;
}

/* Navigation */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 5%; 
    background: rgba(5, 5, 5, 0.8); 
    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: 28px; 
    font-weight: 900; 
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -1px;
}
.nav-logo svg {
    width: 32px;
    height: 32px;
    fill: var(--brand-blue);
}
.nav-links { display: flex; gap: 35px; align-items: center; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: 1px;}
.nav-links a { 
    color: var(--text-muted); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 2px; background: var(--brand-blue); transition: width 0.3s;
}
.nav-links a:hover { color: var(--text-light); }
.nav-links a:hover::after { width: 100%; }

.btn-download-nav { 
    padding: 10px 28px !important; 
    background: var(--text-light);
    color: #000 !important; 
    border-radius: 4px;
    font-weight: 900;
    transition: all 0.3s; 
}
.btn-download-nav::after { display: none; }
.btn-download-nav:hover { 
    background: var(--brand-blue);
    color: #fff !important;
    transform: scale(1.05);
}

/* Hero Section - Kinetic Typography */
.hero-wrapper {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 5% 100px;
    overflow: hidden;
}

/* Kinetic Animation Container */
.kinetic-container {
    position: relative;
    height: 180px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    perspective: 1000px;
}

.kinetic-text {
    font-size: 100px;
    font-weight: 900;
    color: var(--text-light);
    position: absolute;
    text-transform: uppercase;
    letter-spacing: -2px;
    white-space: nowrap;
    animation: textMorph 5s cubic-bezier(0.77, 0, 0.175, 1) infinite alternate;
    transform-origin: center center;
}

.kinetic-plane {
    position: absolute;
    width: 140px;
    height: 140px;
    fill: var(--brand-blue);
    animation: planeMorph 5s cubic-bezier(0.77, 0, 0.175, 1) infinite alternate;
    transform-origin: center center;
}

@keyframes textMorph {
    0%, 15% { transform: scale(1) skewX(0) rotateX(0); opacity: 1; filter: blur(0); letter-spacing: -2px; }
    45%, 55% { transform: scale(1.2) skewX(-40deg) rotateX(60deg) scaleY(0.3); opacity: 0; filter: blur(2px); letter-spacing: 40px; }
    85%, 100% { transform: scale(0.5) skewX(-60deg) rotateX(90deg) scaleY(0.1); opacity: 0; filter: blur(2px); }
}

@keyframes planeMorph {
    0%, 15% { transform: scale(0.1) skewX(60deg) translateY(200px) rotateZ(-45deg); opacity: 0; filter: blur(2px); }
    45%, 55% { transform: scale(0.6) skewX(30deg) translateY(50px) rotateZ(-20deg); opacity: 0; filter: blur(2px); }
    85%, 100% { transform: scale(1) skewX(0) translateY(0) rotateZ(0); opacity: 1; filter: blur(0); }
}

.hero-content { 
    z-index: 20; 
    max-width: 900px; 
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 32px; 
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 800;
    color: var(--text-muted);
}

.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: 50px; flex-wrap: wrap; }

.btn-primary { 
    padding: 18px 45px; 
    font-size: 16px; 
    font-weight: 900; 
    color: #fff; 
    background: var(--brand-blue);
    border: none;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-primary:hover { 
    transform: translateY(-5px);
    background: var(--brand-cyan);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.3);
}

.btn-outline { 
    padding: 18px 45px; 
    font-size: 16px; 
    font-weight: 900; 
    color: var(--text-light); 
    background: transparent;
    border: 2px solid var(--text-light);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-outline:hover { 
    transform: translateY(-5px);
    background: var(--text-light);
    color: #000;
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}

.hero-images { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    align-items: flex-end; 
    margin-top: 20px;
    z-index: 20;
}
.hero-images img { 
    max-width: 28%; 
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.8);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
    filter: grayscale(20%);
}
.hero-images img:nth-child(2) {
    transform: translateY(-20px);
    z-index: 2;
    filter: grayscale(0%);
}
.hero-images img:hover { 
    transform: translateY(-30px) scale(1.05); 
    filter: grayscale(0%);
    z-index: 10;
}

/* Features Section */
.features { padding: 120px 5%; background: var(--brand-dark); position: relative; z-index: 10; border-top: 1px solid rgba(255,255,255,0.05);}
.section-title { 
    text-align: center; 
    font-size: 48px; 
    margin-bottom: 70px; 
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; max-width: 1200px; margin: 0 auto; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.05);}

.feature-card { 
    padding: 50px 40px; 
    text-align: left; 
    background: var(--brand-dark);
    transition: all 0.3s; 
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 0%; background: var(--brand-blue); transition: height 0.3s;
}
.feature-card:hover { 
    background: #152033;
}
.feature-card:hover::before { height: 100%; }
.feature-card h3 { 
    font-size: 24px; 
    margin-bottom: 15px; 
    font-weight: 900;
    color: var(--text-light);
}
.feature-card p { color: var(--text-muted); font-size: 15px; line-height: 1.8;}

/* Blog Section */
.blog { padding: 120px 5%; background: var(--bg-light); color: #000; position: relative;}
.blog .section-title { color: #000; }
.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: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.blog-card img { 
    width: 100%; height: 280px; object-fit: cover; 
}
.blog-content { padding: 40px; }
.blog-date { display: inline-block; margin-bottom: 15px; font-size: 13px; color: var(--brand-blue); font-weight: 800; text-transform: uppercase; letter-spacing: 1px;}
.blog-content h3 { font-size: 22px; margin-bottom: 15px; font-weight: 900; color: #000;}
.blog-content p { color: #64748b; margin-bottom: 0; font-size: 15px; line-height: 1.8;}
.btn-more { 
    display: block; 
    width: 240px; 
    margin: 60px auto 0; 
    text-align: center; 
    padding: 18px; 
    background: #000;
    color: #fff; 
    font-weight: 900; 
    border-radius: 4px;
    transition: all 0.3s; 
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-more:hover { background: var(--brand-blue); transform: translateY(-3px);}

/* FAQ Section */
.faq { padding: 120px 5%; max-width: 900px; margin: 0 auto; background: #050505;}
.faq-item { 
    margin-bottom: 2px; 
    padding: 35px 40px; 
    background: var(--bg-card);
    transition: all 0.3s;
    border-left: 1px solid rgba(255,255,255,0.05);
}
.faq-item:hover { 
    background: #152033;
    border-left: 4px solid var(--brand-blue);
}
.faq-question { font-size: 20px; font-weight: 900; margin-bottom: 15px; color: var(--text-light); }
.faq-answer { color: var(--text-muted); font-size: 15px; line-height: 1.8;}

/* Footer */
.footer { background: #000; padding: 80px 5% 30px; border-top: 1px solid rgba(255,255,255,0.1);}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto 60px; }
.footer-col h4 { font-size: 16px; color: #fff; margin-bottom: 30px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px;}
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: var(--text-muted); transition: all 0.2s; font-size: 14px;}
.footer-col ul li a:hover { color: var(--brand-blue); padding-left: 5px;}
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 13px; color: #64748b;}

/* Download Page Grid */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2px; max-width: 1100px; margin: 60px auto; padding: 0 5%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.05);}
.download-card { 
    padding: 50px 40px; 
    text-align: center; 
    background: var(--bg-card); 
    transition: all 0.3s;
}
.download-card:hover { 
    background: #152033;
}
.download-card h3 { font-size: 24px; margin-bottom: 20px; font-weight: 900; color: var(--text-light);}
.download-card p { color: var(--text-muted); margin-bottom: 40px; font-size: 15px; line-height: 1.8;}
.btn-dl-card { 
    display: inline-block; 
    padding: 16px 35px; 
    background: var(--text-light);
    color: #000; 
    font-weight: 900; 
    border-radius: 4px;
    transition: all 0.3s; 
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-dl-card:hover { 
    background: var(--brand-blue);
    color: #fff;
    transform: translateY(-3px);
}

/* Page specific headers */
.page-header { 
    padding: 120px 5% 80px; 
    text-align: center; 
    background: var(--brand-dark);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.page-header-content {
    max-width: 800px;
    margin: 0 auto;
}
.page-header h1 { 
    font-size: 48px; 
    margin-bottom: 25px; 
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}
.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;
    }
}
