:root {
    --primary: #d4a03c;
    --primary-dark: #b8860b;
    --accent: #c0392b;
    --bg-dark: #0a0a0f;
    --bg-card: #14141f;
    --bg-card-hover: #1a1a2e;
    --text: #e8e6e3;
    --text-muted: #a0a0b0;
    --gradient-gold: linear-gradient(135deg, #d4a03c, #f0d060, #b8860b);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #1a1020 50%, #0a0a0f 100%);
    --shadow-gold: 0 0 30px rgba(212, 160, 60, 0.15);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---- Navigation ---- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
}
.nav.scrolled,
.nav.menu-open {
    background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 60, 0.15);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.4rem; font-weight: 900;
    background: var(--gradient-gold); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
    letter-spacing: 2px; cursor: pointer; text-decoration: none;
}
.nav-logo-icon {
    width: 36px; height: 36px; border-radius: 8px;
    object-fit: cover; -webkit-text-fill-color: initial;
}
.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-size: 0.95rem;
    font-weight: 500; transition: color 0.3s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-toggle {
    display: none; border: none; cursor: pointer; padding: 8px;
    flex-direction: column; gap: 5px; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(212, 160, 60, 0.15);
    transition: all 0.3s;
}
.nav-toggle:hover { background: rgba(212, 160, 60, 0.25); }
.nav-toggle.active { background: rgba(212, 160, 60, 0.2); }
.nav-toggle span {
    display: block; width: 22px; height: 2px; background: var(--primary);
    transition: all 0.3s; border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ---- Hero ---- */
.hero {
    position: relative; width: 100%; height: 100vh; min-height: 600px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,15,0.3) 0%, rgba(10,10,15,0.7) 70%, var(--bg-dark) 100%);
    z-index: 2;
}
.hero-content {
    position: absolute; bottom: 15%; left: 50%; transform: translateX(-50%);
    text-align: center; z-index: 3; width: 90%; max-width: 700px;
}
.hero-tag {
    display: inline-block; padding: 6px 20px; border: 1px solid var(--primary);
    border-radius: 50px; color: var(--primary); font-size: 0.85rem;
    font-weight: 600; letter-spacing: 2px; margin-bottom: 20px;
    background: rgba(212, 160, 60, 0.1);
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: 4px;
    margin-bottom: 16px;
    background: var(--gradient-gold); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem); color: var(--text-muted);
    margin-bottom: 32px; line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* ---- QR Code ---- */
.qr-btn-wrapper { position: relative; display: inline-flex; }
.qr-popup {
    display: none; position: absolute; bottom: calc(100% + 16px); left: 50%;
    transform: translateX(-50%); z-index: 100; padding: 12px;
    background: #fff; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.qr-popup::before {
    content: ''; position: absolute; bottom: -8px; left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent; border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}
.qr-popup canvas, .qr-popup img { display: block; border-radius: 4px; }
.qr-btn-wrapper:hover .qr-popup { display: block; }
/* hide on mobile */
@media (max-width: 768px) {
    .qr-btn-wrapper:hover .qr-popup { display: none; }
}

/* QR in CTA */
.qr-mobile {
    margin-top: 32px; display: flex; flex-direction: column; align-items: center;
}
.qr-mobile > div { display: inline-block; }
.qr-mobile canvas, .qr-mobile img {
    display: block; padding: 12px; background: #fff;
    border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin: 0 auto;
}

.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 36px;
    border-radius: 50px; font-size: 1rem; font-weight: 700; cursor: pointer;
    text-decoration: none; transition: all 0.3s; border: none; letter-spacing: 1px;
}
.btn-primary {
    background: var(--gradient-gold); color: #1a1a1a; box-shadow: 0 8px 30px rgba(212, 160, 60, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(212, 160, 60, 0.45); }
.btn-outline {
    background: transparent; color: var(--primary); border: 2px solid var(--primary);
}
.btn-outline:hover { background: rgba(212, 160, 60, 0.1); border-color: #f0d060; }
.scroll-indicator {
    position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: var(--text-muted); font-size: 0.75rem; opacity: 0.6;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ---- Sections ---- */
.section { padding: 100px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
    display: inline-block; padding: 6px 20px; border: 1px solid var(--primary);
    border-radius: 50px; color: var(--primary); font-size: 0.8rem;
    font-weight: 600; letter-spacing: 3px; margin-bottom: 16px;
    background: rgba(212, 160, 60, 0.05);
    text-transform: uppercase;
}
.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900; letter-spacing: 3px;
    background: var(--gradient-gold); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px;
}
.section-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ---- Intro Section ---- */
.intro-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.intro-text h3 { font-size: 1.5rem; color: var(--primary); margin-bottom: 20px; letter-spacing: 2px; }
.intro-text p { color: var(--text-muted); margin-bottom: 16px; font-size: 1rem; }
.intro-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.stat-card {
    background: var(--bg-card); border: 1px solid rgba(212,160,60,0.1);
    border-radius: 16px; padding: 24px 16px; text-align: center;
    transition: all 0.3s;
}
.stat-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.stat-num { font-size: 1.8rem; font-weight: 900; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.intro-image { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-gold); }
.intro-image img { width: 100%; height: auto; display: block; border-radius: 20px; }

/* ---- Features ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--bg-card); border: 1px solid rgba(212,160,60,0.08);
    border-radius: 20px; padding: 36px 28px; transition: all 0.4s;
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient-gold); transform: scaleX(0); transition: transform 0.4s;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { border-color: rgba(212,160,60,0.3); transform: translateY(-6px); box-shadow: var(--shadow-gold); background: var(--bg-card-hover); }
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ---- Screenshots Carousel ---- */
.screenshots-carousel {
    position: relative; display: flex; align-items: center; gap: 12px;
}
.carousel-viewport {
    flex: 1; overflow: hidden; position: relative;
}
.carousel-track {
    display: flex; gap: 20px; transition: transform 0.5s ease;
}
.screenshot-item {
    flex-shrink: 0; width: calc((100% - 40px) / 3); /* 3 per view, 2 gaps */
    border-radius: 16px; overflow: hidden; cursor: pointer; position: relative;
    aspect-ratio: 9/16; box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.4s;
}
.screenshot-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-gold); }
.screenshot-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.screenshot-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex;
    align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s;
}
.screenshot-item:hover .screenshot-overlay { opacity: 1; }
.screenshot-overlay span { color: var(--primary); font-size: 2rem; }

