/* ===== Variables ===== */
:root {
    --color-bg: #050b14;
    --color-surface: rgba(13, 22, 38, 0.65);
    --color-surface-solid: #0b1321;
    --color-border: rgba(99, 102, 241, 0.18);
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-primary: #00f2ff;
    --color-primary-dim: rgba(0, 242, 255, 0.12);
    --color-secondary: #6366f1;
    --color-accent: #0ea5e9;
    --gradient-hero: linear-gradient(135deg, #00f2ff 0%, #6366f1 50%, #0ea5e9 100%);
    --gradient-text: linear-gradient(90deg, #00f2ff, #6366f1, #0ea5e9);
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-glow: 0 0 40px rgba(0, 242, 255, 0.15);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.35);
    --max-width: 1280px;
    --font-cn: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    --font-en: 'Rajdhani', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-cn);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Background FX ===== */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 242, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black 20%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 90%);
    pointer-events: none;
    z-index: -2;
}

.bg-glow {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 60%);
    pointer-events: none;
    z-index: -3;
    animation: glowMove 20s ease-in-out infinite alternate;
}

@keyframes glowMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 60px) scale(1.15); }
}

#particle-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: var(--gradient-hero);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 45px rgba(0, 242, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: rgba(0, 242, 255, 0.45);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary-dim);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.15);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    transition: all 0.35s ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(5, 11, 20, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--color-border);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.4));
}

.logo-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-hero);
    transition: width 0.25s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 80vw);
    height: 100vh;
    background: rgba(8, 16, 28, 0.98);
    border-left: 1px solid var(--color-border);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 100px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: right 0.35s ease;
}

.mobile-menu.open {
    right: 0;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--color-primary-dim);
    border: 1px solid rgba(0, 242, 255, 0.2);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    width: fit-content;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-title .gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    position: relative;
}

.stat-number {
    font-family: var(--font-en);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 6px;
}

.hero-visual {
    position: relative;
    perspective: 1200px;
}

.hero-screen {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.5),
        0 0 60px rgba(0, 242, 255, 0.12);
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.6s ease;
}

.hero-screen:hover {
    transform: rotateY(-4deg) rotateX(2deg);
}

.hero-screen img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,242,255,0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.fc-1 {
    top: 12%;
    right: -8%;
    animation: float 5s ease-in-out infinite;
}

.fc-2 {
    bottom: 18%;
    left: -10%;
    animation: float 6s ease-in-out infinite reverse;
}

.fc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gradient-hero);
    display: grid;
    place-items: center;
    color: #000;
    font-weight: 700;
}

.fc-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.fc-text strong {
    color: var(--color-text);
    font-size: 0.95rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===== Section Common ===== */
.section {
    padding: 110px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 70px;
}

.section-label {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--color-primary-dim);
    border: 1px solid rgba(0, 242, 255, 0.2);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-title .gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ===== Feature Cards ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.35s ease;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 255, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--color-primary-dim);
    border: 1px solid rgba(0, 242, 255, 0.2);
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    color: var(--color-primary);
    transition: all 0.35s ease;
}

.feature-card:hover .feature-icon {
    background: var(--gradient-hero);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.25);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Screenshots Gallery ===== */
.gallery-section {
    background: linear-gradient(180deg, transparent 0%, rgba(99,102,241,0.04) 50%, transparent 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 30px 60px rgba(0,0,0,0.45), 0 0 40px rgba(0, 242, 255, 0.1);
    border-color: rgba(0, 242, 255, 0.3);
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(0deg, rgba(5,11,20,0.95) 0%, transparent 100%);
}

.gallery-meta h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.gallery-meta p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ===== Showcase ===== */
.showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    margin-bottom: 100px;
}

.showcase-row:last-child {
    margin-bottom: 0;
}

.showcase-row.reverse {
    direction: rtl;
}

.showcase-row.reverse > * {
    direction: ltr;
}

.showcase-image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 25px 60px rgba(0,0,0,0.45);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.showcase-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 80px rgba(0,0,0,0.55), 0 0 40px rgba(0, 242, 255, 0.12);
}

.showcase-image img {
    width: 100%;
    height: auto;
}

.showcase-content h3 {
    font-size: 1.7rem;
    margin-bottom: 16px;
}

.showcase-content p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    font-size: 0.95rem;
}

.check-list svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* ===== Download Section/Page ===== */
.download-section {
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 100px;
    display: flex;
    align-items: center;
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.download-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 44px;
    backdrop-filter: blur(14px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,242,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.app-icon-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: 28px;
    background: var(--gradient-hero);
    display: grid;
    place-items: center;
    box-shadow: 0 20px 50px rgba(0, 242, 255, 0.25);
    position: relative;
    z-index: 1;
}

.app-icon-large svg {
    width: 64px;
    height: 64px;
    color: #000;
}

.download-card h2 {
    font-size: 1.9rem;
    margin-bottom: 8px;
}

.version-meta {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.version-meta span {
    display: inline-block;
    margin: 0 8px;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.download-note {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.qr-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    margin-top: 24px;
}

.qr-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 14px;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 8px;
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.15);
    overflow: hidden;
}

.qr-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.qr-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.download-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.download-info p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: rgba(0, 242, 255, 0.35);
    transform: translateX(6px);
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-primary-dim);
    display: grid;
    place-items: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.info-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== CTA Banner ===== */
.cta-banner {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-inner {
    position: relative;
    background: linear-gradient(135deg, rgba(99,102,241,0.18) 0%, rgba(14,165,233,0.12) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 60px;
    text-align: center;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0,242,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-inner h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-inner p {
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto 32px;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--color-surface-solid);
    border-top: 1px solid var(--color-border);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 18px;
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 22px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    display: grid;
    place-items: center;
    color: var(--color-text-muted);
    transition: all 0.25s ease;
}

.social-link:hover {
    color: var(--color-primary);
    border-color: rgba(0, 242, 255, 0.35);
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-title {
    font-size: 1rem;
    margin-bottom: 18px;
    color: var(--color-text);
}

.footer-link {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
    color: var(--color-primary);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-grid,
    .download-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-visual {
        order: -1;
        max-width: 700px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid,
    .showcase-row,
    .showcase-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .showcase-row,
    .showcase-row.reverse {
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav,
    .header-actions .btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section {
        padding: 80px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .download-card {
        padding: 28px;
    }

    .cta-inner {
        padding: 40px 24px;
    }

    .floating-card {
        display: none;
    }
}
