/* ============================================
   REHABIS DOWNLOAD PAGE - Isolated Styles
   Prefix: rdl- (Rehabis Download)
   Version: 1.0
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --rdl-primary: #4F46E5;
    --rdl-primary-dark: #4338CA;
    --rdl-primary-light: #818CF8;
    --rdl-secondary: #10B981;
    --rdl-dark: #0F172A;
    --rdl-gray-900: #1E293B;
    --rdl-gray-700: #334155;
    --rdl-gray-500: #64748B;
    --rdl-gray-300: #CBD5E1;
    --rdl-gray-100: #F1F5F9;
    --rdl-white: #FFFFFF;
}
 
/* ============================================
   ANIMATED BACKGROUND
   ============================================ */

.rdl-bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(79, 70, 229, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 70%),
        linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    z-index: -1;
}

.rdl-bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}
 
/* ============================================
   MAIN CONTAINER 
   ============================================ */

.rdl-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px 20px 60px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.rdl-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 180px);
}

.rdl-hero-content {
    max-width: 540px;
}

.rdl-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(79, 70, 229, 0.2);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--rdl-primary-light);
    margin-bottom: 24px;
}

.rdl-badge svg {
    width: 16px;
    height: 16px;
}

.rdl-hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--rdl-white) 0%, var(--rdl-gray-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rdl-hero-title span {
    background: linear-gradient(135deg, var(--rdl-primary-light) 0%, var(--rdl-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rdl-hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: var(--rdl-gray-500);
    margin-bottom: 40px;
}

/* ============================================
   DOWNLOAD BUTTONS
   ============================================ */

.rdl-download-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.rdl-store-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rdl-store-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rdl-store-btn:hover::before {
    opacity: 1;
}

.rdl-store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.rdl-store-btn--ios {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    border: 1px solid rgba(255,255,255,0.1);
}

.rdl-store-btn--android {
    background: linear-gradient(135deg, var(--rdl-primary) 0%, var(--rdl-primary-dark) 100%);
    border: 1px solid rgba(255,255,255,0.1);
}

.rdl-store-btn svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.rdl-store-btn__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rdl-store-btn__text small {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
}

.rdl-store-btn__text strong {
    font-size: 17px;
    color: var(--rdl-white);
    font-weight: 600;
}

/* ============================================
   STATS
   ============================================ */

.rdl-stats {
    display: flex;
    gap: 40px;
}

.rdl-stat-item {
    text-align: left;
}

.rdl-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--rdl-white);
    margin-bottom: 4px;
}

.rdl-stat-value span {
    color: var(--rdl-secondary);
}

.rdl-stat-label {
    font-size: 14px;
    color: var(--rdl-gray-500);
}

/* ============================================
   PHONE MOCKUP
   ============================================ */

.rdl-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rdl-phone-mockup {
    position: relative;
    width: 280px;
    height: 570px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 45px;
    padding: 12px;
    box-shadow: 
        0 50px 100px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 0 0 1px rgba(255,255,255,0.05);
}

.rdl-phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--rdl-primary) 0%, var(--rdl-primary-dark) 50%, var(--rdl-dark) 100%);
    border-radius: 35px;
    overflow: hidden;
    position: relative;
}

.rdl-phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
}

.rdl-phone-content {
    padding: 50px 20px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rdl-phone-logo {
    text-align: center;
    margin-bottom: 30px;
}

.rdl-phone-logo img {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: white;
    padding: 10px;
}

.rdl-phone-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-top: 10px;
}

.rdl-phone-features {
    flex: 1;
}

.rdl-phone-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
}

.rdl-phone-feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.rdl-phone-feature-text {
    font-size: 13px;
    color: white;
    font-weight: 500;
}

/* ============================================
   FLOATING CARDS
   ============================================ */

.rdl-floating-card {
    position: absolute;
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: rdlFloat 3s ease-in-out infinite;
}

