/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a18;
    color: #e0e0f0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── 背景光暈 ── */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.glow-1 { width: 500px; height: 500px; background: #3D5AFE; top: -100px; left: -100px; }
.glow-2 { width: 400px; height: 400px; background: #7C4DFF; bottom: -50px; right: -50px; }
.glow-3 { width: 300px; height: 300px; background: #00BCD4; top: 40%; left: 60%; opacity: 0.2; }

/* ── Nav ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; backdrop-filter: blur(20px); background: rgba(10,10,24,0.6); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-inner { max-width: 960px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.logo-icon { font-size: 1.3rem; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: #a0a0c0; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }

/* ── Hero ── */
.hero { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 24px 60px; }
.hero-inner { max-width: 880px; text-align: center; }
.badge { display: inline-block; padding: 6px 18px; border-radius: 999px; background: rgba(61,90,254,0.15); border: 1px solid rgba(61,90,254,0.25); color: #8CA8FF; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 28px; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.gradient-text { background: linear-gradient(135deg, #6C8CFF, #9BE15D); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.05rem; color: #9090b0; max-width: 560px; margin: 0 auto 36px; }
.download-btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 40px; background: linear-gradient(135deg, #3D5AFE, #6C8CFF); color: #fff; text-decoration: none; border-radius: 16px; font-weight: 700; font-size: 1.1rem; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 24px rgba(61,90,254,0.35); }
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(61,90,254,0.5); }
.download-btn:active { transform: translateY(0); }
.download-btn-lg { padding: 20px 52px; font-size: 1.2rem; border-radius: 18px; }
.version { margin-top: 14px; font-size: 0.82rem; color: #606080; }

/* ── Phone Mock ── */
.hero-visual { margin-top: 56px; display: flex; justify-content: center; }
.phone-mock {
    width: 260px; border-radius: 32px; border: 3px solid rgba(255,255,255,0.1);
    background: linear-gradient(180deg, #12122A, #1A1A3A);
    box-shadow: 0 20px 80px rgba(0,0,0,0.5);
    overflow: hidden; position: relative;
}
.phone-status-bar { display: flex; justify-content: space-between; padding: 10px 18px 6px; font-size: 0.7rem; color: #888; }
.phone-screen { padding: 8px 20px 28px; text-align: center; }
.phone-app-name { font-weight: 800; font-size: 1rem; margin-bottom: 14px; color: #c8c8ff; }
.phone-node-card { background: rgba(255,255,255,0.04); border-radius: 14px; padding: 12px; margin-bottom: 20px; text-align: left; }
.phone-node-label { font-size: 0.65rem; color: #6C8CFF; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.phone-node-name { font-weight: 600; font-size: 0.85rem; }
.phone-node-addr { font-size: 0.72rem; color: #666; }
.phone-btn-circle { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 12px; background: linear-gradient(135deg, #00C853, #69F0AE); display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 0 40px rgba(0,200,83,0.4); }
.phone-btn-icon { font-size: 2rem; color: #0a0a18; }
.phone-status { font-weight: 700; font-size: 0.9rem; color: #69F0AE; }
.phone-pulse { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 80px; height: 80px; border-radius: 50%; border: 2px solid rgba(105,240,174,0.3); animation: pulse 2s ease-in-out infinite; pointer-events: none; }
@keyframes pulse { 0% { transform: translateX(-50%) scale(1); opacity: 0.6; } 100% { transform: translateX(-50%) scale(1.8); opacity: 0; } }

/* ── Features ── */
.features { position: relative; z-index: 1; padding: 100px 24px; }
.features-inner { max-width: 960px; margin: 0 auto; }
.features h2 { text-align: center; font-size: 2rem; margin-bottom: 48px; }
.gradient-text-sm { background: linear-gradient(135deg, #6C8CFF, #9BE15D); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 28px 24px;
    transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(108,140,255,0.3); }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 700; }
.feature-card p { font-size: 0.88rem; color: #9090b0; line-height: 1.55; }

/* ── How ── */
.how { position: relative; z-index: 1; padding: 100px 24px; background: rgba(255,255,255,0.01); }
.how-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.how h2 { font-size: 2rem; margin-bottom: 48px; }
.steps-grid { display: flex; align-items: flex-start; gap: 16px; justify-content: center; flex-wrap: wrap; }
.step { flex: 1; min-width: 200px; max-width: 240px; text-align: left; }
.step-num { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #3D5AFE, #6C8CFF); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 16px; }
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 0.85rem; color: #9090b0; line-height: 1.55; }
.step code { background: rgba(108,140,255,0.12); padding: 2px 8px; border-radius: 6px; font-size: 0.82rem; color: #8CA8FF; }
.step-arrow { font-size: 1.5rem; color: #3D5AFE; padding-top: 12px; }

/* ── CTA ── */
.cta { position: relative; z-index: 1; padding: 100px 24px; text-align: center; }
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta h2 { font-size: 2rem; margin-bottom: 12px; }
.cta p { color: #9090b0; margin-bottom: 36px; }

/* ── Footer ── */
.footer { position: relative; z-index: 1; text-align: center; padding: 40px 24px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer p { font-size: 0.82rem; color: #606080; }
.footer-sub { margin-top: 6px; font-size: 0.72rem; color: #404060; }

/* ── 404 fallback ── */
.error-msg { padding: 48px; text-align: center; }
.error-msg h2 { font-size: 1.4rem; margin-bottom: 12px; }
.error-msg p { color: #9090b0; }

@media (max-width: 600px) {
    .step-arrow { display: none; }
    .steps-grid { flex-direction: column; align-items: center; }
    .phone-mock { width: 220px; }
}