/* ==========================================================================
   PAGE DOCUMENT-FLOW — Документообіг платформа
   ========================================================================== */

/* --- SECTION BORDERED --- */

.df-section-bordered { border-top: 1px solid rgba(255, 255, 255, 0.05); }

/* --- HERO --- */

.df-hero-inner { padding-bottom: 80px; }

/* --- TWO-COL STICKY LAYOUT --- */

.df-two-col { display: grid; grid-template-columns: 1fr 1fr; align-items: flex-start; gap: 80px; }

.df-two-col--sticky .df-sticky-side { position: sticky; top: 120px; }

.df-title-lg { font-size: 48px; line-height: 1.1; }

.df-title-process { font-size: 44px; margin-bottom: 32px; }

.df-lead-text { font-size: 18px; margin-top: 24px; color: var(--text-muted); line-height: 1.6; }

.df-promo-quote {
    margin-top: 40px;
    border-left: 4px solid var(--primary);
    background: rgba(252, 96, 17, 0.03);
    padding: 30px;
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* Investment Items */

.ii-header { display: flex; align-items: baseline; gap: 16px; }

.ii-num { font-size: 32px; font-weight: 800; color: var(--primary); opacity: 0.5; }

.ii-title { font-size: 24px; color: white; }

.ii-body { margin: 16px 0 0 50px; }

.ii-quote { font-size: 14px; font-style: italic; color: var(--primary); margin-bottom: 12px; }

.ii-text { color: var(--text-muted); line-height: 1.6; }

.investment-item { margin-bottom: 60px; }

/* --- HOW IT WORKS --- */

.df-rag-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 100px; align-items: center; }

.df-process-lead {
    font-size: 18px;
    line-height: 1.6;
    color: white;
    margin-bottom: 32px;
    font-weight: 500;
}

.df-process-sub { display: block; color: var(--text-muted); font-size: 16px; margin-top: 12px; font-weight: 400; }

.df-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-stat-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.df-stat-num { font-size: 24px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }

.df-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 700; }

.df-stat-desc { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* RAG Flow (shared + document-flow specific variants) */

.rag-flow-container { display: flex; flex-direction: column; gap: 16px; position: relative; }

.rag-flow-step {
    display: flex; align-items: center; gap: 20px; padding: 20px;
    background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.rag-flow-step:hover { border-color: rgba(252, 96, 17, 0.4); background: rgba(252, 96, 17, 0.05); transform: translateX(8px); box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5); }

.rag-flow-step--active { background: rgba(252, 96, 17, 0.03); border-color: rgba(252, 96, 17, 0.2); }

.rag-flow-step--success { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.25); }

.rag-flow-icon {
    width: 44px; height: 44px; background: rgba(255, 255, 255, 0.05);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--primary); border: 1px solid rgba(255, 255, 255, 0.1);
}

.rag-flow-icon--primary { background: var(--primary); color: white; border-color: var(--primary); }

.rag-flow-icon--success { background: #22c55e; color: white; border-color: #22c55e; }

.rag-flow-info h4 { font-size: 16px; color: white; margin-bottom: 4px; }

.rag-flow-info p { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

.rag-flow-connector {
    width: 2px; height: 20px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    margin-left: 41px; opacity: 0.3;
}

/* --- ADMIN PANEL --- */

.df-admin-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: center; }

.df-admin-desc { color: var(--text-muted); font-size: 18px; line-height: 1.6; margin-bottom: 48px; margin-top: 20px; }

.df-admin-features { display: flex; flex-direction: column; gap: 32px; }

.df-admin-feature { display: flex; gap: 24px; align-items: flex-start; }

.df-feature-icon {
    width: 44px; height: 44px; background: rgba(252, 96, 17, 0.1);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--primary); flex-shrink: 0;
}

.df-feature-title { font-size: 20px; color: white; margin-bottom: 6px; }

.df-feature-text { color: var(--text-muted); font-size: 15px; line-height: 1.5; }

/* MacBook v2 */

.df-admin-visual { position: relative; display: flex; align-items: center; justify-content: center; padding: 20px 0; }

.macbook-v2 { position: relative; width: 100%; max-width: 520px; animation: dfFloatFull 8s ease-in-out infinite; }

