/* ===== CSS Variables ===== */
:root {
    --color-bg-dark: #0A0D0A;
    --color-bg-green: #1B5E20;
    --color-gold: #FFD700;
    --color-gold-light: #FFA500;
    --color-casino-red: #D32F2F;
    --color-white: #FFFFFF;
    --color-white-dim: rgba(255, 255, 255, 0.5);
    --color-white-subtle: rgba(255, 255, 255, 0.1);
    --color-amber: #FFBF00;
    --gradient-gold: linear-gradient(135deg, #FFD700, #FFA500);
    --gradient-bg: radial-gradient(ellipse at center, #1B5E20, #0A0D0A);
    --shadow-glow: 0 0 40px rgba(255, 215, 0, 0.2);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --border-radius: 20px;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--color-bg-dark);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
}

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

/* ===== WeChat Overlay ===== */
.wechat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.wechat-overlay.hidden {
    display: none;
}

.wechat-modal {
    position: relative;
    margin-top: 60px;
    margin-right: 10px;
}

.wechat-arrow {
    position: absolute;
    top: -20px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 20px solid var(--color-gold);
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.wechat-content {
    background: linear-gradient(145deg, rgba(27, 94, 32, 0.95), rgba(10, 13, 10, 0.98));
    border: 2px solid var(--color-gold);
    border-radius: var(--border-radius);
    padding: 32px;
    max-width: 320px;
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.wechat-icon {
    color: var(--color-gold);
    margin-bottom: 16px;
}

.wechat-content h3 {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.wechat-content p {
    color: var(--color-white-dim);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.wechat-content strong {
    color: var(--color-gold);
}

.wechat-close-btn {
    background: var(--gradient-gold);
    color: var(--color-bg-dark);
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.wechat-close-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
}

/* ===== Navbar ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    position: relative;
    z-index: 10;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-title {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white-dim);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-white);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== Language Switcher ===== */
.language-switcher {
    position: relative;
    z-index: 100;
}

.lang-btn {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 130px;
    justify-content: space-between;
}

.lang-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-gold);
}

.current-lang-text {
    font-weight: 500;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.language-switcher.active .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-icon {
    display: block;
    width: 16px;
    height: 16px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: rgba(10, 13, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    list-style: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 300px;
    overflow-y: auto;
}

/* Custom Scrollbar for Dropdown */
.lang-dropdown::-webkit-scrollbar {
    width: 6px;
}

.lang-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.lang-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-white-dim);
    font-size: 14px;
    font-weight: 500;
}

.lang-dropdown li:hover,
.lang-dropdown li.selected {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-gold);
}

@media (max-width: 768px) {
    .lang-btn {
        padding: 6px 10px;
        min-width: auto;
    }

    .lang-icon {
        display: block;
    }

    .current-lang-text {
        display: none;
    }

    .lang-dropdown {
        min-width: 140px;
        right: 0;
    }

    .nav-link-features,
    .nav-link-play {
        display: none;
    }
}

/* ===== Hero Content ===== */
.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    gap: 60px;
}

.hero-text {
    max-width: 600px;
}

.badge {
    display: inline-block;
    background: var(--color-casino-red);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.hero-subtitle {
    font-size: 18px;
    color: var(--color-white-dim);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--color-bg-dark);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: var(--color-white-subtle);
    color: var(--color-white);
    border: 1px solid rgba(255, 191, 0, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 191, 0, 0.5);
}

.btn-play {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

.btn-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
}

/* ===== Hero Visual ===== */
.hero-visual {
    position: relative;
    flex-shrink: 0;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 24px;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===== Floating Cards ===== */
.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.card-float {
    position: absolute;
    width: 50px;
    height: 70px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    color: var(--color-bg-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.card-a {
    top: 5%;
    left: -30px;
    animation-delay: 0s;
}

.card-l {
    top: 20%;
    right: -40px;
    animation-delay: 0.5s;
}

.card-p {
    top: 45%;
    left: -50px;
    animation-delay: 1s;
}

.card-o {
    top: 60%;
    right: -35px;
    animation-delay: 1.5s;
}

.card-k {
    top: 80%;
    left: -25px;
    animation-delay: 2s;
}

.card-e {
    bottom: 15%;
    right: -45px;
    animation-delay: 2.5s;
}

.card-r {
    bottom: 5%;
    left: -35px;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--color-gold);
    border-bottom: 2px solid var(--color-gold);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
    opacity: 0.5;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: rotate(45deg) translateY(10px);
        opacity: 1;
    }
}

/* ===== Features Section ===== */
.features {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, #0f140f 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-white-dim);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 191, 0, 0.15);
    border-radius: var(--border-radius);
    padding: 40px 32px;
    transition: var(--transition);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-white);
}

.feature-card p {
    font-size: 15px;
    color: var(--color-white-dim);
    line-height: 1.7;
}

/* ===== Download Section ===== */
.download {
    padding: 120px 0;
    background: var(--gradient-bg);
    position: relative;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
}

.download .container {
    position: relative;
    z-index: 1;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 191, 0, 0.2);
    border-radius: 16px;
    padding: 24px 28px;
    transition: var(--transition);
    cursor: pointer;
}

.download-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 191, 0, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.store-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.google-play {
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
}

.app-store {
    background: linear-gradient(135deg, #5AC8FA, #007AFF);
    color: white;
}

.apk-icon {
    background: var(--gradient-gold);
    color: var(--color-bg-dark);
}

.store-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.store-label {
    font-size: 12px;
    color: var(--color-white-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.store-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    background: var(--color-bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-copyright {
    font-size: 14px;
    color: var(--color-white-dim);
    opacity: 0.5;
}

.footer-links {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--color-white-dim);
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

.footer-links .separator {
    color: var(--color-white-dim);
    opacity: 0.3;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 100%;
    }

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

    .hero-visual {
        margin-top: 40px;
    }

    .floating-cards {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 20px 24px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
    }

    .app-preview {
        width: 120px;
        height: 120px;
    }

    .features {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

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

    .feature-card {
        padding: 32px 24px;
    }

    .download {
        padding: 80px 0;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 40px;
    }

    .badge {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-title {
        font-size: 20px;
    }

    .nav-logo {
        width: 40px;
        height: 40px;
    }
}

/* ===== Utilities ===== */
.hidden {
    display: none !important;
}