/* ==========================================================================
   e7v.ru - Marketplace Migration Section (WB & Ozon to Own Site)
   2026 High-Craft Bento & Cyberpunk Aesthetics
   ========================================================================== */

:root {
    --wb-magenta: #cb11ab;
    --wb-magenta-glow: rgba(203, 17, 171, 0.35);
    --ozon-blue: #005bff;
    --ozon-blue-glow: rgba(0, 91, 255, 0.4);
    --mig-cyan: #00f3ff;
    --mig-purple: #bc13fe;
    --mig-green: #10b981;
    --mig-card-bg: rgba(9, 11, 24, 0.78);
    --mig-card-border: rgba(255, 255, 255, 0.08);
    --mig-font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --mig-font-mono: 'JetBrains Mono', monospace;
}

.migration-section {
    position: relative;
    background-color: #050510;
    padding: 120px 20px 100px;
    font-family: var(--mig-font-sans);
    color: #fff;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background-image:
        radial-gradient(ellipse 50% 30% at 20% 10%, rgba(203, 17, 171, 0.12), transparent),
        radial-gradient(ellipse 50% 30% at 80% 20%, rgba(0, 91, 255, 0.12), transparent),
        radial-gradient(circle at 50% 80%, rgba(0, 243, 255, 0.06), transparent);
}

.mig-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* --- Section Header --- */
.mig-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 64px;
}

.mig-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 999px;
    font-family: var(--mig-font-mono);
    font-size: 0.8rem;
    color: var(--mig-cyan);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
}

.mig-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--mig-cyan);
    box-shadow: 0 0 10px var(--mig-cyan);
    animation: migPulse 2s infinite ease-in-out;
}

@keyframes migPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.mig-title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 24px;
    letter-spacing: -0.5px;
}

.mig-title-gradient {
    background: linear-gradient(135deg, #fff 20%, var(--mig-cyan) 60%, var(--mig-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mig-brand-wb {
    color: var(--wb-magenta);
    font-weight: 900;
    text-shadow: 0 0 20px var(--wb-magenta-glow);
    display: inline-block;
}

.mig-brand-ozon {
    color: var(--ozon-blue);
    font-weight: 900;
    text-shadow: 0 0 20px var(--ozon-blue-glow);
    display: inline-block;
}

.mig-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.65;
    color: #94a3b8;
    margin: 0 auto;
    max-width: 820px;
}

/* --- Bento Grid --- */
.mig-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.mig-card {
    background: var(--mig-card-bg);
    border: 1px solid var(--mig-card-border);
    border-radius: 20px;
    padding: 34px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.mig-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 243, 255, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 243, 255, 0.15);
}

.mig-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mig-font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 6px;
    width: fit-content;
    margin-bottom: 20px;
}

.badge-wb-ozon {
    background: linear-gradient(90deg, rgba(203, 17, 171, 0.2), rgba(0, 91, 255, 0.2));
    border: 1px solid rgba(203, 17, 171, 0.4);
    color: #f1f5f9;
}

.badge-finance {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.badge-sync {
    background: rgba(0, 243, 255, 0.12);
    border: 1px solid rgba(0, 243, 255, 0.35);
    color: var(--mig-cyan);
}

.badge-stack {
    background: rgba(188, 19, 254, 0.15);
    border: 1px solid rgba(188, 19, 254, 0.4);
    color: #e879f9;
}

.mig-card-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: #fff;
    line-height: 1.3;
}

.mig-card-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* Card 1: Data Pipeline Hero Bento (Span 8) */
.mig-card-pipeline {
    grid-column: span 8;
    background: linear-gradient(145deg, rgba(14, 18, 38, 0.9) 0%, rgba(9, 11, 24, 0.85) 100%);
}

.pipeline-diagram {
    background: rgba(5, 7, 16, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

.pipe-node {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    font-family: var(--mig-font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.pipe-node-source {
    border-color: rgba(203, 17, 171, 0.4);
    box-shadow: 0 0 15px rgba(203, 17, 171, 0.15);
}

.pipe-node-engine {
    border-color: rgba(0, 243, 255, 0.5);
    background: rgba(0, 243, 255, 0.08);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.25);
}

.pipe-node-target {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.pipe-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mig-cyan);
    font-size: 1.1rem;
    animation: pipeArrowPulse 1.5s infinite ease-in-out;
}

@keyframes pipeArrowPulse {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(4px); }
}

.pipeline-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}

