/* ============ Reset & Base ============ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #14141f;
    --accent: #00d4aa;
    --accent2: #6366f1;
    --accent3: #f59e0b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --border: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 212, 170, 0.15);
    --glass: rgba(20, 20, 31, 0.7);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============ Animated Background ============ */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: orbFloat 12s ease-in-out infinite;
}

.bg-orb.o1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.2), transparent 70%);
    top: -200px;
    left: -150px;
    animation-delay: 0s;
}

.bg-orb.o2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
    top: 40%;
    right: -200px;
    animation-delay: -4s;
}

.bg-orb.o3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1), transparent 70%);
    bottom: -150px;
    left: 30%;
    animation-delay: -8s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ============ Navigation ============ */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent), #00b894);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.brand-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.brand-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 6px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 100px;
    transition: all var(--transition);
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* ============ Hero Section ============ */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

/* Score Circle */
.score-display {
    margin-bottom: 48px;
    position: relative;
}

.score-ring {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    position: relative;
}

.score-ring canvas {
    position: absolute;
    top: 0;
    left: 0;
}

.score-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-value {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.score-unit {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
}

.benchmark-bar {
    width: 280px;
    height: 6px;
    background: var(--bg-card);
    border-radius: 100px;
    margin: 32px auto 0;
    overflow: hidden;
    border: 1px solid var(--border);
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 100px;
    position: relative;
    animation: barGrow 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    width: 0;
}

.bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.6);
}

@keyframes barGrow {
    to { width: 88%; }
}

/* Hero Text */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 28px;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--accent); }
    50% { opacity: 0.4; box-shadow: 0 0 2px var(--accent); }
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.15;
}

.hero-title .gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #34d399 40%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 44px;
    line-height: 1.8;
    max-width: 600px;
    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: 15px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #00b894);
    color: #0a0a0f;
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 212, 170, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 24px;
    margin-top: 80px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 36px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.stat-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
}

/* ============ Features Section ============ */
.features-section {
    padding: 120px 24px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 12px;
    color: var(--accent2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 18px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 212, 170, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.feature-icon-wrap.c1 { background: rgba(0, 212, 170, 0.12); color: var(--accent); }
.feature-icon-wrap.c2 { background: rgba(99, 102, 241, 0.12); color: var(--accent2); }
.feature-icon-wrap.c3 { background: rgba(245, 158, 11, 0.12); color: var(--accent3); }
.feature-icon-wrap.c4 { background: rgba(236, 72, 153, 0.12); color: #ec4899; }

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ============ Testimonials / Trust ============ */
.trust-section {
    padding: 0 24px 120px;
    position: relative;
    z-index: 1;
}

.trust-marquee {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
    overflow: hidden;
}

.trust-item {
    text-align: center;
}

.trust-item .num {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.trust-item .txt {
    font-size: 13px;
    color: var(--text-secondary);
}

.trust-divider {
    width: 1px;
    background: var(--border);
    align-self: stretch;
}

/* ============ Download Page ============ */
.download-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 80px;
    position: relative;
    z-index: 1;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 212, 170, 0.06), transparent 60%);
    pointer-events: none;
}

.download-icon-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, var(--accent), #00b894);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 20px 50px rgba(0, 212, 170, 0.25);
    position: relative;
}

.download-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 28px;
    border: 2px solid rgba(0, 212, 170, 0.3);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.06); opacity: 1; }
}

.download-card .card-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.download-card .card-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.version-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.2);
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 32px;
}

.version-tag .v-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.info-grid {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px;
    margin-bottom: 32px;
    text-align: left;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.info-value {
    color: var(--text-primary);
    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 var(--transition);
}

.btn-download:hover .arrow {
    transform: translateY(2px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--accent);
}

/* ============ 404 Page ============ */
.error-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 80px;
    position: relative;
    z-index: 1;
}

.error-content {
    text-align: center;
    max-width: 560px;
}

.error-visual {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 48px;
}

.error-circle {
    width: 200px;
    height: 200px;
    border: 2px dashed var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    opacity: 0.5;
    animation: errorSpin 20s linear infinite;
}

@keyframes errorSpin {
    to { transform: rotate(360deg); }
}

.error-crack {
    position: absolute;
    width: 3px;
    height: 40px;
    background: var(--accent2);
    top: 30px;
    right: 50px;
    transform: rotate(35deg);
    border-radius: 2px;
    opacity: 0.6;
}

.error-crack::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 4px;
    width: 8px;
    height: 8px;
    background: var(--accent2);
    border-radius: 50%;
    opacity: 0.4;
}

.error-code {
    font-size: 140px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.8;
}

.error-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.error-message {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 40px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ Footer ============ */
.footer {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    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: 38px;
    }

    .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: 300px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 12px 20px;
    }

    .brand-text {
        font-size: 16px;
    }

    .section-title {
        font-size: 30px;
    }

    .trust-marquee {
        gap: 24px;
    }

    .trust-divider {
        display: none;
    }

    .trust-item {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .trust-item:last-child {
        border-bottom: none;
    }

    .download-card {
        padding: 32px 24px;
    }

    .error-code {
        font-size: 100px;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 30px;
    }

    .score-ring {
        width: 130px;
        height: 130px;
    }

    .score-value {
        font-size: 40px;
    }

    .nav-links {
        gap: 2px;
    }

    .nav-link {
        padding: 6px 14px;
        font-size: 13px;
    }
}
