* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', 'Roboto', 'Microsoft YaHei', sans-serif;
    background: #060816;
    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;
    --spirit: #7dd3fc;
    --spirit-deep: #38bdf8;
    --dream: #a5b4fc;
    --bg-card: rgba(15, 23, 42, 0.82);
    --text-muted: #94a3b8;
}

h1, h2, h3, h4 { color: #fff; font-weight: 700; }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(6, 8, 22, 0.9);
    backdrop-filter: blur(2px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(125, 211, 252, 0.2);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 16px var(--spirit);
}
.nav-logo svg {
    width: 30px; height: 30px;
    fill: var(--spirit);
    filter: drop-shadow(0 0 10px var(--spirit-deep));
}
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--text-muted); transition: .3s; }
.nav-links a:hover { color: #fff; text-shadow: 0 0 10px var(--spirit); }
.btn-download-nav {
    padding: 8px 22px !important;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 0 18px rgba(56, 189, 248, .45);
}
.btn-download-nav:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(56, 189, 248, .6); }

.hero-wrapper {
    position: relative;
    min-height: 110vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 70px 5% 120px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 70%, rgba(59, 130, 246, .22) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(165, 180, 252, .18) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 100%, #0f172a 0%, #060816 70%);
}
.hero-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent),
        radial-gradient(1px 1px at 30% 40%, #7dd3fc, transparent),
        radial-gradient(1.5px 1.5px at 55% 15%, #fff, transparent),
        radial-gradient(1px 1px at 75% 35%, #a5b4fc, transparent),
        radial-gradient(1.5px 1.5px at 88% 12%, #7dd3fc, transparent),
        radial-gradient(1px 1px at 20% 65%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 68% 72%, #fff, transparent);
    opacity: .55;
    pointer-events: none;
    z-index: 0;
}

.soul-stage {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: min(640px, 92vw);
    height: 340px;
    z-index: 1;
    pointer-events: none;
}
.sleeper {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 70px;
}
.sleeper-body {
    position: absolute;
    bottom: 8px;
    left: 20px;
    width: 120px;
    height: 36px;
    border-radius: 40px 40px 18px 18px;
    background: linear-gradient(180deg, #1e293b, #0f172a);
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.sleeper-head {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #64748b, #334155 70%);
    box-shadow: 0 0 20px rgba(125, 211, 252, .15);
}
.sleeper-pillow {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 140px;
    height: 18px;
    border-radius: 10px;
    background: rgba(51, 65, 85, .7);
}

.spirit-trail {
    position: absolute;
    bottom: 78px;
    left: 50%;
    width: 4px;
    height: 90px;
    transform: translateX(-50%);
    background: linear-gradient(to top, rgba(125, 211, 252, .05), rgba(125, 211, 252, .75));
    filter: blur(1px);
    animation: trailPulse 3s ease-in-out infinite;
}
.spirit-orb {
    position: absolute;
    bottom: 155px;
    left: 50%;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    border-radius: 50%;
    background: radial-gradient(circle, #e0f2fe 0%, #7dd3fc 40%, transparent 70%);
    box-shadow: 0 0 18px 6px rgba(56, 189, 248, .45);
    animation: orbRise 4.5s ease-in-out infinite;
}
.spirit-plane {
    position: absolute;
    top: 20px;
    left: 55%;
    width: 56px;
    height: 56px;
    fill: url(#soulFill);
    filter: drop-shadow(0 0 14px rgba(125, 211, 252, .9));
    animation: planeFly 5.5s ease-in-out infinite;
    opacity: .9;
}
.network-ring {
    position: absolute;
    top: 0;
    right: 8%;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(125, 211, 252, .25);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(56, 189, 248, .2), inset 0 0 30px rgba(125, 211, 252, .08);
    animation: ringSpin 12s linear infinite;
}
.network-ring::before,
.network-ring::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(165, 180, 252, .35);
}
.network-ring::before { inset: 16px; }
.network-ring::after { inset: 32px; border-style: solid; border-color: rgba(125, 211, 252, .2); }

@keyframes trailPulse {
    0%, 100% { opacity: .45; height: 80px; }
    50% { opacity: .9; height: 100px; }
}
@keyframes orbRise {
    0%, 100% { transform: translateY(0); opacity: .7; }
    50% { transform: translateY(-18px); opacity: 1; }
}
@keyframes planeFly {
    0% { transform: translate(0, 10px) rotate(-12deg); opacity: .55; }
    40% { transform: translate(40px, -20px) rotate(8deg); opacity: 1; }
    100% { transform: translate(90px, -50px) rotate(-6deg); opacity: .35; }
}
@keyframes ringSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin-top: 220px;
    padding: 28px 32px;
    background: rgba(15, 23, 42, .55);
    border-radius: 28px;
    border: 1px solid rgba(125, 211, 252, .28);
    backdrop-filter: blur(2px);
    box-shadow: 0 28px 60px rgba(0,0,0,.55), inset 0 0 40px rgba(125, 211, 252, .06);
}
.hero-title {
    font-size: 28px;
    margin-bottom: 18px;
    line-height: 1.35;
    background: linear-gradient(90deg, #fff, #e0f2fe, #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content > p.hero,
p.hero {
    font-size: 17px;
    color: #cbd5e1;
    margin: 0 auto 28px;
    max-width: 720px;
}
.hero-buttons { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

.btn-primary, .btn-outline, .btn-dl-card, .btn-more {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: .3s;
}
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
    box-shadow: 0 8px 24px rgba(56, 189, 248, .35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(56, 189, 248, .5); }
.btn-outline {
    border: 1.5px solid rgba(125, 211, 252, .55);
    color: #e0f2fe;
    background: rgba(15, 23, 42, .4);
}
.btn-outline:hover { background: rgba(125, 211, 252, .12); border-color: #7dd3fc; }

.hero-images {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
    max-width: 1100px;
}
.hero-images img {
    width: min(280px, 88vw);
    border-radius: 18px;
    border: 1px solid rgba(125, 211, 252, .25);
    box-shadow: 0 20px 50px rgba(0,0,0,.45), 0 0 30px rgba(56, 189, 248, .12);
    transition: .35s;
}
.hero-images img:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(0,0,0,.5), 0 0 40px rgba(56, 189, 248, .25); }

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    background: linear-gradient(90deg, #fff, #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features { padding: 80px 5%; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(125, 211, 252, .18);
    border-radius: 18px;
    padding: 28px 24px;
    transition: .3s;
    backdrop-filter: blur(2px);
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(125, 211, 252, .45);
    box-shadow: 0 16px 40px rgba(56, 189, 248, .15);
}
.feature-card h3 { font-size: 20px; margin-bottom: 12px; color: #e0f2fe; }
.feature-card p { color: var(--text-muted); font-size: 14px; }

.blog {
    padding: 80px 5%;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}
.blog .section-title {
    background: linear-gradient(90deg, #0f172a, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto 36px;
}
.blog-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(15, 23, 42, .08);
    transition: .3s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(15, 23, 42, .12); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-content { padding: 22px 24px 26px; }
.blog-date { font-size: 13px; color: #64748b; display: block; margin-bottom: 8px; }
.blog-content h3 { font-size: 20px; margin-bottom: 10px; color: #0f172a; }
.blog-content p { color: #475569; font-size: 14px; }
.btn-more {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 12px 28px;
    background: #0f172a;
    color: #fff;
    border-radius: 50px;
}
.btn-more:hover { background: #1e293b; }

.faq { padding: 80px 5%; max-width: 860px; margin: 0 auto; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(125, 211, 252, .16);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 16px;
}
.faq-item:hover { border-color: rgba(125, 211, 252, .35); }
.faq-question { font-size: 17px; font-weight: 700; color: #e0f2fe; margin-bottom: 10px; }
.faq-answer { color: var(--text-muted); font-size: 14px; line-height: 1.75; }

.page-header {
    padding: 90px 5% 50px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, .2) 0%, transparent 55%),
        #060816;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    top: 10%; right: 12%;
    border-radius: 50%;
    border: 1px solid rgba(125, 211, 252, .2);
    animation: ringSpin 18s linear infinite;
}
.page-header-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.page-header h1 { font-size: 28px; margin-bottom: 14px; }
.page-header p { font-size: 17px; color: var(--text-muted); }

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 5% 90px;
}
.download-card {
    background: var(--bg-card);
    border: 1px solid rgba(125, 211, 252, .2);
    border-radius: 18px;
    padding: 32px 28px;
    transition: .3s;
}
.download-card:hover {
    transform: translateY(-5px);
    border-color: rgba(125, 211, 252, .45);
    box-shadow: 0 16px 40px rgba(56, 189, 248, .12);
}
.download-card h3 { font-size: 22px; margin-bottom: 12px; }
.download-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.btn-dl-card {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
    padding: 12px 26px;
    font-size: 15px;
}

.footer {
    background: #020617;
    padding: 60px 5% 24px;
    border-top: 1px solid rgba(125, 211, 252, .12);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 36px;
    max-width: 1100px;
    margin: 0 auto 40px;
}
.footer-col h4 { font-size: 16px; margin-bottom: 16px; color: #e0f2fe; }
.footer-col p, .footer-col li { color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--spirit); }
.footer-bottom {
    text-align: center;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, .15);
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 900px) {
    .features-grid, .blog-grid, .download-grid, .footer-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 14px; font-size: 13px; flex-wrap: wrap; justify-content: flex-end; }
    .hero-title { font-size: 26px; }
    .hero-content { margin-top: 200px; }
    .soul-stage { height: 280px; }
}

/* === 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;
    }
}