.mb-screen { position: relative; background: #050505; border-radius: 10px; padding: 1.2%; border: 1.5px solid #333; box-shadow: 0 0 30px rgba(0, 0, 0, 0.4); }

.mb-inner-screen { position: relative; aspect-ratio: 16/10; background: #fff; border-radius: 3px; overflow: hidden; }

.mb-inner-screen img { width: 100%; height: 100%; object-fit: cover; }

.mb-gloss { position: absolute; top: 0; left: 0; width: 150%; height: 150%; background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%); pointer-events: none; }

.mb-webcam { position: absolute; top: 4px; left: 50%; width: 3px; height: 3px; border-radius: 50%; background: #1a1a1a; transform: translateX(-50%); }

.mb-base { position: relative; height: 12px; background: #a1a1a1; width: 112%; margin-left: -6%; border-radius: 2px 2px 18px 18px; box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.5); }

.mb-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 15%; height: 3px; background: rgba(0, 0, 0, 0.15); border-radius: 0 0 4px 4px; }

.df-floaty-badge {
    position: absolute; padding: 10px 18px; border-radius: 12px; z-index: 10;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px;
    backdrop-filter: blur(12px);
}

.df-floaty-badge--primary {
    top: 10%; right: -12%;
    background: rgba(252, 96, 17, 0.1);
    border: 1px solid rgba(252, 96, 17, 0.2);
    color: var(--primary);
    animation: dfFloatBadge 5s ease-in-out infinite;
}

.df-floaty-badge--dark {
    bottom: 25%; left: -15%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    animation: dfFloatBadge 5s ease-in-out infinite;
    animation-delay: -2.5s;
}

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

@keyframes dfFloatBadge {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5px, -10px); }
}

/* --- SPHERES --- */

.df-spheres-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 60px; }

.df-sphere-card { padding: 40px; border-radius: 20px; transition: all 0.4s ease; min-height: 420px; display: flex; flex-direction: column; }

.df-sphere-icon {
    width: 60px; height: 60px; background: rgba(252, 96, 17, 0.1);
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    color: var(--primary); margin-bottom: 32px;
}

.df-sphere-label { font-size: 11px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }

.df-sphere-title { font-size: 24px; color: white; margin-bottom: 20px; }

.df-sphere-desc { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; line-height: 1.6; }

.df-sphere-details { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.05); }

.df-sphere-list { list-style: none; padding: 0; }

.df-sphere-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; color: var(--text-muted); }

.df-sphere-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* --- DELIVERY --- */

.df-delivery-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }

.df-delivery-desc { color: var(--text-muted); font-size: 17px; line-height: 1.6; margin-top: 20px; margin-bottom: 40px; max-width: 540px; }

.df-tech-dna { display: flex; flex-direction: column; gap: 12px; }

.df-tech-item {
    padding: 24px; background: rgba(255, 255, 255, 0.02); border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05); display: flex; align-items: center; gap: 24px;
}

.df-tech-icon {
    width: 44px; height: 44px; background: rgba(252, 96, 17, 0.1); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0;
}

.df-tech-title { font-size: 15px; color: white; font-weight: 600; margin-bottom: 2px; }

.df-tech-subtitle { font-size: 13px; color: var(--text-muted); }

/* ETA Card */

.df-eta-card { align-items: flex-start; padding: 48px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(252, 96, 17, 0.2); position: relative; overflow: hidden; }

.df-eta-label { font-size: 13px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 24px; }

.df-eta-num { font-size: 60px; font-weight: 800; color: var(--primary); margin: 12px 0; line-height: 1; }

.df-eta-desc { color: white; font-size: 16px; margin-top: 16px; margin-bottom: 32px; font-weight: 500; line-height: 1.5; }

.df-eta-divider { width: 100%; height: 1px; background: rgba(255, 255, 255, 0.1); margin-bottom: 32px; }

.df-eta-glow { position: absolute; bottom: -20px; right: -20px; width: 100px; height: 100px; background: var(--primary); filter: blur(80px); opacity: 0.1; }

.df-delivery-list-title { font-size: 14px; color: white; margin-bottom: 20px; font-weight: 700; text-transform: uppercase; }

.df-delivery-list { list-style: none; padding: 0; }

.df-delivery-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--text-muted); font-size: 14px; }

.df-check-circle {
    width: 20px; height: 20px; background: var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 10px; flex-shrink: 0;
}

@media (max-width: 991px) {
    .df-two-col, .df-rag-layout, .df-delivery-grid { grid-template-columns: 1fr; }
    .df-two-col--sticky .df-sticky-side { position: static; }
    .df-spheres-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   INLINE STYLES FROM document-flow.html
   ========================================================================== */

/* RAG FLOW STYLES FOR PROCESS BLOCK */

.rag-flow-container {
            display: flex;
            flex-direction: column;
            gap: 16px;
            position: relative;
        }

.rag-flow-step {
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.02);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        }

.rag-flow-step:hover {
            border-color: rgba(252, 96, 17, 0.4);
            background: rgba(252, 96, 17, 0.05);
            transform: translateX(8px);
            box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
        }

.rag-flow-icon {
            width: 44px;
            height: 44px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: var(--primary);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

.rag-flow-info h4 {
            font-size: 16px;
            color: white;
            margin-bottom: 4px;
        }

.rag-flow-info p {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.4;
        }

.rag-flow-connector {
            width: 2px;
            height: 20px;
            background: linear-gradient(to bottom, var(--primary), transparent);
            margin-left: 41px;
            opacity: 0.3;
        }

.mini-stat-item {
            padding: 20px;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

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

@keyframes floatBadge {
                                0%, 100% { transform: translate(0, 0); }
                                50% { transform: translate(5px, -10px); }
                            }
