/* Download Page Premium Styles */
body {
    background-color: #f7f9fc;
    font-family: 'Poppins-Regular', sans-serif;
}

/* Force white text for header nav links by default (for dark hero) */
/* REMOVED: Header is now solid white */
/* header .header .w1 .w1_div .nav.act12 .nav-div > a,
header .header .w1 .w1_div .nav.act12 .nav-div span a,
header .header .w1 .w1_div .nav.act12 .nav-div span {
    color: #fff;
    transition: color 0.3s;
} */

/* When header is checked (scrolled), header.css handles the black color, 
   but we ensure hover states or other specifics if needed. */
header .header.header-nav-checked .w1 .w1_div .nav.act12 .nav-div > a,
header .header.header-nav-checked .w1 .w1_div .nav.act12 .nav-div span a,
header .header.header-nav-checked .w1 .w1_div .nav.act12 .nav-div span {
    color: #11182e;
}

.download-hero {
    position: relative;
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #0f1c3f 0%, #233367 100%);
    color: #fff;
    overflow: hidden;
}

.download-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../index/img/s5/banner_bg_icon1.svg') no-repeat top left,
                url('../../index/img/s5/banner_bg_icon2.svg') no-repeat bottom right;
    opacity: 0.1;
}

.download-hero h1 {
    font-family: 'Poppins-Bold', sans-serif;
    font-size: 48px;
    margin-bottom: 16px;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 0.8s ease-out;
}

.download-hero p {
    font-size: 18px;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.platform-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.platform-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(35, 51, 103, 0.15);
    border-color: #3421FF;
}

.platform-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #f0f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.platform-card:hover .platform-icon {
    background: #3421FF;
}

.platform-icon img {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    filter: brightness(0) saturate(100%) invert(32%) sepia(87%) saturate(3065%) hue-rotate(224deg) brightness(101%) contrast(106%); /* #3421FF */
}

.platform-card:hover .platform-icon img {
    filter: brightness(0) invert(1);
}

.platform-name {
    font-size: 24px;
    font-family: 'Poppins-Bold', sans-serif;
    color: #1e293b;
    margin-bottom: 10px;
}

.platform-version {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 25px;
}

.download-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #3421FF;
    color: #fff;
    border-radius: 50px;
    font-family: 'Poppins-SemiBold', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 33, 255, 0.3);
    position: relative; /* Ensure it can be above overlay */
    z-index: 10;
}

.download-btn:hover {
    background: #233367;
    box-shadow: 0 6px 20px rgba(35, 51, 103, 0.4);
    transform: scale(1.05);
}

.help-link {
    display: flex;
    width: fit-content;
    margin: 6px auto 0;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    /* z-index: 20; Removed to avoid overlapping QR overlay */
}

.help-link::before {
    content: '';
    width: 16px;
    height: 16px;
    margin-right: 6px;
    background: url('../../index/img/help-circle.png') no-repeat center center;
    background-size: contain;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.help-link:hover::before {
    opacity: 1;
}

.help-link:hover {
    color: #3421FF;
}

.qr-trigger {
    position: relative;
    cursor: pointer;
}

.qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 20px;
    z-index: 50;
}

.platform-card.mobile:hover .qr-overlay {
    opacity: 1;
    visibility: visible;
}

.qr-code-img {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
}

.features-section {
    padding: 80px 0;
    background: #fff;
    text-align: center;
}

.features-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.feature-item img {
    height: 60px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-item p {
    font-size: 14px;
    color: #64748b;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .platform-container {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .download-hero {
        padding: 100px 0 40px;
    }
}
