/* ============ Reset & Variables ============ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep: #05060f;
    --bg-primary: #0a0c1a;
    --bg-card: rgba(14, 16, 30, 0.8);
    --accent: #00e599;
    --accent2: #7c5cfc;
    --accent3: #f9a826;
    --text: #eef2ff;
    --text2: #8b90b5;
    --text3: #4e5278;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.12);
    --glass: rgba(14, 16, 30, 0.75);
    --r-sm: 10px;
    --r-md: 18px;
    --r-lg: 24px;
    --r-xl: 32px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ============ Background Scene ============ */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    inset: -50%;
    background-image:
        linear-gradient(rgba(124, 92, 252, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 92, 252, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: perspective(500px) rotateX(60deg) scale(1.8);
    transform-origin: center top;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.28;
}

.bg-glow.g1 {
    width: 700px; height: 700px;
    background: var(--accent);
    top: -250px; left: -200px;
    animation: drift1 18s ease-in-out infinite;
}

.bg-glow.g2 {
    width: 550px; height: 550px;
    background: var(--accent2);
    top: 45%; right: -250px;
    animation: drift2 20s ease-in-out infinite;
}

.bg-glow.g3 {
    width: 400px; height: 400px;
    background: var(--accent3);
    bottom: -180px; left: 35%;
    animation: drift3 16s ease-in-out infinite;
    opacity: 0.18;
}

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -40px) scale(1.12); }
    66% { transform: translate(-30px, 30px) scale(0.92); }
}

@keyframes drift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, -30px) scale(1.1); }
    66% { transform: translate(30px, 20px) scale(0.9); }
}

@keyframes drift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -25px) scale(1.15); }
}

/* ============ Navigation ============ */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1240px;
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(10, 12, 26, 0.8);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.4s var(--ease);
}

.navbar.scrolled {
    background: rgba(10, 12, 26, 0.92);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 229, 153, 0.08);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #00c47a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 24px rgba(0, 229, 153, 0.35);
    position: relative;
}

.brand-logo::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 15px;
    border: 1.5px solid rgba(0, 229, 153, 0.3);
    animation: logoRing 2.5s ease-in-out infinite;
}

@keyframes logoRing {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.08); opacity: 0.8; }
}

.brand-text {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.3px;
}

.brand-text span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    color: var(--text2);
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 100px;
    transition: all 0.3s var(--ease);
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--bg-deep);
    background: linear-gradient(135deg, var(--accent), #00c47a);
    font-weight: 600;
}

/* ============ Hero ============ */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 160px 24px 100px;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

/* Score Meter */
.score-display {
    margin-bottom: 52px;
}

.score-meter {
    width: 180px;
    height: 180px;
    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: 54px;
    font-weight: 800;
    background: linear-gradient(180deg, var(--accent), #00c47a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.score-unit {
    font-size: 15px;
    color: var(--text2);
    font-weight: 500;
    margin-top: 2px;
}

.benchmark-bar {
    width: 300px;
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    margin: 36px auto 0;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 100px;
    position: relative;
    animation: barGrow 2.2s var(--ease) forwards;
    width: 0;
}

.bar-fill::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 229, 153, 0.8), 0 0 40px rgba(0, 229, 153, 0.4);
}

@keyframes barGrow {
    to { width: 88%; }
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 20px 6px 8px;
    background: rgba(124, 92, 252, 0.08);
    border: 1px solid rgba(124, 92, 252, 0.2);
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent2);
    font-weight: 500;
    margin-bottom: 32px;
}

.hero-badge .badge-dot {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--accent2), #a78bfa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.hero-title {
    font-size: 68px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-title .hl {
    background: linear-gradient(135deg, var(--accent) 0%, #00c47a 50%, 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: 48px;
    line-height: 1.8;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s var(--ease);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #00c47a);
    color: #05060f;
    box-shadow: 0 10px 35px rgba(0, 229, 153, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 45px rgba(0, 229, 153, 0.5);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 20px;
    margin-top: 90px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px 40px;
    text-align: center;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-card:hover {
    border-color: rgba(0, 229, 153, 0.2);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.stat-card:hover::before { opacity: 1; }

.stat-icon {
    font-size: 30px;
    margin-bottom: 14px;
    display: block;
}

.stat-number {
    display: block;
    font-size: 34px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    color: var(--text2);
    font-size: 13px;
}

/* ============ Features Section ============ */
.features-section {
    padding: 140px 24px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 16px;
    background: rgba(0, 229, 153, 0.08);
    border: 1px solid rgba(0, 229, 153, 0.2);
    border-radius: 100px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.section-title {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.5px;
    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;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 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: 40px 34px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    cursor: default;
    backdrop-filter: blur(10px);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 153, 0.05), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
}

.feature-card:hover {
    border-color: rgba(0, 229, 153, 0.18);
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.feature-card:hover::after { opacity: 1; }

.feature-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}

.feature-icon-wrap.c1 { background: rgba(0, 229, 153, 0.12); color: var(--accent); }
.feature-icon-wrap.c2 { background: rgba(124, 92, 252, 0.12); color: var(--accent2); }
.feature-icon-wrap.c3 { background: rgba(249, 168, 38, 0.12); color: var(--accent3); }
.feature-icon-wrap.c4 { background: rgba(244, 114, 182, 0.12); color: #f472b6; }

.feature-card h3 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text2);
    font-size: 15px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ============ Trust Section ============ */
.trust-section {
    padding: 0 24px 140px;
    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: 44px 40px;
    display: flex;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
}

.trust-item {
    text-align: center;
    flex: 1;
    min-width: 140px;
    position: relative;
}

.trust-item+.trust-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--border);
}

.trust-item .num {
    display: block;
    font-size: 40px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.trust-item .txt {
    font-size: 13px;
    color: var(--text2);
}

/* ============ Download Page ============ */
.download-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 24px 100px;
    position: relative;
    z-index: 1;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 52px 44px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.download-card::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 229, 153, 0.07), transparent 65%);
    pointer-events: none;
}

