/* ===========================
   Download Page Styles
   =========================== */

/* Hero */
.dl-hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, #0f0c29 0%, #131136 50%, #0d0b21 100%);
    color: white;
    overflow: hidden;
}

.dl-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.dl-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 50px;
    padding: 0.4rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: #a5b4fc;
    font-weight: 600;
}

.dl-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.dl-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

.dl-stats-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.dl-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dl-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dl-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

/* Phone Mockup */
.dl-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dl-phone-mockup {
    animation: dlFloat 6s infinite ease-in-out;
}

@keyframes dlFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.dl-phone-frame {
    width: 260px;
    height: 520px;
    background: linear-gradient(145deg, #1e1b4b, #0f0c29);
    border-radius: 36px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(102, 126, 234, 0.08);
}

.dl-phone-notch {
    width: 100px;
    height: 24px;
    background: #0a0820;
    border-radius: 0 0 16px 16px;
    margin: 0 auto 16px;
}

.dl-phone-screen {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    height: calc(100% - 40px);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dl-app-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.dl-app-modules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dl-app-mod {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.dl-app-scan-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1.5px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
}

.dl-app-bottom {
    display: flex;
    justify-content: center;
}

.dl-app-btn-scan {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 10px 32px;
    border-radius: 12px;
    text-align: center;
}

/* Section Header */
.dl-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dl-section-header h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.dl-section-header p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Platforms Section */
.dl-platforms {
    padding: 80px 0;
    background: linear-gradient(180deg, #0d0b21 0%, #100e2a 100%);
    color: white;
}

.dl-platforms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.dl-platform-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    transition: all 0.4s ease;
}

.dl-platform-active {
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(102, 126, 234, 0.04);
}

.dl-platform-active:hover {
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.1);
}

.dl-platform-disabled {
    opacity: 0.55;
}

.dl-platform-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dl-status-available {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.dl-status-soon {
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.2);
}

.dl-platform-icon {
    margin: 0.75rem 0;
}

.dl-platform-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.dl-platform-version {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

/* Platform Meta (version, date) */
.dl-platform-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.dl-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

.dl-meta-item svg {
    color: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.dl-platform-reqs {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.dl-platform-reqs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    justify-content: center;
}

.dl-platform-reqs li svg {
    flex-shrink: 0;
    color: #4ade80;
}

.dl-platform-disabled .dl-platform-reqs li svg {
    color: rgba(255, 255, 255, 0.25);
}

.dl-platform-hint {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 0.25rem;
}

/* Store Badges */
.dl-store-badges {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.dl-store-badges-center {
    justify-content: center;
}

.dl-store-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 140px;
}

.dl-store-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.dl-store-badge svg {
    flex-shrink: 0;
}

.dl-store-text {
    display: flex;
    flex-direction: column;
}

.dl-store-label {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dl-store-name {
    font-size: 0.82rem;
    color: white;
    font-weight: 700;
    line-height: 1.3;
}

/* Buttons */
.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.dl-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.dl-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.dl-btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dl-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

.dl-btn-disabled {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.dl-btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 16px;
}

/* Features Section */
.dl-features {
    padding: 80px 0;
    background: linear-gradient(180deg, #100e2a 0%, #131136 100%);
    color: white;
}

.dl-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.dl-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.dl-feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.dl-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.dl-feature-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.dl-feature-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

/* Installation Steps */
.dl-install {
    padding: 80px 0;
    background: linear-gradient(180deg, #131136 0%, #0d0b21 100%);
    color: white;
}

.dl-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 640px;
    margin: 0 auto;
}

.dl-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    transition: all 0.3s ease;
}

.dl-step:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dl-step-num {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
}

.dl-step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.35rem;
}

.dl-step-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

/* Devices Section */
.dl-devices {
    padding: 80px 0;
    background: linear-gradient(180deg, #0d0b21 0%, #100e2a 100%);
    color: white;
}

.dl-devices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.dl-device-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.dl-device-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.dl-device-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(102, 126, 234, 0.1);
    color: #a5b4fc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.dl-device-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.dl-device-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

/* CTA Section */
.dl-cta {
    padding: 80px 0;
    background: linear-gradient(180deg, #100e2a 0%, #0f0c29 100%);
    color: white;
}

.dl-cta-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 28px;
    padding: 3.5rem;
    text-align: center;
}

.dl-cta-content h2 {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.75rem;
}

.dl-cta-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.dl-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 900px) {
    .dl-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .dl-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .dl-stats-row {
        justify-content: center;
    }

    .dl-title {
        font-size: 2.4rem;
    }

    .dl-features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dl-devices-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dl-hero {
        padding: 120px 0 60px;
    }

    .dl-title {
        font-size: 2rem;
    }

    .dl-platforms-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .dl-features-grid {
        grid-template-columns: 1fr;
    }

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

    .dl-cta-box {
        padding: 2rem 1.5rem;
    }

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