/* ============ Reset & Variables ============ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep: #03050a;
    --bg-card: rgba(8, 10, 22, 0.7);
    --bg-card-hover: rgba(12, 14, 28, 0.85);
    --accent: #00f0a0;
    --accent2: #6c4df8;
    --accent3: #ff6b3b;
    --text: #f4f6ff;
    --text2: #8890b8;
    --text3: #484d6e;
    --border: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(0, 240, 160, 0.15);
    --glass: rgba(8, 10, 22, 0.72);
    --r-sm: 12px;
    --r-md: 20px;
    --r-lg: 28px;
    --r-xl: 36px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============ Background Scene ============ */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    inset: -60%;
    background-image:
        radial-gradient(circle, rgba(108, 77, 248, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 30%, transparent 100%);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.22;
    mix-blend-mode: screen;
}

.bg-glow.g1 {
    width: 800px; height: 800px;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    top: -20%; left: -15%;
    animation: drift1 22s ease-in-out infinite;
}

.bg-glow.g2 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent2), transparent 70%);
    top: 50%; right: -20%;
    animation: drift2 24s ease-in-out infinite;
}

.bg-glow.g3 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--accent3), transparent 70%);
    bottom: -25%; left: 40%;
    animation: drift3 20s ease-in-out infinite;
    opacity: 0.13;
}

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(80px, -60px) scale(1.15) rotate(3deg); }
    66% { transform: translate(-40px, 40px) scale(0.9) rotate(-2deg); }
}

@keyframes drift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-70px, -40px) scale(1.12); }
    66% { transform: translate(40px, 30px) scale(0.88); }
}

@keyframes drift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -35px) scale(1.18); }
}

/* ============ Navigation ============ */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1000px;
    padding: 12px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(8, 10, 22, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.45s var(--ease);
}

.navbar.scrolled {
    background: rgba(8, 10, 22, 0.9);
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 240, 160, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #00c97a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 28px rgba(0, 240, 160, 0.3);
    position: relative;
    transition: transform 0.3s var(--ease-spring);
}

.nav-brand:hover .brand-logo {
    transform: scale(1.06);
}

.brand-logo::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    border: 2px solid rgba(0, 240, 160, 0.25);
    animation: logoRing 2.8s ease-in-out infinite;
}

@keyframes logoRing {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.brand-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.5px;
}

.brand-text span { color: var(--accent); }

.nav-links { display: flex; gap: 6px; }

.nav-link {
    color: var(--text2);
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 100px;
    transition: all 0.35s var(--ease);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--bg-deep);
    background: var(--accent);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 240, 160, 0.3);
}

/* ============ Hero Section ============ */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 180px 24px 100px;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 780px;
}

/* Score Display */
.score-display {
    margin-bottom: 48px;
}

.score-meter {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
}

.score-meter svg { transform: rotate(-90deg); }

.score-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-value {
    font-size: 60px;
    font-weight: 900;
    background: linear-gradient(180deg, var(--accent) 0%, #00c97a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -2px;
}

.score-unit {
    font-size: 14px;
    color: var(--text2);
    font-weight: 600;
    margin-top: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.benchmark-bar {
    width: 280px;
    height: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 100px;
    margin: 40px auto 0;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
    border-radius: 100px;
    animation: barGrow 2.4s var(--ease) forwards;
    width: 0;
}

@keyframes barGrow { to { width: 88%; } }

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 22px 7px 10px;
    background: rgba(108, 77, 248, 0.08);
    border: 1px solid rgba(108, 77, 248, 0.18);
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent2);
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 0.3px;
}

.hero-badge .badge-dot {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent2), #a68eff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 22px;
}

.hero-title .hl {
    background: linear-gradient(135deg, var(--accent) 0%, #00c97a 40%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text2);
    margin-bottom: 52px;
    line-height: 1.8;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.35s var(--ease-spring);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #00c97a);
    color: #03050a;
    box-shadow: 0 12px 40px rgba(0, 240, 160, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 55px rgba(0, 240, 160, 0.45);
}

.btn-primary:active { transform: translateY(-1px); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 100px;
    max-width: 900px;
    width: 100%;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 36px 24px;
    text-align: center;
    transition: all 0.45s var(--ease);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.stat-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    background: var(--bg-card-hover);
}

.stat-card:hover::before { opacity: 1; }

.stat-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.stat-number {
    display: block;
    font-size: 38px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.stat-label {
    display: block;
    color: var(--text2);
    font-size: 13px;
    font-weight: 500;
}

/* ============ Features Section ============ */
.features-section {
    padding: 160px 24px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 90px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 18px;
    background: rgba(0, 240, 160, 0.06);
    border: 1px solid rgba(0, 240, 160, 0.15);
    border-radius: 100px;
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-title .hl {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text2);
    font-size: 18px;
    font-weight: 400;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 44px 36px;
    transition: all 0.45s var(--ease);
    position: relative;
    overflow: hidden;
    cursor: default;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(700px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 240, 160, 0.06), transparent 55%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.feature-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-10px);
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.55);
    background: var(--bg-card-hover);
}

.feature-card:hover::after { opacity: 1; }

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    transition: transform 0.35s var(--ease-spring);
}

.feature-card:hover .feature-icon-wrap {
    transform: scale(1.08);
}