.download-icon-wrap {
    width: 108px;
    height: 108px;
    margin: 0 auto 36px;
    background: linear-gradient(135deg, var(--accent), #00c47a);
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    box-shadow: 0 24px 60px rgba(0, 229, 153, 0.3);
    position: relative;
}

.download-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 32px;
    border: 2px solid rgba(0, 229, 153, 0.25);
    animation: iconPulse 2.2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.08); opacity: 1; }
}

.download-card .card-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 8px;
}

.download-card .card-desc {
    color: var(--text2);
    margin-bottom: 28px;
    font-size: 15px;
}

.version-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 153, 0.1);
    border: 1px solid rgba(0, 229, 153, 0.2);
    padding: 6px 20px;
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 36px;
}

.version-tag .v-dot {
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
    50% { opacity: 0.3; box-shadow: 0 0 2px var(--accent); }
}

.info-grid {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 6px;
    margin-bottom: 36px;
    text-align: left;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child { border-bottom: none; }

.info-label {
    color: var(--text2);
    font-size: 14px;
}

.info-value {
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}

.btn-download {
    width: 100%;
    justify-content: center;
    font-size: 17px;
    padding: 18px;
    gap: 10px;
}

.btn-download .arrow {
    transition: transform 0.3s var(--ease);
}

.btn-download:hover .arrow {
    transform: translateY(3px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    color: var(--text2);
    text-decoration: none;
    font-size: 14px;
    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: 160px 24px 100px;
    position: relative;
    z-index: 1;
}

.error-content {
    text-align: center;
    max-width: 540px;
}

.error-visual {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 52px;
}

.error-ring {
    width: 220px;
    height: 220px;
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 76px;
    opacity: 0.45;
    animation: errorSpin 25s linear infinite;
}

@keyframes errorSpin {
    to { transform: rotate(360deg); }
}

.error-crack {
    position: absolute;
    width: 4px;
    height: 50px;
    background: var(--accent2);
    top: 24px;
    right: 48px;
    transform: rotate(40deg);
    border-radius: 2px;
    opacity: 0.5;
}

.error-crack::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 6px;
    width: 10px;
    height: 10px;
    background: var(--accent2);
    border-radius: 50%;
    opacity: 0.35;
}

.error-code {
    font-size: 150px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.85;
    letter-spacing: -4px;
}

.error-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 14px;
}

.error-message {
    color: var(--text2);
    font-size: 16px;
    margin-bottom: 44px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ Footer ============ */
.footer {
    text-align: center;
    padding: 36px;
    color: var(--text3);
    font-size: 13px;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .hero-title { font-size: 40px; }
    .hero-subtitle { font-size: 15px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .stats-row { flex-direction: column; align-items: center; }
    .stat-card { width: 100%; max-width: 320px; }
    .features-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 32px; }
    .trust-bar { gap: 0; padding: 32px 24px; }
    .trust-item { flex: 1 1 100%; padding: 20px 0; }
    .trust-item+.trust-item::before { display: none; }
    .trust-item+.trust-item { border-top: 1px solid var(--border); }
    .navbar { padding: 12px 22px; top: 12px; width: calc(100% - 32px); }
    .brand-text { font-size: 16px; }
    .download-card { padding: 36px 24px; }
    .error-code { font-size: 110px; }
    .error-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 32px; }
    .score-meter { width: 140px; height: 140px; }
    .score-value { font-size: 42px; }
    .section-title { font-size: 26px; }
    .nav-link { padding: 8px 16px; font-size: 13px; }
    .benchmark-bar { width: 240px; }
}
