:root {
    /* Premium Dark Palette */
    --bg-color: #08080c;
    --bg-gradient: radial-gradient(circle at 50% 0%, #1a1a2e 0%, #08080c 100%);

    /* Glassmorphism - Refined */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --glass-blur: 20px;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Text */
    --text-main: #ececf1;
    --text-muted: #8b8b99;
    --text-highlight: #ffffff;

    /* Accents - Platinum & Gold */
    --accent-primary: #e2e8f0;
    /* Platinum */
    --accent-secondary: #d4af37;
    /* Gold - Used sparingly */
    --accent-glow: 0 0 20px rgba(212, 175, 55, 0.15);

    /* Spacing & Radius */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: linear-gradient(-45deg, #050508, #161625, #0a0a14, #000000);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
    min-height: 100vh;
}

#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    /* Let clicks pass through, but we track mouse via window listener */
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Background Architecture */
/* Background Architecture - Particles Canvas in use */

/* Marquee - Ultraclean */
.marquee-container {
    background: rgba(8, 8, 12, 0.85);
    /* Darker, more opaque */
    color: var(--text-main);
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 60s linear infinite;
    /* Slower speed */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move half way (since content is doubled) */
    }
}

/* Main Layout */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Hero Section */
.hero-section {
    margin-bottom: 60px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    position: relative;
}

.swiper {
    width: 100%;
    height: 380px;
    /* Taller for more impact */
}

.swiper-slide {
    position: relative;
}

.swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 8, 12, 0.8) 0%, transparent 50%);
    /* Gradient overlay */
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* Platform Grid - Bento Style */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent-secondary);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns for desktop */
    grid-gap: 24px;
    margin-bottom: 60px;
}

/* Featured Card (Span 2 cols) */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 20px 30px 30px;
    /* Reduced top padding */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 280px;
    /* Fixed height for uniformity */
    box-shadow: var(--glass-shadow);
}

/* Golden Edge Shine - Animated */
.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    /* Thinner line */
    background: linear-gradient(135deg, transparent 40%, rgba(255, 236, 179, 0.6) 50%, transparent 60%);
    /* Champagne Gold, Lighter */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    background-size: 300% 300%;
    background-position: 0% 0%;
    animation: shine 6s linear infinite;
    animation-delay: var(--delay, 0s);
    /* Randomized delay */
    pointer-events: none;
    z-index: 4;
}

@keyframes shine {
    0% {
        background-position: 100% 100%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    40% {
        background-position: 0% 0%;
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.glass-card.more-card {
    padding: 30px;
    /* Reset for More card */
}

.glass-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-highlight);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.05);
}

.glass-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    z-index: 2;
}

.card-logo {
    width: 110px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.glass-card:hover .card-logo {
    transform: scale(1.1);
}

.card-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
}

.glass-card:hover .card-arrow {
    background: var(--text-main);
    color: #000;
    border-color: var(--text-main);
    transform: rotate(-45deg);
}

.card-body {
    z-index: 2;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.card-tags {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-highlight);
    backdrop-filter: blur(5px);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: 0.5s;
    pointer-events: none;
    z-index: 3;
}

/* Decorative Background Image for Featured Cards */
.card-bg-img {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 110%;
    /* Slightly oversize */
    width: auto;
    object-fit: cover;
    opacity: 0.6;
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), transparent);
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    /* Behind text */
    transition: transform 0.4s ease;
}

.glass-card:hover .card-bg-img {
    transform: scale(1.05) translateX(-10px);
    opacity: 0.8;
}

.glass-card:hover::before {
    left: 100%;
}

/* App Download Section - Redesigned */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.app-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.app-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    border-color: var(--accent-secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.1);
}

.app-item img {
    width: 88px;
    /* Significantly larger */
    height: 88px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.app-item:hover img {
    transform: scale(1.05);
}

.app-details h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 6px;
}

.app-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Dynamic Banner */
.promo-banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}

.promo-banner img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.promo-banner:hover img {
    opacity: 1;
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 0 40px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 80px;
}

footer p {
    opacity: 0.6;
}

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

@media (max-width: 768px) {
    .main-container {
        padding: 20px 16px;
    }

    .swiper {
        height: 220px;
    }

    .hero-section {
        border-radius: var(--radius-md);
        margin-bottom: 40px;
    }

    .platform-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .glass-card.featured {
        grid-column: auto;
    }

    .glass-card {
        height: auto;
        min-height: 220px;
    }

    /* Make app items scrollable horizontally on mobile or just stack */
    .app-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .app-item {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .app-item img {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }

    .orb-1,
    .orb-2 {
        opacity: 0.25;
    }
}

/* Swiper Navigation Customization */
.swiper-button-next,
.swiper-button-prev {
    color: var(--accent-secondary);
    /* Gold color */
    background: rgba(8, 8, 12, 0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--glass-highlight);
    color: var(--text-highlight);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}