.feature-icon-wrap.c1 { background: rgba(0, 240, 160, 0.1); color: var(--accent); }
.feature-icon-wrap.c2 { background: rgba(108, 77, 248, 0.1); color: var(--accent2); }
.feature-icon-wrap.c3 { background: rgba(255, 107, 59, 0.1); color: var(--accent3); }
.feature-icon-wrap.c4 { background: rgba(56, 189, 248, 0.1); color: #38bdf8; }

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text2);
    font-size: 15px;
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

/* ============ Trust Section ============ */
.trust-section {
    padding: 0 24px 160px;
    position: relative;
    z-index: 1;
}

.trust-bar {
    max-width: 1240px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 50px 48px;
    display: flex;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.trust-item {
    text-align: center;
    flex: 1;
    min-width: 140px;
    position: relative;
}

.trust-item + .trust-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: var(--border);
}

.trust-item .num {
    display: block;
    font-size: 44px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.trust-item .txt {
    font-size: 13px;
    color: var(--text2);
    font-weight: 500;
}

/* ============ Download Page ============ */
.download-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 180px 24px 100px;
    position: relative;
    z-index: 1;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 60px 50px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.download-card::before {
    content: '';
    position: absolute;
    top: -70%;
    left: -70%;
    width: 240%;
    height: 240%;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 240, 160, 0.06), transparent 60%);
    pointer-events: none;
}

.download-icon-wrap {
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
    background: linear-gradient(135deg, var(--accent), #00c97a);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    box-shadow: 0 28px 70px rgba(0, 240, 160, 0.28);
    position: relative;
    transition: transform 0.35s var(--ease-spring);
}

.download-card:hover .download-icon-wrap {
    transform: scale(1.04);
}

.download-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 36px;
    border: 2px solid rgba(0, 240, 160, 0.2);
    animation: iconPulse 2.4s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

.download-card .card-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.download-card .card-desc {
    color: var(--text2);
    margin-bottom: 30px;
    font-size: 15px;
}

.version-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 240, 160, 0.08);
    border: 1px solid rgba(0, 240, 160, 0.18);
    padding: 7px 22px;
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 40px;
}

.version-tag .v-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--accent); }
    50% { opacity: 0.2; box-shadow: 0 0 2px var(--accent); }
}

.info-grid {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 4px;
    margin-bottom: 40px;
    text-align: left;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child { border-bottom: none; }

.info-label {
    color: var(--text2);
    font-size: 14px;
    font-weight: 500;
}

.info-value {
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
}

.btn-download {
    width: 100%;
    justify-content: center;
    font-size: 18px;
    padding: 20px;
    gap: 12px;
}

.btn-download .arrow {
    transition: transform 0.35s var(--ease-spring);
}

.btn-download:hover .arrow {
    transform: translateY(4px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 30px;
    color: var(--text2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover { color: var(--accent); }

/* ============ 404 Page ============ */
.error-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 180px 24px 100px;
    position: relative;
    z-index: 1;
}

.error-content {
    text-align: center;
    max-width: 520px;
}

.error-visual {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto 56px;
}

.error-ring {
    width: 240px;
    height: 240px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    opacity: 0.4;
    animation: errorSpin 30s linear infinite;
}

@keyframes errorSpin { to { transform: rotate(360deg); } }

.error-crack {
    position: absolute;
    width: 3px;
    height: 60px;
    background: var(--accent2);
    top: 20px;
    right: 52px;
    transform: rotate(42deg);
    border-radius: 2px;
    opacity: 0.4;
}

.error-crack::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 4px;
    width: 12px;
    height: 12px;
    background: var(--accent2);
    border-radius: 50%;
    opacity: 0.3;
}

.error-code {
    font-size: 160px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.8;
    letter-spacing: -6px;
}

.error-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.error-message {
    color: var(--text2);
    font-size: 16px;
    margin-bottom: 50px;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ Footer ============ */
.footer {
    text-align: center;
    padding: 40px;
    color: var(--text3);
    font-size: 13px;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    font-weight: 500;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .hero-title { font-size: 42px; letter-spacing: -1px; }
    .hero-subtitle { font-size: 15px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .stats-row { grid-template-columns: 1fr; gap: 14px; }
    .stat-card { max-width: 380px; margin: 0 auto; }
    .features-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 34px; }
    .trust-bar { gap: 0; padding: 36px 28px; }
    .trust-item { flex: 1 1 100%; padding: 22px 0; }
    .trust-item + .trust-item::before { display: none; }
    .trust-item + .trust-item { border-top: 1px solid var(--border); }
    .navbar { padding: 10px 20px; top: 14px; width: calc(100% - 28px); }
    .brand-text { font-size: 17px; }
    .download-card { padding: 40px 28px; }
    .error-code { font-size: 120px; }
    .error-actions { flex-direction: column; align-items: center; }
    .score-meter { width: 160px; height: 160px; }
    .score-value { font-size: 48px; }
    .benchmark-bar { width: 240px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 32px; }
    .score-meter { width: 140px; height: 140px; }
    .score-value { font-size: 40px; }
    .section-title { font-size: 26px; }
    .nav-link { padding: 8px 16px; font-size: 12px; }
    .benchmark-bar { width: 200px; }
    .error-code { font-size: 100px; letter-spacing: -4px; }
    .error-ring { width: 180px; height: 180px; font-size: 60px; }
    .error-visual { width: 180px; height: 180px; }
}