.rdl-floating-card--top {
    top: 60px;
    right: -30px;
    animation-delay: 0s;
}

.rdl-floating-card--bottom {
    bottom: 100px;
    left: -40px;
    animation-delay: 1.5s;
}

.rdl-floating-card__icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--rdl-primary) 0%, var(--rdl-secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 20px;
}

.rdl-floating-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--rdl-dark);
}

.rdl-floating-card__desc {
    font-size: 12px;
    color: var(--rdl-gray-500);
}

@keyframes rdlFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.rdl-features-section {
    padding: 100px 0;
}

.rdl-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.rdl-section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--rdl-white);
}

.rdl-section-desc {
    font-size: 16px;
    color: var(--rdl-gray-500);
    line-height: 1.7;
}

.rdl-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rdl-feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
}

.rdl-feature-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.rdl-feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.rdl-feature-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--rdl-white);
    margin-bottom: 10px;
}

.rdl-feature-card__desc {
    font-size: 14px;
    color: var(--rdl-gray-500);
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */

.rdl-cta-section {
    padding: 80px 0;
}

.rdl-cta-box {
    background: linear-gradient(135deg, #3b4989 0%, #425199 100%);
    border-radius: 32px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rdl-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.rdl-cta-content {
    position: relative;
    z-index: 1;
}

.rdl-cta-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--rdl-white);
    margin-bottom: 16px;
}

.rdl-cta-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.rdl-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.rdl-cta-buttons .rdl-store-btn {
    background: var(--rdl-white);
}

.rdl-cta-buttons .rdl-store-btn svg {
    color: var(--rdl-dark);
}

.rdl-cta-buttons .rdl-store-btn__text small {
    color: var(--rdl-gray-500);
}

.rdl-cta-buttons .rdl-store-btn__text strong {
    color: var(--rdl-dark);
} 

/* ============================================
   QR MODAL
   ============================================ */

.rdl-qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.rdl-qr-modal.rdl-qr-modal--active {
    display: flex;
}

.rdl-qr-content {
    background: var(--rdl-white);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    max-width: 360px;
    position: relative;
}

.rdl-qr-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--rdl-gray-100);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--rdl-gray-500);
    transition: all 0.3s ease;
}

.rdl-qr-close:hover {
    background: var(--rdl-gray-300);
    color: var(--rdl-dark);
}

.rdl-qr-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--rdl-dark);
    margin-bottom: 8px;
}

.rdl-qr-desc {
    font-size: 14px;
    color: var(--rdl-gray-500);
    margin-bottom: 24px;
}

.rdl-qr-image {
    width: 200px;
    height: 200px;
    background: var(--rdl-gray-100);
    border-radius: 16px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rdl-qr-image img {
    max-width: 180px;
    max-height: 180px;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 1024px) {
    .rdl-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .rdl-hero-content {
        max-width: 100%;
        order: 1;
    }
    
    .rdl-hero-visual {
        order: 0;
    }
    
    .rdl-hero-title {
        font-size: 40px;
    }
    
    .rdl-download-buttons {
        justify-content: center;
    }
    
    .rdl-stats {
        justify-content: center;
    }
    
    .rdl-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rdl-floating-card {
        display: none;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .rdl-header {
        padding: 15px 20px;
    }
    
    .rdl-container {
        padding: 100px 16px 40px;
    }
    
    .rdl-hero-title {
        font-size: 32px;
    }
    
    .rdl-hero-desc {
        font-size: 16px;
    }
    
    .rdl-download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .rdl-store-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .rdl-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .rdl-features-grid {
        grid-template-columns: 1fr;
    }
    
    .rdl-cta-box {
        padding: 40px 24px;
    }
    
    .rdl-cta-title {
        font-size: 28px;
    }
    
    .rdl-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .rdl-cta-buttons .rdl-store-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .rdl-phone-mockup {
        width: 240px;
        height: 490px;
    }
}