.download-page {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    min-height: 100vh;
}

.download-page .navbar {
    background: var(--white);
    box-shadow: var(--shadow);
}

.download-page .navbar .nav-links a {
    color: var(--navy);
}

.download-page .mobile-menu-btn span {
    background: var(--navy);
}

.download-main {
    padding: 8rem 0 4rem;
    min-height: calc(100vh - 80px);
}

.download-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.device-detection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    color: var(--gray-500);
}

.device-detection .detection-icon {
    width: 24px;
    height: 24px;
    animation: spin 1.5s linear infinite;
}

.device-detection .detection-icon svg {
    width: 100%;
    height: 100%;
    color: var(--primary);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.detected-device {
    margin-bottom: 2rem;
}

.device-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy);
}

.device-badge svg {
    width: 18px;
    height: 18px;
}

.device-badge.android {
    background: rgba(52, 168, 83, 0.1);
    color: #34A853;
}

.device-badge.ios {
    background: rgba(0, 0, 0, 0.08);
    color: var(--gray-800);
}

.download-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.download-title span {
    color: var(--primary);
}

.download-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 500px;
    margin: 0 auto;
}

.download-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

@media (min-width: 768px) {
    .download-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.download-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 2px solid transparent;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.download-card.highlight {
    border-color: var(--primary);
    transform: scale(1.02);
}

.download-card.coming-soon {
    opacity: 0.85;
}

.coming-soon-message {
    text-align: center;
    padding: 2rem 1rem;
}

.coming-soon-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-icon svg {
    width: 32px;
    height: 32px;
    color: var(--gray-400);
}

.coming-soon-message h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.coming-soon-message p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

.coming-soon-btn {
    pointer-events: none;
}

.card-header {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.platform-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-icon.android {
    background: linear-gradient(135deg, #34A853, #2D9249);
}

.platform-icon.ios {
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
}

.platform-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0;
}

.card-content {
    padding: 2rem;
}

.qr-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.qr-section .qr-code {
    width: 160px;
    height: 160px;
    margin: 0 auto 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-100);
}

.qr-section p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

.or-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.or-divider span {
    font-size: 0.875rem;
    color: var(--gray-400);
    font-weight: 500;
}

.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.download-button.android {
    background: #34A853;
    color: var(--white);
}

.download-button.android:hover {
    background: #2D9249;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 168, 83, 0.4);
}

.download-button.ios {
    background: var(--gray-800);
    color: var(--white);
}

.download-button.ios:hover {
    background: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.download-button svg {
    width: 20px;
    height: 20px;
}

.file-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-400);
}

.card-footer {
    padding: 1rem 2rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
}

.instructions-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: none;
    font-size: 0.9375rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: inherit;
}

.instructions-toggle svg {
    width: 18px;
    height: 18px;
}

.instructions-toggle:hover {
    color: var(--primary);
}

.instructions-section {
    display: none;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.instructions-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.instructions-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.instructions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: var(--navy);
    color: var(--white);
}

.instructions-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.close-instructions {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-instructions svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.close-instructions:hover {
    background: rgba(255, 255, 255, 0.2);
}

.instructions-content {
    padding: 2rem;
}

.step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step:last-of-type {
    margin-bottom: 1.5rem;
}

.step-number {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.step-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.step-text p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.6;
}

.step-text strong {
    color: var(--navy);
}

.warning-box,
.info-box {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.warning-box {
    background: rgba(233, 58, 31, 0.08);
    border: 1px solid rgba(233, 58, 31, 0.2);
}

.warning-box svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--primary);
}

.warning-box p {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin: 0;
    line-height: 1.5;
}

.info-box {
    background: rgba(17, 154, 203, 0.08);
    border: 1px solid rgba(17, 154, 203, 0.2);
}

.info-box svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--accent);
}

.info-box p {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin: 0;
    line-height: 1.5;
}

.back-home {
    text-align: center;
    margin-top: 2rem;
}

.back-home .btn {
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--gray-200);
}

.back-home .btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.back-home .btn svg {
    width: 18px;
    height: 18px;
}

.download-footer {
    background: var(--white);
    padding: 0;
    margin-top: auto;
}

.download-footer .footer-wave {
    display: none;
}

.download-footer .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid var(--gray-100);
}

@media (min-width: 640px) {
    .download-footer .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.download-footer .footer-bottom p {
    color: var(--gray-500);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--primary);
}

@media (max-width: 767px) {
    .download-main {
        padding-top: 6rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .qr-section .qr-code {
        width: 140px;
        height: 140px;
    }
    
    .instructions-content {
        padding: 1.5rem;
    }
}

