/* ==========================================================================
   MediaFlow CDN — Global Stylesheet
   ========================================================================== */

:root {
    --bg-main: #0b0f19;
    --bg-card: rgba(22, 30, 46, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent: #10b981;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: var(--font); 
}

body { 
    background-color: var(--bg-main); 
    color: var(--text-main); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

.btn {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    padding: 10px 20px; 
    border-radius: 8px; 
    font-weight: 600; 
    font-size: 14px;
    cursor: pointer; 
    transition: all 0.2s ease; 
    border: none; 
    text-decoration: none;
}

.btn-primary { 
    background: var(--primary); 
    color: #ffffff; 
}

.btn-primary:hover { 
    background: var(--primary-hover); 
    transform: translateY(-1px); 
}

.btn-outline { 
    background: transparent; 
    border: 1px solid var(--border-color); 
    color: var(--text-main); 
}

.btn-outline:hover { 
    background: rgba(255, 255, 255, 0.05); 
}

.badge {
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding: 4px 12px;
    border-radius: 20px; 
    background: rgba(16, 185, 129, 0.1); 
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent); 
    font-size: 12px; 
    font-weight: 500;
}

.dot { 
    width: 6px; 
    height: 6px; 
    background: var(--accent); 
    border-radius: 50%; 
    box-shadow: 0 0 8px var(--accent); 
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

header { 
    border-bottom: 1px solid var(--border-color); 
    backdrop-filter: blur(12px); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    background: rgba(11, 15, 25, 0.8); 
}

.nav-wrap { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    height: 70px; 
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-weight: 700; 
    font-size: 18px; 
    color: #ffffff; 
    text-decoration: none; 
}

.nav-links { 
    display: flex; 
    gap: 32px; 
    list-style: none; 
}

.nav-links a { 
    color: var(--text-muted); 
    text-decoration: none; 
    font-size: 14px; 
    transition: 0.2s; 
}

.nav-links a:hover { 
    color: #ffffff; 
}

.nav-actions { 
    display: flex; 
    gap: 12px; 
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero { 
    padding: 90px 0 60px; 
    text-align: center; 
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.15) 0%, transparent 60%); 
}

.hero h1 { 
    font-size: 48px; 
    font-weight: 800; 
    letter-spacing: -1px; 
    margin: 20px 0; 
    line-height: 1.15; 
}

.hero h1 span { 
    background: linear-gradient(90deg, #818cf8, #c084fc); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.hero p { 
    font-size: 18px; 
    color: var(--text-muted); 
    max-width: 650px; 
    margin: 0 auto 32px; 
}

/* ==========================================================================
   Interactive Image Slider Demo
   ========================================================================== */

.demo-section { 
    margin: 40px 0 80px; 
}

.card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: 16px; 
    padding: 32px; 
    backdrop-filter: blur(10px); 
}

.image-slider-container { 
    position: relative; 
    width: 100%; 
    max-width: 900px; 
    height: 450px; 
    margin: 0 auto; 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid var(--border-color); 
    user-select: none; 
}

.slider-img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
}

/* High Resolution Landscape Sample Image */
.img-orig { 
    background-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80'); 
}

.img-opt { 
    background-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80'); 
    width: 50%; 
    border-right: 2px solid var(--primary); 
}

/* Overlay Image Size Badges */
.img-badge {
    position: absolute;
    top: 16px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    z-index: 10;
    pointer-events: none;
}

.badge-orig {
    right: 16px;
    background: rgba(15, 23, 42, 0.85);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-opt {
    left: 16px;
    background: rgba(49, 46, 129, 0.85);
    color: #a5b4fc;
    border: 1px solid var(--primary);
}

.slider-handle { 
    position: absolute; 
    top: 0; 
    bottom: 0; 
    left: 50%; 
    width: 4px; 
    background: var(--primary); 
    cursor: ew-resize; 
    z-index: 20; 
}

.slider-button { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 36px; 
    height: 36px; 
    background: var(--primary); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #ffffff; 
    font-weight: bold; 
    font-size: 12px; 
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6); 
}

/* ==========================================================================
   Pricing Cards Section
   ========================================================================== */

.pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 24px; 
    margin: 60px 0; 
}

.price-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: 16px; 
    padding: 32px; 
    text-align: center; 
    position: relative; 
}

.price-card.popular { 
    border-color: var(--primary); 
}

.price-card.popular::before { 
    content: 'MOST POPULAR'; 
    position: absolute; 
    top: -12px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: var(--primary); 
    color: #ffffff; 
    font-size: 10px; 
    font-weight: 700; 
    padding: 2px 10px; 
    border-radius: 10px; 
}

.price { 
    font-size: 36px; 
    font-weight: 800; 
    margin: 16px 0; 
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer { 
    border-top: 1px solid var(--border-color); 
    padding: 40px 0; 
    color: var(--text-muted); 
    font-size: 13px; 
    text-align: center; 
}

/* ==========================================================================
   Authentication Modal
   ========================================================================== */

.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(5px); 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 1000; 
}

.modal { 
    background: #111827; 
    border: 1px solid var(--border-color); 
    border-radius: 16px; 
    padding: 32px; 
    width: 100%; 
    max-width: 400px; 
    position: relative; 
}

.modal-close { 
    position: absolute; 
    top: 16px; 
    right: 16px; 
    background: none; 
    border: none; 
    color: var(--text-muted); 
    cursor: pointer; 
    font-size: 20px; 
}

.modal h3 { 
    font-size: 20px; 
    margin-bottom: 8px; 
}

.modal p { 
    color: var(--text-muted); 
    font-size: 13px; 
    margin-bottom: 24px; 
}

.form-group { 
    margin-bottom: 16px; 
    text-align: left; 
}

.form-group label { 
    display: block; 
    font-size: 12px; 
    color: var(--text-muted); 
    margin-bottom: 6px; 
}

.input-control { 
    background: #0f172a; 
    border: 1px solid var(--border-color); 
    color: #ffffff; 
    padding: 10px 14px; 
    border-radius: 8px; 
    font-size: 14px; 
    outline: none; 
}

.input-control:focus { 
    border-color: var(--primary); 
}

.alert-error { 
    background: rgba(239, 68, 68, 0.1); 
    border: 1px solid rgba(239, 68, 68, 0.2); 
    color: #f87171; 
    font-size: 12px; 
    padding: 10px; 
    border-radius: 6px; 
    margin-top: 12px; 
    display: none; 
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .hero h1 { 
        font-size: 32px; 
    }
    .nav-links { 
        display: none; 
    }
    .image-slider-container { 
        height: 280px; 
    }
}