.pipe-metric-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
}

.pipe-metric-value {
    font-family: var(--mig-font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mig-cyan);
    margin-bottom: 4px;
}

.pipe-metric-label {
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card 2: Financial Freedom (Span 4) */
.mig-card-finance {
    grid-column: span 4;
    background: linear-gradient(145deg, rgba(16, 30, 25, 0.85) 0%, rgba(9, 11, 24, 0.85) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.finance-compare-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: auto;
}

.fin-item {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fin-item-bad {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.fin-item-good {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    font-weight: 600;
}

/* Card 3: Realtime Stock Sync (Span 4) */
.mig-card-sync {
    grid-column: span 4;
}

.sync-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.sync-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 243, 255, 0.06);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 8px;
    font-family: var(--mig-font-mono);
    font-size: 0.78rem;
    color: #cbd5e1;
}

.sync-chip-icon {
    color: var(--mig-cyan);
}

/* Card 4: Modern E-Com Engines (Span 4) */
.mig-card-engines {
    grid-column: span 4;
}

.engine-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.engine-tag {
    padding: 6px 12px;
    background: rgba(188, 19, 254, 0.08);
    border: 1px solid rgba(188, 19, 254, 0.25);
    border-radius: 8px;
    font-family: var(--mig-font-mono);
    font-size: 0.78rem;
    color: #e2e8f0;
}

/* Card 5: Full Logistics & Pay (Span 4) */
.mig-card-logistics {
    grid-column: span 4;
}

.logistics-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.log-pill {
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: var(--mig-font-mono);
    color: #cbd5e1;
}

/* --- 4-Step Roadmap Timeline --- */
.mig-steps-wrapper {
    background: rgba(8, 10, 22, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.mig-steps-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 36px;
    color: #fff;
}

.mig-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.mig-step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.mig-step-card:hover {
    background: rgba(0, 243, 255, 0.03);
    border-color: rgba(0, 243, 255, 0.3);
    transform: translateY(-3px);
}

.mig-step-num {
    font-family: var(--mig-font-mono);
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(0, 243, 255, 0.25);
    margin-bottom: 12px;
    line-height: 1;
}

.mig-step-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.mig-step-text {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

/* --- Interactive CTA Bar --- */
.mig-cta-box {
    background: linear-gradient(135deg, rgba(203, 17, 171, 0.15) 0%, rgba(0, 91, 255, 0.15) 50%, rgba(0, 243, 255, 0.15) 100%);
    border: 1px solid rgba(0, 243, 255, 0.35);
    border-radius: 20px;
    padding: 38px 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.15);
    backdrop-filter: blur(20px);
}

.mig-cta-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: #fff;
}

.mig-cta-text p {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}

.mig-cta-buttons {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.mig-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--mig-cyan) 0%, #00b4d8 100%);
    color: #050510;
    font-family: var(--mig-font-mono);
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
    transition: all 0.25s ease;
}

.mig-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 35px rgba(0, 243, 255, 0.7);
    color: #000;
}

.mig-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 26px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: var(--mig-font-mono);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.mig-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .mig-card-pipeline {
        grid-column: span 12;
    }
    .mig-card-finance {
        grid-column: span 12;
    }
    .mig-card-sync, .mig-card-engines, .mig-card-logistics {
        grid-column: span 12;
    }
    .mig-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mig-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 24px;
    }
    .mig-cta-buttons {
        width: 100%;
        justify-content: center;
    }
    .pipeline-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .migration-section {
        padding: 80px 16px 60px;
    }
    .mig-card {
        padding: 24px 20px;
    }
    .pipeline-diagram {
        flex-direction: column;
        align-items: stretch;
    }
    .pipe-arrow {
        transform: rotate(90deg);
        margin: 6px 0;
    }
    .pipeline-metrics-grid {
        grid-template-columns: 1fr;
    }
    .mig-steps-grid {
        grid-template-columns: 1fr;
    }
    .mig-steps-wrapper {
        padding: 26px 18px;
    }
    .mig-btn-primary, .mig-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