.carousel-arrow {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(212,160,60,0.15); border: 1px solid rgba(212,160,60,0.3);
    color: var(--primary); font-size: 1.6rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; line-height: 1;
}
.carousel-arrow:hover { background: rgba(212,160,60,0.25); border-color: var(--primary); }
.carousel-arrow:disabled { opacity: 0.3; cursor: default; }

.carousel-dots {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    display: flex; justify-content: center; gap: 10px; z-index: 5;
}
.carousel-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.4); border: none; cursor: pointer;
    transition: all 0.3s; box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.carousel-dot.active { background: var(--primary); transform: scale(1.3); box-shadow: 0 0 8px rgba(212,160,60,0.5); }

/* ---- Video Section ---- */
.video-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 24px;
}
.video-item {
    border-radius: 16px; overflow: hidden; background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.video-item video { width: 100%; display: block; border-radius: 16px 16px 0 0; }
.video-info { padding: 16px 20px; }
.video-info h4 { color: var(--primary); font-size: 0.95rem; margin-bottom: 4px; }

/* ---- CTA Section ---- */
.cta {
    text-align: center; padding: 120px 24px;
    background: radial-gradient(ellipse at center, rgba(212,160,60,0.08) 0%, transparent 70%);
    position: relative; overflow: hidden;
}
.cta-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900;
    background: var(--gradient-gold); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 16px;
}
.cta p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.footer {
    border-top: 1px solid rgba(212,160,60,0.1); padding: 40px 24px;
    text-align: center; color: var(--text-muted); font-size: 0.85rem;
}
.footer p { margin-bottom: 8px; }
.footer-title {
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.footer-links {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 12px; margin: 16px 0;
    font-size: 0.85rem; color: var(--text-muted);
}
.footer-links a {
    color: var(--text-muted); text-decoration: none; transition: color 0.3s;
}
.footer-links a:hover { color: var(--primary); }
.footer-disclaimer { margin-top: 16px; font-size: 0.75rem; }
.video-info-text { color: var(--text-muted); font-size: 0.85rem; }

/* ---- Lightbox ---- */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.92); align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 12px; box-shadow: 0 0 60px rgba(0,0,0,0.5); }
.lightbox-close {
    position: absolute; top: 24px; right: 32px; font-size: 2.5rem; color: #fff;
    background: none; border: none; cursor: pointer; z-index: 2001;
    transition: color 0.3s;
}
.lightbox-close:hover { color: var(--primary); }

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px; z-index: 999;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(212,160,60,0.15); border: 1px solid rgba(212,160,60,0.3);
    color: var(--primary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; opacity: 0; visibility: hidden; transform: translateY(10px);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: rgba(212,160,60,0.25); border-color: var(--primary); }

/* ---- Section Background ---- */
.section-alt {
    background: rgba(212,160,60,0.02);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 64px; left: 0; right: 0;
        background: rgba(10,10,15,0.95); backdrop-filter: blur(20px);
        flex-direction: column; padding: 32px 24px; gap: 20px;
        transform: translateY(-150%); transition: transform 0.4s ease;
        border-bottom: 1px solid rgba(212,160,60,0.15);
    }
    .nav-links.open { transform: translateY(0); }
    .nav-toggle { display: flex; }
    .intro-grid { grid-template-columns: 1fr; gap: 40px; }
    .intro-image { order: -1; }
    .screenshot-item { width: calc((100% - 16px) / 2); }
    .carousel-track { gap: 16px; }
    .hero { height: 80vh; min-height: 500px; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; justify-content: center; }
    .section { padding: 64px 20px; }
    .cta { padding: 80px 20px; }
    .cta-btns { flex-direction: column; }
    .cta-btns .btn { width: 100%; justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .intro-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stat-card { padding: 16px 8px; }
    .stat-num { font-size: 1.4rem; }
    .hero-title { font-size: 1.8rem; }
    .btn { padding: 12px 24px; font-size: 0.9rem; }
    .cta-btns { flex-direction: column; align-items: center; }
}
