/* ===================================
   DEMO PAGE STYLES
   Специфичные стили для demo.html
   =================================== */

/* Demo Page Layout */
.demo-page {
    min-height: 100vh;
    padding: 100px 20px 50px;
}

/* Demo Header Section */
.demo-header {
    text-align: center;
    margin-bottom: 50px;
}

.demo-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
}

/* Product Selection Grid */
.product-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Product Card */
.product-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

/* Product Preview */
.product-preview {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.product-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-screenshot {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(102, 126, 234, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-badge.ai-badge {
    background: rgba(0, 212, 255, 0.9);
}

/* Product Content */
.product-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.product-icon.ai-icon {
    background: linear-gradient(135deg, #00d4ff 0%, #667eea 100%);
}

.product-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.product-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Product Features List */
.product-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.product-features li {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.product-features li i {
    color: #00d4ff;
    font-size: 0.9rem;
}

/* Large Button */
.btn-large {
    width: 100%;
    justify-content: center;
    padding: 18px 32px;
    font-size: 1.05rem;
    margin-top: auto;
}

/* Demo CTA Section */
.demo-cta {
    text-align: center;
    margin-top: 4rem;
}

.demo-cta h2 {
    margin-bottom: 1rem;
    color: white;
}

.demo-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.demo-cta > div {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    margin-top: 2rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #00d4ff;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

/* Tablets and below - 768px */
@media (max-width: 768px) {
    .demo-page {
        padding: 80px 15px 40px;
    }
    
    .demo-header h1 {
        font-size: 2rem;
    }
    
    .demo-header p {
        font-size: 1rem;
    }
    
    .product-selection {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-preview {
        height: 250px;
    }
    
    .product-content {
        padding: 2rem;
    }
    
    .product-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .product-content h2 {
        font-size: 1.5rem;
    }
    
    .product-description {
        font-size: 0.95rem;
    }
    
    .demo-cta > div {
        flex-direction: column;
        align-items: stretch;
    }
    
    .demo-cta .btn-primary,
    .demo-cta .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile devices - 480px */
@media (max-width: 480px) {
    .demo-page {
        padding: 70px 10px 30px;
    }
    
    .demo-header {
        margin-bottom: 30px;
    }
    
    .demo-header h1 {
        font-size: 1.5rem;
    }
    
    .demo-header p {
        font-size: 0.9rem;
    }
    
    .product-selection {
        gap: 1.5rem;
    }
    
    .product-card {
        border-radius: 16px;
    }
    
    .product-preview {
        height: 200px;
    }
    
    .product-badge {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .product-content {
        padding: 1.5rem;
    }
    
    .product-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .product-content h2 {
        font-size: 1.3rem;
    }
    
    .product-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .product-features {
        margin-bottom: 1.5rem;
    }
    
    .product-features li {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .demo-cta {
        margin-top: 2rem;
    }
    
    .demo-cta h2 {
        font-size: 1.2rem;
    }
    
    .demo-cta p {
        font-size: 0.85rem;
    }
    
    .back-link {
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }
}