:root {
    --primary: #6C5CE7;
    --primary-dark: #5A4BD1;
    --primary-light: #A29BFE;
    --accent: #00CEC9;
    --accent-light: #81ECEC;
    --text: #2D3436;
    --text-secondary: #636E72;
    --bg: #FFFFFF;
    --bg-soft: #F8F9FD;
    --bg-muted: #F0F0F7;
    --border: #E8E8F0;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(108, 92, 231, 0.08);
    --shadow-md: 0 8px 30px rgba(108, 92, 231, 0.12);
    --shadow-lg: 0 20px 60px rgba(108, 92, 231, 0.15);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.15rem;
}

.nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--bg-soft);
}

.nav-links .nav-cta {
    background: var(--primary);
    color: #fff;
    margin-left: 8px;
}

.nav-links .nav-cta:hover {
    background: var(--primary-dark);
    color: #fff;
}

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

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(108, 92, 231, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0, 206, 201, 0.06) 0%, transparent 60%),
        var(--bg-soft);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 24px rgba(108, 92, 231, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-phone {
    position: relative;
    width: 280px;
}

.hero-phone img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

/* ---- Sections shared ---- */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ---- Features ---- */
.features {
    padding: 100px 0;
    background: var(--bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s, transform 0.5s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- How to Play ---- */
.how-to-play {
    padding: 100px 0;
    background: var(--bg-soft);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    text-align: center;
    padding: 32px 20px;
    opacity: 0;
    transform: translateY(20px);
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s, transform 0.5s;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Game Modes ---- */
.game-modes {
    padding: 100px 0;
    background: var(--bg);
}

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

.mode-card {
    border-radius: var(--radius);
    padding: 44px 36px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.mode-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s, transform 0.5s;
}

.mode-level {
    background: linear-gradient(135deg, #F3F0FF 0%, #E8E4FD 100%);
    border: 1px solid rgba(108, 92, 231, 0.15);
}

.mode-time {
    background: linear-gradient(135deg, #E8FFFE 0%, #DFF9F8 100%);
    border: 1px solid rgba(0, 206, 201, 0.15);
}

.mode-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.mode-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.mode-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.mode-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mode-features li {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    padding-left: 24px;
    position: relative;
}

.mode-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.mode-time .mode-features li::before {
    color: var(--accent);
}

/* ---- Screenshots ---- */
.screenshots {
    padding: 100px 0;
    background: var(--bg-soft);
}

.screenshots-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 0 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
}

.screenshots-track::-webkit-scrollbar {
    height: 6px;
}

.screenshots-track::-webkit-scrollbar-track {
    background: transparent;
}

.screenshots-track::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.screenshot-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    opacity: 0;
    transform: translateY(20px);
}

.screenshot-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s, transform 0.5s;
}

.screenshot-item img {
    width: 220px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

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

/* ---- Download CTA ---- */
.download-cta {
    padding: 100px 0;
    background: var(--bg);
}

.cta-card {
    text-align: center;
    background: linear-gradient(135deg, #6C5CE7 0%, #00CEC9 100%);
    border-radius: 24px;
    padding: 64px 40px;
    color: #fff;
}

.cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    margin-bottom: 24px;
}

.cta-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-card .btn-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-card .btn-primary:hover {
    background: #f0f0f7;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
}

.cta-note {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 16px;
    margin-bottom: 0 !important;
}

/* ---- Footer ---- */
.footer {
    background: var(--text);
    color: #fff;
    padding: 60px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand span {
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

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

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px 24px 24px;
        border-bottom: 1px solid var(--border);
        gap: 4px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 16px;
    }

    .nav-links .nav-cta {
        margin-left: 0;
        text-align: center;
        margin-top: 8px;
    }

    .menu-toggle {
        display: flex;
    }

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

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-phone {
        width: 220px;
    }

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

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

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

    .screenshot-item img {
        width: 180px;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 40px;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-divider {
        display: none;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }
}
